From c203edb199f46b6e666e1feab816152cb24ef947 Mon Sep 17 00:00:00 2001 From: Nikhil Kumar Date: Wed, 14 Dec 2022 15:22:06 +0000 Subject: 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 --- packages/Shell/src/com/android/shell/BugreportProgressService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'packages/Shell/src') 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); } /** -- cgit v1.2.3-59-g8ed1b