blob: f467b0e69f9379d92d05e293a232becbde2b1032 [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
22 <uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
Jeff Sharkey3fd11772013-09-30 14:26:27 -070023 <uses-permission android:name="android.permission.REMOVE_TASKS" />
Dianne Hackborn7c44ee12018-01-19 17:56:45 -080024 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
Jeff Sharkey22056802015-10-01 15:14:57 -070025 <uses-permission android:name="android.permission.WAKE_LOCK" />
Jeff Sharkey50254fe2016-03-11 17:25:11 -070026 <uses-permission android:name="android.permission.CACHE_CONTENT" />
27 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Bill Lin24499e62019-05-14 18:15:42 +080028 <uses-permission android:name="android.permission.CHANGE_OVERLAY_PACKAGES" />
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070029
Jeff Sharkey2e694f82013-08-06 16:26:14 -070030 <application
Jeff Sharkey873daa32013-08-18 17:38:20 -070031 android:name=".DocumentsApplication"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070032 android:label="@string/app_label"
Steve McKayd5b9b0f2016-08-01 13:00:05 -070033 android:icon="@drawable/app_icon"
Chen Su24613682016-12-22 16:21:32 +000034 android:supportsRtl="true"
35 android:allowBackup="true"
36 android:backupAgent=".prefs.BackupAgent"
37 android:fullBackupOnly="false">
38
39 <meta-data
40 android:name="com.google.android.backup.api_key"
41 android:value="AEdPqrEAAAAInBA8ued0O_ZyYUsVhwinUF-x50NIe9K0GzBW4A" />
Jeff Sharkey2e694f82013-08-06 16:26:14 -070042
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070043 <activity
Steve McKay16e0c1f2016-09-15 12:41:13 -070044 android:name=".picker.PickActivity"
Jeff Sharkeye6fcceb2014-07-28 16:38:52 -070045 android:theme="@style/DocumentsTheme"
Chad Brubaker9fa78e32017-01-20 14:11:25 -080046 android:visibleToInstantApps="true">
Ivan Chiang4a7d2a82019-11-12 10:47:01 +080047 <intent-filter android:priority="100">
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070048 <action android:name="android.intent.action.OPEN_DOCUMENT" />
49 <category android:name="android.intent.category.DEFAULT" />
Jeff Sharkey1d890e02013-08-15 11:24:03 -070050 <category android:name="android.intent.category.OPENABLE" />
Jeff Sharkey3c28b792013-07-01 17:22:02 -070051 <data android:mimeType="*/*" />
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070052 </intent-filter>
Ivan Chiang4a7d2a82019-11-12 10:47:01 +080053 <intent-filter android:priority="100">
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070054 <action android:name="android.intent.action.CREATE_DOCUMENT" />
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070055 <category android:name="android.intent.category.DEFAULT" />
Jeff Sharkey1d890e02013-08-15 11:24:03 -070056 <category android:name="android.intent.category.OPENABLE" />
57 <data android:mimeType="*/*" />
58 </intent-filter>
59 <intent-filter android:priority="100">
60 <action android:name="android.intent.action.GET_CONTENT" />
61 <category android:name="android.intent.category.DEFAULT" />
62 <category android:name="android.intent.category.OPENABLE" />
Jeff Sharkey3c28b792013-07-01 17:22:02 -070063 <data android:mimeType="*/*" />
64 </intent-filter>
Ivan Chiang4a7d2a82019-11-12 10:47:01 +080065 <intent-filter android:priority="100">
Jeff Sharkeyf4943e12014-06-04 16:42:47 -070066 <action android:name="android.intent.action.OPEN_DOCUMENT_TREE" />
Jeff Sharkey6e565ff2014-04-05 19:05:24 -070067 <category android:name="android.intent.category.DEFAULT" />
68 </intent-filter>
Ben Kwa0574b182015-09-08 07:31:19 -070069 </activity>
70
71 <activity
Steve McKayb6006b22016-09-29 09:23:45 -070072 android:name=".files.LauncherActivity"
Steve McKay84740592017-03-08 12:35:22 -080073 android:label="@string/launcher_label"
74 android:icon="@drawable/launcher_icon"
Steve McKay17f7e582016-04-04 15:26:48 -070075 android:theme="@android:style/Theme.NoDisplay">
Steve McKay16e0c1f2016-09-15 12:41:13 -070076 </activity>
77
greensurferb9c83d32017-06-02 13:34:10 -070078 <activity
Steve McKayf433d202017-07-12 18:46:09 -070079 android:name=".inspector.InspectorActivity"
Steve McKay9e8b9c02017-08-17 11:24:02 -070080 android:label="@string/menu_inspect"
greensurferb9c83d32017-06-02 13:34:10 -070081 android:icon="@drawable/launcher_icon"
82 android:theme="@style/DocumentsTheme">
83 </activity>
84
Steve McKay16e0c1f2016-09-15 12:41:13 -070085 <!-- Preserve original launcher activity from Nougat. -->
86 <activity-alias
Steve McKaye2b5ffe2017-06-22 10:21:15 -070087 android:name=".LauncherActivity"
Steve McKayb6006b22016-09-29 09:23:45 -070088 android:targetActivity=".files.LauncherActivity"
Rajeev Kumarf00ecc92017-09-14 10:31:47 -070089 android:enabled="@bool/is_launcher_enabled"
Steve McKay84740592017-03-08 12:35:22 -080090 android:label="@string/launcher_label"
91 android:icon="@drawable/launcher_icon" >
Steve McKayd0a2a2c2015-03-25 14:35:33 -070092 <intent-filter>
93 <action android:name="android.intent.action.MAIN" />
94 <category android:name="android.intent.category.LAUNCHER" />
Jeff Sharkey83e7e7c2019-04-09 09:33:28 -060095 <category android:name="android.intent.category.APP_FILES" />
Steve McKayd0a2a2c2015-03-25 14:35:33 -070096 </intent-filter>
Garfield Tan2e3cf1d2016-10-21 15:25:26 -070097 <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts" />
Steve McKay16e0c1f2016-09-15 12:41:13 -070098 </activity-alias>
Steve McKayf2c8b0d2015-09-23 15:44:24 -070099
100 <activity
Steve McKayb6006b22016-09-29 09:23:45 -0700101 android:name=".files.FilesActivity"
Steve McKay17f7e582016-04-04 15:26:48 -0700102 android:documentLaunchMode="intoExisting"
103 android:theme="@style/DocumentsTheme">
Steve McKayf2c8b0d2015-09-23 15:44:24 -0700104 <intent-filter>
105 <action android:name="android.intent.action.MAIN" />
106 </intent-filter>
Steve McKay459bc2b2015-09-16 15:07:31 -0700107 <intent-filter>
Garfield Tanc5efea02017-02-22 12:58:29 -0800108 <action android:name="android.intent.action.VIEW" />
109 <category android:name="android.intent.category.DEFAULT" />
110 <data android:mimeType="vnd.android.document/root" />
111 </intent-filter>
112 <intent-filter>
113 <action android:name="android.intent.action.VIEW" />
Garfield Tanf8969d62017-02-02 16:55:55 -0800114 <category android:name="android.intent.category.DEFAULT" />
115 <data android:mimeType="vnd.android.document/directory" />
116 </intent-filter>
Ben Lin5fb1bcc2017-05-16 15:34:00 -0700117 </activity>
118
Tony Huangc39b0b22019-06-10 16:55:20 +0800119 <activity-alias android:name=".ViewDownloadsActivity"
Ben Lin5fb1bcc2017-05-16 15:34:00 -0700120 android:targetActivity=".files.FilesActivity"
121 android:enabled="@bool/handle_view_downloads_intent">
Garfield Tanf8969d62017-02-02 16:55:55 -0800122 <intent-filter>
Steve McKay17f7e582016-04-04 15:26:48 -0700123 <action android:name="android.intent.action.VIEW_DOWNLOADS" />
124 <category android:name="android.intent.category.DEFAULT" />
125 </intent-filter>
Ben Lin5fb1bcc2017-05-16 15:34:00 -0700126 </activity-alias>
Steve McKayd0a2a2c2015-03-25 14:35:33 -0700127
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800128 <activity
Felipe Leme433d78a2018-01-08 16:39:00 -0800129 android:name=".ScopedAccessActivity"
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800130 android:theme="@android:style/Theme.Translucent.NoTitleBar">
131 <intent-filter>
Felipe Leme5228bd02016-02-17 10:12:04 -0800132 <action android:name="android.os.storage.action.OPEN_EXTERNAL_DIRECTORY" />
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800133 <category android:name="android.intent.category.DEFAULT" />
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800134 </intent-filter>
135 </activity>
136
Jeff Sharkey50d35622013-08-02 10:33:21 -0700137 <provider
Steve McKayd0805062016-09-15 14:30:38 -0700138 android:name=".picker.LastAccessedProvider"
Ben Lin7232bf02016-08-26 14:33:03 -0700139 android:authorities="com.android.documentsui.lastAccessed"
Steve McKayd0a2a2c2015-03-25 14:35:33 -0700140 android:exported="false"/>
Jeff Sharkey50d35622013-08-02 10:33:21 -0700141
Tomasz Mikolajewskidbd6b8b2016-09-29 15:27:37 +0900142 <provider
shawnline0ba46d2019-01-25 15:21:26 +0800143 android:name=".picker.PickCountRecordProvider"
144 android:authorities="com.android.documentsui.pickCountRecord"
145 android:exported="false"/>
146
147 <provider
Tomasz Mikolajewskidbd6b8b2016-09-29 15:27:37 +0900148 android:name=".archives.ArchivesProvider"
149 android:authorities="com.android.documentsui.archives"
150 android:grantUriPermissions="true"
151 android:permission="android.permission.MANAGE_DOCUMENTS"
Tomasz Mikolajewskibf6cfdc2017-02-13 13:14:30 +0900152 android:exported="true">
153 <intent-filter>
154 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
155 </intent-filter>
156 </provider>
Tomasz Mikolajewskidbd6b8b2016-09-29 15:27:37 +0900157
Jeff Sharkey2bfdedb2013-10-24 10:44:03 -0700158 <receiver android:name=".PackageReceiver">
159 <intent-filter>
160 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
161 <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
162 <data android:scheme="package" />
163 </intent-filter>
164 </receiver>
Ben Kwa41b26c12015-03-31 10:11:43 -0700165
Steve McKayd9caa6a2016-09-15 16:36:45 -0700166 <receiver android:name=".roots.BootReceiver" android:enabled="false">
Jeff Sharkey50254fe2016-03-11 17:25:11 -0700167 <intent-filter>
168 <action android:name="android.intent.action.BOOT_COMPLETED" />
169 </intent-filter>
170 </receiver>
171
Tony Huangc39b0b22019-06-10 16:55:20 +0800172 <receiver android:name=".PreBootReceiver">
173 <intent-filter>
174 <action android:name="android.intent.action.PRE_BOOT_COMPLETED" />
175 </intent-filter>
176 </receiver>
177
Garfield, Tanedce5542016-06-17 15:32:28 -0700178 <!-- Run FileOperationService in a separate process so that we can use FileLock class to
179 wait until jumbo clip is done writing to disk before reading it. See ClipStorage for
180 details. -->
Ben Kwa41b26c12015-03-31 10:11:43 -0700181 <service
Steve McKayc83baa02016-01-06 18:32:13 -0800182 android:name=".services.FileOperationService"
Garfield, Tanedce5542016-06-17 15:32:28 -0700183 android:exported="false"
184 android:process=":com.android.documentsui.services">
Ben Kwa41b26c12015-03-31 10:11:43 -0700185 </service>
Steve McKay08d0d562017-09-25 14:21:58 -0700186
187 <activity
188 android:name=".selection.demo.SelectionDemoActivity"
189 android:label="Selection Demo"
Bill Lin81a9ea72019-01-16 22:27:36 +0800190 android:theme="@style/DocumentsTheme">
Steve McKay08d0d562017-09-25 14:21:58 -0700191 <intent-filter>
192 <action android:name="android.intent.action.MAIN" />
193 </intent-filter>
194 </activity>
195
Jeff Sharkeye22d02e2013-04-26 16:54:55 -0700196 </application>
197</manifest>