You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
218 lines
9.4 KiB
218 lines
9.4 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
/*
|
|
* Copyright (C) 2007-2017 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
-->
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.android.documentsui">
|
|
|
|
<uses-sdk android:minSdkVersion="29" android:targetSdkVersion="30"/>
|
|
|
|
<uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
|
|
<uses-permission android:name="android.permission.REMOVE_TASKS" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
<uses-permission android:name="android.permission.CACHE_CONTENT" />
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
<uses-permission android:name="android.permission.CHANGE_OVERLAY_PACKAGES" />
|
|
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
|
|
<uses-permission android:name="android.permission.MODIFY_QUIET_MODE" />
|
|
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
|
|
|
|
<!-- Permissions required for reading and logging compat changes -->
|
|
<uses-permission android:name="android.permission.LOG_COMPAT_CHANGE"/>
|
|
<uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG"/>
|
|
|
|
<uses-permission android:name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND"/>
|
|
|
|
<application
|
|
android:name=".DocumentsApplication"
|
|
android:label="@string/app_label"
|
|
android:icon="@drawable/app_icon"
|
|
android:supportsRtl="true"
|
|
android:allowBackup="true"
|
|
android:backupAgent=".prefs.BackupAgent"
|
|
android:fullBackupOnly="false"
|
|
android:crossProfile="true">
|
|
|
|
<meta-data
|
|
android:name="com.google.android.backup.api_key"
|
|
android:value="AEdPqrEAAAAInBA8ued0O_ZyYUsVhwinUF-x50NIe9K0GzBW4A" />
|
|
|
|
<activity
|
|
android:name=".picker.PickActivity"
|
|
android:exported="true"
|
|
android:theme="@style/LauncherTheme"
|
|
android:visibleToInstantApps="true">
|
|
<intent-filter android:priority="100">
|
|
<action android:name="android.intent.action.OPEN_DOCUMENT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.OPENABLE" />
|
|
<data android:mimeType="*/*" />
|
|
</intent-filter>
|
|
<intent-filter android:priority="100">
|
|
<action android:name="android.intent.action.CREATE_DOCUMENT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.OPENABLE" />
|
|
<data android:mimeType="*/*" />
|
|
</intent-filter>
|
|
<intent-filter android:priority="100">
|
|
<action android:name="android.intent.action.GET_CONTENT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.OPENABLE" />
|
|
<data android:mimeType="*/*" />
|
|
</intent-filter>
|
|
<intent-filter android:priority="100">
|
|
<action android:name="android.intent.action.OPEN_DOCUMENT_TREE" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity
|
|
android:name=".files.LauncherActivity"
|
|
android:label="@string/launcher_label"
|
|
android:icon="@drawable/launcher_icon"
|
|
android:theme="@android:style/Theme.NoDisplay">
|
|
</activity>
|
|
|
|
<activity
|
|
android:name=".inspector.InspectorActivity"
|
|
android:label="@string/menu_inspect"
|
|
android:icon="@drawable/launcher_icon"
|
|
android:theme="@style/DocumentsTheme">
|
|
</activity>
|
|
|
|
<!-- Preserve original launcher activity from Nougat. -->
|
|
<activity-alias
|
|
android:name=".LauncherActivity"
|
|
android:targetActivity=".files.LauncherActivity"
|
|
android:label="@string/launcher_label"
|
|
android:exported="true"
|
|
android:icon="@drawable/launcher_icon" >
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
<category android:name="android.intent.category.APP_FILES" />
|
|
</intent-filter>
|
|
<meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts" />
|
|
</activity-alias>
|
|
|
|
<activity
|
|
android:name=".files.FilesActivity"
|
|
android:documentLaunchMode="intoExisting"
|
|
android:exported="true"
|
|
android:theme="@style/LauncherTheme">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<data android:mimeType="vnd.android.document/root" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<data android:mimeType="vnd.android.document/directory" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity-alias android:name=".ViewDownloadsActivity"
|
|
android:targetActivity=".files.FilesActivity"
|
|
android:exported="true"
|
|
android:enabled="@bool/handle_view_downloads_intent">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW_DOWNLOADS" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity-alias>
|
|
|
|
<activity
|
|
android:name=".ScopedAccessActivity"
|
|
android:exported="true"
|
|
android:theme="@android:style/Theme.Translucent.NoTitleBar">
|
|
<intent-filter>
|
|
<action android:name="android.os.storage.action.OPEN_EXTERNAL_DIRECTORY" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<provider
|
|
android:name=".picker.LastAccessedProvider"
|
|
android:authorities="com.android.documentsui.lastAccessed"
|
|
android:exported="false"/>
|
|
|
|
<provider
|
|
android:name=".picker.PickCountRecordProvider"
|
|
android:authorities="com.android.documentsui.pickCountRecord"
|
|
android:exported="false"/>
|
|
|
|
<provider
|
|
android:name=".archives.ArchivesProvider"
|
|
android:authorities="com.android.documentsui.archives"
|
|
android:grantUriPermissions="true"
|
|
android:permission="android.permission.MANAGE_DOCUMENTS"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.content.action.DOCUMENTS_PROVIDER" />
|
|
</intent-filter>
|
|
</provider>
|
|
|
|
<receiver android:name=".PackageReceiver"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
|
|
<action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
|
|
<data android:scheme="package" />
|
|
</intent-filter>
|
|
</receiver>
|
|
|
|
<receiver android:name=".roots.BootReceiver" android:enabled="false"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
</intent-filter>
|
|
</receiver>
|
|
|
|
<receiver android:name=".PreBootReceiver"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.PRE_BOOT_COMPLETED" />
|
|
</intent-filter>
|
|
</receiver>
|
|
|
|
<!-- Run FileOperationService in a separate process so that we can use FileLock class to
|
|
wait until jumbo clip is done writing to disk before reading it. See ClipStorage for
|
|
details. -->
|
|
<service
|
|
android:name=".services.FileOperationService"
|
|
android:exported="false"
|
|
android:process=":com.android.documentsui.services">
|
|
</service>
|
|
|
|
<activity
|
|
android:name=".selection.demo.SelectionDemoActivity"
|
|
android:label="Selection Demo"
|
|
android:exported="true"
|
|
android:theme="@style/DocumentsTheme">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
</application>
|
|
</manifest>
|