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

Commit d24e4eaf authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

OP_READ_PHONE_STATE AppOp check for getMergedSubscriberIds

Bug: 21726452
Bug: 21878243
Change-Id: I390386e28d8f948b8672a212ac413dfa61e54a15
parent d1419ed2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2143,7 +2143,7 @@ public class TelephonyManager {
        try {
        try {
            ITelephony telephony = getITelephony();
            ITelephony telephony = getITelephony();
            if (telephony != null)
            if (telephony != null)
                return telephony.getMergedSubscriberIds();
                return telephony.getMergedSubscriberIds(mContext.getOpPackageName());
        } catch (RemoteException ex) {
        } catch (RemoteException ex) {
        } catch (NullPointerException ex) {
        } catch (NullPointerException ex) {
        }
        }
+1 −1
Original line number Original line Diff line number Diff line
@@ -795,7 +795,7 @@ interface ITelephony {
     */
     */
    String getLine1AlphaTagForDisplay(int subId, String callingPackage);
    String getLine1AlphaTagForDisplay(int subId, String callingPackage);


    String[] getMergedSubscriberIds();
    String[] getMergedSubscriberIds(String callingPackage);


    /**
    /**
     * Override the operator branding for the current ICCID.
     * Override the operator branding for the current ICCID.