diff options
| author | 2018-04-30 15:29:19 -0700 | |
|---|---|---|
| committer | 2018-04-30 15:29:19 -0700 | |
| commit | 4e0dd1197aeee54c5c5c44193c00d848344ab7d8 (patch) | |
| tree | 6f19b995cea2e4ee210a1e038c40710dc0f17a0d | |
| parent | 60fb81edda47a733c544ee6a4e16415bafa15cb7 (diff) | |
| parent | 0a7c41615e61a84c694cb11c9d146cb4bbd14ddc (diff) | |
Merge "Fix broken check for TelephonyManager#getForbiddenPlmns" into oc-dev
am: 0a7c41615e
Change-Id: I259380ed027d31c4b8292f366590f0757f540766
| -rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 2 | ||||
| -rw-r--r-- | telephony/java/com/android/internal/telephony/ITelephony.aidl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index e334c631d550..03b635d7177c 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -4539,7 +4539,7 @@ public class TelephonyManager { ITelephony telephony = getITelephony(); if (telephony == null) return null; - return telephony.getForbiddenPlmns(subId, appType); + return telephony.getForbiddenPlmns(subId, appType, mContext.getOpPackageName()); } catch (RemoteException ex) { return null; } catch (NullPointerException ex) { diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl index 9262ec5ed53b..235b5eecb986 100644 --- a/telephony/java/com/android/internal/telephony/ITelephony.aidl +++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl @@ -1352,12 +1352,12 @@ interface ITelephony { * Returns null if the query fails. * * - * <p>Requires that the calling app has READ_PRIVILEGED_PHONE_STATE + * <p>Requires that the calling app has READ_PRIVILEGED_PHONE_STATE or READ_PHONE_STATE * * @param subId subscription ID used for authentication * @param appType the icc application type, like {@link #APPTYPE_USIM} */ - String[] getForbiddenPlmns(int subId, int appType); + String[] getForbiddenPlmns(int subId, int appType, String callingPackage); /** * Check if phone is in emergency callback mode |