OSDN Git Service

Factor out telephony permission checks into a helper class.
authorJeff Davidson <jpd@google.com>
Wed, 14 Feb 2018 02:11:37 +0000 (18:11 -0800)
committerJeff Davidson <jpd@google.com>
Thu, 22 Feb 2018 01:30:41 +0000 (17:30 -0800)
commitd7bf38ad00833757562970e4bbe8ab3196d021cc
treee6d1bf84ef7f21a1d38ffd48a87144df5b4e4b83
parent31230bb1934870aa595ef458953e4b65da91b1b1
Factor out telephony permission checks into a helper class.

The aim is to cut down on duplicate code (for a particularly high-risk
area) and make it easier to expand READ_PHONE_STATE access to
carrier-privileged apps in a follow-up CL.

No major functional changes are intended, although some logging will
change slightly (different tag / less verbose carrier privilege
logging without DBG flag).

Bug: 70041899
Test: bit FrameworksTelephonyTests:*, nothing visibly broken on boot
Merged-In: I3b2aa9b8d6177a25d532060009508ef31baea69c
Change-Id: I3b2aa9b8d6177a25d532060009508ef31baea69c
services/core/java/com/android/server/TelephonyRegistry.java
telephony/java/com/android/internal/telephony/ITelephony.aidl
telephony/java/com/android/internal/telephony/TelephonyPermissions.java [new file with mode: 0644]