summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMichael Groover <mpgroover@google.com>2020-03-20 13:13:36 -0700
committerMichael Groover <mpgroover@google.com>2020-03-20 13:13:36 -0700
commita9533225750b3c11e08b62a403d232942eec47eb (patch)
tree7aef3077675201786b023268611db78e947a6d4d /tools/aapt2/java/JavaClassGenerator_test.cpp
parentea920f597da01a1acb9f0ca6be8e6affdf744438 (diff)
Add method to clear out SubscriptionInfo#getCardString
In Androird 10 access to device identifiers was limited to apps with the READ_PRIVILEGED_PHONE_STATE permission, carrier privileges, the READ_DEVICE_IDENTIFIERS appop set to allow, or those that pass a device / profile owner check. TelephonyManager#getSimSerialNumber was guarded behind these new access requirements, but the same value is still accessible as the cardString from the SubscriptionInfo. While getCardString is a hidden API SubscriptionInfo#toString can be used to obtain this value. Bug: 152057778 Test: atest SubscriptionControllerTest Change-Id: I9b8786a321b1ba79d81b74c3041589f30df8e9c8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions