blob: 6cdda123603eaad967c867a75fc9e301387ea23e [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
Biswarup Pal6d661972021-09-08 09:25:06 +00004 <meta-data
5 android:name="com.android.providers.media.photopicker.data.glide.PickerGlideModule"
6 android:value="GlideModule" />
7
The Android Open Source Project70215272009-03-03 19:32:43 -08008 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
9 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
10 <uses-permission android:name="android.permission.WAKE_LOCK" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -070011 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
12
Jeff Sharkey8efd65f2012-09-16 15:26:12 -070013 <uses-permission android:name="android.permission.MANAGE_USERS" />
14 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
Corina Grigoras53b32c12021-03-01 19:54:10 +000015 <!-- Permission required to prompt for the work profile to be turned on -->
16 <uses-permission android:name="android.permission.MODIFY_QUIET_MODE" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -070017
Jeff Sharkeyeeda7ba2019-05-17 18:48:04 -060018 <uses-permission android:name="android.permission.WATCH_APPOPS" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -070019 <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
Jeff Sharkey7873f542019-05-30 12:18:38 -060020 <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" />
Mike Lockwood67595922011-01-06 14:14:56 -050021
Philip P. Moltmannd7ae5032019-03-27 12:25:37 -070022 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -070023 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
24 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
Zima82cbb12020-01-27 13:41:20 +000025 <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
Jeff Sharkey59d85ba2019-11-12 15:25:55 -070026 <uses-permission android:name="android.permission.USE_RESERVED_DISK" />
Patrick Baumann7a2f8f32020-02-07 15:11:21 -080027 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
shafik60c44c72020-06-08 13:52:10 +010028 <uses-permission android:name="android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS" />
Steve Elliottb6a753d2021-12-03 16:38:16 -050029 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
Jeff Sharkey5a8bb562018-08-10 18:04:10 -060030
Abhijeet Kaurb19f11a2020-02-10 11:35:03 +000031 <!-- Permissions required for reading and logging compat changes -->
32 <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE"/>
33 <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG"/>
34
Zim24616e52020-12-01 17:38:48 +000035 <!-- Permissions required for reading device configs -->
36 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/>
37
Makoto Onuki78167382020-12-10 09:58:59 -080038 <uses-permission android:name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND"/>
39
Manish Singh08ed4992021-02-12 00:54:47 +000040 <!-- Permissions required for statsd pull metrics -->
41 <uses-permission android:name="android.permission.REGISTER_STATS_PULL_ATOM"/>
42
Zim2be60462021-03-30 18:01:43 +010043 <!-- Permissions required to check if an app is in the foreground or not during IO -->
44 <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
45
Zim55f64172021-07-30 12:57:39 +010046 <!-- Permission required to access CloudMediaProviders. Declared by us -->
47 <uses-permission android:name="com.android.providers.media.permission.MANAGE_CLOUD_MEDIA_PROVIDERS" />
48
49 <permission android:name="com.android.providers.media.permission.MANAGE_CLOUD_MEDIA_PROVIDERS"
50 android:protectionLevel="signature" />
51
Jeff Sharkey6d856882019-01-02 13:45:35 -070052 <application
Jeff Sharkeyc55994b2019-12-20 19:43:59 -070053 android:name="com.android.providers.media.MediaApplication"
Jeff Sharkey6d856882019-01-02 13:45:35 -070054 android:label="@string/app_label"
55 android:allowBackup="false"
56 android:supportsRtl="true"
Patrick Baumann7a2f8f32020-02-07 15:11:21 -080057 android:forceQueryable="true"
Abhijeet Kaur7334bac2021-06-11 20:04:48 +010058 android:usesCleartextTraffic="true"
59 android:crossProfile="true">
Jeff Sharkey6d856882019-01-02 13:45:35 -070060 <provider
Jeff Sharkey56c34e82019-11-21 15:56:37 -070061 android:name="com.android.providers.media.MediaProvider"
Jeff Sharkey6d856882019-01-02 13:45:35 -070062 android:authorities="media"
63 android:grantUriPermissions="true"
Dianne Hackborn4a742fc2019-02-05 16:12:28 -080064 android:forceUriPermissions="true"
Jeff Sharkey6d856882019-01-02 13:45:35 -070065 android:exported="true" />
Mike Lockwoodc7bbe232010-05-27 07:49:01 -040066
Jeff Sharkeye215ab52013-08-16 17:25:26 -070067 <provider
Jeff Sharkey56c34e82019-11-21 15:56:37 -070068 android:name="com.android.providers.media.MediaDocumentsProvider"
Jeff Sharkey6d856882019-01-02 13:45:35 -070069 android:label="@string/storage_description"
70 android:authorities="com.android.providers.media.documents"
71 android:grantUriPermissions="true"
72 android:exported="true"
73 android:permission="android.permission.MANAGE_DOCUMENTS">
Jeff Sharkeydd492122013-10-09 13:57:51 -070074 <intent-filter>
75 <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
76 </intent-filter>
Jeff Sharkeye215ab52013-08-16 17:25:26 -070077 </provider>
78
Zim0fd7e1e2021-07-23 17:23:53 +010079 <provider
80 android:name="com.android.providers.media.photopicker.PhotoPickerProvider"
81 android:authorities="com.android.providers.media.photopicker"
82 android:exported="false" />
83
Dianne Hackbornfd8402c2011-08-18 19:46:51 -070084 <!-- Handles database upgrades after OTAs, then disables itself -->
Ashwini Oruganti22820e62020-03-24 15:08:57 -070085 <receiver android:name="com.android.providers.media.MediaUpgradeReceiver"
86 android:exported="true">
Dianne Hackbornfd8402c2011-08-18 19:46:51 -070087 <!-- This broadcast is sent after the core system has finished
88 booting, before the home app is launched or BOOT_COMPLETED
89 is sent. -->
90 <intent-filter>
91 <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/>
92 </intent-filter>
93 </receiver>
94
Ashwini Oruganti22820e62020-03-24 15:08:57 -070095 <receiver android:name="com.android.providers.media.MediaReceiver"
96 android:exported="true">
The Android Open Source Project70215272009-03-03 19:32:43 -080097 <intent-filter>
98 <action android:name="android.intent.action.BOOT_COMPLETED" />
Jeff Sharkey021aaf92019-08-21 14:10:30 -060099 </intent-filter>
100 <intent-filter>
Sean Stoutcceb5e42017-09-08 11:16:00 -0700101 <action android:name="android.intent.action.LOCALE_CHANGED" />
The Android Open Source Project70215272009-03-03 19:32:43 -0800102 </intent-filter>
103 <intent-filter>
Jeff Sharkey7320f372018-09-12 15:14:24 -0600104 <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
105 <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
106 <data android:scheme="package" />
107 </intent-filter>
108 <intent-filter>
Martijn Coenen45a23dc2021-07-23 14:22:43 +0200109 <action android:name="android.intent.action.MEDIA_MOUNTED" />
110 <data android:scheme="file" />
111 </intent-filter>
112 <intent-filter>
The Android Open Source Project70215272009-03-03 19:32:43 -0800113 <action android:name="android.intent.action.MEDIA_SCANNER_SCAN_FILE" />
114 <data android:scheme="file" />
115 </intent-filter>
116 </receiver>
117
Jeff Sharkey7320f372018-09-12 15:14:24 -0600118 <service
Jeff Sharkey56c34e82019-11-21 15:56:37 -0700119 android:name="com.android.providers.media.IdleService"
Jeff Sharkey7320f372018-09-12 15:14:24 -0600120 android:exported="true"
121 android:permission="android.permission.BIND_JOB_SERVICE" />
122
Jeff Sharkey5fdbd982019-01-20 11:03:28 -0700123 <service
Jeff Sharkey56c34e82019-11-21 15:56:37 -0700124 android:name="com.android.providers.media.MediaService"
Jeff Sharkey128a8b92019-11-13 08:58:10 -0700125 android:exported="true"
126 android:permission="android.permission.BIND_JOB_SERVICE" />
Jeff Sharkey5fdbd982019-01-20 11:03:28 -0700127
Jeff Sharkey56c34e82019-11-21 15:56:37 -0700128 <service android:name="com.android.providers.media.fuse.ExternalStorageServiceImpl"
Ashwini Oruganti22820e62020-03-24 15:08:57 -0700129 android:exported="true"
Zim3e45d9b2019-08-19 21:14:14 +0100130 android:permission="android.permission.BIND_EXTERNAL_STORAGE_SERVICE">
131 <intent-filter>
132 <action android:name="android.service.storage.ExternalStorageService" />
133 </intent-filter>
134 </service>
135
Jeff Sharkeyc3088d82018-12-11 17:32:51 -0700136 <activity
shafik77ed67b2020-02-06 18:27:35 +0000137 android:name="com.android.providers.media.PermissionActivity"
Jeff Sharkeya44e8fe2020-05-28 19:06:00 -0600138 android:configChanges="orientation|keyboardHidden|screenSize"
shafik77ed67b2020-02-06 18:27:35 +0000139 android:theme="@style/PickerDialogTheme"
140 android:exported="false"
141 android:excludeFromRecents="true" />
142
143 <activity
144 android:name="com.android.providers.media.CacheClearingActivity"
Jeff Sharkeya44e8fe2020-05-28 19:06:00 -0600145 android:configChanges="orientation|keyboardHidden|screenSize"
shafik77ed67b2020-02-06 18:27:35 +0000146 android:exported="true"
147 android:theme="@style/CacheClearingAlertDialogTheme"
148 android:finishOnCloseSystemDialogs="true"
149 android:launchMode="singleTop"
150 android:excludeFromRecents="true"
151 android:visibleToInstantApps="true"
152 android:priority="100" >
153 <intent-filter>
154 <action android:name="android.os.storage.action.CLEAR_APP_CACHE" />
155 <category android:name="android.intent.category.DEFAULT" />
156 </intent-filter>
157 </activity>
Sahana Rao8eb767f2021-04-19 14:19:51 +0100158
159 <activity
160 android:name="com.android.providers.media.photopicker.PhotoPickerActivity"
Sahana Rao77159422021-10-06 10:24:44 +0100161 android:process=":PhotoPicker"
Abhijeet Kaura6ff9942022-04-01 11:47:07 +0100162 android:label="@string/picker_app_label"
163 android:icon="@mipmap/picker_app_icon"
Ivan Chiange89a1a42021-04-27 13:57:25 +0800164 android:theme="@style/PickerDefaultTheme"
Sahana Rao8eb767f2021-04-19 14:19:51 +0100165 android:exported="true"
Sahana Raoe2edf1f2022-09-30 21:34:45 +0100166 android:excludeFromRecents="true" >
167 <intent-filter android:priority="100" >
Sahana Rao8eb767f2021-04-19 14:19:51 +0100168 <action android:name="android.provider.action.PICK_IMAGES" />
169 <category android:name="android.intent.category.DEFAULT" />
Abhijeet Kaur8cb10e52021-06-23 15:05:19 +0100170 <data android:mimeType="image/*" />
171 <data android:mimeType="video/*" />
172 </intent-filter>
Sahana Raoe2edf1f2022-09-30 21:34:45 +0100173 <intent-filter android:priority="100" >
Abhijeet Kaur8cb10e52021-06-23 15:05:19 +0100174 <action android:name="android.provider.action.PICK_IMAGES" />
175 <category android:name="android.intent.category.DEFAULT" />
Sahana Rao8eb767f2021-04-19 14:19:51 +0100176 </intent-filter>
Abhijeet Kaur68f4a192022-04-26 10:53:29 +0000177 </activity>
178
179 <activity-alias
180 android:name="com.android.providers.media.photopicker.PhotoPickerGetContentActivity"
181 android:targetActivity="com.android.providers.media.photopicker.PhotoPickerActivity"
182 android:exported="true"
183 android:excludeFromRecents="true"
184 android:enabled="false">
Sahana Rao18bb0182021-06-15 15:39:14 +0100185 <intent-filter>
186 <action android:name="android.intent.action.GET_CONTENT" />
187 <category android:name="android.intent.category.OPENABLE" />
188 <category android:name="android.intent.category.DEFAULT" />
189 <data android:mimeType="image/*" />
190 <data android:mimeType="video/*" />
191 </intent-filter>
Abhijeet Kaur68f4a192022-04-26 10:53:29 +0000192 </activity-alias>
Sahana Rao18bb0182021-06-15 15:39:14 +0100193
The Android Open Source Project70215272009-03-03 19:32:43 -0800194 </application>
195</manifest>