summaryrefslogtreecommitdiff
path: root/tests/net/java/com/android/server/IpSecServiceParameterizedTest.java
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 10:44:41 -0700
commit01efe5e563c434d92c755e3fa2079d56d7d4dc99 (patch)
treefc94a14b9dab591762b1127155218968d1eb5288 /tests/net/java/com/android/server/IpSecServiceParameterizedTest.java
parente70b94815ace004578385615e9767add5286590d (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 picked from commit 62b994b3cf0f05801bd8b58a5874118c404d656b)
Diffstat (limited to 'tests/net/java/com/android/server/IpSecServiceParameterizedTest.java')
0 files changed, 0 insertions, 0 deletions