AndroidManifest.xml 2.6 KB
Newer Older
1 2 3 4 5 6 7 8
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.android.providers.media"
        android:sharedUserId="android.media"
        android:sharedUserLabel="@string/uid_label">
        
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
    <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" />
Mike Lockwood's avatar
Mike Lockwood committed
12

13 14 15 16
    <application android:process="android.process.media"
                 android:label="@string/app_label">
        <provider android:name="MediaProvider" android:authorities="media"
                android:multiprocess="false" />
17

18 19 20 21 22 23 24 25 26 27
        <!-- Handles database upgrades after OTAs, then disables itself -->
        <receiver android:name="MediaUpgradeReceiver">
            <!-- This broadcast is sent after the core system has finished
                 booting, before the home app is launched or BOOT_COMPLETED
                 is sent. -->
            <intent-filter>
                <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/>
            </intent-filter>
        </receiver>

28 29 30 31 32 33 34 35
        <receiver android:name="MediaScannerReceiver">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.MEDIA_MOUNTED" />
                <data android:scheme="file" />
            </intent-filter>
36 37 38 39
            <intent-filter>
                <action android:name="android.intent.action.MEDIA_UNMOUNTED" />
                <data android:scheme="file" />
            </intent-filter>
40 41 42 43 44 45 46 47 48 49 50 51
            <intent-filter>
                <action android:name="android.intent.action.MEDIA_SCANNER_SCAN_FILE" />
                <data android:scheme="file" />
            </intent-filter>
        </receiver>

        <service android:name="MediaScannerService" android:exported="true">
            <intent-filter>
                <action android:name="android.media.IMediaScannerService" />
            </intent-filter>
        </service>

52 53
        <receiver android:name="UsbReceiver">
            <intent-filter>
54
                <action android:name="android.hardware.usb.action.USB_STATE" />
55 56 57 58 59
            </intent-filter>
        </receiver>
 
        <service android:name="MtpService" />

60 61
    </application>
</manifest>