In order to boot into system with active Magisk, one has to essentially boot into recovery. From the Magisk in Recovery section (Bixby button references can be ignored):Pay special attention to the Ramdisk info. If the result is Yes, congratulations, your device is perfect for installing Magisk! However, if the result is No this means your device’s boot partition does NOT include ramdisk. This means you will have to go through some extra steps to make Magisk work properly.
If your device does not have boot ramdisk, read the Magisk in Recovery section after installing. The information in that section is VERY important!
If you are using a Samsung device and the SAR result is Yes, please check its own section.
If you are using a Huawei device and the SAR result is Yes, please check its own section.
I can understand now why John Wu was spitting nails mad when Google switched to dynamic partitions with system-as-root: it completely effs up the architecture for rooting with Magisk.Magisk in Recovery
If your device does not have ramdisk in boot images, Magisk has no choice but to be installed in the recovery partition. For these devices, you will have to reboot to recovery every time you want Magisk.
When Magisk is installed in your recovery, you CANNOT use custom recoveries to install/upgrade Magisk! The only way to install/upgrade Magisk is through the Magisk app. It will be aware of your device state and install to the correct partition and reboot into the correct mode.
Since Magisk now hijacks the recovery of the device, there is a mechanism to let you actually boot into recovery mode when needed: it is determined by how long you press the recovery key combo.
Each device has its own key combo to boot into recovery, as an example for Galaxy S10 it is (Power + Bixby + Volume Up). A quick Google search should easily get you this info of your device. As soon as you press the combo and the device vibrates with a splash screen, release all buttons to boot into Magisk. If you decide to boot into actual recovery mode, continue to press volume up until you see the recovery screen.
After installing Magisk in recovery (starting from power off):
- (Power up normally) → (System with NO Magisk)
- (Recovery Key Combo) → (Splash screen) → (Release all buttons) → (System with Magisk)
- (Recovery Key Combo) → (Splash screen) → (Keep pressing volume up) → (Recovery Mode)
Was wondering if this guide is still valid. Was gonna root my tablet later tonightAfter resolving RMM/KG lock, why go back to pie? Flash stock Android 10, matching versions. If you want the true stock firmware with T510XXU3BTH4, search for it at once of the big hosting sites:
If you're more interested in convenience, hanspampel has provided a stock rom based on December 2020's security update with a few modifications, and it's compatible with BTH4.
To root the device and eventually flash custom ROMs or GSIs download some.
Start by downloading the matching version of TWRP made by Magendanz:
Then download one of these custom roms, also by Magendanz, choosing from based on AOSP or LineageOS.
Or you could download an unofficial version of LineageOS, which'll also do the trick.
After you'll be able to flash to one of many GSIs available. Here are a couple I liked:
After you load these files to your external SD, backup any data on the device; rooting and flashing is going to wipe it.
- Enable dev options, check OEM unlock, USB debugging, and change USB configuration to file transfer. Don't worry, it'll still charge. Power off.
- Hold
VolUp+VolDown
buttons and plug USB to PC.
- Follow the directions to unlock bootloader and continue to download mode.
- Open Odin 3.14.4 on PC, untick auto-reboot option, flash TWRP in AP slot.
- Reboot your device to recovery without letting it boot to system.
Important: do not let it boot to system.
- HoldVolDown+Power
for 7 seconds to reboot.
- Then holdVolUp+Power
during reboot to enter TWRP.
- You can let go when you see the bootsplash.
- Allow modifications to system, make sure it's mounted, and install RMM_Bypass_v3_corsicanu.zip to be free from RMM/KG lockstate.
- Don't reboot.
*** Restart here when finished to try other ROMs and GSIs. ***
- Install multidisabler-samsung-2.6.zip.
- Perform
Wipe > Factory Reset
.
- Select
Install > Install Zip
and choose NexusAQ or Nexus LQ.
- Install Disable_Dm-Verity_ForceEncrypt_Latest.zip.
- Reboot and after completing any setup wizards, open Magisk Manager, select install Magisk, and choose the direct installation method, rebooting when complete.
You will now have a rooted, SAR tablet and you can simply wipe everything and install new ROMs on without (reasonable) worry over nasty lockouts or having to reroot again.
I know there are guides all over the place already, but I wrote this anyway 'cause my task saliency is dead and for reference cause I saw somebody complaining in another thread that there's nothing up-to-date.
Check the Magisk version against posts in the Magisk thread. There was a point where Magisk reported SafetyNet test failed, but it was Magisk not getting a valid result from Google -- SafetyNet was passing, but Magisk did not know that. Problem corrected in later version of Magisk.Hi
Just to confirm, on the SM-T510, with TWRP +multidisabler-samsung-3.1.zip + Magisk, the safety tests from Magisk are failing right?
That's normal?
Did you ever have Magisk Manager?I've had a Galaxy SM-T510 for about 18 months. I installed a custom ROM and it worked fine. When it booted up I received a message "Bootloader is unlocked and security cannot be guaranteed, press power button" and when you pressed the power button it booted up fine. Recently, I installed TWRP and when I rebooted it goes to the some "Bootloader is unlocked, etc" error message, but when you press the power key it restarted and looped back to the same point. Eventually, solved the problem. Holding down both volume up & volume down at the same time, and plugging it in puts the device into download mode.
Then if I installed a ROM either thru Odin or TWRP, the device went into a bootloop and never booted completely. Eventually, I was able to install stock ROM with a Magisk modified AP tar file which installed a stock ROM and booted up into a rooted phone. Installing TWRP thru Odin fails, and root disappears whenever the phone is rebooted. (I note others have had this problem)
At the moment I still have root, but it'll disappear if I reboot. I don't have Magisk Manager but if I try to install it from an apk file it says it's already present, and the install fails. I was hoping to install LSPosed but without a function Magisk Manager I can't.
Thanks for the advice. I have lucky patcher and I can't see Magisk Manager there, only Magisk. I would like to install obbs to sd, and keep the root open when I reboot. I've experimented with this several times and I usually wipe data.Did you ever have Magisk Manager?
Did you rename it?
Check your apps drawer for hidden copies of Magisk Manager. It could have any name -- maybe Settings, maybe something you made up. Uninstall any you find.
When was the last time you wiped data? The initial installation of Magisk requires a data wipe between burning the patched AP.tar and the first boot to Android.
I don't know what "lucky patcher" is. I don't know where you are seeing Magisk, but not Magisk Manager. I say "Magisk Manager" when I am talking about an Android app that gets installed using an .apk file. I am trying to distinguish it from "Magisk", which gets injected into boot images. If in the equivalent of the app drawer you see items labeled "Magisk", they are probably instances of "Magisk Manager app". Those are the things, all of which you should uninstall before trying to install a new "Manager" app.Thanks for the advice. I have lucky patcher and I can't see Magisk Manager there, only Magisk. I would like to install obbs to sd, and keep the root open when I reboot. I've experimented with this several times and I usually wipe data.
I've installed the software several times now using Odin with a Magisk modified AP file and BL and CSC files. I'm wondering if I reinstalled using just the AP file, it might regard it as an update and not wipe everything. Before everything went wrong, I had the Nexus OS system with a stable root and in theory I would like to get back to this point. I'll just go back to the device and check again.
Thanks for your advice. I'd sort of worked this out but I remain confused. I have an app on my SM-G965F called Magisk Manager but it says it's version 23, which is Magisk, whereas the MM is version 8.0.2. All this began when I wanted to download Riru and then a version of Xposed so I could put some obbs on SD. There are descriptions of downloading from the MMYou say you see Magisk in Lucky Patcher. Do you also see Magisk in the apps drawer? That is the Magisk Manager app. Stop trying to install the apk, you already have it installed.
I don't know what "Magisk frozen" means. I'm sure uninstalling the app will *not* uninstall Magisk -- Magisk is buried in your boot or recovery image.
If, when you run the Manager app, it says Magisk is not installed, I think that is a sign that you have more than one instance of the Manager app installed. Uninstall all copies, then install a new one. Just one.
Where are you pressing Install? In some package manager? Or in the Magisk Manager app?
Thanks for your advice. Next time I flash I'll try Home_CSC, but I hope I don't have to. One of my posts was deleted for an inadvertent breach of the rules, I apologise. The App named Magisk Manager in another device says it's version 23.0, not 8.0.2 as MM is supposed to be. So I'll uninstall Magisk and then re-install it. Do you suggest, I use the Magisk APK23.0 or the Magisk Manager APK8.0.2?I don't know what "lucky patcher" is. I don't know where you are seeing Magisk, but not Magisk Manager. I say "Magisk Manager" when I am talking about an Android app that gets installed using an .apk file. I am trying to distinguish it from "Magisk", which gets injected into boot images. If in the equivalent of the app drawer you see items labeled "Magisk", they are probably instances of "Magisk Manager app". Those are the things, all of which you should uninstall before trying to install a new "Manager" app.
Having successfully installed Magisk once, I believe some people succeed in updating "Magisk" by re-patching the appropriate image and flashing it. On a Samsung where you must use Odin, I think running Odin with all slots filled, but using "HOME_CSC" instead of "CSC", results in re-flashing without requiring a data wipe, and so without disturbing existing data.
If you change your operating system, I think you have to accept wiping your data. If you are just updating your operating system, you might get away with not wiping data.
If you are confused by the version numbers, don't change anything, it's probably right.Thanks for your advice. I'd sort of worked this out but I remain confused. I have an app on my SM-G965F called Magisk Manager but it says it's version 23, which is Magisk, whereas the MM is version 8.0.2. All this began when I wanted to download Riru and then a version of Xposed so I could put some obbs on SD. There are descriptions of downloading from the MM
Thanks for your advice. Next time I flash I'll try Home_CSC, but I hope I don't have to. One of my posts was deleted for an inadvertent breach of the rules, I apologise. The App named Magisk Manager in another device says it's version 23.0, not 8.0.2 as MM is supposed to be. So I'll uninstall Magisk and then re-install it. Do you suggest, I use the Magisk APK23.0 or the Magisk Manager APK8.0.2?
Thanks for your advice JM. I'll recap at the moment, I had a SM-T510 which had worked fine for 18 months with Nexus OS and root. I can't remember how I did it at that time. I tried to install something with TWRP and it went wrong. It developed a bootloop which I was concerned was fatal because I couldn't get the device into download. Eventually, I discovered you could get intodownload by pressing vol up+down and inserting a cable. But every attempt at flashing ended up in a bootloop, either thru Odin or TWRP.If you are confused by the version numbers, don't change anything, it's probably right.
Magisk has several version numbers. I don't mean there are several versions of Magisk, I mean one version of Magisk spits several numbers at you. Then Magisk Manager has several version numbers. I don't think you can tell who goes with what in older versions. That might have changed.
If you start with "stock" ROM (i.e., no Magisk), install a Magisk apk, use that to patch an image file, install the patched image file -- those have to be a compatible pair of Manager and Magisk, it was the Manager that patched the image.
Before updating a working system, read the Magisk thread (and a dozen similar-device threads) to see if a newer version fixes something you care about, and is likely to work on your device.
I don't know how you imagine a "terminal emulator" will "keep the root open".JM & anyone else reading-I didn't finish the story in my last post because it's a long story. I tried uninstalling Magisk, the device rebooted and root was gone. Tried reinstalling the OS with just the AP in Odin with the Magisk modified tar file hoping this would be treated as an update but when I rebooted it had reset and there was no Magisk at all. So I again reinstalled with Odin, Magisk modified tar in AP, and tar.md5 files in BL & CSC. I'm now back where I started-I have root but I know it'll disappear if I reboot. I'm wondering if there is a way to install a terminal emulator which will keep the root open? I can't install TWRP because the booting up closes the root and prevents a flash.
Hi Bill. This is actually the expected functionality of Magisk on devices where it installs to recovery. Click here to read more about it from the creator of Magisk. You can eventually get around this and have root each time you reboot even without holding down the power+vol combos, there's a lovely guide right here in this forum section but you'll have to do some digging to find it. Here's an in-a-nutshell-version:I've had some further adventures with my SM-T510. I'd reinstalled the OS and had root but was reluctant to reboot the device, expecting to lose root. Eventually, App Manager twice rebooted the device, I pressed Power + Vol Up and I quite unexpectedly still had root. Some time later, I rebooted it and root was gone, but I rebooted it again holding Power + Vol Up until rebooted and root had reappeared. Yesterday, I forgot to recharge and the device went flat. When I tried to reboot with Power + Vol Up, it went to the stock recovery (stating that I had a free space problem), and I have since then only been able to reboot the device without root. I'd like root back, but probably are not willing to start from scratch again to achieve it.
I'm also constrained by the fact that I installed the OS T510XXU4BUA4 stock which may make it more difficult to install a custom ROM.
<OSM> Enter CS for MD5
<OSM> Check MD5... Do not unplug the cable...
<OSM> Please wait...
<OSM> Checking MD5 finished Successfully...
<OSM> Leaving CS...
In order to boot into system with active Magisk, one has to essentially boot into recovery. From the Magisk in Recovery section (Bixby button references can be ignored):Pay special attention to the Ramdisk info. If the result is Yes, congratulations, your device is perfect for installing Magisk! However, if the result is No this means your device’s boot partition does NOT include ramdisk. This means you will have to go through some extra steps to make Magisk work properly.
If your device does not have boot ramdisk, read the Magisk in Recovery section after installing. The information in that section is VERY important!
If you are using a Samsung device and the SAR result is Yes, please check its own section.
If you are using a Huawei device and the SAR result is Yes, please check its own section.
I can understand now why John Wu was spitting nails mad when Google switched to dynamic partitions with system-as-root: it completely effs up the architecture for rooting with Magisk.Magisk in Recovery
If your device does not have ramdisk in boot images, Magisk has no choice but to be installed in the recovery partition. For these devices, you will have to reboot to recovery every time you want Magisk.
When Magisk is installed in your recovery, you CANNOT use custom recoveries to install/upgrade Magisk! The only way to install/upgrade Magisk is through the Magisk app. It will be aware of your device state and install to the correct partition and reboot into the correct mode.
Since Magisk now hijacks the recovery of the device, there is a mechanism to let you actually boot into recovery mode when needed: it is determined by how long you press the recovery key combo.
Each device has its own key combo to boot into recovery, as an example for Galaxy S10 it is (Power + Bixby + Volume Up). A quick Google search should easily get you this info of your device. As soon as you press the combo and the device vibrates with a splash screen, release all buttons to boot into Magisk. If you decide to boot into actual recovery mode, continue to press volume up until you see the recovery screen.
After installing Magisk in recovery (starting from power off):
- (Power up normally) → (System with NO Magisk)
- (Recovery Key Combo) → (Splash screen) → (Release all buttons) → (System with Magisk)
- (Recovery Key Combo) → (Splash screen) → (Keep pressing volume up) → (Recovery Mode)
Check the Magisk version against posts in the Magisk thread. There was a point where Magisk reported SafetyNet test failed, but it was Magisk not getting a valid result from Google -- SafetyNet was passing, but Magisk did not know that. Problem corrected in later version of Magisk.Hi
Just to confirm, on the SM-T510, with TWRP +multidisabler-samsung-3.1.zip + Magisk, the safety tests from Magisk are failing right?
That's normal?
After resolving RMM/KG lock, why go back to pie? Flash stock Android 10, matching versions. If you want the true stock firmware with T510XXU3BTH4, search for it at once of the big hosting sites:What worked for me was flashing stock firmware and starting over. But I'm still on Pie...
VolUp+VolDown
buttons and plug USB to PC.VolDown+Power
for 7 seconds to reboot.VolUp+Power
during reboot to enter TWRP.Wipe > Factory Reset
.Install > Install Zip
and choose NexusAQ or Nexus LQ.