Add permissions for using PlatformCompat methods
- READ_COMPAT_CHANGE_CONFIG is required to read the current state of the config - LOG_COMPAT_CHANGE is required to log the status of a compat change for a package and/or uid to statsd - OVERRIDE_COMPAT_CHANGE_CONFIG is required to add overrides The permissions must be signature|privileged, as there are already examples of code which this would not be sufficient (e.g. MediaProvider). This is a re-landing of https://r.android.com/1209240, which was reverted due to http://b/142942524. The actual fix was done in http://ag/10234812. Bug: 142650523 Test: atest PlatformCompatTest Test: atest PlatformCompatPermissionsTest Change-Id: Ie9429477c9a1725b5cb67756787bf742038e5d2b
This commit is contained in:
committed by
Andrei-Valentin Onea
parent
55d16fac97
commit
26559bcb40
@@ -214,6 +214,11 @@
|
||||
<!-- permissions required for CTS test - PhoneStateListenerTest -->
|
||||
<uses-permission android:name="android.permission.LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH" />
|
||||
|
||||
<!-- Permissions required for ganting and logging -->
|
||||
<uses-permission android:name="android.permission.LOG_COMPAT_CHANGE"/>
|
||||
<uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG"/>
|
||||
<uses-permission android:name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG"/>
|
||||
|
||||
<!-- Permission required for CTS test - UiModeManagerTest -->
|
||||
<uses-permission android:name="android.permission.ENTER_CAR_MODE_PRIORITIZED"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user