Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 503768d0 authored by sqian's avatar sqian Committed by android-build-merger
Browse files

Merge "Check AppOps bit for TelephonyManager#getForbiddenPlmns" into pi-dev

am: a97d430a

Change-Id: I1dac4e925743f016f4fbb11919b4f326082a4db3
parents d0247a90 a97d430a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5210,7 +5210,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) {
+2 −3
Original line number Diff line number Diff line
@@ -1432,13 +1432,12 @@ interface ITelephony {
     * Returns a list of Forbidden PLMNs from the specified SIM App
     * 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