kdrag0n / safetynet-fix

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

RESTORE_TO_FACTORY_ROM #214

Open DocMAX opened 2 years ago

DocMAX commented 2 years ago

I have Android 11 on a Unihertz Jelly 2. Everything worked so far but now somehow everything is messed up. Whatever i do i get a RESTORE_TO_FACTORY_ROM advice fail in YASNAC in BASIC eval. type. What can i do?

I have Magisk 25.2 and also tried changing fingerprints.

Displax commented 2 years ago

Set SELinux to enforcing

DocMAX commented 2 years ago

It is allready

root@android:/data/ssh/root # sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
Current mode:                   enforcing
Displax commented 2 years ago

Use "setenforce 1" command

DocMAX commented 2 years ago
root@android:/data/ssh/root # setenforce 1
setenforce: Couldn't set enforcing status to '1': Invalid argument
DocMAX commented 2 years ago

I have 2 identical phones here. One works the other not. I have set up Magisk with the same settings and same modules on each side.

Displax commented 2 years ago

I have 2 identical phones here. One works the other not. I have set up Magisk with the same settings and same modules on each side.

/data/adb/magisk/busybox setenforce 1

DocMAX commented 2 years ago
root@android:/data/ssh/root # /data/adb/magisk/busybox setenforce 1
setenforce: setenforce() failed: Invalid argument
Displax commented 1 year ago
root@android:/data/ssh/root # /data/adb/magisk/busybox setenforce 1
setenforce: setenforce() failed: Invalid argument

Broken SELinux, bad ROM.