• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:visibleToInstantApps="true">
47            <intent-filter>
48                <action android:name="android.intent.action.OPEN_DOCUMENT" />
49                <category android:name="android.intent.category.DEFAULT" />
50                <category android:name="android.intent.category.OPENABLE" />
51                <data android:mimeType="*/*" />
52            </intent-filter>
53            <intent-filter>
54                <action android:name="android.intent.action.CREATE_DOCUMENT" />
55                <category android:name="android.intent.category.DEFAULT" />
56                <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" />
63                <data android:mimeType="*/*" />
64            </intent-filter>
65            <intent-filter>
66                <action android:name="android.intent.action.OPEN_DOCUMENT_TREE" />
67                <category android:name="android.intent.category.DEFAULT" />
68            </intent-filter>
69        </activity>
70
71        <activity
72            android:name=".files.LauncherActivity"
73            android:label="@string/launcher_label"
74            android:icon="@drawable/launcher_icon"
75            android:theme="@android:style/Theme.NoDisplay">
76        </activity>
77
78        <activity
79            android:name=".inspector.InspectorActivity"
80            android:label="@string/menu_inspect"
81            android:icon="@drawable/launcher_icon"
82            android:theme="@style/DocumentsTheme">
83        </activity>
84
85        <!--  Preserve original launcher activity from Nougat. -->
86        <activity-alias
87            android:name=".LauncherActivity"
88            android:targetActivity=".files.LauncherActivity"
89            android:enabled="@bool/is_launcher_enabled"
90            android:label="@string/launcher_label"
91            android:icon="@drawable/launcher_icon" >
92            <intent-filter>
93                <action android:name="android.intent.action.MAIN" />
94                <category android:name="android.intent.category.LAUNCHER" />
95                <category android:name="android.intent.category.APP_FILES" />
96            </intent-filter>
97            <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts" />
98        </activity-alias>
99
100        <activity
101            android:name=".files.FilesActivity"
102            android:documentLaunchMode="intoExisting"
103            android:theme="@style/DocumentsTheme">
104            <intent-filter>
105                <action android:name="android.intent.action.MAIN" />
106            </intent-filter>
107            <intent-filter>
108                <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" />
114                <category android:name="android.intent.category.DEFAULT" />
115                <data android:mimeType="vnd.android.document/directory" />
116            </intent-filter>
117        </activity>
118
119        <activity-alias android:name=".ViewDownloadsActivity"
120                        android:targetActivity=".files.FilesActivity"
121                        android:enabled="@bool/handle_view_downloads_intent">
122            <intent-filter>
123                <action android:name="android.intent.action.VIEW_DOWNLOADS" />
124                <category android:name="android.intent.category.DEFAULT" />
125            </intent-filter>
126        </activity-alias>
127
128        <activity
129            android:name=".ScopedAccessActivity"
130            android:theme="@android:style/Theme.Translucent.NoTitleBar">
131            <intent-filter>
132                <action android:name="android.os.storage.action.OPEN_EXTERNAL_DIRECTORY" />
133                <category android:name="android.intent.category.DEFAULT" />
134            </intent-filter>
135        </activity>
136
137        <provider
138            android:name=".picker.LastAccessedProvider"
139            android:authorities="com.android.documentsui.lastAccessed"
140            android:exported="false"/>
141
142        <provider
143            android:name=".picker.PickCountRecordProvider"
144            android:authorities="com.android.documentsui.pickCountRecord"
145            android:exported="false"/>
146
147        <provider
148            android:name=".archives.ArchivesProvider"
149            android:authorities="com.android.documentsui.archives"
150            android:grantUriPermissions="true"
151            android:permission="android.permission.MANAGE_DOCUMENTS"
152            android:exported="true">
153            <intent-filter>
154                <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
155            </intent-filter>
156        </provider>
157
158        <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>
165
166        <receiver android:name=".roots.BootReceiver" android:enabled="false">
167            <intent-filter>
168                <action android:name="android.intent.action.BOOT_COMPLETED" />
169            </intent-filter>
170        </receiver>
171
172        <receiver android:name=".PreBootReceiver">
173            <intent-filter>
174                <action android:name="android.intent.action.PRE_BOOT_COMPLETED" />
175            </intent-filter>
176        </receiver>
177
178        <!-- 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. -->
181        <service
182            android:name=".services.FileOperationService"
183            android:exported="false"
184            android:process=":com.android.documentsui.services">
185        </service>
186
187        <activity
188            android:name=".selection.demo.SelectionDemoActivity"
189            android:label="Selection Demo"
190            android:theme="@style/DocumentsTheme">
191            <intent-filter>
192                <action android:name="android.intent.action.MAIN" />
193            </intent-filter>
194        </activity>
195
196    </application>
197</manifest>
198