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

Commit 51de96af authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Whitelist PHONE_STATE to wakeup apps

Whitelists PHONE_STATE to wake up apps that are not
running when this intent is broadcast.

The bug to track removing this intent from the whitelist is b/37579761

Test: Compile and run
Change-Id: I89987195c9e6d5160b40666fbfc3893602ab1c15
parent 67ee79e8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1531,6 +1531,9 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
            intent.putExtra(PhoneConstants.SLOT_KEY, phoneId);
        }

        // Wakeup apps for the (SUBSCRIPTION_)PHONE_STATE broadcast.
        intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);

        // Send broadcast twice, once for apps that have PRIVILEGED permission and once for those
        // that have the runtime one
        mContext.sendBroadcastAsUser(intent, UserHandle.ALL,