blob: f189f588eb154c3d9e1c44480068b254e0efcf19 [file] [log] [blame]
Leif Hendrik Wilden42053492018-01-03 11:16:09 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4 * Copyright (C) 2007-2017 The Android Open Source Project
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18-->
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070019<manifest xmlns:android="http://schemas.android.com/apk/res/android"
20 package="com.android.documentsui">
21
Nikita Ioffe1b846dc2020-05-20 00:22:26 +010022 <uses-sdk android:minSdkVersion="29" />
Diksha Gohlyan841c79a2020-03-11 15:36:26 -070023
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070024 <uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
Jeff Sharkey3fd11772013-09-30 14:26:27 -070025 <uses-permission android:name="android.permission.REMOVE_TASKS" />
Dianne Hackborn7c44ee12018-01-19 17:56:45 -080026 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
Jeff Sharkey22056802015-10-01 15:14:57 -070027 <uses-permission android:name="android.permission.WAKE_LOCK" />
Jeff Sharkey50254fe2016-03-11 17:25:11 -070028 <uses-permission android:name="android.permission.CACHE_CONTENT" />
29 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Bill Lin24499e62019-05-14 18:15:42 +080030 <uses-permission android:name="android.permission.CHANGE_OVERLAY_PACKAGES" />
Kelvin Kwan9403f9f2020-01-23 15:48:03 +000031 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
Kelvin Kwan34810bc2020-03-02 16:52:59 +000032 <uses-permission android:name="android.permission.MODIFY_QUIET_MODE" />
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070033
Ivan Chiangf0f7d2e2020-02-27 14:44:07 +080034 <!-- Permissions required for reading and logging compat changes -->
35 <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE"/>
36 <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG"/>
37
Cherie Cheung8d7f52a2020-06-14 17:48:24 +090038 <!-- For App enumeration -->
39 <queries>
40 <intent>
41 <action android:name="android.intent.action.SEND" />
42 <data android:mimeType="*/*" />
43 </intent>
44 <intent>
45 <action android:name="android.intent.action.SEND_MULTIPLE" />
46 <data android:mimeType="*/*" />
47 </intent>
48 <intent>
49 <action android:name="android.intent.action.VIEW" />
50 <data android:mimeType="*/*" />
51 </intent>
52 </queries>
53
Jeff Sharkey2e694f82013-08-06 16:26:14 -070054 <application
Jeff Sharkey873daa32013-08-18 17:38:20 -070055 android:name=".DocumentsApplication"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070056 android:label="@string/app_label"
Steve McKayd5b9b0f2016-08-01 13:00:05 -070057 android:icon="@drawable/app_icon"
Chen Su24613682016-12-22 16:21:32 +000058 android:supportsRtl="true"
59 android:allowBackup="true"
60 android:backupAgent=".prefs.BackupAgent"
Kelvin Kwan33a186c2020-02-14 11:51:21 +000061 android:fullBackupOnly="false"
62 android:crossProfile="true">
Chen Su24613682016-12-22 16:21:32 +000063
64 <meta-data
65 android:name="com.google.android.backup.api_key"
66 android:value="AEdPqrEAAAAInBA8ued0O_ZyYUsVhwinUF-x50NIe9K0GzBW4A" />
Jeff Sharkey2e694f82013-08-06 16:26:14 -070067
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070068 <activity
Steve McKay16e0c1f2016-09-15 12:41:13 -070069 android:name=".picker.PickActivity"
Diksha Gohlyanfda0e012020-05-27 12:26:37 -070070 android:exported="true"
Diksha Gohlyan306a2b62020-05-21 14:43:42 -070071 android:theme="@style/LauncherTheme"
Chad Brubaker9fa78e32017-01-20 14:11:25 -080072 android:visibleToInstantApps="true">
Ivan Chiang4a7d2a82019-11-12 10:47:01 +080073 <intent-filter android:priority="100">
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070074 <action android:name="android.intent.action.OPEN_DOCUMENT" />
75 <category android:name="android.intent.category.DEFAULT" />
Jeff Sharkey1d890e02013-08-15 11:24:03 -070076 <category android:name="android.intent.category.OPENABLE" />
Jeff Sharkey3c28b792013-07-01 17:22:02 -070077 <data android:mimeType="*/*" />
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070078 </intent-filter>
Ivan Chiang4a7d2a82019-11-12 10:47:01 +080079 <intent-filter android:priority="100">
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070080 <action android:name="android.intent.action.CREATE_DOCUMENT" />
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070081 <category android:name="android.intent.category.DEFAULT" />
Jeff Sharkey1d890e02013-08-15 11:24:03 -070082 <category android:name="android.intent.category.OPENABLE" />
83 <data android:mimeType="*/*" />
84 </intent-filter>
85 <intent-filter android:priority="100">
86 <action android:name="android.intent.action.GET_CONTENT" />
87 <category android:name="android.intent.category.DEFAULT" />
88 <category android:name="android.intent.category.OPENABLE" />
Jeff Sharkey3c28b792013-07-01 17:22:02 -070089 <data android:mimeType="*/*" />
90 </intent-filter>
Ivan Chiang4a7d2a82019-11-12 10:47:01 +080091 <intent-filter android:priority="100">
Jeff Sharkeyf4943e12014-06-04 16:42:47 -070092 <action android:name="android.intent.action.OPEN_DOCUMENT_TREE" />
Jeff Sharkey6e565ff2014-04-05 19:05:24 -070093 <category android:name="android.intent.category.DEFAULT" />
94 </intent-filter>
Ben Kwa0574b182015-09-08 07:31:19 -070095 </activity>
96
97 <activity
Steve McKayb6006b22016-09-29 09:23:45 -070098 android:name=".files.LauncherActivity"
Steve McKay84740592017-03-08 12:35:22 -080099 android:label="@string/launcher_label"
100 android:icon="@drawable/launcher_icon"
Steve McKay17f7e582016-04-04 15:26:48 -0700101 android:theme="@android:style/Theme.NoDisplay">
Steve McKay16e0c1f2016-09-15 12:41:13 -0700102 </activity>
103
greensurferb9c83d32017-06-02 13:34:10 -0700104 <activity
Steve McKayf433d202017-07-12 18:46:09 -0700105 android:name=".inspector.InspectorActivity"
Steve McKay9e8b9c02017-08-17 11:24:02 -0700106 android:label="@string/menu_inspect"
greensurferb9c83d32017-06-02 13:34:10 -0700107 android:icon="@drawable/launcher_icon"
108 android:theme="@style/DocumentsTheme">
109 </activity>
110
Steve McKay16e0c1f2016-09-15 12:41:13 -0700111 <!-- Preserve original launcher activity from Nougat. -->
112 <activity-alias
Steve McKaye2b5ffe2017-06-22 10:21:15 -0700113 android:name=".LauncherActivity"
Steve McKayb6006b22016-09-29 09:23:45 -0700114 android:targetActivity=".files.LauncherActivity"
Steve McKay84740592017-03-08 12:35:22 -0800115 android:label="@string/launcher_label"
Diksha Gohlyanfda0e012020-05-27 12:26:37 -0700116 android:exported="true"
Steve McKay84740592017-03-08 12:35:22 -0800117 android:icon="@drawable/launcher_icon" >
Steve McKayd0a2a2c2015-03-25 14:35:33 -0700118 <intent-filter>
119 <action android:name="android.intent.action.MAIN" />
120 <category android:name="android.intent.category.LAUNCHER" />
Jeff Sharkey83e7e7c2019-04-09 09:33:28 -0600121 <category android:name="android.intent.category.APP_FILES" />
Steve McKayd0a2a2c2015-03-25 14:35:33 -0700122 </intent-filter>
Garfield Tan2e3cf1d2016-10-21 15:25:26 -0700123 <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts" />
Steve McKay16e0c1f2016-09-15 12:41:13 -0700124 </activity-alias>
Steve McKayf2c8b0d2015-09-23 15:44:24 -0700125
126 <activity
Steve McKayb6006b22016-09-29 09:23:45 -0700127 android:name=".files.FilesActivity"
Steve McKay17f7e582016-04-04 15:26:48 -0700128 android:documentLaunchMode="intoExisting"
Diksha Gohlyanfda0e012020-05-27 12:26:37 -0700129 android:exported="true"
Diksha Gohlyan306a2b62020-05-21 14:43:42 -0700130 android:theme="@style/LauncherTheme">
Steve McKayf2c8b0d2015-09-23 15:44:24 -0700131 <intent-filter>
132 <action android:name="android.intent.action.MAIN" />
133 </intent-filter>
Steve McKay459bc2b2015-09-16 15:07:31 -0700134 <intent-filter>
Garfield Tanc5efea02017-02-22 12:58:29 -0800135 <action android:name="android.intent.action.VIEW" />
136 <category android:name="android.intent.category.DEFAULT" />
137 <data android:mimeType="vnd.android.document/root" />
138 </intent-filter>
139 <intent-filter>
140 <action android:name="android.intent.action.VIEW" />
Garfield Tanf8969d62017-02-02 16:55:55 -0800141 <category android:name="android.intent.category.DEFAULT" />
142 <data android:mimeType="vnd.android.document/directory" />
143 </intent-filter>
Ben Lin5fb1bcc2017-05-16 15:34:00 -0700144 </activity>
145
Tony Huangc39b0b22019-06-10 16:55:20 +0800146 <activity-alias android:name=".ViewDownloadsActivity"
Ben Lin5fb1bcc2017-05-16 15:34:00 -0700147 android:targetActivity=".files.FilesActivity"
Diksha Gohlyanfda0e012020-05-27 12:26:37 -0700148 android:exported="true"
Ben Lin5fb1bcc2017-05-16 15:34:00 -0700149 android:enabled="@bool/handle_view_downloads_intent">
Garfield Tanf8969d62017-02-02 16:55:55 -0800150 <intent-filter>
Steve McKay17f7e582016-04-04 15:26:48 -0700151 <action android:name="android.intent.action.VIEW_DOWNLOADS" />
152 <category android:name="android.intent.category.DEFAULT" />
153 </intent-filter>
Ben Lin5fb1bcc2017-05-16 15:34:00 -0700154 </activity-alias>
Steve McKayd0a2a2c2015-03-25 14:35:33 -0700155
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800156 <activity
Felipe Leme433d78a2018-01-08 16:39:00 -0800157 android:name=".ScopedAccessActivity"
Diksha Gohlyanfda0e012020-05-27 12:26:37 -0700158 android:exported="true"
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800159 android:theme="@android:style/Theme.Translucent.NoTitleBar">
160 <intent-filter>
Felipe Leme5228bd02016-02-17 10:12:04 -0800161 <action android:name="android.os.storage.action.OPEN_EXTERNAL_DIRECTORY" />
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800162 <category android:name="android.intent.category.DEFAULT" />
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800163 </intent-filter>
164 </activity>
165
Jeff Sharkey50d35622013-08-02 10:33:21 -0700166 <provider
Steve McKayd0805062016-09-15 14:30:38 -0700167 android:name=".picker.LastAccessedProvider"
Ben Lin7232bf02016-08-26 14:33:03 -0700168 android:authorities="com.android.documentsui.lastAccessed"
Steve McKayd0a2a2c2015-03-25 14:35:33 -0700169 android:exported="false"/>
Jeff Sharkey50d35622013-08-02 10:33:21 -0700170
Tomasz Mikolajewskidbd6b8b2016-09-29 15:27:37 +0900171 <provider
shawnline0ba46d2019-01-25 15:21:26 +0800172 android:name=".picker.PickCountRecordProvider"
173 android:authorities="com.android.documentsui.pickCountRecord"
174 android:exported="false"/>
175
176 <provider
Tomasz Mikolajewskidbd6b8b2016-09-29 15:27:37 +0900177 android:name=".archives.ArchivesProvider"
178 android:authorities="com.android.documentsui.archives"
179 android:grantUriPermissions="true"
180 android:permission="android.permission.MANAGE_DOCUMENTS"
Tomasz Mikolajewskibf6cfdc2017-02-13 13:14:30 +0900181 android:exported="true">
182 <intent-filter>
183 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
184 </intent-filter>
185 </provider>
Tomasz Mikolajewskidbd6b8b2016-09-29 15:27:37 +0900186
Jeff Sharkey2bfdedb2013-10-24 10:44:03 -0700187 <receiver android:name=".PackageReceiver">
188 <intent-filter>
189 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
190 <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
191 <data android:scheme="package" />
192 </intent-filter>
193 </receiver>
Ben Kwa41b26c12015-03-31 10:11:43 -0700194
Steve McKayd9caa6a2016-09-15 16:36:45 -0700195 <receiver android:name=".roots.BootReceiver" android:enabled="false">
Jeff Sharkey50254fe2016-03-11 17:25:11 -0700196 <intent-filter>
197 <action android:name="android.intent.action.BOOT_COMPLETED" />
198 </intent-filter>
199 </receiver>
200
Tony Huangc39b0b22019-06-10 16:55:20 +0800201 <receiver android:name=".PreBootReceiver">
202 <intent-filter>
203 <action android:name="android.intent.action.PRE_BOOT_COMPLETED" />
204 </intent-filter>
205 </receiver>
206
Garfield, Tanedce5542016-06-17 15:32:28 -0700207 <!-- Run FileOperationService in a separate process so that we can use FileLock class to
208 wait until jumbo clip is done writing to disk before reading it. See ClipStorage for
209 details. -->
Ben Kwa41b26c12015-03-31 10:11:43 -0700210 <service
Steve McKayc83baa02016-01-06 18:32:13 -0800211 android:name=".services.FileOperationService"
Garfield, Tanedce5542016-06-17 15:32:28 -0700212 android:exported="false"
213 android:process=":com.android.documentsui.services">
Ben Kwa41b26c12015-03-31 10:11:43 -0700214 </service>
Steve McKay08d0d562017-09-25 14:21:58 -0700215
216 <activity
217 android:name=".selection.demo.SelectionDemoActivity"
218 android:label="Selection Demo"
Bill Lin81a9ea72019-01-16 22:27:36 +0800219 android:theme="@style/DocumentsTheme">
Steve McKay08d0d562017-09-25 14:21:58 -0700220 <intent-filter>
221 <action android:name="android.intent.action.MAIN" />
222 </intent-filter>
223 </activity>
224
Jeff Sharkeye22d02e2013-04-26 16:54:55 -0700225 </application>
226</manifest>