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

Commit 1b6b7ba9 authored by Linus Tufvesson's avatar Linus Tufvesson
Browse files

Bump min SDK level

Controlled by android.content.pm.min_target_sdk_24

Using is_fixed_read_only since flag is read before DeviceConfig is
availble.

Test: presubmit with flagged turned on
Bug: 297603927

Change-Id: I1bbd33e959774ebe01f1e1fb0ea0b556c620f471
parent eb7be1bf
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -206,3 +206,11 @@ flag {
    description: "Feature flag to enable pre-verified domains"
    bug: "307327678"
}

flag {
    name: "min_target_sdk_24"
    namespace: "responsible_apis"
    description: "Feature flag to bump min target sdk to 24"
    bug: "297603927"
    is_fixed_read_only: true
}
+2 −1
Original line number Diff line number Diff line
@@ -569,7 +569,8 @@ public class PackageManagerService implements PackageSender, TestUtilityService
     * target sdk apps as malware can target older sdk versions to avoid
     * the enforcement of new API behavior.
     */
    public static final int MIN_INSTALLABLE_TARGET_SDK = Build.VERSION_CODES.M;
    public static final int MIN_INSTALLABLE_TARGET_SDK =
            Flags.minTargetSdk24() ? Build.VERSION_CODES.N : Build.VERSION_CODES.M;

    // Compilation reasons.
    // TODO(b/260124949): Clean this up with the legacy dexopt code.