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

Commit c9041747 authored by John Wu's avatar John Wu Committed by Android (Google) Code Review
Browse files

Merge "Make pm#resolveIntent resolve non-exported components" into main

parents 71a2849b a0ca94d2
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -126,10 +126,12 @@ final class ResolveIntentHelper {
                    userId, resolveForStart, /*allowDynamicSplits*/ true);
            Trace.traceEnd(TRACE_TAG_PACKAGE_MANAGER);

            if (resolveForStart) {
                var args = new SaferIntentUtils.IntentArgs(intent, resolvedType,
                    false /* isReceiver */, resolveForStart, filterCallingUid, callingPid);
                        false /* isReceiver */, true, filterCallingUid, callingPid);
                args.platformCompat = mPlatformCompat;
                SaferIntentUtils.filterNonExportedComponents(args, query);
            }

            final boolean queryMayBeFiltered =
                    UserHandle.getAppId(filterCallingUid) >= Process.FIRST_APPLICATION_UID