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