safetynet-fix: Nethunter starting causes immediate safetynet fail

Describe the bug A clear and concise description of what the bug is.

To reproduce Steps to reproduce the behavior:

  1. Start a nethunter enabled device with root access disabled for the nethunter app
  2. Confirm safetynet is passing
  3. Give root access go the nethunter app
  4. Open nethunter app (chroot does not need to start)
  5. Run safetynet check
  6. Observe that it now fails

Expected behavior I expected safetynet to pass with nethunter running.

Device info Device model: Onplus 7 pro Europe Android version: 11 ROM name/version: OxgenOs 11.0.7.1.GM21BA

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

Additional context I have tried all of the methods I could find to get safetynet to pass. I tried shamiko, props, ARCore, downgrading magisk 23 and everything else I could find on the web.

Checklist

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 23 (1 by maintainers)

Most upvoted comments

Add this in Nethunter custom command. Now safetynet works even after reboot. Thanks for the command

chmod 440 /sys/fs/selinux/enforce

KernelSU Users should use the Below command in custom command otherwise u wil get permission error.

su && chmod 440 /sys/fs/selinux/enforce

Well, it works! Downgraded magisk to 23 and use riru

ddf81f191b963198b6cc6afca2e6f1f2

Well, it works! Downgraded magisk to 23 and use riru with the needed modules and boom! It works, but now I’m stuck with magisk v23 so that is one downside @ServOKio @Displax

What did you do exactly, if I may ask? Having the same problem, downgraded to Android 11 and Magisk 23, did hide the Magisk app, enabled hidelist, installed latest safetynetfix for Riru… But safetynet fails 😦 What did I miss? Am on MIUI 12.5 btw. Thanks !

@rdtm443 what you are missing is a way to hide modifications and/or a complete reset of the Google play services storage!

This is what I used to hide my modifications ‘MagiskHide Props Config’ U could search it up, install it and find a tutorial on how to use it.

And if all went well it should work perfectly fine!

Best of luck!

Because of SELinux permissive. No way to change it.

Well, it works! Downgraded magisk to 23 and use riru

ddf81f191b963198b6cc6afca2e6f1f2

Yes, this is the way

Well, it works! Downgraded magisk to 23 and use riru with the needed modules and boom! It works, but now I’m stuck with magisk v23 so that is one downside @ServOKio @Displax