Make MODIFY_DAY_NIGHT_MODE and OBSERVE_APP_USAGE permissions grantable via role.

Security approved for design: go/retail-demo-role-fr

Bug: 274132354
Change-Id: Id8880eeb44070faebd79ab59cdd6a036898821cf
Test: manual
This commit is contained in:
Wentao Wang
2023-06-13 04:58:41 +00:00
parent af0f342247
commit 653665889d

View File

@@ -6102,7 +6102,7 @@
<!-- @hide @SystemApi Allows an application to observe usage time of apps. The app can register
for callbacks when apps reach a certain usage time limit, etc. -->
<permission android:name="android.permission.OBSERVE_APP_USAGE"
android:protectionLevel="signature|privileged" />
android:protectionLevel="signature|privileged|role" />
<!-- @hide @TestApi @SystemApi Allows an application to change the app idle state of an app.
<p>Not for use by third-party applications. -->
@@ -6732,7 +6732,7 @@
it will be ignored.
@hide -->
<permission android:name="android.permission.MODIFY_DAY_NIGHT_MODE"
android:protectionLevel="signature|privileged" />
android:protectionLevel="signature|privileged|role" />
<!-- @SystemApi Allows entering or exiting car mode using a specified priority.
This permission is required to use UiModeManager while specifying a priority for the calling