Merge: Send UpdateLock broadcasts to manifest receivers
So that e.g. the system update service doesn't need to run all the time. Bug 5543442 Change-Id: I4cd38240e67851daa5542a2962953e5dbed15b86
This commit is contained in:
@ -77,7 +77,7 @@ public class UpdateLockService extends IUpdateLock.Stub {
|
||||
Intent intent = new Intent(UpdateLock.UPDATE_LOCK_CHANGED)
|
||||
.putExtra(UpdateLock.NOW_IS_CONVENIENT, state)
|
||||
.putExtra(UpdateLock.TIMESTAMP, System.currentTimeMillis())
|
||||
.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
|
||||
.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
|
||||
mContext.sendStickyBroadcast(intent);
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(oldIdent);
|
||||
|
Reference in New Issue
Block a user