- How to install Magisk Search Queries
- Introduction to Root, Magisk, Custom Recovery and Bootloader
- What is Magisk?
- What is Android Root? Rooting in Android.
- What is SuperUser and How does it work?
- Magisk Root vs SuperSU Root, Which is better or best to use for gaining Root Access?
- How to install Magisk on Android: Flash Magisk on Android 10, Android 11, and Android 12.
- What is a Bootloader in Android devices?
- What is a Custom Recovery?
How to install Magisk Search Queries
How to install Magisk
How to install Magisk v22
How to install Magisk on Android 11
How to install TWRP
How do I install custom recovery?
How to unlock bootloader
how to install TWRP Recovery
How to install TWRP using Fastboot
How do I install recovery?
Introduction to Root, Magisk, Custom Recovery and Bootloader
You may want to customize your device because of the trend of customization. You may want to install Magisk to gain root access on your Android smartphone. You may want to customize your device through Magisk and its other module features. But first, let’s take a look at this topic Magisk.
What is Magisk?
Magisk is a systemless method to gain root access on Android. It is a systemless rooting system to root the device without messing up the System Partition on the device. What it means is that Magisk helps to gain Root Access without modifying the System partition in which the Android System is situated. This is a very handy method because Magisk doesn’t mess up with system partition and allows users to integrate other features, such as SafetyNet bypass, Magisk Hide, and do the modifications without actually touching the System partition with the help of Magisk Modules.
This was all about Magisk, how it works, and its Advantages. Now let’s see What is Root and how it works.
What is Android Root? Rooting in Android.
Rooting in Android is the process to gain privileged control over the System, and its subsystems with the integration of Privileged codes into the System, which acts as a SuperUser or Administration.
Rooting in Android is performed to modify the system to overcome the limitation of the device. Root Access on Android gives the user Android Administration control to push the carrier to its maximum limit and also gives the users’ add-on features by using Root Apps or Zip Modules to give the device extra features.
Now, You may be wondering what is Super User or Administration Privilege?
What is SuperUser and How does it work?
SuperUser is a high privilege account type or administrator App or program that holds administration controls over the whole Android Operating System. SuperUser App can control which app, or program can have the SuperUser Root Privilege access. The superUser app can also grant other apps access to act as different Super User apps.
Magisk Root vs SuperSU Root, Which is better or best to use for gaining Root Access?
If you want to choose between Magisk Root or SuperSU Root, then the best choice would be to use Magisk Root over the SuperSU Root, and here is why?
Magisk Root works systemless whereas the SuperSU Root by Chainfire injects the privileged codes to the system, and hence it gets unified and integrated with the System and Sub Systems of Android OS.
Google’s security AI has become smart, and it can detect whether the device has been rooted or not. It can easily catch the device’s root status and there is no Root hiding method with SuperSU Root. Because of this, your SafetyNet API will also get failed. Magisk Root on the other hand can hide Root from certain apps that usually don’t work with Root Access. Magisk Root can also bypass Google’s SafetyNet, and you can use your device with ease without worrying about banking apps not working on a rooted device.
With the help of Magisk, you can also use Xposed Systemless without touching the System partition. Whereas if you wish to tweak your device with Xposed Installer, that usually messes up with your System partition with Super SU Root.
TopJohnWu, a developer at XDA has developed the Magisk in 2016. It is a Super User tool to gain root privilege, as mentioned above in this post. It is the alternative tool to SuperSU and has much more features than Super SU Root to Customise the Android device. Magisk has EdXposed which is an alternative to Xposed Installer. For the time being, not many Magisk EdXposed Modules have been developed to tweak and add extra customization to the Android device.
How to install Magisk on Android: Flash Magisk on Android 10, Android 11, and Android 12.
Method 1: Installing Magisk using Custom Recovery or TWRP ( Team Win Recovery Project ): Install Magisk with TWRP
• Make a complete Backup of Internal Storage.
• An Android smartphone with Android v4.2 and above
• Make sure the Battery is at least 50% charged.
• Bootloader Unlocking Tool for Custom Skin Smartphones or Minimal ADB and Fastboot Tool for Stock Android devices.
• TWRP or any other Custom Recovery.
• No-verity-opt-encrypt zip file or lazy_flasher zip file or Disable_Force_Encryption zip file
• Magisk Zip File
• PC USB drivers for Smartphone fastboot operation
Disable Force Encryption Zip Files Google Drive Collection – Try whichever works.
Note: Make a Complete Backup of your Device Internal including, Calls, Contacts, and messages, because this process will wipe the whole device.
Steps to install Magisk using TWRP.
- Unlock Bootloader
Step 1: Get the Bootloader Unlocking Tool based on your Smartphone and Install it on your PC. For Xiaomi, there is Mi Unlock Tool, For Samsung, Motorola, OnePlus, and Nokia, there is Minimal ADB and Fastboot Tool. For Realme, Oppo, Vivo it’s a little complicated. You can find it in the Realme Community thread to know how to unlock the Bootloader on any Realme Device. For Xiaomi, there is already available over the internet, or you can check my post which will be updated at NooberInfo.
Step 2: In your phone, go to settings and then the About Section.
Step 3: Look for Build Number and press it continuously 10 times or more until you see a message that says, “No need you are already a developer”
Step 4: Go back to Settings and Go to Developer settings under Additional Settings on Custom UI Skin phones like Xiaomi or Realme. For Stock Android UI devices, You will find it in the System section and then “Developer Option“
Step 5: Now here, Search for Allow OEM unlock or Bootloader Unlock and press on it to turn it ON.
Step 6: If it asks for Password or Captcha to fill, then do as it says.
Step 7: ( Optional ) For Custom UI devices like Xiaomi and Realme, You will need to Bind Mi Account for Xiaomi Devices. After you have entered the OEM Unlock option, it will ask you to add an account or bind the device, just tap on it and wait for a few minutes until it gives you a successful message. Then go back and wait for 10 days to get approved. For Realme devices and Oppo, they also ask for Bootloader unlock permission.
Step 8: Now Search for ” Allow USB Debugging” and turn it ON.
Step 9: Boot your phone into Fastboot Mode by pressing and holding the Power button and Volume down (-) simultaneously after turning off your phone.
Step 10: Connect your device using a USB cable to your PC.
Step 2: (For Stock Android devices) Open Minimal ADB and Fastboot Tool in Administration mode.
Step 3: Type these commands below.
fastboot flashing unlock ‘or’ fastboot OEM unlock ‘or’ fastboot OEM unlock-go
Fastboot flashing unlock_critical ‘or’ fastboot OEM unlock_critical :- requires some devices like Mi A3.
The unlock critical command is required on some devices only. It may be required in A/B Partition devices that have a dual-slot for Android OS.
If you want to know what exactly a Bootloader is then, here is your answer.
What is a Bootloader in Android devices?
A Bootloader is vendor proprietary firmware, or in simple terms, it is a bootstrap loader or boot program that is responsible for booting the operating system. The Bootloader program runs every time before the Operating System when the device or computer is started or turned ON.
A Bootloader tells the device when to boot and when to turn off depending on the users’ action.
- Flash TWRP (Team Win Recovery Project) or flash any Custom Recovery.
Related: How to check if your device supports A-Only or AB Partition Scheme?: How to check if the device is running A-Only or A/B Partition scheme – How to check if the device supports a seamless update feature? How to check the device’s active slots?
For A-Only Partition devices that have a single slot for the Operating system.
Step 1: Get the TWRP file from the official TWRP website for your device model or go for other Custom Recoveries like OrangeFox Recovery, PitchBlack Recovery (PBRP), or Sky Hawk Recovery Project, (SHRP) for short.
Step 2: rename the TWRP or Custom Recovery file to ‘recovery’ in small letters, and without quote signs.
Step 3: Copy and paste the renamed recovery file to ADB Tool or Minimal ADB and Fastboot Tool installation directory.
The directory is C:\Program Files (x86)\Minimal ADB and Fastboot
You can also right-click on the Minimal ADB and Fastboot Tool desktop icon or installed program then click “properties” and then again right click and choose “open file location”
Step 4: Now, Inside the Minimal ADB and Fastboot directory folder, Paste the recovery file and click “continue” to give the file write administration permission.
Step 5: After copying and pasting the Recovery file, open the Minimal ADB and Fastboot program in Administration right.
Step 6: In your phone, go to settings and then the About Section.
Step 7: Look for Build Number and press it continuously 10 times or more until you see a message that says, “No need you are already a developer”
Step 8: Go back to Settings and Go to Developer Options under Additional Settings on Custom UI Skin phones like Xiaomi or Realme. For Stock Android UI devices, You will find it in the System section and then “Developer Options”
Step 9: Now Search for ” Allow USB Debugging” and turn it ON.
Step 10: Boot your phone into Fastboot Mode by pressing and holding the Power button and Volume down (-) simultaneously after turning off your phone.
Step 11: After you have done the above steps, Connect your device to the PC using a USB Cable.
Step 12: Type the following commands in Minimal ADB and Fastboot that is given below.
fastboot flash recovery recovery.img
Fastboot flash vbmeta vbmeta.img ( optional- Only do this if you have full stock ROM with the same version that is currently installed in your phone. Then copy the Vbmeta img file to Minimal ADB and Fastboot directory folder. )
Fastboot flash dtbo dtbo.img ( optional- Only do this if you have full stock ROM with the same version that is currently installed in your phone. Simply copy the dtbo.img file to Minimal ADB and Fastboot directory folder. )
Fastboot Reboot recovery ‘or’ fastboot OEM reboot Recovery ‘or’ fastboot reboot recovery.img ‘or’ fastboot boot recovery.img
Step 13: Reboot your device using the reboot command or simply press and hold the smartphone’s volume up (+) button and type ‘fastboot reboot’ without quotes in small letters and hit enter. You will then reboot to recovery mode.
Step 14: Swipe left to right in recovery on first recovery boot to “allow device modification”
Step 15: Copy lazy flasher file or disable force encryption file into your device using ADB Sideload, or if you have copied to your SD Card already then it’s fine.
Step 16: Flash Disable Force Encryption zip file, if you wish to boot into the same ROM that is currently installed in your device.
Congratulations 🎊, You have successfully installed the custom recovery in your device.
Note: Step 15 and Step 16 are not mandatory if you are switching from Stock ROM to Custom ROM on the first Recovery Boot. After flashing Custom ROM remember to flash Disable Force Encryption zip file.
For A/B Partition devices that have a dual-slot for the Android Operating system.
Step 1: Complete Step 1 to Step 11 from A-Only Partition devices steps.
Step 2: Type the following commands to install Custom Recovery or to install TWRP for A/B Partition devices.
For Xiaomi devices:
fastboot getvar current-slot
(If it shows Active slot-A then Change it to Slot – B or if it shows active Slot B then change it to Slot A). Let’s say Active Slot is A.
fastboot set_active b
fastboot flash boot recovery.img
fastboot boot recovery.img
Use this command if necessary after flashing recovery and before booting to recovery:
fastboot flash vbmeta vbmeta.img ( optional- Only do this if you have full stock ROM with the same version that is currently installed in your phone. Simply copy the Vbmeta img file to Minimal ADB and Fastboot directory folder. )
For OnePlus devices, OnePlus 8, and above:
fastboot flash recovery_a recovery.img
fastboot flash recovery_b recovery.img
fastboot boot recovery.img
fastboot flash vbmeta vbmeta.img ( optional- Only do this if you have full stock ROM with the same version that’s currently installed in your phone. Simply, copy the Vbmeta img file to Minimal ADB and Fastboot directory folder. )
For the OnePlus 7 Pro and below.
You will need the Fastboot boot recovery img file to do so.
fastboot flash recovery_a recovery.img
fastboot flash recovery_b recovery.img
fastboot boot recovery.img
(After booting into Recovery, copy the recovery file to the device using ADB sideload and then go to Advanced tab and select ‘Install Recovery Ramdisk,’ Choose the recovery img file and swipe to install ). You can also use the Xiaomi method but, you have to install recovery to recovery partition instead of the boot partition.
Please refer to this XDA thread for proper knowledge and research.
Related: Best Practices to prevent force encryption.
Optional: How to flash a Custom ROM: How to Install a Custom ROM on any device.
Step 1: Get a Custom ROM for your device model.
Step 2: Boot into Recovery mode.
Step 3: Go to the Install tab or section of your Recovery.
Step 4: Choose the ROM file.
Step 5: “Swipe to flash” the ROM.
Step 6: After flashing the ROM, Flash GApps file if required.
Step 7: Reboot your device.
You have successfully installed Custom Recovery and Custom ROM. But if you wonder what is a custom recovery then read below.
What is a Custom Recovery?
A custom recovery is a software that is similar to Stock Recovery with more actionable features that can make changes to Operating System if the user wants and can also run even without the Operating System (Android). It is like a tiny operating system that a user can play around with to make changes to the actual Operating System or Android, based on user need.
Unlike Stock Recovery, Custom Recovery can flash Custom ROM or, in simple terms, Custom Recovery can flash Custom Operating System to get more features, more customization, more security, and to add custom mods.
The Stock Recovery only has the ability to Format System, Format Data, Clear Cache, Factory Reset, install updates, and option to boot into Fastboot mode whereas the Custom Recovery has all these features of Stock Recovery including File Manager, Install Zips, Remove Encryption, Root the Device, change kernel, change boot, change the system, install mods, Backup and Restore the Operating System, and can switch to another recovery as well. Custom recovery has much more options than Stock Recovery.
- How to flash and Install Magisk file on Android: How to install Magisk on any Android device. Root Android device with Magisk.
Step 1: Unlock the Bootloader of the device and install TWRP or any Custom Recovery to install Magisk. Complete the above methods.
Step 2: Get Magisk file from Guthub. Github is the safest place to get Magisk File.
Step 3: Boot into TWRP.
Step 4: Now, After booting to Recovery, go to the Install tab or section.
Step 5: Choose the Magisk file.
Step 6: “Swipe to flash” the Magisk file.
After going through all these troubles, you have successfully installed Magisk. Enjoy Magisk Root with Magisk Modules.
This was how to install Magisk through TWRP or Custom Recovery method. Now let’s know how you can Root your device with Magisk Without using TWRP or Custom Recovery.
Method 2: Installing Magisk without using Custom Recovery or TWRP ( Team Win Recovery Project ): Install Magisk with PC method
To do this method you will your Stock ROM or any ROM that you have currently installed. It will work with Custom ROMs also without any problem. I have tested both Stock and Custom ROM, and Magisk Root work fine.
So let’s follow the steps below to begin the process.
Step 1: Get the Stock ROM or Custom ROM that you have currently installed or if you already have no need to download. It should be a Full ROM. Recovery ROM will also get the job done until and unless it has boot.img file.
Step 2: After downloading the Stock ROM or Custom ROM, extract the ROM file and search for the boot file. It should be boot.img file.
Step 3: Download and Install Minimal ADB and Fastboot Tool on your PC.
Step 4: Install USB Drivers on your PC. Check the above-related post to know how to install Android USB drivers in Windows.
Step 5: Copy the boot.img file to your smartphone using USB or anyhow.
Step 6: After Copying the Boot file, Download and Install the Magisk Manager APK file on your Smartphone.
Step 7: Open Magisk Manager App on your smartphone.
Step 8: Inside Magisk Manager App, Click on “Install”
Step 9: Under the Install button, choose ” select and patch a file “
Step 10: After that, Navigate to the folder where you have copied the Boot file and choose the Boot file.
Step 11: After selecting the Boot File, click on Let’s Go to proceed with Boot image patching.
Step 12: After clicking on ” Let’s Go ” it will start patching the Boot image file and will take a few minutes to complete. It will give you a successful message that tells you the location it has stored the file. By default, it should be the ” Download ” folder on Internal Storage.
Step 13: Connect your Smartphone to your PC and copy the newly patched boot image stored on the Download folder to your PC.
Step 14: After copying the file to PC, Copy the same Boot Image File to Minimal ADB and Fastboot Location and paste the file there. Here is the location – C:\Program Files (x86)\Minimal ADB and Fastboot copy and paste this location in the File Explorer location section.
Step 15: Rename the file to ‘boot’ without the quotation mark. boot
Step 16: Boot your smartphone to Fastboot mode. But if you are a noob then search on Google how to boot into Fastboot mode.
Step 17: Connect your Smartphone to the PC using a USB Cable.
Step 18: After you have connected your smartphone to PC, Run the Minimal ADB and Fastboot Tool on your PC as Administrator.
Step 19: Type the following commands.
fastboot flash boot boot.img
Step 20: After giving the above commands, the smartphone will install Magisk and boot into the system. Then Open the Magisk Manager App.
Step 21: After you have opened the Magisk Manager App, it will ask you to update the App and Magisk Zip as well. Do it as the Magisk App instructs you to do.
After doing all the above steps your phone will be Rooted with Magisk Without TWRP or any Custom Recovery, but instead, you will need a PC or Laptop to go with this process.