Loading telephony/java/android/telephony/TelephonyManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -4444,7 +4444,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) { Loading telephony/java/com/android/internal/telephony/ITelephony.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -1306,12 +1306,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 Loading Loading
telephony/java/android/telephony/TelephonyManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -4444,7 +4444,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) { Loading
telephony/java/com/android/internal/telephony/ITelephony.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -1306,12 +1306,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 Loading