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-permission android:name="android.permission.GET_APP_GRANTED_URI_PERMISSIONS" /> 23 <uses-permission android:name="android.permission.FORCE_PERSISTABLE_URI_PERMISSIONS" /> 24 <uses-permission android:name="android.permission.MANAGE_DOCUMENTS" /> 25 <uses-permission android:name="android.permission.CACHE_CONTENT" /> 26 27 <!-- This is a minimal version of the DocumentsUI app supporting ScopedDirectoryAccess 28 only. It is part of the Android TV build. --> 29 <application 30 android:label="@string/app_label" 31 android:icon="@drawable/app_icon" 32 android:supportsRtl="true" 33 android:allowBackup="false" 34 android:fullBackupOnly="false"> 35 36 <activity 37 android:name=".ScopedAccessActivity" 38 android:theme="@android:style/Theme.Translucent.NoTitleBar"> 39 <intent-filter> 40 <action android:name="android.os.storage.action.OPEN_EXTERNAL_DIRECTORY" /> 41 <category android:name="android.intent.category.DEFAULT" /> 42 </intent-filter> 43 </activity> 44 45 <receiver android:name=".ScopedAccessPackageReceiver"> 46 <intent-filter> 47 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" /> 48 <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" /> 49 <data android:scheme="package" /> 50 </intent-filter> 51 </receiver> 52 53 <provider 54 android:name=".ScopedAccessProvider" 55 android:authorities="com.android.documentsui.scopedAccess" 56 android:permission="android.permission.MANAGE_SCOPED_ACCESS_DIRECTORY_PERMISSIONS" 57 android:exported="true"> 58 </provider> 59 60 </application> 61 </manifest> 62