Add new permissions to gate StatsManager restricted logging APIs.

Test: atest FrameworkStatsdHostTest
Bug: 266087404
Bug: 266081994

Change-Id: I084d2c49ad777799eed75323fff47299da294a8d
This commit is contained in:
Shivanker Goel
2023-01-31 16:07:51 +00:00
committed by Tej Singh
parent 4c4e25e092
commit 006f56897e
2 changed files with 6 additions and 0 deletions

View File

@@ -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";

View File

@@ -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 -->