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

Commit cee2cada authored by TYM Tsai's avatar TYM Tsai Committed by Android (Google) Code Review
Browse files

Merge "Flag removal: allow_sdk_sandbox_query_intent_activities" into main

parents 84ea134b 576167f5
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -167,13 +167,6 @@ flag {
    is_fixed_read_only: true
}

flag {
    name: "allow_sdk_sandbox_query_intent_activities"
    namespace: "package_manager_service"
    description: "Feature flag to allow the sandbox SDK to query intent activities of the client app."
    bug: "295842134"
}

flag {
    name: "emergency_install_permission"
    is_exported: true
+1 −3
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ import static com.android.server.pm.AppsFilterUtils.requestsQueryAllPackages;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.content.pm.Flags;
import android.content.pm.SigningDetails;
import android.os.Binder;
import android.os.Handler;
@@ -320,8 +319,7 @@ public abstract class AppsFilterBase implements AppsFilterSnapshot {
    }

    private static boolean isQueryableBySdkSandbox(int callingUid, int targetUid) {
        return Flags.allowSdkSandboxQueryIntentActivities()
                && targetUid == Process.getAppUidForSdkSandboxUid(callingUid);
        return targetUid == Process.getAppUidForSdkSandboxUid(callingUid);
    }

    /**