diff --git a/api/current.txt b/api/current.txt index 2019c3e9a816e..5437d5680903a 100644 --- a/api/current.txt +++ b/api/current.txt @@ -28469,6 +28469,7 @@ package android.security { public static abstract class KeyStoreKeyProperties.Origin { field public static final int GENERATED = 1; // 0x1 field public static final int IMPORTED = 2; // 0x2 + field public static final int UNKNOWN = 4; // 0x4 } public static abstract class KeyStoreKeyProperties.OriginEnum implements java.lang.annotation.Annotation { diff --git a/api/system-current.txt b/api/system-current.txt index df2038b8c0810..b2bee6ebfbe2c 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -30472,6 +30472,7 @@ package android.security { public static abstract class KeyStoreKeyProperties.Origin { field public static final int GENERATED = 1; // 0x1 field public static final int IMPORTED = 2; // 0x2 + field public static final int UNKNOWN = 4; // 0x4 } public static abstract class KeyStoreKeyProperties.OriginEnum implements java.lang.annotation.Annotation { diff --git a/keystore/java/android/security/KeyStoreKeyProperties.java b/keystore/java/android/security/KeyStoreKeyProperties.java index a0faf88ec9e12..206103f44908f 100644 --- a/keystore/java/android/security/KeyStoreKeyProperties.java +++ b/keystore/java/android/security/KeyStoreKeyProperties.java @@ -217,7 +217,7 @@ public abstract class KeyStoreKeyProperties { } @Retention(RetentionPolicy.SOURCE) - @IntDef({Origin.GENERATED, Origin.IMPORTED}) + @IntDef({Origin.GENERATED, Origin.IMPORTED, Origin.UNKNOWN}) public @interface OriginEnum {} /** @@ -235,8 +235,6 @@ public abstract class KeyStoreKeyProperties { /** * Origin of the key is unknown. This can occur only for keys backed by an old TEE * implementation which does not record origin information. - * - * @hide */ public static final int UNKNOWN = 1 << 2;