diff options
| author | Christopher Tate <ctate@google.com> | 2014-04-24 15:13:13 -0700 |
|---|---|---|
| committer | Christopher Tate <ctate@google.com> | 2014-04-24 15:13:13 -0700 |
| commit | e27ae55d6db8b5f80fb76c3e7637a834a14f5f0d (patch) | |
| tree | f6bb7ccbb67d69cb6e24b28c10836d5ce1b1abcd /core/java/android/os/RecoverySystem.java | |
| parent | 717f39c7d98c7e4b08f7bb88102c720cb8990004 (diff) | |
Send factory reset notification broadcasts at foreground priority
Bug 14296706
Change-Id: I07b39e808dbf724f5edd4a11445de3e47c9e862b
Diffstat (limited to 'core/java/android/os/RecoverySystem.java')
| -rw-r--r-- | core/java/android/os/RecoverySystem.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/os/RecoverySystem.java b/core/java/android/os/RecoverySystem.java index f671ed955659..cdde4c723da0 100644 --- a/core/java/android/os/RecoverySystem.java +++ b/core/java/android/os/RecoverySystem.java @@ -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() { |
