Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f38c305 authored by Wentao Wang's avatar Wentao Wang Committed by Cherrypicker Worker
Browse files

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
parent 0c86688b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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