-
- Downloads
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
Showing
- core/res/AndroidManifest.xml 13 additions, 0 deletionscore/res/AndroidManifest.xml
- core/tests/coretests/AndroidManifest.xml 4 additions, 0 deletionscore/tests/coretests/AndroidManifest.xml
- data/etc/com.android.settings.xml 3 additions, 0 deletionsdata/etc/com.android.settings.xml
- data/etc/privapp-permissions-platform.xml 4 additions, 0 deletionsdata/etc/privapp-permissions-platform.xml
- packages/Shell/AndroidManifest.xml 5 additions, 0 deletionspackages/Shell/AndroidManifest.xml
- services/core/java/com/android/server/compat/PlatformCompat.java 45 additions, 0 deletions...s/core/java/com/android/server/compat/PlatformCompat.java
- services/tests/mockingservicestests/AndroidManifest.xml 2 additions, 0 deletionsservices/tests/mockingservicestests/AndroidManifest.xml
- services/tests/servicestests/AndroidManifest.xml 2 additions, 0 deletionsservices/tests/servicestests/AndroidManifest.xml
- services/tests/uiservicestests/AndroidManifest.xml 2 additions, 0 deletionsservices/tests/uiservicestests/AndroidManifest.xml
- tests/PlatformCompatGating/Android.bp 3 additions, 6 deletionstests/PlatformCompatGating/Android.bp
- tests/PlatformCompatGating/AndroidManifest.xml 1 addition, 1 deletiontests/PlatformCompatGating/AndroidManifest.xml
- tests/PlatformCompatGating/AndroidTest.xml 0 additions, 1 deletiontests/PlatformCompatGating/AndroidTest.xml
- tests/PlatformCompatGating/src/com/android/tests/gating/PlatformCompatGatingTest.java 7 additions, 6 deletions...rc/com/android/tests/gating/PlatformCompatGatingTest.java
- tests/PlatformCompatGating/src/com/android/tests/gating/PlatformCompatPermissionsTest.java 319 additions, 0 deletions...m/android/tests/gating/PlatformCompatPermissionsTest.java
- tests/PlatformCompatGating/test-rules/Android.bp 1 addition, 1 deletiontests/PlatformCompatGating/test-rules/Android.bp
- tests/PlatformCompatGating/test-rules/src/android/compat/testing/PlatformCompatChangeRule.java 11 additions, 1 deletion.../src/android/compat/testing/PlatformCompatChangeRule.java
Loading
Please register or sign in to comment