Home | History | Annotate | Download | only in DocumentsUI
      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     <uses-permission android:name="android.permission.SET_PREFERRED_APPLICATIONS" />
     11 
     12     <application
     13         android:name=".DocumentsApplication"
     14         android:label="@string/app_label"
     15         android:icon="@drawable/app_icon"
     16         android:supportsRtl="true"
     17         android:allowBackup="true"
     18         android:backupAgent=".prefs.BackupAgent"
     19         android:fullBackupOnly="false">
     20 
     21         <meta-data
     22             android:name="com.google.android.backup.api_key"
     23             android:value="AEdPqrEAAAAInBA8ued0O_ZyYUsVhwinUF-x50NIe9K0GzBW4A" />
     24 
     25         <activity
     26             android:name=".picker.PickActivity"
     27             android:theme="@style/DocumentsTheme"
     28             android:visibleToInstantApps="true">
     29             <intent-filter>
     30                 <action android:name="android.intent.action.OPEN_DOCUMENT" />
     31                 <category android:name="android.intent.category.DEFAULT" />
     32                 <category android:name="android.intent.category.OPENABLE" />
     33                 <data android:mimeType="*/*" />
     34             </intent-filter>
     35             <intent-filter>
     36                 <action android:name="android.intent.action.CREATE_DOCUMENT" />
     37                 <category android:name="android.intent.category.DEFAULT" />
     38                 <category android:name="android.intent.category.OPENABLE" />
     39                 <data android:mimeType="*/*" />
     40             </intent-filter>
     41             <intent-filter android:priority="100">
     42                 <action android:name="android.intent.action.GET_CONTENT" />
     43                 <category android:name="android.intent.category.DEFAULT" />
     44                 <category android:name="android.intent.category.OPENABLE" />
     45                 <data android:mimeType="*/*" />
     46             </intent-filter>
     47             <intent-filter>
     48                 <action android:name="android.intent.action.OPEN_DOCUMENT_TREE" />
     49                 <category android:name="android.intent.category.DEFAULT" />
     50             </intent-filter>
     51         </activity>
     52 
     53         <activity
     54             android:name=".files.LauncherActivity"
     55             android:label="@string/launcher_label"
     56             android:icon="@drawable/launcher_icon"
     57             android:theme="@android:style/Theme.NoDisplay">
     58         </activity>
     59 
     60         <activity
     61             android:name=".inspector.InspectorActivity"
     62             android:label="@string/menu_inspector"
     63             android:icon="@drawable/launcher_icon"
     64             android:theme="@style/DocumentsTheme">
     65         </activity>
     66 
     67         <!--  Preserve original launcher activity from Nougat. -->
     68         <activity-alias
     69             android:name=".LauncherActivity"
     70             android:targetActivity=".files.LauncherActivity"
     71             android:enabled="@bool/is_launcher_enabled"
     72             android:label="@string/launcher_label"
     73             android:icon="@drawable/launcher_icon" >
     74             <intent-filter>
     75                 <action android:name="android.intent.action.MAIN" />
     76                 <category android:name="android.intent.category.LAUNCHER" />
     77             </intent-filter>
     78             <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts" />
     79         </activity-alias>
     80 
     81         <activity
     82             android:name=".files.FilesActivity"
     83             android:documentLaunchMode="intoExisting"
     84             android:theme="@style/DocumentsTheme">
     85             <intent-filter>
     86                 <action android:name="android.intent.action.MAIN" />
     87             </intent-filter>
     88             <intent-filter>
     89                 <action android:name="android.intent.action.VIEW" />
     90                 <category android:name="android.intent.category.DEFAULT" />
     91                 <data android:mimeType="vnd.android.document/root" />
     92             </intent-filter>
     93             <intent-filter>
     94                 <action android:name="android.intent.action.VIEW" />
     95                 <category android:name="android.intent.category.DEFAULT" />
     96                 <data android:mimeType="vnd.android.document/directory" />
     97             </intent-filter>
     98         </activity>
     99 
    100         <activity-alias android:name="ViewDownloadsActivity"
    101                         android:targetActivity=".files.FilesActivity"
    102                         android:enabled="@bool/handle_view_downloads_intent">
    103             <intent-filter>
    104                 <action android:name="android.intent.action.VIEW_DOWNLOADS" />
    105                 <category android:name="android.intent.category.DEFAULT" />
    106             </intent-filter>
    107         </activity-alias>
    108 
    109         <activity
    110             android:name=".OpenExternalDirectoryActivity"
    111             android:theme="@android:style/Theme.Translucent.NoTitleBar">
    112             <intent-filter>
    113                 <action android:name="android.os.storage.action.OPEN_EXTERNAL_DIRECTORY" />
    114                 <category android:name="android.intent.category.DEFAULT" />
    115             </intent-filter>
    116         </activity>
    117 
    118         <provider
    119             android:name=".picker.LastAccessedProvider"
    120             android:authorities="com.android.documentsui.lastAccessed"
    121             android:exported="false"/>
    122 
    123         <provider
    124             android:name=".archives.ArchivesProvider"
    125             android:authorities="com.android.documentsui.archives"
    126             android:grantUriPermissions="true"
    127             android:permission="android.permission.MANAGE_DOCUMENTS"
    128             android:exported="true">
    129             <intent-filter>
    130                 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
    131             </intent-filter>
    132         </provider>
    133 
    134         <receiver android:name=".PackageReceiver">
    135             <intent-filter>
    136                 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
    137                 <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
    138                 <data android:scheme="package" />
    139             </intent-filter>
    140         </receiver>
    141 
    142         <receiver android:name=".roots.BootReceiver" android:enabled="false">
    143             <intent-filter>
    144                 <action android:name="android.intent.action.BOOT_COMPLETED" />
    145             </intent-filter>
    146         </receiver>
    147 
    148         <!-- Run FileOperationService in a separate process so that we can use FileLock class to
    149             wait until jumbo clip is done writing to disk before reading it. See ClipStorage for
    150             details. -->
    151         <service
    152             android:name=".services.FileOperationService"
    153             android:exported="false"
    154             android:process=":com.android.documentsui.services">
    155         </service>
    156     </application>
    157 </manifest>
    158