blob: 336e8eb316edeebdb56dc7de3f183e2c596ad449 [file] [log] [blame]
The Android Open Source Project70215272009-03-03 19:32:43 -08001<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Jeff Sharkey56c34e82019-11-21 15:56:37 -07002 package="com.android.providers.media.module">
Ben Lin97203242017-03-17 11:09:50 -07003
The Android Open Source Project70215272009-03-03 19:32:43 -08004 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
5 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
6 <uses-permission android:name="android.permission.WAKE_LOCK" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -07007 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
8
Jeff Sharkey8efd65f2012-09-16 15:26:12 -07009 <uses-permission android:name="android.permission.MANAGE_USERS" />
10 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
Corina Grigoras53b32c12021-03-01 19:54:10 +000011 <!-- Permission required to prompt for the work profile to be turned on -->
12 <uses-permission android:name="android.permission.MODIFY_QUIET_MODE" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -070013
Jeff Sharkeyeeda7ba2019-05-17 18:48:04 -060014 <uses-permission android:name="android.permission.WATCH_APPOPS" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -070015 <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
Jeff Sharkey7873f542019-05-30 12:18:38 -060016 <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" />
Mike Lockwood67595922011-01-06 14:14:56 -050017
Philip P. Moltmannd7ae5032019-03-27 12:25:37 -070018 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -070019 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
20 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
Zima82cbb12020-01-27 13:41:20 +000021 <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -070022 <uses-permission android:name="android.permission.USE_RESERVED_DISK" />
Patrick Baumann7a2f8f32020-02-07 15:11:21 -080023 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
shafik60c44c72020-06-08 13:52:10 +010024 <uses-permission android:name="android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS" />
Jeff Sharkey5a8bb562018-08-10 18:04:10 -060025
Abhijeet Kaurb19f11a2020-02-10 11:35:03 +000026 <!-- Permissions required for reading and logging compat changes -->
27 <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE"/>
28 <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG"/>
29
Zim24616e52020-12-01 17:38:48 +000030 <!-- Permissions required for reading device configs -->
31 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/>
32
Makoto Onuki78167382020-12-10 09:58:59 -080033 <uses-permission android:name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND"/>
34
Manish Singh08ed4992021-02-12 00:54:47 +000035 <!-- Permissions required for statsd pull metrics -->
36 <uses-permission android:name="android.permission.REGISTER_STATS_PULL_ATOM"/>
37
Zim2be60462021-03-30 18:01:43 +010038 <!-- Permissions required to check if an app is in the foreground or not during IO -->
39 <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
40
Jeff Sharkey6d856882019-01-02 13:45:35 -070041 <application
Jeff Sharkeyc55994b2019-12-20 19:43:59 -070042 android:name="com.android.providers.media.MediaApplication"
Jeff Sharkey6d856882019-01-02 13:45:35 -070043 android:label="@string/app_label"
44 android:allowBackup="false"
45 android:supportsRtl="true"
Patrick Baumann7a2f8f32020-02-07 15:11:21 -080046 android:forceQueryable="true"
Jeff Sharkey6d856882019-01-02 13:45:35 -070047 android:usesCleartextTraffic="true">
48 <provider
Jeff Sharkey56c34e82019-11-21 15:56:37 -070049 android:name="com.android.providers.media.MediaProvider"
Jeff Sharkey6d856882019-01-02 13:45:35 -070050 android:authorities="media"
51 android:grantUriPermissions="true"
Dianne Hackborn4a742fc2019-02-05 16:12:28 -080052 android:forceUriPermissions="true"
Jeff Sharkey6d856882019-01-02 13:45:35 -070053 android:exported="true" />
Mike Lockwoodc7bbe232010-05-27 07:49:01 -040054
Jeff Sharkeye215ab52013-08-16 17:25:26 -070055 <provider
Jeff Sharkey56c34e82019-11-21 15:56:37 -070056 android:name="com.android.providers.media.MediaDocumentsProvider"
Jeff Sharkey6d856882019-01-02 13:45:35 -070057 android:label="@string/storage_description"
58 android:authorities="com.android.providers.media.documents"
59 android:grantUriPermissions="true"
60 android:exported="true"
61 android:permission="android.permission.MANAGE_DOCUMENTS">
Jeff Sharkeydd492122013-10-09 13:57:51 -070062 <intent-filter>
63 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
64 </intent-filter>
Jeff Sharkeye215ab52013-08-16 17:25:26 -070065 </provider>
66
Dianne Hackbornfd8402c2011-08-18 19:46:51 -070067 <!-- Handles database upgrades after OTAs, then disables itself -->
Ashwini Oruganti22820e62020-03-24 15:08:57 -070068 <receiver android:name="com.android.providers.media.MediaUpgradeReceiver"
69 android:exported="true">
Dianne Hackbornfd8402c2011-08-18 19:46:51 -070070 <!-- This broadcast is sent after the core system has finished
71 booting, before the home app is launched or BOOT_COMPLETED
72 is sent. -->
73 <intent-filter>
74 <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/>
75 </intent-filter>
76 </receiver>
77
Ashwini Oruganti22820e62020-03-24 15:08:57 -070078 <receiver android:name="com.android.providers.media.MediaReceiver"
79 android:exported="true">
The Android Open Source Project70215272009-03-03 19:32:43 -080080 <intent-filter>
81 <action android:name="android.intent.action.BOOT_COMPLETED" />
Jeff Sharkey021aaf92019-08-21 14:10:30 -060082 </intent-filter>
83 <intent-filter>
Sean Stoutcceb5e42017-09-08 11:16:00 -070084 <action android:name="android.intent.action.LOCALE_CHANGED" />
The Android Open Source Project70215272009-03-03 19:32:43 -080085 </intent-filter>
86 <intent-filter>
Jeff Sharkey7320f372018-09-12 15:14:24 -060087 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
88 <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
89 <data android:scheme="package" />
90 </intent-filter>
91 <intent-filter>
Martijn Coenen45a23dc2021-07-23 14:22:43 +020092 <action android:name="android.intent.action.MEDIA_MOUNTED" />
93 <data android:scheme="file" />
94 </intent-filter>
95 <intent-filter>
The Android Open Source Project70215272009-03-03 19:32:43 -080096 <action android:name="android.intent.action.MEDIA_SCANNER_SCAN_FILE" />
97 <data android:scheme="file" />
98 </intent-filter>
99 </receiver>
100
Jeff Sharkey7320f372018-09-12 15:14:24 -0600101 <service
Jeff Sharkey56c34e82019-11-21 15:56:37 -0700102 android:name="com.android.providers.media.IdleService"
Jeff Sharkey7320f372018-09-12 15:14:24 -0600103 android:exported="true"
104 android:permission="android.permission.BIND_JOB_SERVICE" />
105
Jeff Sharkey5fdbd982019-01-20 11:03:28 -0700106 <service
Jeff Sharkey56c34e82019-11-21 15:56:37 -0700107 android:name="com.android.providers.media.MediaService"
Jeff Sharkey128a8b92019-11-13 08:58:10 -0700108 android:exported="true"
109 android:permission="android.permission.BIND_JOB_SERVICE" />
Jeff Sharkey5fdbd982019-01-20 11:03:28 -0700110
Jeff Sharkey56c34e82019-11-21 15:56:37 -0700111 <service android:name="com.android.providers.media.fuse.ExternalStorageServiceImpl"
Ashwini Oruganti22820e62020-03-24 15:08:57 -0700112 android:exported="true"
Zim3e45d9b2019-08-19 21:14:14 +0100113 android:permission="android.permission.BIND_EXTERNAL_STORAGE_SERVICE">
114 <intent-filter>
115 <action android:name="android.service.storage.ExternalStorageService" />
116 </intent-filter>
117 </service>
118
Jeff Sharkeyc3088d82018-12-11 17:32:51 -0700119 <activity
shafik77ed67b2020-02-06 18:27:35 +0000120 android:name="com.android.providers.media.PermissionActivity"
Jeff Sharkeya44e8fe2020-05-28 19:06:00 -0600121 android:configChanges="orientation|keyboardHidden|screenSize"
shafik77ed67b2020-02-06 18:27:35 +0000122 android:theme="@style/PickerDialogTheme"
123 android:exported="false"
124 android:excludeFromRecents="true" />
125
126 <activity
127 android:name="com.android.providers.media.CacheClearingActivity"
Jeff Sharkeya44e8fe2020-05-28 19:06:00 -0600128 android:configChanges="orientation|keyboardHidden|screenSize"
shafik77ed67b2020-02-06 18:27:35 +0000129 android:exported="true"
130 android:theme="@style/CacheClearingAlertDialogTheme"
131 android:finishOnCloseSystemDialogs="true"
132 android:launchMode="singleTop"
133 android:excludeFromRecents="true"
134 android:visibleToInstantApps="true"
135 android:priority="100" >
136 <intent-filter>
137 <action android:name="android.os.storage.action.CLEAR_APP_CACHE" />
138 <category android:name="android.intent.category.DEFAULT" />
139 </intent-filter>
140 </activity>
The Android Open Source Project70215272009-03-03 19:32:43 -0800141 </application>
142</manifest>