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

Commit adcc94f1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Filter instant apps with different names" into oc-dev

parents aa2286e4 1dfb21b6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -7207,12 +7207,15 @@ public class PackageManagerService extends IPackageManager.Stub
                    // load resources from the correct package
                    installerInfo.resolvePackageName = info.getComponentInfo().packageName;
                    resolveInfos.set(i, installerInfo);
                }
                    continue;
                }
            }
            // caller is a full app, don't need to apply any other filtering
            if (ephemeralPkgName == null) {
                continue;
            } else if (ephemeralPkgName.equals(info.activityInfo.packageName)) {
                // caller is same app; don't need to apply any other filtering
                continue;
            }
            // allow activities that have been explicitly exposed to ephemeral apps
            if (!isEphemeralApp