Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbaf2ac1 authored by Eric Jeong's avatar Eric Jeong
Browse files

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
parent 108dd944
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
        }