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

Commit cab46ff5 authored by Jeffrey Huang's avatar Jeffrey Huang
Browse files

Make read restricted stats accessible to shell

Make READ_RESTRICTED_STATS permission available to Shell to allow
testing it in gts.

Is the minimally scoped permission that needs to be added?
Yes, it is the only permission needed for the query api.

Test: atest GtsStatsdHostTestCases
Bug: 268248219
Change-Id: Ib6da0aa23a67fed3e62bc2adef3e43914fd39c1c
Merged-In: Ib6da0aa23a67fed3e62bc2adef3e43914fd39c1c
parent 297aad48
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -508,6 +508,8 @@ applications that come with the platform
        <permission name="android.permission.ACCESS_AMBIENT_CONTEXT_EVENT"/>
        <!-- Permission required for CTS test - CtsTelephonyProviderTestCases -->
        <permission name="android.permission.WRITE_APN_SETTINGS"/>
        <!-- Permission required for GTS test - GtsStatsdHostTestCases -->
        <permission name="android.permission.READ_RESTRICTED_STATS"/>
    </privapp-permissions>

    <privapp-permissions package="com.android.statementservice">
+3 −0
Original line number Diff line number Diff line
@@ -460,6 +460,9 @@
    <!-- Permission needed to test registering pull atom callbacks -->
    <uses-permission android:name="android.permission.REGISTER_STATS_PULL_ATOM" />

    <!-- Permission needed to test querying restricted metrics -->
    <uses-permission android:name="android.permission.READ_RESTRICTED_STATS" />

    <!-- Permission needed to modify settings overrideable by restore in CTS tests -->
    <uses-permission android:name="android.permission.MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE" />