If you like to customize your Samsung Galaxy S21, S21+, S21 Ultra (SM-G991, SM-G996, SM-G998) and have complete control over its firmware, then the first thing you should do is root it. You can root the Samsung Galaxy S21 by using Magisk, the most popular rooting tool for Android phones. Magisk enables root and allows you to completely customize the system of the phone. Furthermore, you can use modules with the help of Magisk Manager. There are different modules that serve different purposes that you can freely download and enable.
Update (15 Feb 2021): John WU has added official support for the Samsung Galaxy S21, S21+ and S21 Ultra. Both the Exynos and Snapdragon variants can be rooted
— John Wu (@topjohnwu) February 14, 2021
Samsung continues to make it difficult for users to root their devices. For example, you cannot flash custom binaries by default. You need to unlock the bootloader first, which will wipe all data. KNOX is also something to be kept in mind. KNOX counter gets tripped when custom binaries are flashed. This avoids the warranty in certain countries.
Below you have a detailed tutorial on how to root your Samsung Galaxy S21. You will need to unlock the bootloader, patch the firmware, and install Magisk. If you get stuck in any of the steps of the tutorial, leave a comment down below and we will assist you.
How To Root Samsung Galaxy S21 with Magisk
Installing Magisk on your phone is done in three steps. The first step is to unlock the bootloader and make it accept unofficial images, the second step is to patch the firmware and flash it through Odin, and the last step is to correctly boot the phone with Magisk installed.
- This process will wipe your phone. When you unlock the bootloader for the first time to install Magisk, a full data wipe will be performed. Please make a data backup before you continue, otherwise, you will lose all of the data.
- Installing Magisk on your Galaxy S21 will trigger KNOX. This is an indicator that shows whether the firmware has been tampered with or not. Some stores will refuse warranty service if KNOX is tripped.
Step 1: Unlock the Galaxy S21 Bootloader
Samsung has introduced a new service called VaultKeeper. This means that you won’t be able to flash custom binaries or unofficial partitions unless VaultKeeper allows it. As a result, you need to unlock the bootloader before you proceed with the next step. Follow this article to learn how to unlock the bootloader on the Samsung Galaxy S21.
Step 2: Patching the firmware with Magisk
There are two methods to patch the firmware. It depends on your phone’s Ramdisk info.
- Download the latest stock firmware for your Samsung Galaxy S21. Follow our detailed guide on how to download and install stock firmware on Samsung Galaxy S21.
- Once you have downloaded the firmware, extract the firmware. You will see five files.
- Download and install the latest Magisk Manager APK. Open the app and check the Ramdisk info. If it says:
- Ramdisk: Yes
- Out of the extracted files, find boot.img.
- Transfer the archived boot file to the internal storage of your phone.
- Open Magisk Manager and go to Install > Install > Select and Patch a file. (Make sure Recovery Mode is off.).
- Ramdisk: No
- Tranfer the AP file to the internal storage of your phone.
- Transfer the AP file to the internal storage of your phone.
- Open Magisk Manager and go to Install > Install > Select and Patch a file. (Make sure Recovery Mode is on.).
- Ramdisk: Yes
Step 3: Flashing patched Magisk image
- Navigate through the storage and select the archived image file. The image will be patched and the new version will be found under Internal Storage/Download/magisk_patched.tar.
- Transfer the patched file to your computer.
- Turn off your phone and boot your phone into download mode.
- On Odin, click on AP and select the patched .tar file. Check “Auto Reboot” and click on Install.
- The tool will flash Magisk on your Samsung Galaxy S21.
Now that you have installed Magisk on your Galaxy S21, you can later on update Magisk directly from the Magisk Manager app. If you want to update to another version of the firmware, also patch it through Magisk Manager first, and then flash it. With Magisk you can now enjoy all root benefits plus Magisk’s module system.