How To Root Galaxy S21 Series With Magisk

How to Root Galaxy S21 series with Magisk

The recently launched  Galaxy S21 series is the most advanced Galaxy smartphone made by Samsung. The phones are powered by either Snapdragon 888 or Exynos 2100 chipset, which depends on the region. This year, Samsung has almost matched the performance of Snapdragon and Exynos which is great. The whole S21 lineup is running on Android 11 based on which their own skin One UI 3.1. In the past, it is always very difficult to root Samsung smartphones. However, we still manage to find a way to root the Galaxy devices. So here is a guide on how to root Galaxy S21 series with Magisk.

How To Root Galaxy S21 With Magisk

Do note this time both the Exynos as well as Snapdragon variant can be rooted with the help of Magisk. Also rooting or unlocking the bootloader will trip Samsung Knoxx, which won’t let run some of the system apps like Samsung Pay, Samsung Pass.

Also Read- One UI 3.1 For Galaxy S20 Series Out Now

  • First, you need to Unlock the bootloader of your Galaxy S21
    • Allow bootloader unlocking in Developer options → OEM unlocking
    • Reboot to download mode: power off your device and press the download mode key combo for your device (Vol Down + Vol Up) while connected to USB.
    • Long press volume up to unlock the bootloader. This will wipe your data and automatically reboot.
    • By now you might think the bootloader is unlocked, But it is not,  Samsung uses vault keeper which doesn’t allow any unofficial image to be patched.
    • Go through the initial setup. Skip through all the steps since data will be wiped again later when we are installing Magisk. Connect the device to the Internet during the setup.
    • Enable developer options, and confirm that the OEM unlocking option exists and is greyed out. This means the VaultKeeper service has unleashed the bootloader.
    • Your bootloader now accepts unofficial images in download mode.

Editor’s Pick – Get 120Hz Refresh Rate with WQHD+ on Galaxy S20/S20+/S20U

Patching Boot Image

If your device has boot ramdisk, you need a copy of the boot.img. Below is a method on how to get the Boot image of your firmware.

  • Use either Frija or Samloader to download the latest firmware zip of your device directly from Samsung servers.
  • Unzip the boot.img from AP and copy the file to your device.
  • Press the Install button on the Magisk card
  • Choose “Select and Patch a File” in method, and select the stock boot image
  • Magisk Manager will patch the image to [Internal Storage]/Download/magisk_patched.img.
  • Copy the patched image to your PC
  • Flash the patched boot image to your device.
    For most devices, reboot into fastboot mode and flash with the command:
    fastboot flash boot /path/to/magisk_patched.img or
    Rename magisk_patched.img to boot.img and use 7zip to make flashable tar of your boot.img
    Reboot to download mode. Open Odin on your PC, and flash boot_patched.tar as AP.
  • Reboot and that’s it.

Finally, Installing Magisk and rooting your Galaxy S21

  • Use either Frija or Samloader to download the latest firmware zip of your device directly from Samsung servers.
  • Unzip the firmware and copy the AP tar file to your device. It is normally named as AP_[device_model_sw_ver].tar.md5
  • Press the Install button on the Magisk card
  • Choose “Select and Patch a File” in method, and select the AP tar file
  • Magisk Manager will patch the whole firmware file to [Internal Storage]/Download/magisk_patched.tar
  • Copy the patched tar file to your PC with ADB:
    ADB pull /sdcard/Download/magisk_patched.tar
    Do NOT use MTP as it is reported to corrupt files.
  • Reboot to download mode. Open Odin on your PC, and flash magisk_patched.tar as AP, together with BL, CP, and CSC (NOT HOME_CSC because we want to wipe data) from the original firmware. This may take some time (>10 mins).
  • After Odin is done, your device should reboot. You may continue with the standard initial setup.
    If you are stuck in a boot loop, agree to do a factory reset if prompted.
  • Although Magisk is installed, it still needs some additional setup. Please connect to the Internet.
  • Install the latest Magisk Manager and open the app. It should show a dialogue asking for additional setups. Let it do its job and the app will automatically reboot your device.
  • That’s it now you have Magisk installed on your Phone.

Verdict

So this was an extensive guide on how to unlock the bootloader, and how to extract the boot image along with the steps on how to install Magisk module and how to root galaxy S21 series with Magisk module. feel free to ask anything if you get stuck anywhere.

Maaz Perwez

Maaz Perwez, founder of TheTecheaven, being a technophile loves to write about what's happening in the technical world, aims to deliver the finest & most researched content to the audience through this platform.

You may also like...

1 Response

  1. February 18, 2021

    […] How To Root Galaxy S21 Series With Magisk February 18, 2021 […]

Leave a Reply

Your email address will not be published. Required fields are marked *