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:icon="@mipmap/ic_app_icon" 15 android:supportsRtl="true"> 16 17 <activity 18 android:name=".DocumentsActivity" 19 android:theme="@style/DocumentsTheme" 20 android:icon="@drawable/ic_doc_text"> 21 <intent-filter> 22 <action android:name="android.intent.action.OPEN_DOCUMENT" /> 23 <category android:name="android.intent.category.DEFAULT" /> 24 <category android:name="android.intent.category.OPENABLE" /> 25 <data android:mimeType="*/*" /> 26 </intent-filter> 27 <intent-filter> 28 <action android:name="android.intent.action.CREATE_DOCUMENT" /> 29 <category android:name="android.intent.category.DEFAULT" /> 30 <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" /> 37 <data android:mimeType="*/*" /> 38 </intent-filter> 39 <intent-filter> 40 <action android:name="android.intent.action.OPEN_DOCUMENT_TREE" /> 41 <category android:name="android.intent.category.DEFAULT" /> 42 </intent-filter> 43 </activity> 44 45 <activity 46 android:name=".LauncherActivity" 47 android:label="@string/downloads_label" 48 android:icon="@mipmap/ic_launcher_downloads" 49 android:theme="@android:style/Theme.NoDisplay"> 50 <intent-filter> 51 <action android:name="android.intent.action.MAIN" /> 52 <category android:name="android.intent.category.LAUNCHER" /> 53 </intent-filter> 54 </activity> 55 56 <activity 57 android:name=".FilesActivity" 58 android:label="@string/downloads_label" 59 android:icon="@mipmap/ic_launcher_downloads" 60 android:documentLaunchMode="intoExisting" 61 android:theme="@style/DocumentsTheme"> 62 <intent-filter> 63 <action android:name="android.intent.action.MAIN" /> 64 </intent-filter> 65 <intent-filter> 66 <action android:name="android.provider.action.BROWSE" /> 67 <category android:name="android.intent.category.DEFAULT" /> 68 <data android:mimeType="vnd.android.document/root" /> 69 </intent-filter> 70 <intent-filter> 71 <action android:name="android.intent.action.VIEW_DOWNLOADS" /> 72 <category android:name="android.intent.category.DEFAULT" /> 73 </intent-filter> 74 <intent-filter> 75 <action android:name="android.intent.action.VIEW" /> 76 <category android:name="android.intent.category.DEFAULT" /> 77 <data android:mimeType="application/zip" 78 android:host="com.android.providers.downloads.documents" 79 android:scheme="content" /> 80 <data android:mimeType="application/x-zip" 81 android:host="com.android.providers.downloads.documents" 82 android:scheme="content" /> 83 <data android:mimeType="application/x-zip-compressed" 84 android:host="com.android.providers.downloads.documents" 85 android:scheme="content" /> 86 </intent-filter> 87 </activity> 88 89 <activity 90 android:name=".OpenExternalDirectoryActivity" 91 android:theme="@android:style/Theme.Translucent.NoTitleBar"> 92 <intent-filter> 93 <action android:name="android.os.storage.action.OPEN_EXTERNAL_DIRECTORY" /> 94 <category android:name="android.intent.category.DEFAULT" /> 95 </intent-filter> 96 </activity> 97 98 <provider 99 android:name=".RecentsProvider" 100 android:authorities="com.android.documentsui.recents" 101 android:exported="false"/> 102 103 <receiver android:name=".PackageReceiver"> 104 <intent-filter> 105 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" /> 106 <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" /> 107 <data android:scheme="package" /> 108 </intent-filter> 109 </receiver> 110 111 <receiver android:name=".BootReceiver" android:enabled="false"> 112 <intent-filter> 113 <action android:name="android.intent.action.BOOT_COMPLETED" /> 114 </intent-filter> 115 </receiver> 116 117 <service 118 android:name=".services.FileOperationService" 119 android:exported="false"> 120 </service> 121 </application> 122 </manifest> 123