Merge "Add featureFlag attribute for new RECORD_SENSITIVE_CONTENT permission" into main
diff --git a/core/res/Android.bp b/core/res/Android.bp
index e2e419f..79b1376 100644
--- a/core/res/Android.bp
+++ b/core/res/Android.bp
@@ -161,6 +161,7 @@
"camera_platform_flags",
"android.net.platform.flags-aconfig",
"com.android.window.flags.window-aconfig",
+ "android.permission.flags-aconfig",
],
}
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index 0664211..0869af5 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -6920,7 +6920,8 @@
projection. This is intended for on device screen recording system app.
@FlaggedApi("android.permission.flags.sensitive_notification_app_protection") -->
<permission android:name="android.permission.RECORD_SENSITIVE_CONTENT"
- android:protectionLevel="signature"/>
+ android:protectionLevel="signature"
+ android:featureFlag="android.permission.flags.sensitive_notification_app_protection"/>
<!-- @SystemApi Allows an application to read install sessions
@hide This is not a third-party API (intended for system apps). -->