Merge "Target alarm manager intent with package" into udc-dev

This commit is contained in:
Neil Fuller
2023-02-21 09:49:45 +00:00
committed by Android (Google) Code Review

View File

@@ -115,7 +115,7 @@ public class NetworkTimeUpdateService extends Binder {
TimeDetectorInternal timeDetectorInternal =
LocalServices.getService(TimeDetectorInternal.class);
// Broadcast alarms sent by system are immutable
Intent pollIntent = new Intent(ACTION_POLL, null);
Intent pollIntent = new Intent(ACTION_POLL, null).setPackage("android");
PendingIntent pendingPollIntent = PendingIntent.getBroadcast(mContext, POLL_REQUEST,
pollIntent, PendingIntent.FLAG_IMMUTABLE);
mRefreshCallbacks = new Engine.RefreshCallbacks() {