Merge "Whitelist PHONE_STATE to wakeup apps" into oc-dev am: 41bf42a1c7

am: 0109e15888

Change-Id: I1bb9350302f759044847493f8e8805af84f18043
This commit is contained in:
Brad Ebinger
2017-04-24 21:51:27 +00:00
committed by android-build-merger

View File

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