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

Commit 43c8fd2a authored by Yan Yan's avatar Yan Yan
Browse files

Add and expose IPsec tunnel migration feature flag

This patch adds a feature flag for IPsec tunnel migration. This
implies XFRM_MIGRATE enabled in the kernel.

Bug: 169169973
Test: make update-api
Change-Id: I216ae2863a6c712f8eb2b9405674a45e0a19e888
parent b6d9367b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11938,6 +11938,7 @@ package android.content.pm {
    field public static final String FEATURE_IDENTITY_CREDENTIAL_HARDWARE_DIRECT_ACCESS = "android.hardware.identity_credential_direct_access";
    field public static final String FEATURE_INPUT_METHODS = "android.software.input_methods";
    field public static final String FEATURE_IPSEC_TUNNELS = "android.software.ipsec_tunnels";
    field public static final String FEATURE_IPSEC_TUNNEL_MIGRATION = "android.software.ipsec_tunnel_migration";
    field public static final String FEATURE_IRIS = "android.hardware.biometrics.iris";
    field public static final String FEATURE_KEYSTORE_APP_ATTEST_KEY = "android.hardware.keystore.app_attest_key";
    field public static final String FEATURE_KEYSTORE_LIMITED_USE_KEY = "android.hardware.keystore.limited_use_key";
+11 −0
Original line number Diff line number Diff line
@@ -4047,6 +4047,17 @@ 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 has
     * the requisite kernel support for migrating IPsec tunnels to new source/destination addresses.
     *
     * <p>This feature implies that the device supports XFRM Migration (CONFIG_XFRM_MIGRATE) and has
     * the kernel fixes to support cross-address-family IPsec tunnel migration
     */
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_IPSEC_TUNNEL_MIGRATION =
            "android.software.ipsec_tunnel_migration";

    /**
     * Feature for {@link #getSystemAvailableFeatures} and
     * {@link #hasSystemFeature}: The device supports a system interface for the user to select