1<?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-->
19<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" />
23    <uses-permission android:name="android.permission.REMOVE_TASKS" />
24    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
25    <uses-permission android:name="android.permission.WAKE_LOCK" />
26    <uses-permission android:name="android.permission.CACHE_CONTENT" />
27    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
28    <uses-permission android:name="android.permission.CHANGE_OVERLAY_PACKAGES" />
29
30    <application
31        android:name=".DocumentsApplication"
32        android:label="@string/app_label"
33        android:icon="@drawable/app_icon"
34        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" />
42
43        <activity
44            android:name=".picker.PickActivity"
45            android:theme="@style/DocumentsTheme"
46            android:exported="true"
47            android:visibleToInstantApps="true">
48            <intent-filter>
49                <action android:name="android.intent.action.OPEN_DOCUMENT" />
50                <category android:name="android.intent.category.DEFAULT" />
51                <category android:name="android.intent.category.OPENABLE" />
52                <data android:mimeType="*/*" />
53            </intent-filter>
54            <intent-filter>
55                <action android:name="android.intent.action.CREATE_DOCUMENT" />
56                <category android:name="android.intent.category.DEFAULT" />
57                <category android:name="android.intent.category.OPENABLE" />
58                <data android:mimeType="*/*" />
59            </intent-filter>
60            <intent-filter android:priority="100">
61                <action android:name="android.intent.action.GET_CONTENT" />
62                <category android:name="android.intent.category.DEFAULT" />
63                <category android:name="android.intent.category.OPENABLE" />
64                <data android:mimeType="*/*" />
65            </intent-filter>
66            <intent-filter>
67                <action android:name="android.intent.action.OPEN_DOCUMENT_TREE" />
68                <category android:name="android.intent.category.DEFAULT" />
69            </intent-filter>
70        </activity>
71
72        <activity
73            android:name=".files.LauncherActivity"
74            android:label="@string/launcher_label"
75            android:icon="@drawable/launcher_icon"
76            android:theme="@android:style/Theme.NoDisplay">
77        </activity>
78
79        <activity
80            android:name=".inspector.InspectorActivity"
81            android:label="@string/menu_inspect"
82            android:icon="@drawable/launcher_icon"
83            android:theme="@style/DocumentsTheme">
84        </activity>
85
86        <!--  Preserve original launcher activity from Nougat. -->
87        <activity-alias
88            android:name=".LauncherActivity"
89            android:targetActivity=".files.LauncherActivity"
90            android:enabled="@bool/is_launcher_enabled"
91            android:label="@string/launcher_label"
92            android:exported="true"
93            android:icon="@drawable/launcher_icon" >
94            <intent-filter>
95                <action android:name="android.intent.action.MAIN" />
96                <category android:name="android.intent.category.LAUNCHER" />
97                <category android:name="android.intent.category.APP_FILES" />
98            </intent-filter>
99            <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts" />
100        </activity-alias>
101
102        <activity
103            android:name=".files.FilesActivity"
104            android:documentLaunchMode="intoExisting"
105            android:exported="true"
106            android:theme="@style/DocumentsTheme">
107            <intent-filter>
108                <action android:name="android.intent.action.MAIN" />
109            </intent-filter>
110            <intent-filter>
111                <action android:name="android.intent.action.VIEW" />
112                <category android:name="android.intent.category.DEFAULT" />
113                <data android:mimeType="vnd.android.document/root" />
114            </intent-filter>
115            <intent-filter>
116                <action android:name="android.intent.action.VIEW" />
117                <category android:name="android.intent.category.DEFAULT" />
118                <data android:mimeType="vnd.android.document/directory" />
119            </intent-filter>
120        </activity>
121
122        <activity-alias android:name=".ViewDownloadsActivity"
123                        android:targetActivity=".files.FilesActivity"
124                        android:exported="true"
125                        android:enabled="@bool/handle_view_downloads_intent">
126            <intent-filter>
127                <action android:name="android.intent.action.VIEW_DOWNLOADS" />
128                <category android:name="android.intent.category.DEFAULT" />
129            </intent-filter>
130        </activity-alias>
131
132        <activity
133            android:name=".ScopedAccessActivity"
134            android:exported="true"
135            android:theme="@android:style/Theme.Translucent.NoTitleBar">
136            <intent-filter>
137                <action android:name="android.os.storage.action.OPEN_EXTERNAL_DIRECTORY" />
138                <category android:name="android.intent.category.DEFAULT" />
139            </intent-filter>
140        </activity>
141
142        <provider
143            android:name=".picker.LastAccessedProvider"
144            android:authorities="com.android.documentsui.lastAccessed"
145            android:exported="false"/>
146
147        <provider
148            android:name=".picker.PickCountRecordProvider"
149            android:authorities="com.android.documentsui.pickCountRecord"
150            android:exported="false"/>
151
152        <provider
153            android:name=".archives.ArchivesProvider"
154            android:authorities="com.android.documentsui.archives"
155            android:grantUriPermissions="true"
156            android:permission="android.permission.MANAGE_DOCUMENTS"
157            android:exported="true">
158            <intent-filter>
159                <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
160            </intent-filter>
161        </provider>
162
163        <receiver android:name=".PackageReceiver"
164            android:exported="true">
165            <intent-filter>
166                <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
167                <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
168                <data android:scheme="package" />
169            </intent-filter>
170        </receiver>
171
172        <receiver android:name=".roots.BootReceiver" android:enabled="false"
173            android:exported="true">
174            <intent-filter>
175                <action android:name="android.intent.action.BOOT_COMPLETED" />
176            </intent-filter>
177        </receiver>
178
179        <receiver android:name=".PreBootReceiver"
180            android:exported="true">
181            <intent-filter>
182                <action android:name="android.intent.action.PRE_BOOT_COMPLETED" />
183            </intent-filter>
184        </receiver>
185
186        <!-- Run FileOperationService in a separate process so that we can use FileLock class to
187            wait until jumbo clip is done writing to disk before reading it. See ClipStorage for
188            details. -->
189        <service
190            android:name=".services.FileOperationService"
191            android:exported="false"
192            android:process=":com.android.documentsui.services">
193        </service>
194
195        <activity
196            android:name=".selection.demo.SelectionDemoActivity"
197            android:label="Selection Demo"
198            android:exported="true"
199            android:theme="@style/DocumentsTheme">
200            <intent-filter>
201                <action android:name="android.intent.action.MAIN" />
202            </intent-filter>
203        </activity>
204
205    </application>
206</manifest>
207