Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fingerprint APIs on android 9 and switch to android X #283

Merged
2 commits merged into from
Sep 24, 2019

Conversation

danog
Copy link
Contributor

@danog danog commented Aug 18, 2019

Fix fingerprint scanning on android 9 by implementing the BiometricPrompt APIs.
The Fingerprint wrapper now supports setting a custom prompt title, subtitle, description and cancel button text (w/ termux/termux-api-package#81).
Also upgraded the compat libraries, now using the recommended androidx.

Techincally, I should've probably substituted the FingerprintManager API with the BiometricManager API, but the androidx compat BiometricManager polyfill hasn't been released yet, and I didn't fill like changing the SDK target to android Q just yet, so for now I just switched to the FingerprintCompat library for sensor detection.

Fixes #261

P.S. I also kinda wanted to implement #246, but I wasn't sure on how exactly to go about it, since transmitting the secrets to the API via a public intent didn't seem exactly secure to me.
I welcome suggestions <3<3<3

@Auxilus
Copy link
Contributor

Auxilus commented Sep 2, 2019

What's the status on this?

@ghost
Copy link

ghost commented Sep 2, 2019

status

Screenshot_2019-09-02_17-46-25

And probably require more testing unless some people confirm here that it works.

@Auxilus
Copy link
Contributor

Auxilus commented Sep 2, 2019

I was asking what's the status on fixing the conflicts.. 😂

@danog
Copy link
Contributor Author

danog commented Sep 3, 2019

Resolved

@Auxilus
Copy link
Contributor

Auxilus commented Sep 12, 2019

@danog thanks!

@danog
Copy link
Contributor Author

danog commented Sep 24, 2019

ping, could someone merge this

@ghost ghost requested a review from xalexalex September 24, 2019 11:50
@ghost

This comment has been minimized.

@ghost ghost requested review from a user and removed request for xalexalex September 24, 2019 15:32
@ghost ghost merged commit d75295d into termux:master Sep 24, 2019
@EduardDurech
Copy link

EduardDurech commented Sep 4, 2022

P.S. I also kinda wanted to implement #246, but I wasn't sure on how exactly to go about it, since transmitting the secrets to the API via a public intent didn't seem exactly secure to me. I welcome suggestions <3<3<3

@danog Do these help? #246
https://stackoverflow.com/questions/40724749/how-to-get-key-from-keystore-on-successful-fingerprint-auth
https://stackoverflow.com/questions/35992681/android-fingerprint-api-encryption-and-decryption

@EduardDurech
Copy link

P.S. I also kinda wanted to implement #246, but I wasn't sure on how exactly to go about it, since transmitting the secrets to the API via a public intent didn't seem exactly secure to me. I welcome suggestions <3<3<3

#550

@termux termux deleted a comment from Jackwaggon33 Nov 24, 2022
@termux termux deleted a comment from XOXO045 Dec 26, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

termux-fingerprint not working on Android 9
3 participants