-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
AndroidManifest.xml
339 lines (297 loc) · 14.4 KB
/
AndroidManifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
<?xml version="1.0" encoding="utf-8"?><!--
Copyright (C) 2009 University of Washington Licensed under the Apache
License, Version 2.0 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
OR CONDITIONS OF ANY KIND, either express or implied. See the License for
the specific language governing permissions and limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="GoogleAppIndexingWarning">
<uses-feature
android:name="android.hardware.location"
android:required="false" />
<uses-feature
android:name="android.hardware.location.network"
android:required="false" />
<uses-feature
android:name="android.hardware.location.gps"
android:required="false" />
<uses-feature
android:name="android.hardware.telephony"
android:required="false" />
<uses-feature
android:name="android.hardware.wifi"
android:required="false" />
<uses-feature
android:glEsVersion="0x00030000"
tools:node="remove" />
<!-- Dangerous permissions -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<!-- Normal permissions -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!--
Since we use Scoped Storage, we should not need this permission. However, we discovered that
this might be required in some rare cases, probably due to bugs in Android OS.
See: https://github.com/getodk/collect/issues/5145
-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- Removed in API 23 -->
<uses-permission
android:name="android.permission.USE_CREDENTIALS"
android:maxSdkVersion="22" />
<uses-permission
android:name="android.permission.MANAGE_ACCOUNTS"
android:maxSdkVersion="22" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="false" />
<uses-feature
android:name="android.hardware.screen.portrait"
android:required="false" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<application
android:name=".application.Collect"
android:allowBackup="true"
android:icon="@drawable/notes"
android:installLocation="auto"
android:label="@string/collect_app_name"
android:largeHeap="true"
android:networkSecurityConfig="@xml/network_security_config"
android:supportsRtl="true"
android:usesCleartextTraffic="true"
android:theme="@style/Theme.Collect">
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>
<activity
android:name=".activities.FirstLaunchActivity">
</activity>
<activity
android:name=".mainmenu.MainMenuActivity"
android:theme="@style/Theme.Collect.SplashScreen"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="org.odk.collect.android.activities.CrashHandlerActivity" />
<activity
android:name=".activities.ScannerWithFlashlightActivity"
android:screenOrientation="portrait"
android:stateNotNeeded="true"
android:windowSoftInputMode="stateAlwaysHidden" />
<activity
android:name=".activities.FormFillingActivity"
android:theme="@style/Theme.Collect.FormEntry"
android:windowSoftInputMode="adjustResize" />
<activity
android:name="org.odk.collect.draw.DrawActivity"
android:screenOrientation="landscape" />
<activity android:name=".activities.InstanceChooserList" />
<activity
android:name=".formlists.blankformlist.BlankFormListActivity"
android:launchMode="singleTop" />
<activity android:name=".activities.FormDownloadListActivity" />
<activity android:name=".activities.DeleteFormsActivity" />
<activity
android:name=".instancemanagement.send.InstanceUploaderListActivity"
android:configChanges="orientation|screenSize" />
<activity android:name=".instancemanagement.send.InstanceUploaderActivity" />
<activity android:name=".activities.AboutActivity" />
<activity android:name=".configure.qr.QRCodeTabsActivity" />
<activity
android:name=".preferences.screens.ProjectPreferencesActivity"
android:theme="@style/Theme.Collect.Settings" />
<activity android:name=".formhierarchy.FormHierarchyActivity" />
<activity android:name=".formhierarchy.ViewOnlyFormHierarchyActivity" />
<activity
android:name="org.odk.collect.geo.geopoint.GeoPointActivity"
android:theme="@style/Theme.Collect"
tools:replace="android:theme" />
<activity
android:name="org.odk.collect.geo.geopoint.GeoPointMapActivity"
android:theme="@style/Theme.Collect"
tools:replace="android:theme" />
<activity
android:name="org.odk.collect.geo.geopoly.GeoPolyActivity"
android:theme="@style/Theme.Collect"
tools:replace="android:theme" />
<activity
android:name="org.odk.collect.errors.ErrorActivity"
android:theme="@style/Theme.Collect"
tools:replace="android:theme" />
<activity
android:name="org.odk.collect.entities.browser.EntityBrowserActivity"
android:theme="@style/Theme.Collect"
tools:replace="android:theme" />
<activity android:name=".activities.FormMapActivity" />
<activity android:name=".activities.BearingActivity" />
<activity android:name="org.odk.collect.webpage.WebViewActivity" />
<activity
android:name="org.odk.collect.selfiecamera.CaptureSelfieActivity"
android:theme="@style/Theme.Collect"
tools:replace="android:theme">
</activity>
<!-- Configure this key by setting GOOGLE_MAPS_API_KEY in secrets.properties. -->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/GOOGLE_MAPS_API_KEY" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"
tools:replace="android:value" /> <!-- integer/google_play_services_version -->
<meta-data
android:name="firebase_analytics_collection_enabled"
android:value="false" />
<meta-data
android:name="firebase_crashlytics_collection_enabled"
android:value="false" />
<meta-data
android:name="google_analytics_adid_collection_enabled"
android:value="false" />
<meta-data
android:name="google_analytics_ssaid_collection_enabled"
android:value="false" />
<uses-library
android:name="com.google.android.maps"
android:required="false" />
<!--
******************External API, DO NOT CHANGE BEFORE DISCUSSING***********************
* The providers and activities below are available for external applications to *
* integrate with and are actively in use. If one of these needs to change for some *
* reason, it needs to be placed on a deprecation path so users can adapt before the *
* change. If an activity needs to be renamed internally, use an activity-alias. If *
* the external API needs to be expanded, introduce carefully-named actions. *
**************************************************************************************
-->
<provider
android:name=".external.FormsProvider"
android:authorities="org.odk.collect.android.provider.odk.forms"
android:exported="true" />
<provider
android:name=".external.InstanceProvider"
android:authorities="org.odk.collect.android.provider.odk.instances"
android:exported="true" />
<activity-alias
android:name=".activities.FormEntryActivity"
android:targetActivity=".external.FormUriActivity"
tools:ignore="AppLinkUrlError"
android:exported="true">
</activity-alias>
<activity-alias
android:name=".activities.InstanceChooserList"
android:targetActivity=".activities.InstanceChooserList"
android:exported="true"
tools:ignore="AppLinkUrlError">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.PICK" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.dir/vnd.odk.instance" />
</intent-filter>
</activity-alias>
<activity-alias
android:name=".activities.FormChooserList"
android:targetActivity=".formlists.blankformlist.BlankFormListActivity"
android:exported="true"
tools:ignore="AppLinkUrlError">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.PICK" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.dir/vnd.odk.form" />
</intent-filter>
</activity-alias>
<activity-alias
android:name=".activities.FormDownloadList"
android:targetActivity=".activities.FormDownloadListActivity"
android:exported="true">
<intent-filter>
<action android:name="org.odk.collect.android.FORM_DOWNLOAD" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.dir/vnd.odk.form" />
</intent-filter>
</activity-alias>
<activity-alias
android:name=".activities.InstanceUploaderList"
android:targetActivity=".instancemanagement.send.InstanceUploaderListActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity-alias>
<activity-alias
android:name=".activities.InstanceUploaderActivity"
android:targetActivity=".instancemanagement.send.InstanceUploaderActivity"
android:exported="true">
<intent-filter>
<action android:name="org.odk.collect.android.INSTANCE_UPLOAD" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.dir/vnd.odk.instance" />
</intent-filter>
</activity-alias>
<!-- Enable Shortcuts for Command Actions -->
<activity
android:name=".external.AndroidShortcutsActivity"
android:label="ODK Form"
android:theme="@style/Theme.MaterialComponents.Light.NoActionBar"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!-- Supports VIEW and EDIT actions for forms and instances (documented at
https://docs.getodk.org/launch-collect-from-app/#using-a-uri-to-edit-a-form-or-instance).
Do not use the activity directly as its name/package might change. -->
<activity
android:name=".external.FormUriActivity"
android:exported="true"
tools:ignore="AppLinkUrlError">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.item/vnd.odk.form" />
<data android:mimeType="vnd.android.cursor.item/vnd.odk.instance" />
</intent-filter>
</activity>
</application>
<queries>
<intent>
<action android:name="android.intent.action.MAIN" />
</intent>
</queries>
</manifest>