1<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2        package="com.android.externalstorage">
3
4    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
5    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
6    <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
7    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
8
9    <application android:label="@string/app_label">
10        <provider
11            android:name=".ExternalStorageProvider"
12            android:label="@string/storage_description"
13            android:authorities="com.android.externalstorage.documents"
14            android:grantUriPermissions="true"
15            android:exported="true"
16            android:permission="android.permission.MANAGE_DOCUMENTS">
17            <intent-filter>
18                <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
19            </intent-filter>
20        </provider>
21
22        <receiver android:name=".MountReceiver">
23            <intent-filter>
24                <action android:name="android.os.storage.action.VOLUME_STATE_CHANGED" />
25            </intent-filter>
26        </receiver>
27
28        <!-- TODO: find a better place for tests to live -->
29        <provider
30            android:name=".TestDocumentsProvider"
31            android:authorities="com.example.documents"
32            android:grantUriPermissions="true"
33            android:exported="true"
34            android:permission="android.permission.MANAGE_DOCUMENTS"
35            android:enabled="false">
36            <intent-filter>
37                <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
38            </intent-filter>
39        </provider>
40    </application>
41</manifest>
42