blob: f6d89d2479c7ddc9b3ef29122865fabe2f3b1af7 [file] [log] [blame]
Jeff Sharkeye22d02e2013-04-26 16:54:55 -07001<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2 package="com.android.documentsui">
3
Felipe Leme8cf6ce22016-02-17 17:10:45 -08004 <uses-permission android:name="android.permission.GET_APP_GRANTED_URI_PERMISSIONS" />
Jeff Sharkeye22d02e2013-04-26 16:54:55 -07005 <uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
Jeff Sharkey3fd11772013-09-30 14:26:27 -07006 <uses-permission android:name="android.permission.REMOVE_TASKS" />
Jeff Sharkey22056802015-10-01 15:14:57 -07007 <uses-permission android:name="android.permission.WAKE_LOCK" />
Jeff Sharkey50254fe2016-03-11 17:25:11 -07008 <uses-permission android:name="android.permission.CACHE_CONTENT" />
9 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070010
Jeff Sharkey2e694f82013-08-06 16:26:14 -070011 <application
Jeff Sharkey873daa32013-08-18 17:38:20 -070012 android:name=".DocumentsApplication"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070013 android:label="@string/app_label"
Steve McKayd5b9b0f2016-08-01 13:00:05 -070014 android:icon="@drawable/app_icon"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070015 android:supportsRtl="true">
16
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070017 <activity
Steve McKay16e0c1f2016-09-15 12:41:13 -070018 android:name=".picker.PickActivity"
Jeff Sharkeye6fcceb2014-07-28 16:38:52 -070019 android:theme="@style/DocumentsTheme"
Steve McKayd5b9b0f2016-08-01 13:00:05 -070020 android:icon="@drawable/picker_icon">
Jeff Sharkey6e565ff2014-04-05 19:05:24 -070021 <intent-filter>
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070022 <action android:name="android.intent.action.OPEN_DOCUMENT" />
23 <category android:name="android.intent.category.DEFAULT" />
Jeff Sharkey1d890e02013-08-15 11:24:03 -070024 <category android:name="android.intent.category.OPENABLE" />
Jeff Sharkey3c28b792013-07-01 17:22:02 -070025 <data android:mimeType="*/*" />
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070026 </intent-filter>
Jeff Sharkey6e565ff2014-04-05 19:05:24 -070027 <intent-filter>
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070028 <action android:name="android.intent.action.CREATE_DOCUMENT" />
Jeff Sharkeye22d02e2013-04-26 16:54:55 -070029 <category android:name="android.intent.category.DEFAULT" />
Jeff Sharkey1d890e02013-08-15 11:24:03 -070030 <category android:name="android.intent.category.OPENABLE" />
31 <data android:mimeType="*/*" />
32 </intent-filter>
33 <intent-filter android:priority="100">
34 <action android:name="android.intent.action.GET_CONTENT" />
35 <category android:name="android.intent.category.DEFAULT" />
36 <category android:name="android.intent.category.OPENABLE" />
Jeff Sharkey3c28b792013-07-01 17:22:02 -070037 <data android:mimeType="*/*" />
38 </intent-filter>
Jeff Sharkeyf339f252013-08-15 16:17:41 -070039 <intent-filter>
Jeff Sharkeyf4943e12014-06-04 16:42:47 -070040 <action android:name="android.intent.action.OPEN_DOCUMENT_TREE" />
Jeff Sharkey6e565ff2014-04-05 19:05:24 -070041 <category android:name="android.intent.category.DEFAULT" />
42 </intent-filter>
Ben Kwa0574b182015-09-08 07:31:19 -070043 </activity>
44
45 <activity
Steve McKay16e0c1f2016-09-15 12:41:13 -070046 android:name=".manager.LauncherActivity"
Steve McKay17f7e582016-04-04 15:26:48 -070047 android:label="@string/downloads_label"
Steve McKayd5b9b0f2016-08-01 13:00:05 -070048 android:icon="@drawable/files_icon"
Steve McKay17f7e582016-04-04 15:26:48 -070049 android:theme="@android:style/Theme.NoDisplay">
Steve McKay16e0c1f2016-09-15 12:41:13 -070050 </activity>
51
52 <!-- Preserve original launcher activity from Nougat. -->
53 <activity-alias
54 android:name=".Launcher"
55 android:targetActivity=".manager.LauncherActivity"
56 android:label="@string/downloads_label"
57 android:icon="@drawable/files_icon" >
Steve McKayd0a2a2c2015-03-25 14:35:33 -070058 <intent-filter>
59 <action android:name="android.intent.action.MAIN" />
60 <category android:name="android.intent.category.LAUNCHER" />
61 </intent-filter>
Steve McKay16e0c1f2016-09-15 12:41:13 -070062 </activity-alias>
Steve McKayf2c8b0d2015-09-23 15:44:24 -070063
64 <activity
Steve McKay16e0c1f2016-09-15 12:41:13 -070065 android:name=".manager.ManageActivity"
Daichi Hirono91252b82016-03-18 17:46:57 +090066 android:label="@string/downloads_label"
Steve McKayd5b9b0f2016-08-01 13:00:05 -070067 android:icon="@drawable/files_icon"
Steve McKay17f7e582016-04-04 15:26:48 -070068 android:documentLaunchMode="intoExisting"
69 android:theme="@style/DocumentsTheme">
Steve McKayf2c8b0d2015-09-23 15:44:24 -070070 <intent-filter>
71 <action android:name="android.intent.action.MAIN" />
72 </intent-filter>
Steve McKay459bc2b2015-09-16 15:07:31 -070073 <intent-filter>
Steve McKay8d45f5a2015-11-20 08:44:55 -080074 <action android:name="android.provider.action.BROWSE" />
Steve McKay459bc2b2015-09-16 15:07:31 -070075 <category android:name="android.intent.category.DEFAULT" />
76 <data android:mimeType="vnd.android.document/root" />
77 </intent-filter>
Tomasz Mikolajewski5a1e8792016-01-27 17:36:51 +090078 <intent-filter>
Steve McKay17f7e582016-04-04 15:26:48 -070079 <action android:name="android.intent.action.VIEW_DOWNLOADS" />
80 <category android:name="android.intent.category.DEFAULT" />
81 </intent-filter>
82 <intent-filter>
Tomasz Mikolajewski5a1e8792016-01-27 17:36:51 +090083 <action android:name="android.intent.action.VIEW" />
84 <category android:name="android.intent.category.DEFAULT" />
85 <data android:mimeType="application/zip"
86 android:host="com.android.providers.downloads.documents"
87 android:scheme="content" />
88 <data android:mimeType="application/x-zip"
89 android:host="com.android.providers.downloads.documents"
90 android:scheme="content" />
91 <data android:mimeType="application/x-zip-compressed"
92 android:host="com.android.providers.downloads.documents"
93 android:scheme="content" />
94 </intent-filter>
Steve McKayd0a2a2c2015-03-25 14:35:33 -070095 </activity>
96
Felipe Lemea4f4d7e2016-01-22 16:49:55 -080097 <activity
98 android:name=".OpenExternalDirectoryActivity"
99 android:theme="@android:style/Theme.Translucent.NoTitleBar">
100 <intent-filter>
Felipe Leme5228bd02016-02-17 10:12:04 -0800101 <action android:name="android.os.storage.action.OPEN_EXTERNAL_DIRECTORY" />
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800102 <category android:name="android.intent.category.DEFAULT" />
Felipe Lemea4f4d7e2016-01-22 16:49:55 -0800103 </intent-filter>
104 </activity>
105
Jeff Sharkey50d35622013-08-02 10:33:21 -0700106 <provider
Steve McKayd0805062016-09-15 14:30:38 -0700107 android:name=".picker.LastAccessedProvider"
Ben Lin7232bf02016-08-26 14:33:03 -0700108 android:authorities="com.android.documentsui.lastAccessed"
Steve McKayd0a2a2c2015-03-25 14:35:33 -0700109 android:exported="false"/>
Jeff Sharkey50d35622013-08-02 10:33:21 -0700110
Jeff Sharkey2bfdedb2013-10-24 10:44:03 -0700111 <receiver android:name=".PackageReceiver">
112 <intent-filter>
113 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
114 <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
115 <data android:scheme="package" />
116 </intent-filter>
117 </receiver>
Ben Kwa41b26c12015-03-31 10:11:43 -0700118
Steve McKayd9caa6a2016-09-15 16:36:45 -0700119 <receiver android:name=".roots.BootReceiver" android:enabled="false">
Jeff Sharkey50254fe2016-03-11 17:25:11 -0700120 <intent-filter>
121 <action android:name="android.intent.action.BOOT_COMPLETED" />
122 </intent-filter>
123 </receiver>
124
Garfield, Tanedce5542016-06-17 15:32:28 -0700125 <!-- Run FileOperationService in a separate process so that we can use FileLock class to
126 wait until jumbo clip is done writing to disk before reading it. See ClipStorage for
127 details. -->
Ben Kwa41b26c12015-03-31 10:11:43 -0700128 <service
Steve McKayc83baa02016-01-06 18:32:13 -0800129 android:name=".services.FileOperationService"
Garfield, Tanedce5542016-06-17 15:32:28 -0700130 android:exported="false"
131 android:process=":com.android.documentsui.services">
Ben Kwa41b26c12015-03-31 10:11:43 -0700132 </service>
Jeff Sharkeye22d02e2013-04-26 16:54:55 -0700133 </application>
134</manifest>