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

Commit b6bb1c9f authored by Alex Buynytskyy's avatar Alex Buynytskyy Committed by Android (Google) Code Review
Browse files

Merge "Fix default filtration." into main

parents 934253b9 ba63ae53
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -516,6 +516,13 @@ final class ResolveIntentHelper {
            @PackageManager.ResolveInfoFlagsBits long flags, int userId) {
        if (!mUserManager.exists(userId)) return Collections.emptyList();
        final int callingUid = Binder.getCallingUid();

        // Only if the service query is coming from the system process,
        // it should be allowed to match quarantined components
        if (callingUid != Process.SYSTEM_UID) {
            flags |= PackageManager.FILTER_OUT_QUARANTINED_COMPONENTS;
        }

        final String instantAppPkgName = computer.getInstantAppPackageName(callingUid);
        flags = computer.updateFlagsForResolve(flags, userId, callingUid, false /*includeInstantApps*/,
                false /* isImplicitImageCaptureIntentAndNotSetByDpc */);