summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJeff Davidson <jpd@google.com>2018-02-28 17:50:16 -0800
committerJeff Davidson <jpd@google.com>2018-03-15 09:59:26 -0700
commit29da89ffbff011d0f1c0a428ee82b26b4bfa1b6b (patch)
tree06724e9ac6c9b481106dfd420810725fc3456fa1 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent50f118a1214d00a4be1cadc9efb2bcf787927f3f (diff)
Allow carrier-privileged apps to register telephony listeners.
For TelephonyManager#listen, we check carrier privileges if READ_PHONE_STATE is missing for any calls which enforce the permission. For calls which check it and behave differently (by redacting sensitive info), we defer the permission check until the actual event occurs, at which point it is checked based on the current state of the device. For SubscriptionManager#addOnSubscriptionsChangedListener, we remove the existing permission check for READ_PHONE_STATE altogether. The event itself contains no information, and reading subscriptions still requires either READ_PHONE_STATE or carrier privileges on the subscription in question. Also updates incorrect Javadoc on PhoneStateListener#LISTEN_SIGNAL_STRENGTH, which does not actually check any permissions by design. Bug: 70041899 Fixes: 74034127 Test: TreeHugger + E2E test w/ a carrier-privileged app Change-Id: I84a56ad3972b9edcfdefcbb43ef174c54cdcac00 Merged-In: I84a56ad3972b9edcfdefcbb43ef174c54cdcac00 (cherry pick from commit 62b994b3cf0f05801bd8b58a5874118c404d656b)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions