Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d16cc680 authored by Chad Brubaker's avatar Chad Brubaker
Browse files

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
parent 6a10cba1
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1441,11 +1441,6 @@ public class NotificationManagerService extends SystemService {
                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());