diff options
author | Nazanin Bakhshi <nazaninb@google.com> | 2021-04-21 22:04:04 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-04-21 22:04:04 +0000 |
commit | 1d1c7333500cc27b05ad7c73d89821f574136832 (patch) | |
tree | 6f6942e1de3bd8c6781831b2b43a2b79620b202e /telephony/java/com/android | |
parent | 93595946da0f590bd7e3d144de0246114a30591e (diff) | |
parent | 46160dc2c638ee91b07662786fd1c5ff46432985 (diff) |
Merge "Security fix: enforce read privilege permission to check package privileges in TelephonyManager" into sc-dev
Diffstat (limited to 'telephony/java/com/android')
-rw-r--r-- | telephony/java/com/android/internal/telephony/ITelephony.aidl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl index afc538d3bae3..00ddec298dcf 100644 --- a/telephony/java/com/android/internal/telephony/ITelephony.aidl +++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl @@ -1063,11 +1063,13 @@ interface ITelephony { /** * Similar to above, but check for the package whose name is pkgName. + * Requires that the calling app has READ_PRIVILEGED_PHONE_STATE permission */ int checkCarrierPrivilegesForPackage(int subId, String pkgName); /** * Similar to above, but check across all phones. + * Requires that the calling app has READ_PRIVILEGED_PHONE_STATE permission */ int checkCarrierPrivilegesForPackageAnyPhone(String pkgName); @@ -1075,6 +1077,8 @@ interface ITelephony { * Returns list of the package names of the carrier apps that should handle the input intent * and have carrier privileges for the given phoneId. * + * Requires that the calling app has READ_PRIVILEGED_PHONE_STATE permission + * * @param intent Intent that will be sent. * @param phoneId The phoneId on which the carrier app has carrier privileges. * @return list of carrier app package names that can handle the intent on phoneId. @@ -1443,11 +1447,13 @@ interface ITelephony { /** * Returns a list of packages that have carrier privileges for the specific phone. + * Requires that the calling app has READ_PRIVILEGED_PHONE_STATE permission */ List<String> getPackagesWithCarrierPrivileges(int phoneId); /** * Returns a list of packages that have carrier privileges. + * Requires that the calling app has READ_PRIVILEGED_PHONE_STATE permission */ List<String> getPackagesWithCarrierPrivilegesForAllPhones(); |