commit | 9817060b7c011b18bbf6a6a38641d6422aed9759 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Thu Mar 23 20:58:29 2017 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Mar 23 20:58:37 2017 +0000 |
tree | 49285e554ebba63c63d567d30487a0947d99fb28 | |
parent | ab363e838a91c4abf37947fd2ff91316a9a6106f [diff] | |
parent | d16cc6801801677d56f79ce5794f31e41c5659ed [diff] |
Merge "Allow Instant Apps to show toasts"
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());