diff options
author | 2022-12-14 15:22:06 +0000 | |
---|---|---|
committer | 2022-12-19 15:17:58 +0000 | |
commit | c203edb199f46b6e666e1feab816152cb24ef947 (patch) | |
tree | 3b51774e411cd850931babd865dee393457f89bb /packages/Shell/src | |
parent | 4ba0f81576d8052f7ad870a6c569702092755ee2 (diff) |
Revert "Revert "Refactor Bug report flow to work for all ADMIN users""
This reverts commit 08e9422e84789774e41e0ae3531617b66da2703d and adds fix for b/262355071
Reason for revert: Adding fix for b/262355071
Refactored check in PendingReports.authorizeReportImpl to allow sameProfileGroup users to approve incident and bug reports.
Change-Id: If074a230e912ae6c5cf9257836123f6b5995d340
Test: Tested manually able to take bugreports from the betterbug in
work profile
Bug: 262355071
Change-Id: Ib09851b9d991c809eb02a6d2fdfdbca2d03f5540
Diffstat (limited to 'packages/Shell/src')
-rw-r--r-- | packages/Shell/src/com/android/shell/BugreportProgressService.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/Shell/src/com/android/shell/BugreportProgressService.java b/packages/Shell/src/com/android/shell/BugreportProgressService.java index 68679c794c35..6f7d20a950d5 100644 --- a/packages/Shell/src/com/android/shell/BugreportProgressService.java +++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java @@ -455,8 +455,7 @@ 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.sendBroadcastAsUser(intent, UserHandle.SYSTEM, - android.Manifest.permission.DUMP); + context.sendBroadcast(intent, android.Manifest.permission.DUMP); } /** |