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

Commit 5f801741 authored by Julia Reynolds's avatar Julia Reynolds Committed by android-build-team Robot
Browse files

Restrict alarm broadcast

To android only

Test: NotificationManagerTest, NotificationManagerServiceTest
Bug: 175614289
Change-Id: I4f8e56729d90f8f5288d08881129b1c45d5790e7
Merged-In: I4f8e56729d90f8f5288d08881129b1c45d5790e7
(cherry picked from commit abf15b73)
(cherry picked from commit 7dfcfe85)
parent 9d0c9eb5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4036,6 +4036,7 @@ public class NotificationManagerService extends SystemService {
            final PendingIntent pi = PendingIntent.getBroadcast(getContext(),
                    REQUEST_CODE_TIMEOUT,
                    new Intent(ACTION_NOTIFICATION_TIMEOUT)
                            .setPackage("android")
                            .setData(new Uri.Builder().scheme(SCHEME_TIMEOUT)
                                    .appendPath(record.getKey()).build())
                            .addFlags(Intent.FLAG_RECEIVER_FOREGROUND)