[SafetyNet Fix][PoC] Pass SafetyNet after 2017-07-17 on Magisk V13

katerpanne

Member
Jul 7, 2017
32
20
0
Hannover
Yes I typed su first, but the root was unaviable, then the root is ok, but the script gives always "error" in the she
you can type it into a terminal app (then type "su" in the first line) or use the free app "kernel adiutor" -> menu -> init.d (dont activate) -> add a new script "+" -> give a name and paste this:

One script version:
********************
#!/system/bin/sh
echo "deleting magisk properties"
resetprop --delete init.svc.magisk_pfs
resetprop --delete init.svc.magisk_pfsd
resetprop --delete init.svc.magisk_service
resetprop --delete persist.magisk.hide
resetprop --delete ro.magisk.disable
resetprop --delete magisk.version
resetprop --delete persist.magisk.busybox
resetprop --delete persist.magisk.hide

Another script version:
************************
#!/system/bin/sh
echo "deleting magisk properties"
getprop | grep magisk | cut -d'[' -f2 | cut -d']' -f1 | xargs -n1 resetprop --delete

Now you can click on the script and run the script.

Thats very simple.

Regards Katerpanne
 

R324D

Senior Member
Jan 3, 2015
225
66
58
Pekanbaru, Riau
Although @topjohnwu has said there is a fix coming. In the meantime I decided to make a Magisk Module that does this automatically on boot. Tested it out on my Moto X 2014 running LineageOS 14.1. If anyone else would like to try it, you can download it and view the source here.
The module works and safetynet get passed, but neither apps that detected root working. Any thoughts guys?
 

jimbob_sf

Senior Member
Jul 16, 2010
435
110
0
San Rafael, CA
This worked on Pixel / latest RR rom and Magisk 13_new10 zip/apk from goodwin_c. AWESOME work!

I'm lazy or I'd dust off my shell scripting, but a small upgrade to the boot script would be to do a getprop for each property to see if it's found before deleting it.
 

noahajac

Senior Member
Dec 26, 2015
65
62
0
17
Stanhope, NJ
noahjacobson.com
The module works and safetynet get passed, but neither apps that detected root working. Any thoughts guys?
Which apps? Is Magisk Hide enabled for them?

---------- Post added at 11:01 PM ---------- Previous post was at 10:59 PM ----------

For Z00T / Z011DD User, this fix is work but obly pass BasicIntegrity... I instal the module directly in Magisk Manager and succed, atter reboot i checked safetynet and only pass Basic integrity .. Any solution for me ?
What is returned when you run
Code:
cat /proc/cmdline
from a root shell?
 
  • Like
Reactions: darc87

abhayruparel

Senior Member
Dec 27, 2016
590
979
113
Ahmedabad
you can type it into a terminal app (then type "su" in the first line) or use the free app "kernel adiutor" -> menu -> init.d (dont activate) -> add a new script "+" -> give a name and paste this:

One script version:
********************
#!/system/bin/sh
echo "deleting magisk properties"
resetprop --delete init.svc.magisk_pfs
resetprop --delete init.svc.magisk_pfsd
resetprop --delete init.svc.magisk_service
resetprop --delete persist.magisk.hide
resetprop --delete ro.magisk.disable
resetprop --delete magisk.version
resetprop --delete persist.magisk.busybox
resetprop --delete persist.magisk.hide

Another script version:
************************
#!/system/bin/sh
echo "deleting magisk properties"
getprop | grep magisk | cut -d'[' -f2 | cut -d']' -f1 | xargs -n1 resetprop --delete

Now you can click on the script and run the script.

Thats very simple.

Regards Katerpanne
This worked for me thanks.

Sent from my Lenovo P2 using Tapatalk
 
  • Like
Reactions: mdvamik and darc87

prasetya27

Senior Member
Jan 15, 2017
69
13
18
Which apps? Is Magisk Hide enabled for them?

---------- Post added at 11:01 PM ---------- Previous post was at 10:59 PM ----------



What is returned when you run
Code:
cat /proc/cmdline
from a root shell?
ASUS_Z011:/ $ su
ASUS_Z011:/ # cat /proc/cmdline
boot_cpus=0,4,5,6,7 sched_enable_hmp=1 console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 buildvariant=userdebug PRJ_ID=1 PRJ_HD=0 LCD_ID=6 PRJ_KL=1 PRJ_RF=6 PRJ_STAGE=2 PRJ_MEM=8 LASER_ID=1 LCD_UNIQUE_ID=d84da937 PRJ_ADAPTER=1 androidboot.emmc=true androidboot.serialno=G1AZGF00P897NAB androidboot.baseband=msm mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_auo_otm1901a_1080p_video:1:none
ASUS_Z011:/ #
 
  • Like
Reactions: mustache

noahajac

Senior Member
Dec 26, 2015
65
62
0
17
Stanhope, NJ
noahjacobson.com
ASUS_Z011:/ $ su
ASUS_Z011:/ # cat /proc/cmdline
boot_cpus=0,4,5,6,7 sched_enable_hmp=1 console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 buildvariant=userdebug PRJ_ID=1 PRJ_HD=0 LCD_ID=6 PRJ_KL=1 PRJ_RF=6 PRJ_STAGE=2 PRJ_MEM=8 LASER_ID=1 LCD_UNIQUE_ID=d84da937 PRJ_ADAPTER=1 androidboot.emmc=true androidboot.serialno=G1AZGF00P897NAB androidboot.baseband=msm mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_auo_otm1901a_1080p_video:1:none
ASUS_Z011:/ #
What about when you run
Code:
getprop | grep magisk
?
 

noahajac

Senior Member
Dec 26, 2015
65
62
0
17
Stanhope, NJ
noahjacobson.com
Of course.. soon after apps opened, its closed automatically and show some error (attached).
Is Play Store certified?

---------- Post added at 01:54 AM ---------- Previous post was at 01:53 AM ----------

ASUS_Z011:/ $ su
ASUS_Z011:/ # getprop | grep magisk
1|ASUS_Z011:/ #
Yeah I don't see anything bad there. I may have asked this already (lost track of who I asked it to). But do you have any other modules? And can you screenshot your Magisk Manager home screen and settings?
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone