diff options
author | 2025-03-15 01:03:25 -0700 | |
---|---|---|
committer | 2025-03-15 01:03:25 -0700 | |
commit | bc2f8d82a9c15093ca84b8078fc5687c5983f9e7 (patch) | |
tree | e2d49255382b86eb9f419272b5a044e0dfc5dcd4 | |
parent | 4f17b82ff8a36b2fdc0500d7e28107db8b4d9895 (diff) |
Rename the limited VDM role and permission
Bug: 368633836
Test: presubmit
Relnote: n/a
LOW_COVERAGE_REASON=NON_CODE_ONLY
Flag: android.companion.virtualdevice.flags.enable_limited_vdm_role
Change-Id: I4f71eccabf3b746767d70092cdf3591d944efe20
-rw-r--r-- | PermissionController/res/xml/roles.xml | 3 | ||||
-rw-r--r-- | tests/cts/permissionpolicy/res/raw/android_manifest.xml | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/PermissionController/res/xml/roles.xml b/PermissionController/res/xml/roles.xml index 0f9ff7112..d7701aba8 100644 --- a/PermissionController/res/xml/roles.xml +++ b/PermissionController/res/xml/roles.xml @@ -1936,7 +1936,8 @@ </role> <role - name="android.app.role.COMPANION_DEVICE_SENSOR_DEVICE_STREAMING" + name="android.app.role.COMPANION_DEVICE_VIRTUAL_DEVICE" + allowBypassingQualification="true" exclusive="false" exclusivity="none" featureFlag="android.companion.virtualdevice.flags.Flags.enableLimitedVdmRole" diff --git a/tests/cts/permissionpolicy/res/raw/android_manifest.xml b/tests/cts/permissionpolicy/res/raw/android_manifest.xml index cd80fe78e..eb6764cae 100644 --- a/tests/cts/permissionpolicy/res/raw/android_manifest.xml +++ b/tests/cts/permissionpolicy/res/raw/android_manifest.xml @@ -4554,12 +4554,12 @@ android:protectionLevel="signature|privileged" /> <!-- Allows application to request to stream content from an Android host to a nearby device - ({@link android.companion.AssociationRequest#DEVICE_PROFILE_SENSOR_DEVICE_STREAMING}) + ({@link android.companion.AssociationRequest#DEVICE_PROFILE_VIRTUAL_DEVICE}) by {@link android.companion.CompanionDeviceManager}. <p>Not for use by third-party applications. @FlaggedApi(android.companion.virtualdevice.flags.Flags.FLAG_ENABLE_LIMITED_VDM_ROLE) --> - <permission android:name="android.permission.REQUEST_COMPANION_PROFILE_SENSOR_DEVICE_STREAMING" + <permission android:name="android.permission.REQUEST_COMPANION_PROFILE_VIRTUAL_DEVICE" android:protectionLevel="signature|privileged" android:featureFlag="android.companion.virtualdevice.flags.enable_limited_vdm_role" /> |