[UMi Touch] Fingerprint Problem

ingwey Post time 2016-5-25 15:24:45 | Show all posts  Close [Copy link]
1 2403
View: 2403|Reply: 1

[UMi Touch] Fingerprint Problem

 Close [Copy link]

1

threads

1

posts

14

credits

New Member

Rank: 1

credits
14
Post time 2016-5-25 14:21:02 | Show all posts |Read mode
Hey guys,
I'm a developer and implemented in my app the use of the fingerprinter. My test device is the Umi Touch. I tested the App before I updated the device, and it crashes, after the call for the fingerprint device, also the Google sample apps where crashing. After the fourth update, the apps does not crash anymore, but the fingerprint process isn't successfull. Is there another bug in UMis Android os? In Android emulators are all apps working with the fingerprint.

Here the Exception from the app on device:
  1. [X:SimpleAuthCallbacks] OnAuthenticationSucceeded
  2. - Block Size: 16
  3. - Result: android.support.v4.hardware.fingerprint.FingerprintManagerCompat$AuthenticationResult@977edf2
  4. - Signature:
  5. - Parameters: AES IV
  6. [X:SimpleAuthCallbacks] Failed to encrypt the data with the generated key.Javax.Crypto.IllegalBlockSizeException: Exception of type 'Javax.Crypto.IllegalBlockSizeException' was thrown. ---> Java.Lang.Exception: Key user not authenticated
  7. [X:SimpleAuthCallbacks]
  8. [X:SimpleAuthCallbacks]   --- End of managed exception stack trace ---
  9. [X:SimpleAuthCallbacks] android.security.KeyStoreException: Key user not authenticated
  10. [X:SimpleAuthCallbacks]         at android.security.KeyStore.getKeyStoreException(KeyStore.java:650)
  11. [X:SimpleAuthCallbacks]         at android.security.keystore.KeyStoreCryptoOperationChunkedStreamer.update(KeyStoreCryptoOperationChunkedStreamer.java:132)
  12. [X:SimpleAuthCallbacks]         at android.security.keystore.KeyStoreCryptoOperationChunkedStreamer.doFinal(KeyStoreCryptoOperationChunkedStreamer.java:217)
  13. [X:SimpleAuthCallbacks]         at android.security.keystore.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:473)
  14. [X:SimpleAuthCallbacks]         at javax.crypto.Cipher.doFinal(Cipher.java:1502)
  15. [X:SimpleAuthCallbacks]         at md57ec934f671c919b694ee00810328cc9b.FingerprintManagerApiDialogFragment_SimpleAuthCallbacks.n_onAuthenticationSucceeded(Native Method)
  16. [X:SimpleAuthCallbacks]         at md57ec934f671c919b694ee00810328cc9b.FingerprintManagerApiDialogFragment_SimpleAuthCallbacks.onAuthenticationSucceeded(FingerprintManagerApiDialogFragment_SimpleAuthCallbacks.java:38)
  17. [X:SimpleAuthCallbacks]         at android.support.v4.hardware.fingerprint.FingerprintManagerCompat$Api23FingerprintManagerCompatImpl$1.onAuthenticationSucceeded(FingerprintManagerCompat.java:301)
  18. [X:SimpleAuthCallbacks]         at android.support.v4.hardware.fingerprint.FingerprintManagerCompatApi23$1.onAuthenticationSucceeded(FingerprintManagerCompatApi23.java:96)
  19. [X:SimpleAuthCallbacks]         at android.hardware.fingerprint.FingerprintManager$MyHandler.sendAuthenticatedSucceeded(FingerprintManager.java:805)
  20. [X:SimpleAuthCallbacks]         at android.hardware.fingerprint.FingerprintManager$MyHandler.handleMessage(FingerprintManager.java:757)
  21. [X:SimpleAuthCallbacks]         at android.os.Handler.dispatchMessage(Handler.java:111)
  22. [X:SimpleAuthCallbacks]         at android.os.Looper.loop(Looper.java:207)
  23. [X:SimpleAuthCallbacks]         at android.app.ActivityThread.main(ActivityThread.java:5728)
  24. [X:SimpleAuthCallbacks]         at java.lang.reflect.Method.invoke(Native Method)
  25. [X:SimpleAuthCallbacks]         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
  26. [X:SimpleAuthCallbacks]         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
  27. [X:SimpleAuthCallbacks]
  28. [X:SimpleAuthCallbacks]   --- End of inner exception stack trace ---
  29. [X:SimpleAuthCallbacks]   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3236/ee215fc9/source/mono/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
  30. [X:SimpleAuthCallbacks]   at Android.Runtime.JNIEnv.CallObjectMethod (IntPtr jobject, IntPtr jmethod, Android.Runtime.JValue* parms) [0x00064] in /Users/builder/data/lanes/3236/ee215fc9/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:195
  31. [X:SimpleAuthCallbacks]   at Javax.Crypto.Cipher.DoFinal (System.Byte[] input) [0x0004b] in /Users/builder/data/lanes/3236/ee215fc9/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Javax.Crypto.Cipher.cs:191
  32. [X:SimpleAuthCallbacks]   at labGate_mobile.Android.FingerprintManagerApiDialogFragment+SimpleAuthCallbacks.OnAuthenticationSucceeded (Android.Support.V4.Hardware.Fingerprint.AuthenticationResult result) [0x000a5] in /Users/entwicklung/repos/vireq/labGate/labGate_mobile.Android/Resources/Screens/Components/FingerprintManagerApiDialogFragment.cs:167
  33. [X:SimpleAuthCallbacks]   --- End of managed exception stack trace ---
  34. [X:SimpleAuthCallbacks] javax.crypto.IllegalBlockSizeException
  35. [X:SimpleAuthCallbacks]         at android.security.keystore.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:486)
  36. [X:SimpleAuthCallbacks]         at javax.crypto.Cipher.doFinal(Cipher.java:1502)
  37. [X:SimpleAuthCallbacks]         at md57ec934f671c919b694ee00810328cc9b.FingerprintManagerApiDialogFragment_SimpleAuthCallbacks.n_onAuthenticationSucceeded(Native Method)
  38. [X:SimpleAuthCallbacks]         at md57ec934f671c919b694ee00810328cc9b.FingerprintManagerApiDialogFragment_SimpleAuthCallbacks.onAuthenticationSucceeded(FingerprintManagerApiDialogFragment_SimpleAuthCallbacks.java:38)
  39. [X:SimpleAuthCallbacks]         at android.support.v4.hardware.fingerprint.FingerprintManagerCompat$Api23FingerprintManagerCompatImpl$1.onAuthenticationSucceeded(FingerprintManagerCompat.java:301)
  40. [X:SimpleAuthCallbacks]         at android.support.v4.hardware.fingerprint.FingerprintManagerCompatApi23$1.onAuthenticationSucceeded(FingerprintManagerCompatApi23.java:96)
  41. [X:SimpleAuthCallbacks]         at android.hardware.fingerprint.FingerprintManager$MyHandler.sendAuthenticatedSucceeded(FingerprintManager
Copy the Code

What was expected in console output (result on emulator):
  1. [X:CryptoObjectHelper] New key created for fingerprint authentication.
  2. [X:SimpleAuthCallbacks] OnAuthenticationSucceeded
  3. - Block Size: 16
  4. - Result: android.support.v4.hardware.fingerprint.FingerprintManagerCompat$AuthenticationResult@98652d2
  5. - Signature:
  6. - Parameters: AES IV
  7. [X:SimpleAuthCallbacks] Fingerprint authentication succeeded, doFinal results: x4MCRW1Xe05r3+q0Z15hvw==
  8. [X:FingerprintManagerApiDialogFragment] StopListeningForFingerprints: _cancellationSignal.Cancel();
Copy the Code


2

threads

41

posts

171

credits

Senior Member

Rank: 2

credits
171
Post time 2016-5-25 15:24:45 | Show all posts
I am not a developer but I also noticed different behavior on 3rd party apps like banking apps which use the fingerprint scanner. They used to immediately crash but now allow scanning of a fingerprint and then 'soft crash' producing an error message. So my conclusion is we are getting there but the coding is of UMI is still not fully MM compliant?!

I hope this will be completely fixed in the next update! Also I hope that UMI learns from all these issues and incorporates the fixes and testing also in the new phones like the SUper immedidately.
You have to log in before you can reply Login | WELCOME TO UMIDIGI COMMUNITY

Points Rules

Quick Reply Top Back to list