• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2        package="com.android.providers.media"
3        android:sharedUserId="android.media"
4        android:sharedUserLabel="@string/uid_label">
5
6    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
7    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
8    <uses-permission android:name="android.permission.WAKE_LOCK" />
9    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
10    <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
11    <uses-permission android:name="android.permission.ACCESS_MTP" />
12
13    <application android:process="android.process.media"
14                 android:label="@string/app_label">
15        <provider android:name="MediaProvider" android:authorities="media"
16                android:multiprocess="false" />
17
18        <!-- Handles database upgrades after OTAs, then disables itself -->
19        <receiver android:name="MediaUpgradeReceiver">
20            <!-- This broadcast is sent after the core system has finished
21                 booting, before the home app is launched or BOOT_COMPLETED
22                 is sent. -->
23            <intent-filter>
24                <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/>
25            </intent-filter>
26        </receiver>
27
28        <receiver android:name="MediaScannerReceiver">
29            <intent-filter>
30                <action android:name="android.intent.action.BOOT_COMPLETED" />
31            </intent-filter>
32            <intent-filter>
33                <action android:name="android.intent.action.MEDIA_MOUNTED" />
34                <data android:scheme="file" />
35            </intent-filter>
36            <intent-filter>
37                <action android:name="android.intent.action.MEDIA_UNMOUNTED" />
38                <data android:scheme="file" />
39            </intent-filter>
40            <intent-filter>
41                <action android:name="android.intent.action.MEDIA_SCANNER_SCAN_FILE" />
42                <data android:scheme="file" />
43            </intent-filter>
44        </receiver>
45
46        <service android:name="MediaScannerService" android:exported="true">
47            <intent-filter>
48                <action android:name="android.media.IMediaScannerService" />
49            </intent-filter>
50        </service>
51
52        <receiver android:name="UsbReceiver">
53            <intent-filter>
54                <action android:name="android.hardware.usb.action.USB_STATE" />
55            </intent-filter>
56        </receiver>
57
58        <service android:name="MtpService" />
59
60    </application>
61</manifest>
62