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

Commit e27ae55d authored by Christopher Tate's avatar Christopher Tate
Browse files

Send factory reset notification broadcasts at foreground priority

Bug 14296706

Change-Id: I07b39e808dbf724f5edd4a11445de3e47c9e862b
parent 717f39c7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -375,6 +375,7 @@ public class RecoverySystem {
        final ConditionVariable condition = new ConditionVariable();

        Intent intent = new Intent("android.intent.action.MASTER_CLEAR_NOTIFICATION");
        intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
        context.sendOrderedBroadcastAsUser(intent, UserHandle.OWNER,
                android.Manifest.permission.MASTER_CLEAR,
                new BroadcastReceiver() {