From cbaf2ac108a897e1f5aad3d768a2fc840d38f944 Mon Sep 17 00:00:00 2001 From: Eric Jeong Date: Fri, 11 Dec 2020 17:13:00 -0800 Subject: [PATCH] Send DROPBOX_ENTRY_ADDED to all users - DROPBOX_ENTRY_ADDED is sent to the system user. - In headless system user, the current user could not be the system user. - This CL make it broadcasted to all interested receivers. Bug: 158246058 Test: atest CtsAppExitTestCases: android.app.cts.ActivityManagerAppExitInfoTest#testAnr Change-Id: I897782a809ef5a115c536b03348296bdc4166630 --- .../core/java/com/android/server/DropBoxManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/DropBoxManagerService.java b/services/core/java/com/android/server/DropBoxManagerService.java index 028d41234dd0d..6560824fe3b7c 100644 --- a/services/core/java/com/android/server/DropBoxManagerService.java +++ b/services/core/java/com/android/server/DropBoxManagerService.java @@ -260,7 +260,7 @@ public final class DropBoxManagerService extends SystemService { if (!DropBoxManagerService.this.mBooted) { intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY); } - getContext().sendBroadcastAsUser(intent, UserHandle.SYSTEM, + getContext().sendBroadcastAsUser(intent, UserHandle.ALL, android.Manifest.permission.READ_LOGS); }