kdrag0n / safetynet-fix

Google SafetyNet attestation workarounds for Magisk
MIT License
6.2k stars 329 forks source link

under-display fingerprint sensor does not work on Oneplus KB2000 devices #179

Closed jiang-yuan closed 2 years ago

jiang-yuan commented 2 years ago

Describe the bug under-display fingerprint sensor does not work

To reproduce Steps to reproduce the behavior:

  1. open gpay
  2. press finger
  3. no response

Expected behavior unlock by fingerprint

Screenshots If applicable, add screenshots to help explain your problem.

Device info Device model:Oneplus KB2000 Android version: 12 ROM name/version: Coloros 12.1

Logs Connect your phone to a computer and run adb logcat > issue.log. Attach the log file to this issue.

Additional context Add any other context about the problem here.

Checklist

Doggie52 commented 2 years ago

The changes in https://github.com/kdrag0n/safetynet-fix/commit/55f892fb8855a7867a186970e0bfc31e665ab183 fix this issue.

You can make these changes yourself in the latest release (v2.2.1) - just download the release zip and edit the files according to that commit, then save the zip and finally flash it.

Until a new release is made that incorporates these changes, this is the only way to do it.

jiang-yuan commented 2 years ago

The changes in 55f892f fix this issue.

You can make these changes yourself in the latest release (v2.2.1) - just download the release zip and edit the files according to that commit, then save the zip and finally flash it.

Until a new release is made that incorporates these changes, this is the only way to do it.

Thank you. Will try.

Doggie52 commented 2 years ago

safetynet-fix-v2.2.1-patched.zip

Here's the one I patched. If you don't trust me, you are welcome to follow the steps I outlined.

jiang-yuan commented 2 years ago

It's ok, but why the author does not release a new version since there is already a fix commit in Mar.

frnode commented 2 years ago

@jiang-yuan @Doggie52 Look at my answer here: https://github.com/kdrag0n/safetynet-fix/issues/177#issuecomment-1129165825?plain=1

jiang-yuan commented 2 years ago

@jiang-yuan @Doggie52 Look at my answer here: #177 (comment) Thanks for your work~

Doggie52 commented 2 years ago

Not sure what your change fixes in addition to what's fixed in https://github.com/kdrag0n/safetynet-fix/commit/55f892fb8855a7867a186970e0bfc31e665ab183? Applying just that change is enough to get my fingerprint working.

frnode commented 2 years ago

@Doggie52 The change https://github.com/kdrag0n/safetynet-fix/commit/55f892fb8855a7867a186970e0bfc31e665ab183, does fix the fingerprint, but if you check SafetyNet it doesn't pass as valid. At first I also just recompiled the code thinking it was good, but the safetynet is not good... At least on my phone (OxygenOS with Android 12 - OnePlus 8T).

Doggie52 commented 2 years ago

It passes fine for me. I didn't recompile the code, I simply edited those lines in the existing release zip.

frnode commented 2 years ago

@Doggie52 That's why then, you have the old version which doesn't include the latest changes from the repo and you applied the changes directly on the 2.2.1 version. So there are not necessarily big differences between your change and my version, but many people are facing the problem and there is no solution out of the box, despite reporting the problem for months... That's why I created the fork to make it a compiled version and people can see the source.

Doggie52 commented 2 years ago

Ah, yes, makes sense. Thanks for explaining!

adwil13 commented 2 years ago

For complete solution that fixes both Google Play Certification, CTS profile and Google Pay please see: https://github.com/kdrag0n/safetynet-fix/issues/188#issuecomment-1147295375

jiang-yuan commented 2 years ago

For complete solution that fixes both Google Play Certification, CTS profile and Google Pay please see: #188 (comment)

I am wondering if there is simpler way...

actuallymentor commented 1 year ago

After upgrading to android 12 the fingerprint stopped working reliably on Oneplus 7t. Disabling the mobile and rebooting restores desired behavior.