Limited use key: feature flags.
Add feature flags to indicate whether KeyMint only enforce this feature in hardware with count == 1 or enforce with any number of the count (>=1). Test: compile Change-Id: Id9c13ee91b779164bd07ff20ae2b4c0e158fdb33 Merged-In: Id9c13ee91b779164bd07ff20ae2b4c0e158fdb33
This commit is contained in:
@@ -12133,6 +12133,8 @@ package android.content.pm {
|
||||
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_IRIS = "android.hardware.biometrics.iris";
|
||||
field public static final String FEATURE_KEYSTORE_LIMITED_USE_KEY = "android.hardware.keystore.limited_use_key";
|
||||
field public static final String FEATURE_KEYSTORE_SINGLE_USE_KEY = "android.hardware.keystore.single_use_key";
|
||||
field public static final String FEATURE_LEANBACK = "android.software.leanback";
|
||||
field public static final String FEATURE_LEANBACK_ONLY = "android.software.leanback_only";
|
||||
field public static final String FEATURE_LIVE_TV = "android.software.live_tv";
|
||||
|
||||
@@ -3224,6 +3224,24 @@ public abstract class PackageManager {
|
||||
@SdkConstant(SdkConstantType.FEATURE)
|
||||
public static final String FEATURE_APP_ENUMERATION = "android.software.app_enumeration";
|
||||
|
||||
/**
|
||||
* Feature for {@link #getSystemAvailableFeatures} and {@link #hasSystemFeature}: The device has
|
||||
* a Keystore implementation that can only enforce limited use key in hardware with max usage
|
||||
* count equals to 1.
|
||||
*/
|
||||
@SdkConstant(SdkConstantType.FEATURE)
|
||||
public static final String FEATURE_KEYSTORE_SINGLE_USE_KEY =
|
||||
"android.hardware.keystore.single_use_key";
|
||||
|
||||
/**
|
||||
* Feature for {@link #getSystemAvailableFeatures} and {@link #hasSystemFeature}: The device has
|
||||
* a Keystore implementation that can enforce limited use key in hardware with any max usage
|
||||
* count (including count equals to 1).
|
||||
*/
|
||||
@SdkConstant(SdkConstantType.FEATURE)
|
||||
public static final String FEATURE_KEYSTORE_LIMITED_USE_KEY =
|
||||
"android.hardware.keystore.limited_use_key";
|
||||
|
||||
/** @hide */
|
||||
public static final boolean APP_ENUMERATION_ENABLED_BY_DEFAULT = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user