diff options
author | Andrei Onea <andreionea@google.com> | 2020-01-15 19:09:52 +0000 |
---|---|---|
committer | Andrei-Valentin Onea <andreionea@google.com> | 2020-02-06 12:22:42 +0000 |
commit | 26559bcb4067fb6f1c2cca8cc7ff0510294893af (patch) | |
tree | 230ce884140e8dfee3ab9df9e2b0781993875bfb /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 55d16fac97dce478e5a5b5a5b85ecae9cefef462 (diff) |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions