diff options
author | Michael Groover <mpgroover@google.com> | 2018-10-11 19:55:09 -0700 |
---|---|---|
committer | Michael Groover <mpgroover@google.com> | 2018-10-12 20:18:36 +0000 |
commit | 3ec197b793abf611b1968d01b4ee9194e1ed6c02 (patch) | |
tree | be9c4161a2cf3eb435a4160dbbc1e7fa995a279d /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | dcd0b0abde284a1497948b7af89fbb9a6d130fb5 (diff) |
Temporarily relax the privileged device identifier access check
Access to device identifiers was moved from a runtime permission to a
privileged permission; this change broke some first party apps that query for
these identifiers. This change introduces a flag in TelephonyPermissions that
will allow the privileged check to be relaxed so that dummy data is returned
(null for TelephonyManager methods and Build.UNKNOWN for Build#getSerial)
regardless of target SDK instead of throwing a SecurityException to prevent
app breakage. This flag will be changed back to the default false once all of
the first party apps have the privileged permission granted or their own
unique ID.
Bug: 117611604
Test: cts-tradefed run cts-dev -m CtsTelephony3TestCases
Change-Id: I294455e4c7e589def21d0c437ec1ef398bd44731
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions