@@ -889,7 +889,7 @@ public void enqueueNotificationInternal(String pkg, int callingUid, int callingP
889889 final boolean isSystemNotification = ("android" .equals (pkg ));
890890
891891 userId = ActivityManager .handleIncomingUser (callingPid ,
892- callingUid , userId , true , true , "enqueueNotification" , pkg );
892+ callingUid , userId , true , false , "enqueueNotification" , pkg );
893893 final UserHandle user = new UserHandle (userId );
894894
895895 // Limit the number of notifications that any given package except the android
@@ -1287,7 +1287,7 @@ boolean cancelAllNotificationsInt(String pkg, int mustHaveFlags,
12871287 public void cancelNotificationWithTag (String pkg , String tag , int id , int userId ) {
12881288 checkCallerIsSystemOrSameApp (pkg );
12891289 userId = ActivityManager .handleIncomingUser (Binder .getCallingPid (),
1290- Binder .getCallingUid (), userId , true , true , "cancelNotificationWithTag" , pkg );
1290+ Binder .getCallingUid (), userId , true , false , "cancelNotificationWithTag" , pkg );
12911291 // Don't allow client applications to cancel foreground service notis.
12921292 cancelNotification (pkg , tag , id , 0 ,
12931293 Binder .getCallingUid () == Process .SYSTEM_UID
@@ -1298,7 +1298,7 @@ public void cancelAllNotifications(String pkg, int userId) {
12981298 checkCallerIsSystemOrSameApp (pkg );
12991299
13001300 userId = ActivityManager .handleIncomingUser (Binder .getCallingPid (),
1301- Binder .getCallingUid (), userId , true , true , "cancelAllNotifications" , pkg );
1301+ Binder .getCallingUid (), userId , true , false , "cancelAllNotifications" , pkg );
13021302
13031303 // Calling from user space, don't allow the canceling of actively
13041304 // running foreground services.
0 commit comments