diff options
author | 2024-11-21 13:48:49 +0000 | |
---|---|---|
committer | 2024-11-21 13:48:49 +0000 | |
commit | b6c2edb916d8f9b31ac3a37687a6f54c736b551d (patch) | |
tree | 243c74b34fc446801bd87b268555d6af1f5949b4 | |
parent | 35df48397f28ec93fefc05e2305b3da80a1adc04 (diff) | |
parent | 56d0527d7a03ac1aaa2b97427a54d2e963065898 (diff) |
Merge "Add ADD_MIRROR_DISPLAY permission to APP_STREAMING role" into main
-rw-r--r-- | PermissionController/res/xml/roles.xml | 4 | ||||
-rw-r--r-- | tests/cts/permissionpolicy/res/raw/android_manifest.xml | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/PermissionController/res/xml/roles.xml b/PermissionController/res/xml/roles.xml index 2989d8f96..7b1f84a20 100644 --- a/PermissionController/res/xml/roles.xml +++ b/PermissionController/res/xml/roles.xml @@ -1238,7 +1238,9 @@ <permission-set name="virtual_device" /> <!-- For capturing audio from the app on the device. --> <permission name="android.permission.RECORD_AUDIO" /> - + <permission + name="android.permission.ADD_MIRROR_DISPLAY" + featureFlag="android.companion.virtualdevice.flags.Flags.enableLimitedVdmRole" /> <!--TODO(b/201605314) For calling Telecom framework API for audio streaming--> <!--<permission name="android.permission.PROVIDE_CALL_ENDPOINTS" />--> </permissions> diff --git a/tests/cts/permissionpolicy/res/raw/android_manifest.xml b/tests/cts/permissionpolicy/res/raw/android_manifest.xml index e1608f878..0cd91b50a 100644 --- a/tests/cts/permissionpolicy/res/raw/android_manifest.xml +++ b/tests/cts/permissionpolicy/res/raw/android_manifest.xml @@ -7873,6 +7873,15 @@ <permission android:name="android.permission.ADD_ALWAYS_UNLOCKED_DISPLAY" android:protectionLevel="signature|role"/> + <!-- Allows an application to create displays that mirror other displays' content. + <p>Not for use by third-party applications. + <p>Protection level: internal|role + @FlaggedApi(android.companion.virtualdevice.flags.Flags.FLAG_ENABLE_LIMITED_VDM_ROLE) + @hide @SystemApi --> + <permission android:name="android.permission.ADD_MIRROR_DISPLAY" + android:protectionLevel="internal|role" + android:featureFlag="android.companion.virtualdevice.flags.enable_limited_vdm_role" /> + <!-- @hide @SystemApi Allows an application to access locusId events in the usage stats. --> <permission android:name="android.permission.ACCESS_LOCUS_ID_USAGE_STATS" android:protectionLevel="signature|role" /> |