• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2        package="com.android.documentsui">
3
4    <uses-permission android:name="android.permission.GET_APP_GRANTED_URI_PERMISSIONS" />
5    <uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
6    <uses-permission android:name="android.permission.REMOVE_TASKS" />
7    <uses-permission android:name="android.permission.WAKE_LOCK" />
8    <uses-permission android:name="android.permission.CACHE_CONTENT" />
9    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
10
11    <application
12        android:name=".DocumentsApplication"
13        android:label="@string/app_label"
14        android:supportsRtl="true">
15
16        <activity
17            android:name=".DocumentsActivity"
18            android:theme="@style/DocumentsTheme"
19            android:icon="@drawable/ic_doc_text">
20            <intent-filter>
21                <action android:name="android.intent.action.OPEN_DOCUMENT" />
22                <category android:name="android.intent.category.DEFAULT" />
23                <category android:name="android.intent.category.OPENABLE" />
24                <data android:mimeType="*/*" />
25            </intent-filter>
26            <intent-filter>
27                <action android:name="android.intent.action.CREATE_DOCUMENT" />
28                <category android:name="android.intent.category.DEFAULT" />
29                <category android:name="android.intent.category.OPENABLE" />
30                <data android:mimeType="*/*" />
31            </intent-filter>
32            <intent-filter android:priority="100">
33                <action android:name="android.intent.action.GET_CONTENT" />
34                <category android:name="android.intent.category.DEFAULT" />
35                <category android:name="android.intent.category.OPENABLE" />
36                <data android:mimeType="*/*" />
37            </intent-filter>
38            <intent-filter>
39                <action android:name="android.intent.action.OPEN_DOCUMENT_TREE" />
40                <category android:name="android.intent.category.DEFAULT" />
41            </intent-filter>
42        </activity>
43
44        <activity
45            android:name=".LauncherActivity"
46            android:label="@string/downloads_label"
47            android:icon="@mipmap/ic_launcher_downloads"
48            android:theme="@android:style/Theme.NoDisplay">
49            <intent-filter>
50                <action android:name="android.intent.action.MAIN" />
51                <category android:name="android.intent.category.LAUNCHER" />
52            </intent-filter>
53        </activity>
54
55        <activity
56            android:name=".FilesActivity"
57            android:label="@string/downloads_label"
58            android:icon="@mipmap/ic_launcher_downloads"
59            android:documentLaunchMode="intoExisting"
60            android:theme="@style/DocumentsTheme">
61            <intent-filter>
62                <action android:name="android.intent.action.MAIN" />
63            </intent-filter>
64            <intent-filter>
65                <action android:name="android.provider.action.BROWSE" />
66                <category android:name="android.intent.category.DEFAULT" />
67                <data android:mimeType="vnd.android.document/root" />
68            </intent-filter>
69            <intent-filter>
70                <action android:name="android.intent.action.VIEW_DOWNLOADS" />
71                <category android:name="android.intent.category.DEFAULT" />
72            </intent-filter>
73            <intent-filter>
74                <action android:name="android.intent.action.VIEW" />
75                <category android:name="android.intent.category.DEFAULT" />
76                <data android:mimeType="application/zip"
77                    android:host="com.android.providers.downloads.documents"
78                    android:scheme="content" />
79                <data android:mimeType="application/x-zip"
80                    android:host="com.android.providers.downloads.documents"
81                    android:scheme="content" />
82                <data android:mimeType="application/x-zip-compressed"
83                    android:host="com.android.providers.downloads.documents"
84                    android:scheme="content" />
85            </intent-filter>
86        </activity>
87
88        <activity
89            android:name=".OpenExternalDirectoryActivity"
90            android:theme="@android:style/Theme.Translucent.NoTitleBar">
91            <intent-filter>
92                <action android:name="android.os.storage.action.OPEN_EXTERNAL_DIRECTORY" />
93                <category android:name="android.intent.category.DEFAULT" />
94            </intent-filter>
95        </activity>
96
97        <provider
98            android:name=".RecentsProvider"
99            android:authorities="com.android.documentsui.recents"
100            android:exported="false"/>
101
102        <receiver android:name=".PackageReceiver">
103            <intent-filter>
104                <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
105                <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
106                <data android:scheme="package" />
107            </intent-filter>
108        </receiver>
109
110        <receiver android:name=".BootReceiver" android:enabled="false">
111            <intent-filter>
112                <action android:name="android.intent.action.BOOT_COMPLETED" />
113            </intent-filter>
114        </receiver>
115
116        <service
117            android:name=".services.FileOperationService"
118            android:exported="false">
119        </service>
120    </application>
121</manifest>
122