How to get Fingerprint input from user and save to sqlite in android

亡梦爱人 提交于 2019-11-27 04:33:17

问题


I am Using Android Marshmallow, and Moto G4 plus a device for testing.

I want to create an application which will take the fingerprint input and saved in a local database(sqlite) Or to database, I mean which type we can take input and save it?


回答1:


You can't get fingerprint template or image from android Fingerprint API. Fingerprint data are stored in a secure place by android system and are not accessible.

But you can ask the system to authenticate the user.

Here sample code

The doc, in section Fingerprint Authentication




回答2:


  1. In technical terms, Android OS stores Fingerprints in TEE (stands for Trusted Execution Environment), TEE is separate and isolated area in phone's hardware or software depending on the way device is manufactured. TEE will never let us in even if device is rooted. Check this for more details about Trusty OS

  2. If your requirement is to get fingerprint signature (which is a critical practice from user's privacy point of view) you'll have to buy a 3rd party fingerprint scanner and integrate with your app.




回答3:


Although you can't get the fingerprint data from Android's Fingerprint API, you can get it using an external fingerprint scanner which often comes with its own SDK, just check with the manufacturer.



来源:https://stackoverflow.com/questions/38160643/how-to-get-fingerprint-input-from-user-and-save-to-sqlite-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!