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
This commit is contained in:
Nikhil Kumar
2023-04-05 12:10:12 +01:00
parent 10f7c41269
commit 3def94e8d5

View File

@@ -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);
}
/**