Samsung Knox is a foe of custom developers. On top of that, when Samsung introduced KG State/RMM lock on its smartphones, things got harder than ever before. Though Samsung has implemented the least Knox features on its M Series such as the Galaxy M20, rooting M Series is as hard as other prolific Samsung series. Nonetheless, that doesn’t mean we can’t entirely root or flash custom binaries on the M Series.

Must See: Samsung Galaxy M51 features leaked, sporting 7000mAh battery?

Here, we’ll be discussing the methods to gain root access on one of the popular M Series, the Galaxy M20. Fortunately, the M20 powered by the Exynos 7901 has got stable official TWRP custom recovery. So, we can either utilize the TWRP or the Magisk patched boot image method to root the Galaxy M20.

That being said, let’s start with the TWRP method.

Root Samsung Galaxy M20 Using Official TWRP

Warning: Unlocking bootloader wipes your data and flashing custom binaries rip the warranty. If handled carelessly, the whole process can render your device useless. So, be cautious.

Downloads

  1. First, make sure your phone isn’t RMM Locked.
  2. Go to Settings App, Developer Options and enable OEM Unlock (If you don’t see Developer Settings, go into About phone > Software info and tap “Build number” 6-7 times successively to trigger Developer Options menu).
  3. Do a backup of all your important data and files in your phone.
  4. Power-off the phone. Once it’s off, Power it on in Download Mode (Connect your phone to your PC, press and hold Power, Volume down and Volume up buttons simultaneously)
  5. Open Odin3, go in Option section and untick “Auto-reboot”. Once that click the “AP” button and select the TWRP tar file you downloaded before, then press the “Start” button.
  6. Once Odin3 finished flashing the recovery you should see a “PASS” message with a green background.
  7. Force reboot your phone (Press and hold Power and Vol down buttons together) and once the screen is off, press and hold Power and Volume + buttons together to boot in TWRP.
  8. Once TWRP is booted you first need to decrypt your /data partition. To do so touch Wipe > Format Data and follow the instructions in screen.
  9. Once it finished go back at the home screen and touch Reboot > Recovery. TWRP should be able to mount your data partition.
  10. Now tap Install on TWRP screen and choose the no-verity-opt-encrypt file to flash
  11. Then flash Magisk (which will root the device) and RMM Bypass zip you downloaded before.

Reboot your device. Go to app drawer and you should see the Magisk Manager installed on your device to manage root authentication.

Root Unlocked Galaxy M20 – Magisk Patched Boot Image

Magisk patched boot image is for those who don’t want to root the device via TWRP. But, it requires your o download the current firmware which will be of few GBs in size.

To use this method, you are required to obtain a copy of the stock boot/recovery image, which can be found by extracting stock Galaxy M20 firmware. Read on, for detailed steps.

  • Download the firmware for your device. Samfirm is the best PC tool for downloading Samsung firmware.
  • Unzip the firmware and copy the AP tar file to your device. It is normally named as AP_[device_model_sw_ver].tar.md5
  • Install the latest Magisk Manager on your device
  • In Magisk Manager: Install > Install > Select and Patch a File and select the AP tar file.
  • Magisk Manager will patch the whole firmware file and store the output to [Internal Storage]/Download/magisk_patched.tar
  • Copy the patched file to your PC with adb pull /sdcard/Download/magisk_patched.tar. Do not use MTP as it is reported to corrupt files
  • From Odin3, uncheck “Auto Reboot” in Options.
  • Reboot to download mode, and flash magisk_patched.tar as AP in Odin, together with the BL, CP, and HOME_CSC files. Never flash only an AP file, as Odin can shrink/data the file-system.
  • Magisk is now successfully flashed to your device! But there are still several steps before you can properly use the device.
  • We now want to boot into the stock recovery to factory reset our device.
    Full data wipe is mandatory! Do not skip this step.
    Press Power + Volume Down to exit download mode. As soon as the screen turns off, immediately press the combo key to boot to recovery (Vol. Up + Power simultaneously). Since we want to boot into stock recovery, continue pressing the volume up button until you see the stock recovery screen.
  • Use volume buttons to navigate through the stock recovery menu, and the power button to select an option. Choose Wipe data/factory reset to wipe the data of the device.
  • This time, we can finally boot to the system with Magisk. Select Reboot system now, and immediately press the combo key to recovery. After seeing the bootloader warning screen, release all buttons so it can boot to the system.
  • The device will automatically reboot for the first time it boots. This is completely normal and done by design.
  • After the device is booted up, do the usual initial setup. The following steps will need an internet connection.
  • You shall see Magisk Manager in your app drawer; if not, manually install the Magisk Manager APK.
  • Magisk Manager will ask to do additional setups. Let it do its job and the app will automatically reboot your device.
  • That’s it.

Reboot the device, once the flashing completes. Go and check the Magisk Manager if the root has been successfully installed or not. If done properly, you should have a rooted device otherwise repeat the steps from the beginning.

Also Read: Samsung Galaxy S20 Fan Edition (SM-G780F and SM-G781V) passes NFC Certification

 

By Ijaz

Decode my name to decode my norm.