summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jyoti Bhayana <jbhayana@google.com> 2024-01-28 18:53:48 -0800
committer Jyoti Bhayana <jbhayana@google.com> 2024-01-28 18:53:48 -0800
commit5a40bde79a5ea04f8a6b85950d7f06565ecc76c2 (patch)
tree26a10cd966ab28398b6efef1853151c04e29eff4
parent8e348345a7d5054fdb40cd9fa0f672a939ef410f (diff)
Implement camera privacy allowlist.
This feature enables the user to access the camera for certain driver assistance applications regardless of the device-wide global camera privacy toggle in order to preserve user safety and meet safety regulations. Flag: ACONFIG com.android.internal.camera.flags.privacy_allowlist DEVELOPMENT Bug: 300986585 Test: Build and test using kitchensink Change-Id: I673adce4bef177b7987a78475ede9f71653a9131
-rw-r--r--tests/cts/permissionpolicy/res/raw/android_manifest.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/cts/permissionpolicy/res/raw/android_manifest.xml b/tests/cts/permissionpolicy/res/raw/android_manifest.xml
index 18b70ae25..b0f5fbf0e 100644
--- a/tests/cts/permissionpolicy/res/raw/android_manifest.xml
+++ b/tests/cts/permissionpolicy/res/raw/android_manifest.xml
@@ -1644,6 +1644,15 @@
android:description="@string/permdesc_cameraHeadlessSystemUser"
android:protectionLevel="signature" />
+ <!-- @SystemApi Allows camera access of allowlisted driver assistance apps
+ to be controlled separately.
+ <p> Not for use by third-party applications.
+ @FlaggedApi("com.android.internal.camera.flags.privacy_allowlist")
+ @hide
+ -->
+ <permission android:name="android.permission.CAMERA_PRIVACY_ALLOWLIST"
+ android:protectionLevel="signature|privileged" />
+
<!-- ====================================================================== -->
<!-- Permissions for accessing the device sensors -->
<!-- ====================================================================== -->