AndroidManifest.xml 3.44 KB
Newer Older
1 2 3
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.android.providers.media"
        android:sharedUserId="android.media"
4
        android:sharedUserLabel="@string/uid_label"
5
        android:versionCode="510">
6 7 8 9
        
    <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" />
10
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
11
    <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
12
    <uses-permission android:name="android.permission.ACCESS_MTP" />
Mike Lockwood's avatar
Mike Lockwood committed
13

14
    <application android:process="android.process.media"
15 16
                 android:label="@string/app_label"
                 android:supportsRtl="true">
17
        <provider android:name="MediaProvider" android:authorities="media"
18
                android:multiprocess="false" android:exported="true">
19 20 21 22 23 24
            <grant-uri-permission android:pathPrefix="/external/" />
            <path-permission
                    android:pathPrefix="/external/"
                    android:readPermission="android.permission.READ_EXTERNAL_STORAGE"
                    android:writePermission="android.permission.WRITE_EXTERNAL_STORAGE" />
        </provider>
25

26 27 28 29 30 31 32 33 34 35
        <!-- 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>

36 37 38 39 40 41 42 43
        <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>
44 45 46 47
            <intent-filter>
                <action android:name="android.intent.action.MEDIA_UNMOUNTED" />
                <data android:scheme="file" />
            </intent-filter>
48 49 50 51 52 53 54 55 56 57 58 59
            <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>

60 61
        <receiver android:name="UsbReceiver">
            <intent-filter>
62
                <action android:name="android.hardware.usb.action.USB_STATE" />
63 64 65 66 67
            </intent-filter>
        </receiver>
 
        <service android:name="MtpService" />

68 69 70 71 72 73 74 75 76
        <activity android:name="RingtonePickerActivity"
                android:theme="@*android:style/Theme.Holo.Dialog.Alert"
                android:excludeFromRecents="true">
            <intent-filter>
                <action android:name="android.intent.action.RINGTONE_PICKER" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

77 78
    </application>
</manifest>