[MOD-2553] ti.identity fails on Android 10
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2020-02-12T14:59:07.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 9.0.0 |
| Components | Identity |
| Labels | android, android-10, ti.identity |
| Reporter | grebulon |
| Assignee | Gary Mathews |
| Created | 2019-09-11T13:05:00.000+0000 |
| Updated | 2020-02-12T14:59:12.000+0000 |
Description
FingerprintHeper#initCipher() fails. Log shows:
E/KeyStore: generateKeyInternal failed on response 2
E/FingerPrintHelper: (KrollRuntimeThread) [16,15974] Unable to initialize cipher
D/TestApp: (KrollRuntimeThread) [1853,17830] Platform.TouchID.authenticate: {"error":"Failed to encrypt the data with the generated key.","success":false}
To reproduce, just call:
require('ti.identity').authenticate({callback:function(d) {});
This happened to me with Pixel 2 (google walleye) on Android 10 (API 29)
Probably needs to migrate to BiometricPrompt and BiometricManager.
ti.identity: https://github.com/appcelerator-modules/titanium-identity/pull/42
Closing ticket, fix verified in SDK version 9.0.0.v20200211122336. Test and other information can be found at: ti.identity: https://github.com/appcelerator-modules/titanium-identity/pull/46 master: https://github.com/appcelerator/titanium_mobile/pull/11448