*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:
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
*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: