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

Commit e5c12bee authored by Patrick Baumann's avatar Patrick Baumann Committed by android-build-merger
Browse files

Merge "Adds instant app visibility to instumentation" into pi-dev

am: c0f025b2

Change-Id: I8a161d6eee0c8d4404edf19191f5b3b0d9fc2eec
parents 1468eb45 c0f025b2
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -4092,8 +4092,15 @@ public class PackageManagerService extends IPackageManager.Stub
            return false;
            return false;
        }
        }
        if (callerIsInstantApp) {
        if (callerIsInstantApp) {
            // request for a specific component; if it hasn't been explicitly exposed, filter
            // request for a specific component; if it hasn't been explicitly exposed through
            // property or instrumentation target, filter
            if (component != null) {
            if (component != null) {
                final PackageParser.Instrumentation instrumentation =
                        mInstrumentation.get(component);
                if (instrumentation != null
                        && isCallerSameApp(instrumentation.info.targetPackage, callingUid)) {
                    return false;
                }
                return !isComponentVisibleToInstantApp(component, componentType);
                return !isComponentVisibleToInstantApp(component, componentType);
            }
            }
            // request for application; if no components have been explicitly exposed, filter
            // request for application; if no components have been explicitly exposed, filter