Merge "Restrict alarm broadcast" into oc-mr1-dev

This commit is contained in:
Julia Reynolds
2021-04-27 16:57:51 +00:00
committed by Android (Google) Code Review

View File

@@ -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)