summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJeff Davidson <jpd@google.com>2018-02-23 15:27:46 -0800
committerJeff Davidson <jpd@google.com>2018-03-12 18:48:03 -0700
commite652cb17360f7d0aeb6ff53798ae06cdc76f851d (patch)
tree826de71b92dcbf09df3676b3911368593e5de765 /tools/aapt2/java/JavaClassGenerator.cpp
parentd82b35668597860ee5b42f6ee4c6ccfa707224fa (diff)
Allow carrier privileged apps to access Telephony/Subscription APIs.
-All public APIs in TelephonyManager which require READ_PHONE_STATE will now also be documented to accept carrier privileged callers as well. (One exception is the change callbacks in each, which will be addressed in a separate CL). -For SubscriptionManager, callers without READ_PHONE_STATE will now be able to access the subscription list; however, the resulting list will be filtered to only include subscriptions for which the caller has carrier privileges. -All @see references to hasCarrierPrivileges have been removed in favor of an inline {@link}. The @see section is set apart from the rest of the Javadoc and thus appears out of context of where it's actually relevant; moreover, it is often placed in the middle of a line which makes it invalid. Using {@link} inlines the reference where it's actually relevant. -@SuppressAutodoc is added to any public method which has a @RequiresPermission declaration that isn't a sufficient description of the allowed callers, i.e. for APIs which accept carrier-privileged callers, or the default dialer app or other exceptional cases. This ensures redundant (but incorrect) requires permission declarations aren't autogenerated. Bug: 70041899 Test: TreeHugger, unit tests in topic Change-Id: Ia5cc145c19d99fe2b87e3425bb95281980edef6f Merged-In: Ia5cc145c19d99fe2b87e3425bb95281980edef6f (cherry picked from commit bc10ce1efec7819d67cbd4b457ef91ce9db062cb)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions