Android KeyStore with StrongBox: How to test for User Presence?
问题 Android API 28 running on a Pixel 3 gives the option to require User Presence for keys generated inside the Android KeyStore. But how do I actually test for user presence when creating a signature with that key? Am I missing something in the docs? KeyGenParameterSpec.Builder keyGenSpec = new KeyGenParameterSpec.Builder("alias", KeyProperties.PURPOSE_SIGN) .setDigests(KeyProperties.DIGEST_SHA256) .setKeySize(256) .setIsStrongBoxBacked(true) .setUserPresenceRequired(true); KeyPairGenerator