commit | d16cc6801801677d56f79ce5794f31e41c5659ed | [log] [tgz] |
---|---|---|
author | Chad Brubaker <cbrubaker@google.com> | Thu Mar 23 11:07:32 2017 -0700 |
committer | Chad Brubaker <cbrubaker@google.com> | Thu Mar 23 11:26:10 2017 -0700 |
tree | 2beb09a6842c0541b2ec7ab3e9cc32337851a118 | |
parent | 6a10cba1ba3faae206ee9dbfcc6d0e277c694023 [diff] |
Allow Instant Apps to show toasts Toasts are used by framework/supportlib code, so don't block them outright. Bug: 36539171 Test: manual Change-Id: Ic5e1c599021224c3727cb18554ea04e6833fef2a
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 3727a5b..3d18160 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java
@@ -1441,11 +1441,6 @@ return ; } - if (isCallerInstantApp(pkg)) { - throw new SecurityException("Instant app " + pkg - + " is not allowed to create toasts"); - } - final boolean isSystemToast = isCallerSystem() || ("android".equals(pkg)); final boolean isPackageSuspended = isPackageSuspendedForUser(pkg, Binder.getCallingUid());