Magisk v16.0 Root - Lenovo P2, safety net pass (S233 and S244)

Search This thread

Videophile

Member
Apr 30, 2011
33
16
*UPDATED TO WORK WITH S244

*I can confirm this is working with the latest version of Magisk (v16.0)
you may not need to execute the script so install the SafetyNetFix first and test.


Hope all goes well, instructions below:

Install TWRP
Follow instructions on this Forum, easy to find.

Convert System from f2fs to ext4
System-less SU does not work on f2fs so you will need to reformat System to ext4,

In TWRP go to:
Wipe > Advanced Wipe.
Check System and Click 'Repair or Change File System' > Change File System > Select EXT4

You'll need to reinstall your firmware after you have formatted. (P2a42_S233/S244 Supports System in ext4 by default)
I would go for a clean install but you could try without wiping.

Run UnSU
Download UnSu here
Run UnSU in Recovery, this may mean you can miss the next step, try with or without (flashing boot image)

Flash original boot.img
This is only if you have tried rooting before (and System is already set to ext4) but failed safety checks, skip if not
Can be found on this forum in the Deodexed_P2a42_S233_170404_ROW.zip or Deodexed_P2a42_S244_170725_ROW.zip
(as long as you are on this firmware of course.)

Download Magisk v16.0
Click here to download latest Magisk
Install using TWRP, this will also install MagiskSU

Reboot, download and install MagiskManager.apk
Turn on Magisk Hide, Systemless Hosts

Hide Google Services Framework and Google Play Store
(I don't think this is necessary but no harm in doing so)

Download Kernel Adiutor from PlayStore
Could also run this in Terminal Emulator but with Kernel Adiutor the script is saved to run again if necessary
Click top left Menu, scroll down to: init.d (don't swipe to activate) Click + for new script and paste:
Code:
#!/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

Save then click and execute the script.

Install Safety net fix
(This may not be necessary, so reboot and check if you pass before installing this, if you do then no worries, you're good to go!)
Download and install the stable version from here
Install using Magisk Manager

Reboot phone and Open MagiskManager
Check that Safety Net Passes

Some apps may have detected your rooted phone prior to this and blacklisted your device ID
I recommend trying the app Device ID Changer
find here


Thanks to:
Magisk, TWRP, This thread for script and every contributor and developer for the Lenovo P2
 
Last edited:

Amansinghiam

Senior Member
Sep 9, 2015
57
33
So this is how I was successful, I started with installing v13.1 and updating to v13.3
but you may have success directly installing v13.3.
Hope all goes well, instructions below:

Install TWRP
Follow instructions on this Forum, easy to find.

Convert System from f2fs to ext4
System-less SU does not work on f2fs so you will need to reformat System to ext4,

In TWRP go to:
Wipe > Advanced Wipe.
Check System and Click 'Repair or Change File System' > Change File System > Select EXT4

You'll need to reinstall your firmware after you have formatted. (P2a42_S233 Supports System in ext4 by default)
I would go for a clean install but you could try without wiping.

Flash original boot.img
This is only if you have tried rooting before (and System is already set to ext4) but failed safety checks, skip if not
Can be found on this forum in the Deodexed_P2a42_S233_170404_ROW.zip
(as long as you are on this firmware of course.)

Download Magisk v13.1
Install using TWRP, this will also install MagiskSU

Reboot, download and install MagiskManager.apk
Turn on Magisk Hide, Systemless Hosts

Hide Google Services Framework and Google Play Store
(I don't think this is necessary but no harm in doing so)

Download Kernel Adiutor from PlayStore
Click top left Menu, scroll down to: init.d (don't swipe to activate) Click + for new script and paste:
Code:
#!/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

Save then click and execute the script.

Reboot phone and Open MagiskManager
Check that Safety Net Passes

Update Magisk to v13.3
Update inside the Magisk Manager and reboot phone

Thanks to:
Magisk, TWRP, This thread for script and every contributor and developer for the Lenovo P2

I actually did not understand thid line -
You'll need to reinstall your firmware after you have formatted.

Why do i need to reinstall it after formation. After changing to ext4 cant i just boot the mobile. . And then root it with magisk. ? ??
 

Videophile

Member
Apr 30, 2011
33
16
If you format the system they'll be nothing there, hence why you'll have to reinstall firmware, or at the very least reinstall system. It will be blank after formatting.
 

Videophile

Member
Apr 30, 2011
33
16
Well, as Systemless Su relies on your system being formatted as ext4 you would need to format, unless your System is already ext4 then as I stated in instructions you can skip that step. If your system is f2fs then you will need to format it to ext4 thus clearing it which will mean you will have to reinstall system to the newly formatted ext4 partition. I believe you could flash the system.img just as you would have done with the boot.img
 

Uibon

Member
Jan 17, 2013
27
7
Finally got this to work. Completely passes safetynet. Note: Do not install update from the app, it will cause bootloop. Download version 13.3 separately and then flash it using twrp. I also used lenovo p2 sefetynet fix magisk module along with the script above.
 
Last edited:

eried1

Senior Member
May 27, 2016
279
20
Stockholm
Finally got this to work. Completely passes safetynet. Note: Do not install update from the app, it will cause bootloop. Download version 13.3 separately and then flash it using twrp. I also used lenovo p2 sefetynet fix magisk module along with the script above.
I know someone on this forum made changes that allowed them to update directly through the Magisk Manager.

Anyway, I have given up on Magisk. Modules that fails to install causing the Manager to crash, incompatibility with previous modules, difficulties upgrading to newer versions, official versions becoming as unreliable as betas, Google being a pain in the ass with frequent SN updates etc.
 

robuser007

Senior Member
Jan 7, 2010
1,229
92
I tried to install Magisk again (stock rom) just for the fun of it. Turned out I didn't need the safetynet fix...

An easier guide: boot from twrp: backup all and safe it on your computer, convert only data partition to ext4(not the system partition!), reboot recovery and install magisk frop twrp: done!
Use magiskhide to hide root/bootloader.

If I rethink: is it really needed to convert data partition to ext4?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    *UPDATED TO WORK WITH S244

    *I can confirm this is working with the latest version of Magisk (v16.0)
    you may not need to execute the script so install the SafetyNetFix first and test.


    Hope all goes well, instructions below:

    Install TWRP
    Follow instructions on this Forum, easy to find.

    Convert System from f2fs to ext4
    System-less SU does not work on f2fs so you will need to reformat System to ext4,

    In TWRP go to:
    Wipe > Advanced Wipe.
    Check System and Click 'Repair or Change File System' > Change File System > Select EXT4

    You'll need to reinstall your firmware after you have formatted. (P2a42_S233/S244 Supports System in ext4 by default)
    I would go for a clean install but you could try without wiping.

    Run UnSU
    Download UnSu here
    Run UnSU in Recovery, this may mean you can miss the next step, try with or without (flashing boot image)

    Flash original boot.img
    This is only if you have tried rooting before (and System is already set to ext4) but failed safety checks, skip if not
    Can be found on this forum in the Deodexed_P2a42_S233_170404_ROW.zip or Deodexed_P2a42_S244_170725_ROW.zip
    (as long as you are on this firmware of course.)

    Download Magisk v16.0
    Click here to download latest Magisk
    Install using TWRP, this will also install MagiskSU

    Reboot, download and install MagiskManager.apk
    Turn on Magisk Hide, Systemless Hosts

    Hide Google Services Framework and Google Play Store
    (I don't think this is necessary but no harm in doing so)

    Download Kernel Adiutor from PlayStore
    Could also run this in Terminal Emulator but with Kernel Adiutor the script is saved to run again if necessary
    Click top left Menu, scroll down to: init.d (don't swipe to activate) Click + for new script and paste:
    Code:
    #!/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

    Save then click and execute the script.

    Install Safety net fix
    (This may not be necessary, so reboot and check if you pass before installing this, if you do then no worries, you're good to go!)
    Download and install the stable version from here
    Install using Magisk Manager

    Reboot phone and Open MagiskManager
    Check that Safety Net Passes

    Some apps may have detected your rooted phone prior to this and blacklisted your device ID
    I recommend trying the app Device ID Changer
    find here


    Thanks to:
    Magisk, TWRP, This thread for script and every contributor and developer for the Lenovo P2
    1
    will i be able to pass safetynet after installing xposed????
    No

    ---------- Post added at 03:52 PM ---------- Previous post was at 03:52 PM ----------

    For magisk you still need to convert /data to ext :(
    Yes