Thanks to Magisk, you don’t have to lose your roots when updating to Android 11. The popular systemless rooting tool gained superuser access to Google’s newest operating system even before its official release. It’s currently in an experimental stage so the process is more difficult than usual, but it works.
Unfortunately, due to changes in Android 10, we will have to wait a while for an official TWRP custom restore. This makes flashing Magisk more difficult and also means that if a soft building block (or bootloop) occurs, you are more vulnerable Caution.
: Unlock your phone’s bootloader
To install Magisk and thus root your phone, you need to flash a modified image to a partition on the operating system level of your phone. This is exactly What can you do to unlock your bootloader?
So, it’s time to unlock your bootloader if you haven’t already. But do you know that? clears your internal memoryThis means that all of your data that was not backed up to the cloud will be lost.
This step is complex, so we’ve written a separate guide to walk you through this step:
Step 2: Download the Android 11 Factory Images on your computer
Now you need the factory images for the version of Android 11 your device is currently running on. This is a series of IMG files, usually in a ZIP archive, that are a perfect copy of your phone’s internal storage partitions, minus any user data.
If your phone has an unlockable bootloader, most likely your phone manufacturer offers a free download of these factory images. For what’s worth it, you don’t need all of the factory images, just the boot image. If your phone’s OEM offers a direct download for the boot.img file, it will be faster.
Otherwise, you can use the links below to find the factory images for the two major brands in the US that allow the bootloader to be unlocked. While you’re there, go to “About Phone” in Settings and read the “Build Number” below. Make sure this matches the version you are downloading.
Step 3: Extract the boot image
Extract the zip file using either your computer’s pre-installed zip extractor or a third-party option like 7-Zip. Open the folder and then the zip file that starts with “image-” followed by a name and a series of letters. Extract the IMG file “boot”, which you can find in this ZIP file, to your desktop.
If you’re using a OnePlus phone, it’s not as easy as extracting a file. Instead, you must use a utility to pull the boot image from the Payload.bin file. Use the instructions below to remove the square:
Step 4: Move the boot image to your phone
Now move the Boot IMG file you just extracted to your phone and place it in the Downloads Folder. We recommend doing this with a physical connection (i.e. a USB data cable) as uploading to a cloud service can damage the file.
If you need more help on this part, check out Google’s guide on how to transfer files from Android to Windows or our guide on how to transfer Android to Mac.
Step 5: Install Magisk Manager Canary on your phone
You will now need to install the Canary or pre-beta build of Magisk Manager on your phone. Below we have linked the official version of topjohnwu. So tap or long press the link to save the file. Since it is an APK, you have to activate “Install unknown apps” for your browser and download the app from the site to install it.
Step 6: Patch the boot image with Magisk Manager
Open Magisk Manager and select “Install” in the top right corner of the Magical Map. Tap “Allow” when prompted to give Magisk permission to access your files.
On the To install Now leave both “Keep” options checked and leave “Recovery Mode” unchecked. Then press “Next”. In the next menu, tap on “Select file and patch”. The system file selection is displayed. Use the hamburger menu to find yours Downloads Folder and select the “boot.img” file that you copied in step 4.
Now you are brought back to the To install Screen in Magisk Manager. Here tap on “Next” and then on “Let’s go”. Finally, wait for the “Everything done!”
Step 7: Move the patched boot image to your computer
From here you move the magic_patched.img File from the Downloads Transfer folders on your phone to your computer desktop. If possible, use a data cable again.
Step 8: Download the Google Platform Tools on your computer
You need to send fastboot commands to your phone in order to root it. To do this, you need a small free first-party software that was created by Google.
You can download these “Platform Tools” directly from Google using the link below. Just select the link that corresponds to your computer’s operating system.
Step 9: Extract the Platform-Tools ZIP
Once downloaded, extract the file using your operating system’s built-in tools or a third-party program such as 7-Zip. Once extracted, copy and paste (or drag and drop) the platform-tools folder onto the desktop for easy access as you will use it later.
Step 10: Open a command prompt in the Platform-Tools folder
For macOS and Linux users, open the Terminal app in your applications folder. If you are using Windows, open the command prompt from the start menu.
After opening your command line tool, enter the following, but don’t press Enter yet::
Now press the spacebar once to add a single space after “cd”. Still don’t press Enter.
Finally, pull the Platform tools Folder from your desktop and drop it right above the command line window. This will automatically fill in the full file name and folder location Go ahead and hit enter on your keyboard.
Step 11: put your phone in bootloader mode
Now you need to boot into bootloader mode so that you can send the Fastboot command that will install Magisk.
You can do this by enabling developer options, enabling USB debugging, allowing the connection, and then typing adb reboot bootloader into the command prompt on your computer, but there is an easier way: keyboard shortcuts.
For most phones, turn off the device completely and press and hold the volume down button. Press and hold the volume down, press and hold the power button until the phone boots up, then release both buttons. If you see a menu like this here, you’re good to go. Otherwise, use the ADB command.
Step 12: connect to your computer
Now connect your phone to your computer with a USB data cable. Ideally, this will be the cable that came with your phone. If not, at least make sure the cable is good quality.
Step 13: flash the patched boot image
Type the following command in your computer’s command line tool and press Enter to verify the Fastboot connection.
You should see your phone’s serial number. If you do, you can proceed. Please enter the following and hit the space bar once add a single space, but Do not press Enter::
fastboot flash boot
Drag the “patched_magisk” IMG file from your file explorer into the command line tool and drop it directly into this window to automatically fill the file path. From there, Press Enter to send the full command.
Note: If you’re on Mac or Linux and you get an error message after sending the above command, add a period and a slash (./) to the beginning and send it again. Example: ./fastboot flash boot boot.img
After a series of lines including two with “OKAY”, type the following command to reboot your Android:
Again, add “./” to the front if that doesn’t work the first time:
Step 14: check root
When you get up again all that’s left to do is check root. Open the Magisk Manager and you should now see “Status: Normal” in the Magical Section next to a build number next to “Installed”. Download a root app and tap “Grant” when asked for superuser access to see if everything is working as intended.
Note that due to changes to Android, SafetyNet will no longer broadcast by default. As a result, you will lose access to Google Pay, Pokémon GO, and some banking apps that use SafetyNet to check if your device has been rooted or changed.
Keep your connection secure with no monthly bills. Get a lifetime subscription to VPN Unlimited for all your devices with a one-time purchase in the new Gadget Hacks Shop and watch Hulu or Netflix with no regional restrictions.
Buy now (80% discount)>