diff options
| author | 2023-04-05 12:10:12 +0100 | |
|---|---|---|
| committer | 2023-04-05 12:14:47 +0100 | |
| commit | 3def94e8d5908c081132569c15d0767590153058 (patch) | |
| tree | 9fa20f185ab77329e43ec386b7e95d2399ae25fa | |
| parent | 10f7c412697d7ad70cde92cfb6e3c64e6019e5e4 (diff) | |
Send ACTION_REMOTE_BUGREPORT_DISPATCH braodcast to the SYSTEM user
Test: manually tested remote bug report flow on retail demo mode.
Bug: 274543518
Change-Id: I67cf87abe8f8ae51222cc6aa774dc45478060888
| -rw-r--r-- | packages/Shell/src/com/android/shell/BugreportProgressService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/Shell/src/com/android/shell/BugreportProgressService.java b/packages/Shell/src/com/android/shell/BugreportProgressService.java index 067efe97f6b6..e069a9ac776b 100644 --- a/packages/Shell/src/com/android/shell/BugreportProgressService.java +++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java @@ -455,7 +455,8 @@ public class BugreportProgressService extends Service { intent.putExtra(DevicePolicyManager.EXTRA_REMOTE_BUGREPORT_HASH, bugreportHash); intent.putExtra(DevicePolicyManager.EXTRA_REMOTE_BUGREPORT_NONCE, nonce); intent.putExtra(EXTRA_BUGREPORT, bugreportFileName); - context.sendBroadcast(intent, android.Manifest.permission.DUMP); + context.sendBroadcastAsUser(intent, UserHandle.SYSTEM, + android.Manifest.permission.DUMP); } /** |