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

Commit 576167f5 authored by TYM Tsai's avatar TYM Tsai
Browse files

Flag removal: allow_sdk_sandbox_query_intent_activities

Bug: 409605960
Flag: EXEMPT removing android.content.pm.allow_sdk_sandbox_query_intent_activities
Test: atest CtsPackageInstallTestCases
Change-Id: If8449a364d4c5a3277f58e02b48bd7b8b12784bc
parent 39d4c919
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -181,13 +181,6 @@ flag {
    is_fixed_read_only: true
    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 {
flag {
    name: "emergency_install_permission"
    name: "emergency_install_permission"
    is_exported: true
    is_exported: true
+1 −3
Original line number Original line Diff line number Diff line
@@ -24,7 +24,6 @@ import static com.android.server.pm.AppsFilterUtils.requestsQueryAllPackages;


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


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


    /**
    /**