Related
Systemless Root & SafetyNet working [GUIDE][Magisk][StockROM-6.0.1][SkyMelon][TWRP]
Hi XDA friends,
After quite investigation I finally have found the way to have our devices Systemless Rooted.
The main advantage? SafetyNet working on our rooted device. That means Google does not notice our device is rooted ...yes, you can play Nintendo games or use Android Pay as well!
View attachment 4371569 View attachment 4371476
Here is the step by step guide:
You Must Have: Unlocked bootloader, ADB Fastboot drivers and Flashtool installed.
- Flash Stock Android 6.0.1 ROM with Flashtool (Wipes checked). I recommend 26.3.A.1.33 for the E2303 model. You can find Stock ROMs in this post.
- Flash TWRP from ADB: "fastboot flash recovery recovery.img" (I tried with v3.0.2.0 and also the new v3.2.1-0 recently published here!)
- Flash custom kernel (SkyMelon 8.1 or 9 without-root) from TWRP. Download v8.1 from this post or v9 directly here: View attachment 9-20171210-no-root.zip. Wipe Dalvik/Cache after install it.
- Flash the latest version of Magisk with TWRP. Wipe Dalvik/Cache after install it. GitHub repo: https://github.com/topjohnwu/Magisk/releases
- Install the latest version of Magisk Manager.apk. GitHub repo: https://github.com/topjohnwu/MagiskManager/releases
- [Optional] In order to avoid flashing errors with TWRP it is recommended to update directly through Magisk Manager. If you want to install previous versions of Magisk (between v14.6 and v15.2), could be neccesary to check the box "Preserve AVB 2.0/dm-verity" before "Direct Install" it.
Note: Magisk v16.4 and Magisk Manager v5.7.0 was the last version working tested by me. From this version I will discontinue testing new Magisk releases on this device. Feel free to post your experience with the new ones
- This method is compatible with E2303, E2306 (reported by @zputnyq) and E2333 (reported by @Yester_Ko) models.
- Compatibility with Apps2SD reported by @tim_pear
Please if this works for you, thanks are very welcome to my first post! Also ideas or improvements to the post are welcome.
Credits:
- Special thanks to @osmank3 who built SkyMelon v9 without-root and help me with Magisk updates.
thanks for sharing your experience , I have A question what about DRM fix , did restore you TA backup ?
Hi! Thanks for your guide. Can you share your safety net check screen on magisk? I try that kernel and some other kernels with different magisk versions, but I don't understand safety net checking status.
Hi othmane.os,
I cannot provide information about restoring the TA. My warranty expired some time ago and I don´t have a TA backup.
Thanks for comment.
othmane.os said:
thanks for sharing your experience , I have A question what about DRM fix , did restore you TA backup ?
Click to expand...
Click to collapse
Hi osmank3,
I have modified the post with the screenshot request and also with some links to the material used in the guide.
If you have any problem, I will be glad to help you. Thanks for comment.
osmank3 said:
Hi! Thanks for your guide. Can you share your safety net check screen on magisk? I try that kernel and some other kernels with different magisk versions, but I don't understand safety net checking status.
Click to expand...
Click to collapse
I want to use your guide but I'm busy to do current configuration of my phone. I delete some files on my system partition for gaining storage (I copied some new versions of upgraded apps to system partition) This take my time but I haven't got enough.
I use skymelon 9 kernel, with supersu. I guess because of supersu changed system partition and safetynet fails. I dislike supersu app but skymelon 9 comes with it. So I built skymelon 9 myself without supersu, but I didn't flash stock rom before installing skymelon 9 without-root and magisk. Now on my phone Magisk15 and skymelon9(compiled by me) installed. Magisk's hide function hiding itself from google apps and choosen apps but safetynet check fails.
Can you or anybody try this guide with skymelon 9 without-root which built by me?
View attachment 9-20171210-no-root.zip
Thanks
Hi osmank3,
I have tested the kernel that you built and it is working perfect. Thank you! This version has been added to the post and of course is menctioned your contribution.
I'm afraid you'll have to install a stock ROM...
BTW: I cannot get working Magisk v15. If I install it direclty from Magisk Manager the installation fails. If I install it through TWRP (and do wipes), the process is correct but when I check it, Magisk Manager not shows it as installed. So for the moment, it is only working for v14.5.
osmank3 said:
I want to use your guide but I'm busy to do current configuration of my phone. I delete some files on my system partition for gaining storage (I copied some new versions of upgraded apps to system partition) This take my time but I haven't got enough.
I use skymelon 9 kernel, with supersu. I guess because of supersu changed system partition and safetynet fails. I dislike supersu app but skymelon 9 comes with it. So I built skymelon 9 myself without supersu, but I didn't flash stock rom before installing skymelon 9 without-root and magisk. Now on my phone Magisk15 and skymelon9(compiled by me) installed. Magisk's hide function hiding itself from google apps and choosen apps but safetynet check fails.
Can you or anybody try this guide with skymelon 9 without-root which built by me?
View attachment 4371416
Thanks
Click to expand...
Click to collapse
GameBoy1989 said:
BTW: I cannot get working Magisk v15. If I install it direclty from Magisk Manager the installation fails. If I install it through TWRP (and do wipes), the process is correct but when I check it, Magisk Manager not shows it as installed. So for the moment, it is only working for v14.5.
Click to expand...
Click to collapse
I'm using magisk manager to patch boot.img with v15. I flash patched_boot.img with TWRP. It is working.
When I update it from v14.5 /data/magisk link crashing. I delete /data/magisk and upgrade on magisk manager as recommended type and reboot system, it is starting to work.
Ups! I forget to say. Check AVB 2.0/dm-verity
It works
Thank you very much. Post updated!
osmank3 said:
I'm using magisk manager to patch boot.img with v15. I flash patched_boot.img with TWRP. It is working.
When I update it from v14.5 /data/magisk link crashing. I delete /data/magisk and upgrade on magisk manager as recommended type and reboot system, it is starting to work.
Ups! I forget to say. Check AVB 2.0/dm-verity
Click to expand...
Click to collapse
Hey, i downloaded Magisk v14.5 and tried to flash it with twrp but i got error "invalid zip file format" What should i do now or what did i do wrong?
Yay i got this work but little bit different way.
1. Flashed stock rom with flashtool. I downloaded my stock rom from XperiFirm.
2. Flashed TWRP with this guide.
3. Flashed Skymelon 8.1 with TWRP and wiped Dalvik/Cache after install.
4. Flashed Magisk v14.0 with TWRP from this post and wiped Dalvik/Cache after install.
When that was done i rebooted and Magisk and Magick manager was installed. They aren't latest versions so i updated them.
1. Downloaded latest Magisk manager from here and installed it.
2. From Magisk manager i checked "Preserve AVB 2.0/dm-verity" and installed it with choosing the recommended option "Direct Install"
Everything seems to working fine and i did this to my E2303 with 26.3.A.1.33
Great! Thanks for sharing :good:
Which is the difference between methods? I see that it also works for you by flashing Magisk v14.0.
Artsii said:
Yay i got this work but little bit different way.
1. Flashed stock rom with flashtool. I downloaded my stock rom from XperiFirm.
2. Flashed TWRP with this guide.
3. Flashed Skymelon 8.1 with TWRP and wiped Dalvik/Cache after install.
4. Flashed Magisk v14.0 with TWRP from this post and wiped Dalvik/Cache after install.
When that was done i rebooted and Magisk and Magick manager was installed. They aren't latest versions so i updated them.
1. Downloaded latest Magisk manager from here and installed it.
2. From Magisk manager i checked "Preserve AVB 2.0/dm-verity" and installed it with choosing the recommended option "Direct Install"
Everything seems to working fine and i did this to my E2303 with 26.3.A.1.33
Click to expand...
Click to collapse
GameBoy1989 said:
- Flash Magisk v14.5 from TWRP. Wipe Dalvik/Cache after install it. GitHub repo: https://github.com/topjohnwu/Magisk/releases
Click to expand...
Click to collapse
This was only thing i made differently. I didn't find right magisk there what would work when flashing because i had problem with "invalid zip file format" so i downloaded that magisk zip file from another place.
This worked fine for me but I directly tried flashing/installing latest version (15.1) from TWRP and later after booting via adb the .apk of the Manager.
Didn't show the Magisk as installed.
With making a backup in TWRP of the boot (just renaming it to .img it has a different extension in the name) and then modifying it (as Manager tells you when you want to install) I could make it work (flashing the modified boot image with fastboot).
(Other steps like flashing the stock ROM and the recovery worked as usual. Also no problems with installing the kernel in TWRP.)
If you try to flash directly the last Magisk version (v15.1 in this case) I don´t know why yet but it doesn´t work. For that reason it is neccesary to first flash Magisk v14.5 (last version working with TWRP).
The way that you do it is also a very good one! Thanks for sharing @lordmd.
lordmd said:
This worked fine for me but I directly tried flashing/installing latest version (15.1) from TWRP and later after booting via adb the .apk of the Manager.
Didn't show the Magisk as installed.
With making a backup in TWRP of the boot (just renaming it to .img it has a different extension in the name) and then modifying it (as Manager tells you when you want to install) I could make it work (flashing the modified boot image with fastboot).
(Other steps like flashing the stock ROM and the recovery worked as usual. Also no problems with installing the kernel in TWRP.)
Click to expand...
Click to collapse
After magisk 14.6+ there is a problem about dm-verity. Magisk can't patch it, so we must preserve the original dm-verity. When you are applying magisk 14.6+ from twrp, you can't preserve and magisk can't patch it. The true way is using magisk manager and patch with preserve dm-verity.
Magisk 15.2 version notes says that problem solved but I try it, it is not solved yet.
My first applying procedure is:
First, patch skymelon 9 boot.img file with new magisk version also with preserve dm-verity on Magisk Manager,
Flash recovery and open with twrp
Apply skymelon 9 wipe dalvik and cache
Apply new magisk
Flash patched img
Let´s see if the next v15.3 beta finally works. Thanks @osmank3
BTW: Did you finally install the stock ROM or could you unroot your CFW for installing Magisk?
osmank3 said:
After magisk 14.6+ there is a problem about dm-verity. Magisk can't patch it, so we must preserve the original dm-verity. When you are applying magisk 14.6+ from twrp, you can't preserve and magisk can't patch it. The true way is using magisk manager and patch with preserve dm-verity.
Magisk 15.2 version notes says that problem solved but I try it, it is not solved yet.
My first applying procedure is:
First, patch skymelon 9 boot.img file with new magisk version also with preserve dm-verity on Magisk Manager,
Flash recovery and open with twrp
Apply skymelon 9 wipe dalvik and cache
Apply new magisk
Flash patched img
Click to expand...
Click to collapse
GameBoy1989 said:
Let´s see if the next v15.3 beta finally works. Thanks @osmank3
BTW: Did you finally install the stock ROM or could you unroot your CFW for installing Magisk?
Click to expand...
Click to collapse
I must flash system partition from stock Rom, after that safetynet passed.
Ty
Is pexorom better than stock. Is this going to work on pexorom.
Please reply
I´ve tried with Pexo Rom v3 and systemless root works with Magisk but it does not passed Safety Net check.
Sayan Qadri said:
Is pexorom better than stock. Is this going to work on pexorom.
Please reply
Click to expand...
Click to collapse
In next 2 weeks my mi pad 4 LTE will come to me.
Could you tell me, how to root it by magisk?
1) unlock it by xiaomi (360 hours waiting)
2) flash twrp
3) flash magisk
4) reboot
That is all I need to do to get a root ?)
Tysovwik said:
In next 2 weeks my mi pad 4 LTE will come to me.
Could you tell me, how to root it by magisk?
1) unlock it by xiaomi (360 hours waiting)
2) flash twrp
3) flash magisk
4) reboot
That is all I need to do to get a root ?)
Click to expand...
Click to collapse
yes
Usually you don't even have to flash TWRP recovery if you want to keep original recovery, you can just boot it with "fastboot boot twrp.img".
Just a FYI, the latest magisk 17 has not been working for me. Magisk 16 works just fine.
I am on the xiaomi.eu rom
I'm on latest xiaomi.eu and Magisk 17.1 is working fine
bartekm01 said:
I'm on latest xiaomi.eu and Magisk 17.1 is working fine
Click to expand...
Click to collapse
After I flash magisk 17.1 , my mipad 4 can't use LTE
簡_OvO said:
After I flash magisk 17.1 , my mipad 4 can't use LTE
Click to expand...
Click to collapse
That's strange... I've using magisk on 6 device's and never had this sort of problems. Uninstall magisk and check if it's working again
@簡_OvO
On what Rom you have this problem with Magisk ?
I use Mi Pad 4 LTE and Magisk 17.1 on AOSP 8.1_v25 and everything works as it should.
Magisk it has nothing to do with Modem/Baseband he patching Kernel.
After using Magisk uninstaller or restore stock Kernel works for you LTE ?
bartekm01 said:
That's strange... I've using magisk on 6 device's and never had this sort of problems. Uninstall magisk and check if it's working again
Click to expand...
Click to collapse
After I flash again, it can work well
---------- Post added at 11:25 AM ---------- Previous post was at 11:22 AM ----------
Andro_Nicus said:
@簡_OvO
On what Rom you have this problem with Magisk ?
I use Mi Pad 4 LTE and Magisk 17.1 on AOSP 8.1_v25 and everything works as it should.
Magisk it has nothing to do with Modem/Baseband he patching Kernel.
After using Magisk uninstaller or restore stock Kernel works for you LTE ?
Click to expand...
Click to collapse
I use MIUI10.I cannot understand why.But after I flash magisk again,LTE works well.
Could you please explain where I find the mipad 4 boot image when using this method to patch it?
When choosing the option in magisk manager to patch boot image I have to search for the original boot image to patch as the app doesn't point staight to it...
Many thanks
@Tysovwik, I see you want keep miui. You have to block overwriting recovery by original one. I have seen option for it in twrp, but i have not tested it. The same you can have if you use special zip package.
Twrp has second option for auto install magisk 17.1, but i installed it from zip file (twrp labeled 20.12.2018 can have 18.0)
is this the best way to Root a Mi Pad 4 LTE ?
A long time ago someone said:
Tysovwik said:
In next 2 weeks my mi pad 4 LTE will come to me.
Could you tell me, how to root it by magisk?
1) unlock it by xiaomi (360 hours waiting)
2) flash twrp
3) flash magisk
4) reboot
That is all I need to do to get a root ?)
Click to expand...
Click to collapse
My plan is to follow this process.
Does anyone know if I still have to do step (1) ? or how that is done ?
Some noobie questions.
I already have TWRP installed in my Mi pad 4, and want to keep my original MIUI rom
To install Magisk what should I do next?
Just flash magisk from twrp?
Do I need to flash no-verify-opt-encrypt.zip?
Select any option of wipe in twrp before flashing Magisk?
If I get a bootloop can I just use Magisk unistaller?
soulgazer said:
Some noobie questions.
I already have TWRP installed in my Mi pad 4, and want to keep my original MIUI rom
To install Magisk what should I do next?
Just flash magisk from twrp?
Do I need to flash no-verify-opt-encrypt.zip?
Select any option of wipe in twrp before flashing Magisk?
If I get a bootloop can I just use Magisk unistaller?
Click to expand...
Click to collapse
I would wipe cache /dalvik cache before and wipe cache again after flashing. But yeah, just flash the magisk zip. You check in the settings under security if your device is encrypted, which I'm guessing it probably is already. In which case there's no need to flash no verify encrypt zip. Unless you want to have no encryption. In which case you'll have to start all over, complete format in twrp then flash magisk and no encrypt zip before first boot.
If you want to stay encrypted (assuming you are already), just flash magisk. I haven't done it in a while! So not sure if magisk manager will be installed with zip flash, if it's not there when you boot to system, just download and install latest magisk manager. You can always then download a root checker app from playstore to be sure all went well.
Good luck dude
Hi guys,
Just got notified that new magisk is available for install. Is it stable and working with the v30 (running Oreo v21a)?
I had a magisk update soft brick some phones before that's why I'm asking...
Cheers
clouds5 said:
Hi guys,
Just got notified that new magisk is available for install. Is it stable and working with the v30 (running Oreo v21a)?
I had a magisk update soft brick some phones before that's why I'm asking...
Cheers
Click to expand...
Click to collapse
See the last few pages of WTF thread. 17.0 boot loops. 17.1 fixes boot loops, but best to uninstall 16 Magisk in TWRP before installing 17.1. Run the uninstaller.
However, there's problems with Magisk Hide on 17.x right now. It crashes for a lot of people.
Thx, I'll stick with 16.0 for the moment. No issues with it and I'm not missing anything so...
17.0 made my stock rom bootloop.
17.1 works fine for me.
It probably makes no difference how you install it, but I used the patch boot image option then flashed the patched boot.img using fastboot.
use dd to get an image of your currently working boot partition
patch that boot.img with magisk manager to 17.1 and copy to PC
use fastboot to flash that patched_boot.img and then reboot (or fastboot boot TWRP.img then reboot from there to be extra safe)
I'm on 21B and that works for me. I have not tried a different way so I can't confirm/deny any other method yet
Sent from my LGE V30 using XDA Labs
21a here i just clean flashed with 17.1 ._.
I'm getting issues with 17.1 and magisk hide.. Is there any fixes? Thanks in advance
So just want to make sure.. can I run the magisk Uninstaller by flashing the zip in TWRP and the flashing 17.1 in TWRP to reinstall magisk?
Hi All,
Just to let people know. I believe the issue is with the Magisk Manager App. I'm currently still using Magisk 17.1. However, I've uninstalled the Magisk Manager and re-installed Magisk Manager 5.8.3 instead. I can now use Magisk Hide without crashing. Maybe others can give this a try as well.
silver311 said:
Hi All,
Just to let people know. I believe the issue is with the Magisk Manager App. I'm currently still using Magisk 17.1. However, I've uninstalled the Magisk Manager and re-installed Magisk Manager 5.8.3 instead. I can now use Magisk Hide without crashing. Maybe others can give this a try as well.
Click to expand...
Click to collapse
This worked for me as well.
1. Uninstall Magisk 16 in TWRP using the latest MagiskUninstaller.
2. Flash Magisk 17.1
3. Boot up and un-install MagiskManager 5.9.1
4. Install MagiskManager 5.8.3.
As expected, the SafetyNet check doesn't work but some of the modules I use are being updated to the new template which prevents them from running on Magisk 16.0.
Anyone know how to get rid of the pop-up to update MagiskManager every time the app is opened?
The lastest pop-up on MagiskManager shows the 6.0 version and the changelog shows that it is designed for Magisk 17.2
Anyone has tried with these new modules?
trekminal said:
The lastest pop-up on MagiskManager shows the 6.0 version and the changelog shows that it is designed for Magisk 17.2
Anyone has tried with these new modules?
Click to expand...
Click to collapse
Yes, discussed over in WTF thread.
https://forum.xda-developers.com/showpost.php?p=77687418&postcount=1798
Thanks.
I updated to MagiskManager 6.0 but it shows me the option to update to Magisk 17.1, not the 17.2
I will wait some days until 17.2 will be available through the main app.
Any else have magisk manager crashing when using selecting #magisk hide from the magisk manager menu?
running 20d us998
with magisk 17.1
magisk manager 6 (although 5.9.1 did the same thing)
and root checker remover
someone on the magisk support thread recommended deleting the hidelist file which didn't really do anything. Problem is still occuring even with the new hidelist.
I need help to install root on my Poco. At first I try to install magisk 17.2, its successfully installed, but somehow theres no root access, tried to check with root checker, no root detected. I try to install magisk 18.1, check it with root checker, it say my phone rooted, but no root access. I tried to install SuperSU, no root detected.
Can someone explain to me whats wrong ?
Xiaomi.eu rom beta weekly 9.2.21
YSNDR said:
I need help to install root on my Poco. At first I try to install magisk 17.2, its successfully installed, but somehow theres no root access, tried to check with root checker, no root detected. I try to install magisk 18.1, check it with root checker, it say my phone rooted, but no root access. I tried to install SuperSU, no root detected.
Can someone explain to me whats wrong ?
Xiaomi.eu rom beta weekly 9.2.21
Click to expand...
Click to collapse
For magisk, make sure magisk manager is installed properly. Sometimes it doesn't install while flashing the zip and you have to manually install the apk from here
Negi9 said:
For magisk, make sure magisk manager is installed properly. Sometimes it doesn't install while flashing the zip and you have to manually install the apk from here
Click to expand...
Click to collapse
Yes, I already do that, tried with latest version (7.0.0) and old (5.9.1) no luck
YSNDR said:
Yes, I already do that, tried with latest version (7.0.0) and old (5.9.1) no luck
Click to expand...
Click to collapse
That's weird. Try this:
>Flash the magisk uninstaller
>Reboot
>Flash latest magisk
>If there's no magisk manager in the app drawer, install the apk
Get all the files from here, don't use files from other mirrors
https://github.com/topjohnwu/Magisk/releases
YSNDR said:
Yes, I already do that, tried with latest version (7.0.0) and old (5.9.1) no luck
Click to expand...
Click to collapse
As i remember, eu rom had root built-in. Maybe im wrong but u can try enable development setting then find in it. Couldnt remember exactly.
Negi9 said:
That's weird. Try this:
>Flash the magisk uninstaller
>Reboot
>Flash latest magisk
>If there's no magisk manager in the app drawer, install the apk
Get all the files from here, don't use files from other mirrors
https://github.com/topjohnwu/Magisk/releases
Click to expand...
Click to collapse
tiennhu89 said:
As i remember, eu rom had root built-in. Maybe im wrong but u can try enable development setting then find in it. Couldnt remember exactly.
Click to expand...
Click to collapse
No, eu rom is basically debloated and tweaked miui rom
But anyway, I've fix it, somehow i keep reinstall magisk and it just work. Thanks for your help :good:
YSNDR said:
No, eu rom is basically debloated and tweaked miui rom
But anyway, I've fix it, somehow i keep reinstall magisk and it just work. Thanks for your help :good:
Click to expand...
Click to collapse
It only request root if magisk is Opened in the background.
D1stRU3T0R said:
It only request root if magisk is Opened in the background.
Click to expand...
Click to collapse
Put Magisk in the 'not optimised' list for battery.
So the October patch just came out, but my phone's rooted (magisk, no twrp), so I can't install the update. If anyone could provide a guide on how to update and re-root the phone again, that would be very much appreciated. Thank you.
bibekmufc said:
So the October patch just came out, but my phone's rooted (magisk, no twrp), so I can't install the update. If anyone could provide a guide on how to update and re-root the phone again, that would be very much appreciated. Thank you.
Click to expand...
Click to collapse
No need to unroot. If u can get the boot.img u can use magisk to root it and instal.
i use magisk tutorial for updating. and there is a magisk modul for reinstalling twrp. you have to use it before installing magisk on inactive slot.
i suggest you to wait a few days before updating. i update to October and install magisk and twrp but wifi and hotspot are broken. and twrp won't work correctly. not shore if it's because twrp or October ota
It was my fault that break wifi and hotspot. magisk tutorial should do the work. just backup before doing anything
ghasemi.hussein said:
It was my fault that break wifi and hotspot. magisk tutorial should do the work. just backup before doing anything
Click to expand...
Click to collapse
I decided to completely reset my phone and it's now better than ever
From twrp thread
If you want you can also update a stock rom from phone settings with local upgrade:
- Update the Rom WITHOUT REBOOT;
- Open Magisk Manager;
- Menu/modules/+ button/select the twrp installer.zip and flash it;
- Always in Magisk Manager, click on Install/Install/Direct Install;
- Again in Magisk Manager, click on Install/Install/Inactive Slot;
- Reboot.
kimikim0 said:
From twrp thread
If you want you can also update a stock rom from phone settings with local upgrade:
- Update the Rom WITHOUT REBOOT;
- Open Magisk Manager;
- Menu/modules/+ button/select the twrp installer.zip and flash it;
- Always in Magisk Manager, click on Install/Install/Direct Install;
- Again in Magisk Manager, click on Install/Install/Inactive Slot;
- Reboot.
Click to expand...
Click to collapse
This steps work for update rom with magisk and root installed? Need help for install october update (no twrp, just magisk and root)
Enviado desde mi Mi A3 mediante Tapatalk