blob: e15805e28cbef1c15fb4a3d1669919874e568836 [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
Zemiao Zhu6f99d9d2021-01-22 14:25:11 -080022 <uses-sdk android:minSdkVersion="29" android:targetSdkVersion="30"/>
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" />
Diksha Gohlyan3a79b562020-11-03 15:16:58 -080033 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
Steve Elliott53fbf8b2021-12-03 16:32:07 -050034 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070035
Ivan Chiangf0f7d2e2020-02-27 14:44:07 +080036 <!-- Permissions required for reading and logging compat changes -->
37 <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE"/>
38 <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG"/>
39
Makoto Onukidacd6f22020-12-10 09:55:08 -080040 <uses-permission android:name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND"/>
41
Jeff Sharkey2e694f82013-08-06 16:26:14 -070042 <application
Jeff Sharkey873daa32013-08-18 17:38:20 -070043 android:name=".DocumentsApplication"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070044 android:label="@string/app_label"
Steve McKayd5b9b0f2016-08-01 13:00:05 -070045 android:icon="@drawable/app_icon"
Chen Su24613682016-12-22 16:21:32 +000046 android:supportsRtl="true"
47 android:allowBackup="true"
48 android:backupAgent=".prefs.BackupAgent"
Kelvin Kwan33a186c2020-02-14 11:51:21 +000049 android:fullBackupOnly="false"
50 android:crossProfile="true">
Chen Su24613682016-12-22 16:21:32 +000051
52 <meta-data
53 android:name="com.google.android.backup.api_key"
54 android:value="AEdPqrEAAAAInBA8ued0O_ZyYUsVhwinUF-x50NIe9K0GzBW4A" />
Jeff Sharkey2e694f82013-08-06 16:26:14 -070055
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070056 <activity
Steve McKay16e0c1f2016-09-15 12:41:13 -070057 android:name=".picker.PickActivity"
Ashwini Oruganticdd2cd12020-03-24 10:11:09 -070058 android:exported="true"
Diksha Gohlyan306a2b62020-05-21 14:43:42 -070059 android:theme="@style/LauncherTheme"
Chad Brubaker9fa78e32017-01-20 14:11:25 -080060 android:visibleToInstantApps="true">
Ivan Chiang4a7d2a82019-11-12 10:47:01 +080061 <intent-filter android:priority="100">
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070062 <action android:name="android.intent.action.OPEN_DOCUMENT" />
63 <category android:name="android.intent.category.DEFAULT" />
Jeff Sharkey1d890e02013-08-15 11:24:03 -070064 <category android:name="android.intent.category.OPENABLE" />
Jeff Sharkey3c28b792013-07-01 17:22:02 -070065 <data android:mimeType="*/*" />
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070066 </intent-filter>
Ivan Chiang4a7d2a82019-11-12 10:47:01 +080067 <intent-filter android:priority="100">
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070068 <action android:name="android.intent.action.CREATE_DOCUMENT" />
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070069 <category android:name="android.intent.category.DEFAULT" />
Jeff Sharkey1d890e02013-08-15 11:24:03 -070070 <category android:name="android.intent.category.OPENABLE" />
71 <data android:mimeType="*/*" />
72 </intent-filter>
73 <intent-filter android:priority="100">
74 <action android:name="android.intent.action.GET_CONTENT" />
75 <category android:name="android.intent.category.DEFAULT" />
76 <category android:name="android.intent.category.OPENABLE" />
Jeff Sharkey3c28b792013-07-01 17:22:02 -070077 <data android:mimeType="*/*" />
78 </intent-filter>
Ivan Chiang4a7d2a82019-11-12 10:47:01 +080079 <intent-filter android:priority="100">
Jeff Sharkeyf4943e12014-06-04 16:42:47 -070080 <action android:name="android.intent.action.OPEN_DOCUMENT_TREE" />
Jeff Sharkey6e565ff2014-04-05 19:05:24 -070081 <category android:name="android.intent.category.DEFAULT" />
82 </intent-filter>
Ben Kwa0574b182015-09-08 07:31:19 -070083 </activity>
84
85 <activity
Steve McKayb6006b22016-09-29 09:23:45 -070086 android:name=".files.LauncherActivity"
Steve McKay84740592017-03-08 12:35:22 -080087 android:label="@string/launcher_label"
88 android:icon="@drawable/launcher_icon"
Steve McKay17f7e582016-04-04 15:26:48 -070089 android:theme="@android:style/Theme.NoDisplay">
Steve McKay16e0c1f2016-09-15 12:41:13 -070090 </activity>
91
greensurferb9c83d32017-06-02 13:34:10 -070092 <activity
Steve McKayf433d202017-07-12 18:46:09 -070093 android:name=".inspector.InspectorActivity"
Steve McKay9e8b9c02017-08-17 11:24:02 -070094 android:label="@string/menu_inspect"
greensurferb9c83d32017-06-02 13:34:10 -070095 android:icon="@drawable/launcher_icon"
96 android:theme="@style/DocumentsTheme">
97 </activity>
98
Steve McKay16e0c1f2016-09-15 12:41:13 -070099 <!-- Preserve original launcher activity from Nougat. -->
100 <activity-alias
Steve McKaye2b5ffe2017-06-22 10:21:15 -0700101 android:name=".LauncherActivity"
Steve McKayb6006b22016-09-29 09:23:45 -0700102 android:targetActivity=".files.LauncherActivity"
Steve McKay84740592017-03-08 12:35:22 -0800103 android:label="@string/launcher_label"
Ashwini Oruganticdd2cd12020-03-24 10:11:09 -0700104 android:exported="true"
Steve McKay84740592017-03-08 12:35:22 -0800105 android:icon="@drawable/launcher_icon" >
Steve McKayd0a2a2c2015-03-25 14:35:33 -0700106 <intent-filter>
107 <action android:name="android.intent.action.MAIN" />
108 <category android:name="android.intent.category.LAUNCHER" />
Jeff Sharkey83e7e7c2019-04-09 09:33:28 -0600109 <category android:name="android.intent.category.APP_FILES" />
Steve McKayd0a2a2c2015-03-25 14:35:33 -0700110 </intent-filter>
Garfield Tan2e3cf1d2016-10-21 15:25:26 -0700111 <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts" />
Steve McKay16e0c1f2016-09-15 12:41:13 -0700112 </activity-alias>
Steve McKayf2c8b0d2015-09-23 15:44:24 -0700113
114 <activity
Steve McKayb6006b22016-09-29 09:23:45 -0700115 android:name=".files.FilesActivity"
Steve McKay17f7e582016-04-04 15:26:48 -0700116 android:documentLaunchMode="intoExisting"
Ashwini Oruganticdd2cd12020-03-24 10:11:09 -0700117 android:exported="true"
Diksha Gohlyan306a2b62020-05-21 14:43:42 -0700118 android:theme="@style/LauncherTheme">
Steve McKayf2c8b0d2015-09-23 15:44:24 -0700119 <intent-filter>
120 <action android:name="android.intent.action.MAIN" />
121 </intent-filter>
Steve McKay459bc2b2015-09-16 15:07:31 -0700122 <intent-filter>
Garfield Tanc5efea02017-02-22 12:58:29 -0800123 <action android:name="android.intent.action.VIEW" />
124 <category android:name="android.intent.category.DEFAULT" />
125 <data android:mimeType="vnd.android.document/root" />
126 </intent-filter>
127 <intent-filter>
128 <action android:name="android.intent.action.VIEW" />
Garfield Tanf8969d62017-02-02 16:55:55 -0800129 <category android:name="android.intent.category.DEFAULT" />
130 <data android:mimeType="vnd.android.document/directory" />
131 </intent-filter>
Ben Lin5fb1bcc2017-05-16 15:34:00 -0700132 </activity>
133
Tony Huangc39b0b22019-06-10 16:55:20 +0800134 <activity-alias android:name=".ViewDownloadsActivity"
Ben Lin5fb1bcc2017-05-16 15:34:00 -0700135 android:targetActivity=".files.FilesActivity"
Ashwini Oruganticdd2cd12020-03-24 10:11:09 -0700136 android:exported="true"
Ben Lin5fb1bcc2017-05-16 15:34:00 -0700137 android:enabled="@bool/handle_view_downloads_intent">
Garfield Tanf8969d62017-02-02 16:55:55 -0800138 <intent-filter>
Steve McKay17f7e582016-04-04 15:26:48 -0700139 <action android:name="android.intent.action.VIEW_DOWNLOADS" />
140 <category android:name="android.intent.category.DEFAULT" />
141 </intent-filter>
Ben Lin5fb1bcc2017-05-16 15:34:00 -0700142 </activity-alias>
Steve McKayd0a2a2c2015-03-25 14:35:33 -0700143
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800144 <activity
Felipe Leme433d78a2018-01-08 16:39:00 -0800145 android:name=".ScopedAccessActivity"
Ashwini Oruganticdd2cd12020-03-24 10:11:09 -0700146 android:exported="true"
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800147 android:theme="@android:style/Theme.Translucent.NoTitleBar">
148 <intent-filter>
Felipe Leme5228bd02016-02-17 10:12:04 -0800149 <action android:name="android.os.storage.action.OPEN_EXTERNAL_DIRECTORY" />
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800150 <category android:name="android.intent.category.DEFAULT" />
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800151 </intent-filter>
152 </activity>
153
Jeff Sharkey50d35622013-08-02 10:33:21 -0700154 <provider
Steve McKayd0805062016-09-15 14:30:38 -0700155 android:name=".picker.LastAccessedProvider"
Ben Lin7232bf02016-08-26 14:33:03 -0700156 android:authorities="com.android.documentsui.lastAccessed"
Steve McKayd0a2a2c2015-03-25 14:35:33 -0700157 android:exported="false"/>
Jeff Sharkey50d35622013-08-02 10:33:21 -0700158
Tomasz Mikolajewskidbd6b8b2016-09-29 15:27:37 +0900159 <provider
shawnline0ba46d2019-01-25 15:21:26 +0800160 android:name=".picker.PickCountRecordProvider"
161 android:authorities="com.android.documentsui.pickCountRecord"
162 android:exported="false"/>
163
164 <provider
Tomasz Mikolajewskidbd6b8b2016-09-29 15:27:37 +0900165 android:name=".archives.ArchivesProvider"
166 android:authorities="com.android.documentsui.archives"
167 android:grantUriPermissions="true"
168 android:permission="android.permission.MANAGE_DOCUMENTS"
Tomasz Mikolajewskibf6cfdc2017-02-13 13:14:30 +0900169 android:exported="true">
170 <intent-filter>
171 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
172 </intent-filter>
173 </provider>
Tomasz Mikolajewskidbd6b8b2016-09-29 15:27:37 +0900174
Ashwini Oruganticdd2cd12020-03-24 10:11:09 -0700175 <receiver android:name=".PackageReceiver"
176 android:exported="true">
Jeff Sharkey2bfdedb2013-10-24 10:44:03 -0700177 <intent-filter>
178 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
179 <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
180 <data android:scheme="package" />
181 </intent-filter>
182 </receiver>
Ben Kwa41b26c12015-03-31 10:11:43 -0700183
Ashwini Oruganticdd2cd12020-03-24 10:11:09 -0700184 <receiver android:name=".roots.BootReceiver" android:enabled="false"
185 android:exported="true">
Jeff Sharkey50254fe2016-03-11 17:25:11 -0700186 <intent-filter>
187 <action android:name="android.intent.action.BOOT_COMPLETED" />
188 </intent-filter>
189 </receiver>
190
Ashwini Oruganticdd2cd12020-03-24 10:11:09 -0700191 <receiver android:name=".PreBootReceiver"
192 android:exported="true">
Tony Huangc39b0b22019-06-10 16:55:20 +0800193 <intent-filter>
194 <action android:name="android.intent.action.PRE_BOOT_COMPLETED" />
195 </intent-filter>
196 </receiver>
197
Garfield, Tanedce5542016-06-17 15:32:28 -0700198 <!-- Run FileOperationService in a separate process so that we can use FileLock class to
199 wait until jumbo clip is done writing to disk before reading it. See ClipStorage for
200 details. -->
Ben Kwa41b26c12015-03-31 10:11:43 -0700201 <service
Steve McKayc83baa02016-01-06 18:32:13 -0800202 android:name=".services.FileOperationService"
Garfield, Tanedce5542016-06-17 15:32:28 -0700203 android:exported="false"
204 android:process=":com.android.documentsui.services">
Ben Kwa41b26c12015-03-31 10:11:43 -0700205 </service>
Steve McKay08d0d562017-09-25 14:21:58 -0700206
207 <activity
208 android:name=".selection.demo.SelectionDemoActivity"
209 android:label="Selection Demo"
Ashwini Oruganticdd2cd12020-03-24 10:11:09 -0700210 android:exported="true"
Bill Lin81a9ea72019-01-16 22:27:36 +0800211 android:theme="@style/DocumentsTheme">
Steve McKay08d0d562017-09-25 14:21:58 -0700212 <intent-filter>
213 <action android:name="android.intent.action.MAIN" />
214 </intent-filter>
215 </activity>
216
Jeff Sharkeye22d02e2013-04-26 16:54:55 -0700217 </application>
218</manifest>