Make MODIFY_DAY_NIGHT_MODE and OBSERVE_APP_USAGE permissions grantable via role.
Security approved for design: go/retail-demo-role-fr Bug: 274132354 Test: manual (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:653665889d7de4151fc7dd1358b4c91dce80e59f) Merged-In: Id8880eeb44070faebd79ab59cdd6a036898821cf Change-Id: Id8880eeb44070faebd79ab59cdd6a036898821cf
This commit is contained in:
committed by
Cherrypicker Worker
parent
0c86688b1d
commit
8f38c305c3
@@ -6094,7 +6094,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. -->
|
||||
@@ -6724,7 +6724,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
|
||||
|
||||
Reference in New Issue
Block a user