Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 264eac12 authored by Neil Fuller's avatar Neil Fuller
Browse files

Target alarm manager intent with package

Target alarm manager intent with package: The purpose of the intent is
to trigger network time refreshes so there should be no reason for other
components to listen for it.

This was suggested by the Android broadcasts team.

Test: manual / treehugger
Bug: 269425914
Change-Id: I2cf26ffe47abbb9abdcb039bd9387a7275db501e
parent 95110935
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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() {