Allow TIMEZONE_CHANGED to launch apps

Bug 37866305
Test: manual

Change-Id: If15df909e99e910c012f2a7b33ae8600c0f97d8d
This commit is contained in:
Christopher Tate
2017-05-03 18:10:39 -07:00
parent 838e5f04be
commit 5cdf9f8938

View File

@@ -1049,6 +1049,7 @@ class AlarmManagerService extends SystemService {
if (timeZoneWasChanged) {
Intent intent = new Intent(Intent.ACTION_TIMEZONE_CHANGED);
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING
| Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND
| Intent.FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS);
intent.putExtra("time-zone", zone.getID());
getContext().sendBroadcastAsUser(intent, UserHandle.ALL);