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

Commit 95eab267 authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Use sendBroadcastAsUser rather than sendBroadcast" am: d129a146

am: 93b232db

Change-Id: I749e98ea84dd8c3811d302848a14576c6aff8fb1
parents 83e46cba 93b232db
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package android.app.timezone;
import android.content.Context;
import android.content.Intent;
import android.os.ParcelFileDescriptor;
import android.os.UserHandle;

/**
 * Constants related to the contract between the Android system and the privileged time zone updater
@@ -82,6 +83,9 @@ public final class RulesUpdaterContract {
            byte[] checkTokenBytes) {
        Intent intent = createUpdaterIntent(updaterAppPackageName);
        intent.putExtra(EXTRA_CHECK_TOKEN, checkTokenBytes);
        context.sendBroadcast(intent, RulesUpdaterContract.UPDATE_TIME_ZONE_RULES_PERMISSION);
        context.sendBroadcastAsUser(
                intent,
                UserHandle.of(UserHandle.myUserId()),
                RulesUpdaterContract.UPDATE_TIME_ZONE_RULES_PERMISSION);
    }
}