summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorHall Liu <hallliu@google.com>2020-05-29 16:23:05 -0700
committerRambo Wang <rambowang@google.com>2021-05-05 19:33:40 +0000
commit6d3455e48827515b3762f7adf2c98ef604f25433 (patch)
tree79bdfc05d81bd6dcb4334e4f2f489710badcc6e3 /tools/aapt2/java/JavaClassGenerator.cpp
parentb9680bac79d94fb10252fde5aa527e34c6d6e17e (diff)
Make LocationAccessQuery's builder safer to use
Add new methods on LocationAccessQuery.Builder to make it harder to screw up when using. Changes include: * Mandatory specification of min sdk levels for enforcing both fine and coarse permission * Mandatory "are-you-sure" check when both fine and coarse are above the base level (i.e. when there are api levels that are left unprotected) Also adapt TelephonyRegistry's permission checks to follow these new requirements on the builder. Fixes: 157170257 Test: CTS, unit tests, manual Merged-In: Ica8779dff4c671352b917a3ccc02cdd0e1c5856d Change-Id: Ica8779dff4c671352b917a3ccc02cdd0e1c5856d (cherry picked from commit d7c2351676fb4791cba780b2fec9e27c258b20be)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions