FORUMS
Remove All Ads from XDA

Magisk v13.3 Root - Lenovo P2, safety net pass (S233 and S244)

9 posts
Thanks Meter: 7
 
By Videophile, Junior Member on 31st July 2017, 09:54 PM
Post Reply Email Thread
*UPDATED TO WORK WITH S244

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/S244 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 or Deodexed_P2a42_S244_170725_ROW.zip
(as long as you are on this firmware of course.)

Download Magisk v13.3
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

Collated files so you can follow the guide easily
Download from AndroidFIleHost

Thanks to:
Magisk, TWRP, This thread for script and every contributor and developer for the Lenovo P2
The Following 6 Users Say Thank You to Videophile For This Useful Post: [ View ] Gift Videophile Ad-Free
 
 
5th August 2017, 10:44 AM |#2  
Member
Thanks Meter: 33
 
More
Quote:
Originally Posted by Videophile

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. ? ??
5th August 2017, 10:47 AM |#3  
OP Junior Member
Thanks Meter: 7
 
More
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.
5th August 2017, 10:49 AM |#4  
Member
Thanks Meter: 33
 
More
Quote:
Originally Posted by Videophile

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.

What if i dont format the system. Then??? Just wipe cache. Internal sd n data.
5th August 2017, 11:38 AM |#5  
OP Junior Member
Thanks Meter: 7
 
More
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
8th August 2017, 08:41 AM |#6  
Junior Member
Thanks Meter: 6
 
More
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.
13th August 2017, 11:17 AM |#7  
Senior Member
Flag Stockholm
Thanks Meter: 9
 
More
Quote:
Originally Posted by Uibon

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.
14th August 2017, 09:07 PM |#8  
Member
Thanks Meter: 6
 
More
Can the files needed for this to work be added to the first post? Just to be sure it's been done right
15th August 2017, 07:30 PM |#9  
robuser007's Avatar
Senior Member
Thanks Meter: 88
 
More
Download Kernel Adiutor from PlayStore: is this really needed ?
29th August 2017, 12:55 PM |#10  
OP Junior Member
Thanks Meter: 7
 
More
Quote:
Originally Posted by robuser007

Download Kernel Adiutor from PlayStore: is this really needed ?

It makes it easier to run the script but feel free to use an alternate script executor if you wish.
31st August 2017, 09:11 PM |#11  
realista87's Avatar
Senior Member
Thanks Meter: 42
 
More
test passed on RR 5.8.2 but with "universal safetynet fix" MODULE................
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes