Merge "Fix broken check for TelephonyManager#getForbiddenPlmns" into oc-dev

am: 0a7c41615e

Change-Id: I259380ed027d31c4b8292f366590f0757f540766
This commit is contained in:
android-build-team Robot
2018-04-30 15:29:19 -07:00
committed by android-build-merger
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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