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

Commit 006f5689 authored by Shivanker Goel's avatar Shivanker Goel Committed by Tej Singh
Browse files

Add new permissions to gate StatsManager restricted logging APIs.

Test: atest FrameworkStatsdHostTest
Bug: 266087404
Bug: 266081994

Change-Id: I084d2c49ad777799eed75323fff47299da294a8d
parent 4c4e25e0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -271,6 +271,7 @@ package android {
    field public static final String READ_PRINT_SERVICE_RECOMMENDATIONS = "android.permission.READ_PRINT_SERVICE_RECOMMENDATIONS";
    field public static final String READ_PRIVILEGED_PHONE_STATE = "android.permission.READ_PRIVILEGED_PHONE_STATE";
    field public static final String READ_PROJECTION_STATE = "android.permission.READ_PROJECTION_STATE";
    field public static final String READ_RESTRICTED_STATS = "android.permission.READ_RESTRICTED_STATS";
    field public static final String READ_RUNTIME_PROFILES = "android.permission.READ_RUNTIME_PROFILES";
    field public static final String READ_SAFETY_CENTER_STATUS = "android.permission.READ_SAFETY_CENTER_STATUS";
    field public static final String READ_SEARCH_INDEXABLES = "android.permission.READ_SEARCH_INDEXABLES";
+5 −0
Original line number Diff line number Diff line
@@ -5657,6 +5657,11 @@
    <permission android:name="android.permission.REGISTER_STATS_PULL_ATOM"
                android:protectionLevel="signature|privileged" />

    <!-- @SystemApi @hide Allows an application to read restricted stats from statsd.
         <p>Not for use by third-party applications. -->
    <permission android:name="android.permission.READ_RESTRICTED_STATS"
                android:protectionLevel="internal|privileged" />

    <!-- @SystemApi Allows an application to control the backup and restore process.
    <p>Not for use by third-party applications.
         @hide pending API council -->