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

Commit 774afb9a authored by Svet Ganov's avatar Svet Ganov
Browse files

Fix calling package for app ops

Change-Id: Ie867262e74d0b09e16193cb575b1c1cf942c83cb
parent 641207d1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2571,10 +2571,11 @@ public class TelephonyManager {
     *               LISTEN_ flags.
     */
    public void listen(PhoneStateListener listener, int events) {
        String pkgForDebug = mContext != null ? mContext.getPackageName() : "<unknown>";
        if (mContext == null) return;
        try {
            Boolean notifyNow = (getITelephony() != null);
            sRegistry.listenForSubscriber(listener.mSubId, pkgForDebug, listener.callback, events, notifyNow);
            sRegistry.listenForSubscriber(listener.mSubId, mContext.getOpPackageName(),
                    listener.callback, events, notifyNow);
        } catch (RemoteException ex) {
            // system process dead
        } catch (NullPointerException ex) {