Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to store fingerprint data along with username, image, email etc in database in android app

how to store fingerprint data along with username, image, email etc in database in android app. I read out many links but it is not helpful. they are

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

  2. Retrieving Fingerprint data? Get fingerprint templates from fingerprint scanner

  3. Register user fingerprint in an android application

Thanks

like image 989
Ashu Avatar asked Aug 22 '17 09:08

Ashu


People also ask

What database is used to store fingerprints?

MySQL Database for Storage of Fingerprint Data.

How does Android store biometric data?

Your fingerprint data is stored in a Trusted Execution Environment (TEE) – a separate and isolated area in the phone's hardware. According to Android Central, “a TEE might use its own processor and memory or it can use a virtualized instance on the main CPU.


2 Answers

As per Nexus FAQs

Your fingerprint data is stored securely and never leaves your Pixel or Nexus phone. Your fingerprint data isn't shared with Google or any apps on your device. Apps are notified only whether your fingerprint was verified.

FingeprintManager only has these 3 features:

authenticate() : for authenticating user

hasEnrolledFingerprints() : Determine if there is at least one fingerprint enrolled.

isHardwareDetected() : Determine if fingerprint hardware is present and functional.

There is no method to get fingerprint id from the sensor. So your idea of storing fingerprints in database won't work.

like image 163
Rahul Sharma Avatar answered Sep 17 '22 15:09

Rahul Sharma


You cannot save a fingerprint image or template. It is stated by Android in the Fingerprint Section.

The Fingerprint data is stored by android system in the phone at a secure location which is not accessible. You can write an app that gets and stores fingerprint to authenticate the user. You can go through this sample that demonstrates to use registered fingerprints to authenticate the user in your app.

https://github.com/googlesamples/android-FingerprintDialog

like image 41
Abhi Avatar answered Sep 18 '22 15:09

Abhi