xref: /aosp_15_r20/external/zxing/android/AndroidManifest.xml (revision 513427e33d61bc67fc40bc261642ac0b2a686b45)
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright (C) 2008 ZXing authors
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9      http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 -->
17<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18          package="com.google.zxing.client.android"
19          android:versionName="4.7.8"
20          android:versionCode="108"
21          android:installLocation="auto">
22
23  <uses-permission android:name="android.permission.CAMERA"/>
24  <uses-permission android:name="android.permission.INTERNET"/>
25  <uses-permission android:name="android.permission.VIBRATE"/>
26  <uses-permission android:name="android.permission.FLASHLIGHT"/>
27  <uses-permission android:name="android.permission.READ_CONTACTS"/>
28  <!-- unavailable in API 23 -->
29  <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
30  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
31  <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
32  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
33
34  <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="22"/>
35
36  <uses-feature android:name="android.hardware.camera.any"/>
37  <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
38  <uses-feature android:name="android.hardware.camera.flash" android:required="false"/>
39  <uses-feature android:name="android.hardware.screen.landscape"/>
40  <uses-feature android:name="android.hardware.wifi" android:required="false"/>
41
42  <application android:icon="@drawable/launcher_icon"
43               android:logo="@drawable/launcher_icon"
44               android:label="@string/app_name"
45               android:allowBackup="true">
46    <activity android:name=".CaptureActivity"
47              android:screenOrientation="sensorLandscape"
48              android:clearTaskOnLaunch="true"
49              android:stateNotNeeded="true"
50              android:theme="@style/CaptureTheme"
51              android:windowSoftInputMode="stateAlwaysHidden"
52              android:exported="false">
53      <intent-filter>
54        <action android:name="android.intent.action.MAIN"/>
55        <category android:name="android.intent.category.LAUNCHER"/>
56      </intent-filter>
57      <intent-filter>
58        <action android:name="com.google.zxing.client.android.SCAN"/>
59        <category android:name="android.intent.category.DEFAULT"/>
60      </intent-filter>
61      <!-- Allow web apps to launch Barcode Scanner by linking to http://zxing.appspot.com/scan. -->
62      <intent-filter>
63        <action android:name="android.intent.action.VIEW"/>
64        <category android:name="android.intent.category.DEFAULT"/>
65        <category android:name="android.intent.category.BROWSABLE"/>
66        <data android:scheme="http" android:host="zxing.appspot.com" android:path="/scan"/>
67      </intent-filter>
68      <!-- We also support a Google Product Search URL. -->
69      <intent-filter>
70        <action android:name="android.intent.action.VIEW"/>
71        <category android:name="android.intent.category.DEFAULT"/>
72        <category android:name="android.intent.category.BROWSABLE"/>
73        <data android:scheme="http" android:host="www.google.com" android:path="/m/products/scan"/>
74      </intent-filter>
75      <!-- And the UK version. -->
76      <intent-filter>
77        <action android:name="android.intent.action.VIEW"/>
78        <category android:name="android.intent.category.DEFAULT"/>
79        <category android:name="android.intent.category.BROWSABLE"/>
80        <data android:scheme="http" android:host="www.google.co.uk" android:path="/m/products/scan"/>
81      </intent-filter>
82      <!-- Support zxing://scan/?... like iPhone app -->
83      <intent-filter>
84        <action android:name="android.intent.action.VIEW"/>
85        <category android:name="android.intent.category.DEFAULT"/>
86        <category android:name="android.intent.category.BROWSABLE"/>
87        <data android:scheme="zxing" android:host="scan" android:path="/"/>
88      </intent-filter>
89    </activity>
90    <activity android:name=".PreferencesActivity"
91              android:label="@string/preferences_name"
92              android:stateNotNeeded="true"/>
93    <activity android:name=".encode.EncodeActivity"
94              android:stateNotNeeded="true"
95              android:exported="false">
96      <intent-filter>
97        <action android:name="com.google.zxing.client.android.ENCODE"/>
98        <category android:name="android.intent.category.DEFAULT"/>
99      </intent-filter>
100      <!-- This allows us to handle the Share button in Contacts. -->
101      <intent-filter>
102        <action android:name="android.intent.action.SEND"/>
103        <category android:name="android.intent.category.DEFAULT"/>
104        <data android:mimeType="text/x-vcard"/>
105      </intent-filter>
106      <!-- This allows us to handle sharing any plain text . -->
107      <intent-filter>
108        <action android:name="android.intent.action.SEND"/>
109        <category android:name="android.intent.category.DEFAULT"/>
110        <data android:mimeType="text/plain"/>
111      </intent-filter>
112    </activity>
113    <activity android:name=".book.SearchBookContentsActivity"
114              android:label="@string/sbc_name"
115              android:stateNotNeeded="true"
116              android:screenOrientation="sensorLandscape"
117              android:exported="false">
118      <intent-filter>
119        <action android:name="com.google.zxing.client.android.SEARCH_BOOK_CONTENTS"/>
120        <category android:name="android.intent.category.DEFAULT"/>
121      </intent-filter>
122    </activity>
123    <activity android:name=".share.ShareActivity"
124              android:stateNotNeeded="true"
125              android:screenOrientation="user"
126              android:exported="false">
127      <intent-filter>
128        <action android:name="com.google.zxing.client.android.SHARE"/>
129        <category android:name="android.intent.category.DEFAULT"/>
130      </intent-filter>
131    </activity>
132    <activity android:name=".history.HistoryActivity"
133              android:label="@string/history_title"
134              android:stateNotNeeded="true"/>
135    <activity android:name=".share.BookmarkPickerActivity"
136              android:label="@string/bookmark_picker_name"
137              android:stateNotNeeded="true"/>
138    <activity android:name=".share.AppPickerActivity"
139              android:label="@string/app_picker_name"
140              android:stateNotNeeded="true"/>
141    <activity android:name=".HelpActivity"
142              android:label="@string/menu_help"
143              android:screenOrientation="user"
144              android:stateNotNeeded="true"/>
145  </application>
146
147</manifest>
148