[MODULE] SafetyPatcher

Did it work?


  • Total voters
    345

JimZiii

Senior Member
May 31, 2014
167
11
38
Apps can still detect root, even if you pass safetynet. Run the magisk inbuilt checker

Sent from my kminiltexx using XDA Labs
the reason i'm here is because i'm failing safetynet no matter where i check it. both inbuilt and other checkers. since i factory reset and updated my phone safetynet stopped passing and i noticed my play store became uncertified. i tried flashing several older firmwares to see if they worked and one time my bootloader got locked again and just as it got locked my play store said certified and safetynet was passing. so i'm pretty sure it's my bootloader thats being detected so i tried every mod i could find to hide my bootloader and every mod to pass safetynet but none of them worked. magiskhide is supposed to hide unlocked bootloaders also and now that i know magiskhide isn't working at all it's fairly obvious that's the reason
 

Dreamer(3MF)

Senior Member
Mar 17, 2018
753
1,135
0
the reason i'm here is because i'm failing safetynet no matter where i check it. both inbuilt and other checkers. since i factory reset and updated my phone safetynet stopped passing and i noticed my play store became uncertified. i tried flashing several older firmwares to see if they worked and one time my bootloader got locked again and just as it got locked my play store said certified and safetynet was passing. so i'm pretty sure it's my bootloader thats being detected so i tried every mod i could find to hide my bootloader and every mod to pass safetynet but none of them worked. magiskhide is supposed to hide unlocked bootloaders also and now that i know magiskhide isn't working at all it's fairly obvious that's the reason
Kindly Check The Following Versions Of Magisk
- Magisk-v16.3(1631) From This Link https://androidfilehost.com/?fid=962339331458996616
- Magisk-v16.7(1674) From This Link https://androidfilehost.com/?fid=3700668719832236565
 
Last edited:

JimZiii

Senior Member
May 31, 2014
167
11
38
Try To Flash The Old Rom Which Was Working Properly With Magisk Hide.
it didn't help. i'm back on b407. previously i've had issues flashing firmware in twrp but right before i updated and lost safetynet i found a post saying its only possible to flash -PV roms through twrp and then they linked a thread to something called HuRUpdater which is a zip that lets you flash any from through twrp, so i thought maybe that's the issue. the last rom i had working was b394 which also has a -PV version so i downloaded both so that i could see if any of them worked but none of them works. i factory wiped and wiped system, flashed the rom, tried safetynet and basic integrity passed but no matter which rom i flashed, i even tried updating through the OTA's and trying magisk, as soon as i flash magisk i fail safetynet. and at that point thats the first thing i did after booting the phone.
i've tried older magisk managers and current, tried a bunch of older magisk roots because i still got the same ones on my sd card that i downloaded before all this happened. 16.0 is the oldest i've tried but all those worked before so i don't understand why they aren't working now.
 

hackintosh5

Senior Member
Sep 15, 2017
1,246
947
0
it didn't help. i'm back on b407. previously i've had issues flashing firmware in twrp but right before i updated and lost safetynet i found a post saying its only possible to flash -PV roms through twrp and then they linked a thread to something called HuRUpdater which is a zip that lets you flash any from through twrp, so i thought maybe that's the issue. the last rom i had working was b394 which also has a -PV version so i downloaded both so that i could see if any of them worked but none of them works. i factory wiped and wiped system, flashed the rom, tried safetynet and basic integrity passed but no matter which rom i flashed, i even tried updating through the OTA's and trying magisk, as soon as i flash magisk i fail safetynet. and at that point thats the first thing i did after booting the phone.
i've tried older magisk managers and current, tried a bunch of older magisk roots because i still got the same ones on my sd card that i downloaded before all this happened. 16.0 is the oldest i've tried but all those worked before so i don't understand why they aren't working now.
Try with magisk 16.7. The fingerprint must be certified for production. If it isn't you must use MagiskHide Props Config. This module will just hide the unlocked bootloader.

Sent from my kminiltexx using XDA Labs
 

hackintosh5

Senior Member
Sep 15, 2017
1,246
947
0
the reason i'm here is because i'm failing safetynet no matter where i check it. both inbuilt and other checkers. since i factory reset and updated my phone safetynet stopped passing and i noticed my play store became uncertified. i tried flashing several older firmwares to see if they worked and one time my bootloader got locked again and just as it got locked my play store said certified and safetynet was passing. so i'm pretty sure it's my bootloader thats being detected so i tried every mod i could find to hide my bootloader and every mod to pass safetynet but none of them worked. magiskhide is supposed to hide unlocked bootloaders also and now that i know magiskhide isn't working at all it's fairly obvious that's the reason
MagiskHide DOES NOT hide unlocked bootloader reliably. That is why I made this module. This module needs MagiskHide to be enabled. If it's not working, the module won't work either. Please run in a root shell on the device: `cat /proc/cmdline` and post the output, stripping serial numbers etc.

Sent from my kminiltexx using XDA Labs
 

JimZiii

Senior Member
May 31, 2014
167
11
38
Please run in a root shell on the device: `cat /proc/cmdline` and post the output, stripping serial numbers etc.

Sent from my kminiltexx using XDA Labs
Where and how do I run these commands? Don't think I've done that before.

I'm already on 16.7, I've also tried 16.0, 16.3, 16.4, 16.6 and the ones posted by Dreamer(3MF).
 

hackintosh5

Senior Member
Sep 15, 2017
1,246
947
0
Where and how do I run these commands? Don't think I've done that before.

I'm already on 16.7, I've also tried 16.0, 16.3, 16.4, 16.6 and the ones posted by Dreamer(3MF).
In adb shell, or a terminal emulator from Google play

Sent from my kminiltexx using XDA Labs
 

hackintosh5

Senior Member
Sep 15, 2017
1,246
947
0
Interesting.

I can see "androidboot.verifiedbootstate=orange" in /proc/cmdline.

Thing is, I can't grab its contents without being root at the first place.
That means module is not functioning. Try /data/local/tmp/cmdline. If the file doesn't exist, the module script isnt running at all.

Sent from my kminiltexx using XDA Labs
 

JimZiii

Senior Member
May 31, 2014
167
11
38
In adb shell, or a terminal emulator from Google play

Sent from my kminiltexx using XDA Labs
If I type "cat/proc/cmdline" the terminal emulator just tells me "not found" and if i type "proc/cmdline" (which I saw another poster do) I get "can't execute: permission denied"
 

hackintosh5

Senior Member
Sep 15, 2017
1,246
947
0
If I type "cat/proc/cmdline" the terminal emulator just tells me "not found" and if i type "proc/cmdline" (which I saw another poster do) I get "can't execute: permission denied"
There's a space after cat but before /
proc/cmdline executes it, it's not an executable file so it will give a permission denied.

Sent from my kminiltexx using XDA Labs
 

hackintosh5

Senior Member
Sep 15, 2017
1,246
947
0
@hackintosh5

The correct command should be


sed 's/orange/green/' /proc/cmdline .....

The orange/green is case sensitive. Atleast on OP3 it is
I've pushed an update in magisk manager and GitHub, that should fix the case-sensisivity. After the module activates, it will switch from 'orange' to 'GREEN'

Sent from my kminiltexx using XDA Labs