summaryrefslogtreecommitdiff
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
author Dipankar Bhardwaj <dipankarb@google.com> 2024-09-29 19:50:56 +0000
committer Dipankar Bhardwaj <dipankarb@google.com> 2025-03-13 16:57:13 +0000
commit9a831d5492fb663b95b49693de14287988ccad30 (patch)
tree7114671cf9b763034b7f092c67b1ad6c8b9e3e65 /AndroidManifest.xml
parent8361c9359191021054311dd73ff9fb05752e06df (diff)
Add API to bulk update oem_metadata
Created new API to bulk update oem_metadata. This can be done only with UPDATE_OEM_METADATA_PERMISSION which is signature and privileged. Triggering bulk update of oem_metadata column will mark it as null for rows with oem supported mime type till the next idle maintenance run re-fetches the values from OEMMetadataService. Also added support for OEM_METADATA update for a URI using update API. Test: atest OemMetadataServiceTest Bug: 352528913 Change-Id: If2ee9050304ab1f60ca402bf4205a34b58277e76 Flag: com.android.providers.media.flags.enable_oem_metadata_update
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index e4249ce1c..a19e718b5 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -54,6 +54,10 @@
<uses-permission
android:name="com.android.providers.media.permission.ACCESS_OEM_METADATA" />
+ <!-- Permission required to update OEM metadata. Declared by us -->
+ <uses-permission
+ android:name="com.android.providers.media.permission.UPDATE_OEM_METADATA" />
+
<!-- Permission required to bind to OemMetadataService -->
<uses-permission android:name="com.android.providers.media.permission.BIND_OEM_METADATA_SERVICE" />
@@ -74,6 +78,9 @@
<permission android:name="com.android.providers.media.permission.ACCESS_OEM_METADATA"
android:protectionLevel="signature|privileged" />
+ <permission android:name="com.android.providers.media.permission.UPDATE_OEM_METADATA"
+ android:protectionLevel="signature|privileged" />
+
<permission android:name="com.android.providers.media.permission.BIND_OEM_METADATA_SERVICE"
android:protectionLevel="signature"/>