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

Commit 2b554fa9 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Add feature to disable slices" am: fa871a36

Change-Id: I7b64d2b937a0ebe183440c430514e821e1174faf
parents c7243a6d fa871a36
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2883,6 +2883,13 @@ public abstract class PackageManager {
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_IPSEC_TUNNELS = "android.software.ipsec_tunnels";

    /**
     * Feature for {@link #getSystemAvailableFeatures} and {@link #hasSystemFeature}:
     * The device does not have a slices implementation.
     * @hide
     */
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_SLICES_DISABLED = "android.software.slices_disabled";
    /**
     * Extra field name for the URI to a verification file. Passed to a package
     * verifier.
+1 −2
Original line number Diff line number Diff line
@@ -939,7 +939,6 @@ public final class SystemServer {
                false);
        boolean disableCameraService = SystemProperties.getBoolean("config.disable_cameraservice",
                false);
        boolean disableSlices = SystemProperties.getBoolean("config.disable_slices", false);
        boolean enableLeftyService = SystemProperties.getBoolean("config.enable_lefty", false);

        boolean isEmulator = SystemProperties.get("ro.kernel.qemu").equals("1");
@@ -1913,7 +1912,7 @@ public final class SystemServer {
            traceEnd();
        }

        if (!disableSlices) {
        if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_SLICES_DISABLED)) {
            traceBeginAndSlog("StartSliceManagerService");
            mSystemServiceManager.startService(SLICE_MANAGER_SERVICE_CLASS);
            traceEnd();