Merge "Whitelist PHONE_STATE to wakeup apps" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
41bf42a1c7
@@ -1531,6 +1531,9 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
|
|||||||
intent.putExtra(PhoneConstants.SLOT_KEY, phoneId);
|
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
|
// Send broadcast twice, once for apps that have PRIVILEGED permission and once for those
|
||||||
// that have the runtime one
|
// that have the runtime one
|
||||||
mContext.sendBroadcastAsUser(intent, UserHandle.ALL,
|
mContext.sendBroadcastAsUser(intent, UserHandle.ALL,
|
||||||
|
|||||||
Reference in New Issue
Block a user