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