Merge "Restrict alarm broadcast" into oc-mr1-dev am: 3b0fc6bd38 am: d749dc3510 am: fd89965284
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14103469 Change-Id: I0d3cb5cadb4e36b1b92c23093794fc6e9d582df8
This commit is contained in:
@@ -5906,6 +5906,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)
|
||||
|
||||
Reference in New Issue
Block a user