Skip to content

Commit cbaf2ac

Browse files
author
Eric Jeong
committed
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
1 parent 108dd94 commit cbaf2ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/core/java/com/android/server/DropBoxManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private void prepareAndSendBroadcast(Intent intent) {
260260
if (!DropBoxManagerService.this.mBooted) {
261261
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
262262
}
263-
getContext().sendBroadcastAsUser(intent, UserHandle.SYSTEM,
263+
getContext().sendBroadcastAsUser(intent, UserHandle.ALL,
264264
android.Manifest.permission.READ_LOGS);
265265
}
266266

0 commit comments

Comments
 (0)