-->

How to get Fingerprint input from user and save to

2019-01-12 03:55发布

问题:

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 Local Data Base(sqlite) Or to data base , 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:

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.



回答3:

Technically Android OS stores Fingerprints in TEE (stands for Trusted Execution Environment), TEE is separate and isolated area in phone's hardware and TEE will never let us in even if device is rooted