Samsung Galaxy M51

Samsung has been gaining its lost territory during the last few quarters. It was possible because the South Korean giants kept launching new devices at every interval. One of them happens to be the Samsung Galaxy M51 for approximately $330. The device has been one of the best mid-range all-rounders in recent times. It ticks all the boxes starting from its value proposition, AMOLED display, 64MP Primary camera, Snapdragon 730G, etc. Now, if you wish to root, we’ve provided a simple guide to unlock the bootloader, install TWRP, and root Samsung Galaxy M51.

Also read: How to Unlock Bootloader and Root Samsung Galaxy A40

Samsung Galaxy M51

Samsung Galaxy M51: Specifications

At its core, the Samsung Galaxy M51 is powered by an octa-core Qualcomm Snapdragon 730G SoC coupled with up to 8GB RAM and 128GB internal storage. The device draws its power from a 7000mAh  battery which supports 25W fast charging. Which can further be extended via microSD card.

Towards the front, the device sports a 6.7-inch Super AMOLED display with an FHD+ resolution and 20:9 aspect ratio.

For optics, the device flaunts a quad-rear setup with a 64MP main sensor, a 12MP ultra-wide-angle lens, a 5MP depth-of-field lens, and a 5MP macro lens. Moving towards the front, you get a 32MP camera for selfies.

Talking about other features, the device includes 4G LTE, dual-band WiFi, Bluetooth 5.0, GPS+GLONASS. The device runs on One UI 2.0 which is based on Android 10 OS.

What is Rooting?

Rooting is basically giving yourself privileges to access features on your phone which either would be blocked by the carrier or the actual provider of the phone. Rooting certain apps will help you increase the battery life (now that’s a lifesaver), make in-app purchases for free, or even increase the speed of your phone’s CPU by overclocking it. In short, a gold mine of apps and an opportunity to enhance your phone experience.

What is Magisk?

Magisk has basically made rooting clutter-free. Which means you don’t have to be dependent on your PC to access root on your smartphone. Magisk was developed by Topjohnwu and launched in the year 2016, and since then has been widening its horizons with each passing year. The usability is very simple, all you need is the Magisk Manager where you can flash numerous MODs as per your wish directly from your smartphone.

Prerequisites to be followed before proceeding

  1. Samsung USB Drivers – Download
  2. Magisk Manager – Download 
  3. Odin Flash Tool – Download 
  4. Download the Galaxy M51 Firmware
  5. Back up your device data before proceeding.
  6. Install 7 Zip on your PC.
  7. Download the latest Samsung multi disabler.

Download all the above files above for the step below which will help you to unlock the bootloader, install TWRP, and root Samsung Galaxy M51.

Unlocking Bootloader on Samsung Galaxy M51

  1. Enable “Developer Mode” by tapping the built number 7 times.
  2. Open Settings.
  3. Find the Developer Mode.
  4. Enable the OEM Unlock option inside the  Developer Mode.
  5. Turn off your device.
  6. Press Bixby + Volume Down and plug in your device to a PC to boot into download mode.
  7. Long press volume up until the bootloader unlocks menu appears, press volume up to confirm the bootloader unlock process.
  8. This will wipe your data and automatically reboot.
  9. Once done, your bootloader will be unlocked finally. Now you can proceed towards rooting your device.

Note: Unlocking your Bootloader may erase your data. So backup all the necessary data before proceeding. Your battery must be above 80 before proceeding with the following steps. Also, by following this guide, your smartphone’s warranty will be void. Gadgetsay is in no way responsible for any damage to the device and data.

Rooting Samsung Galaxy M51 using Magisk

Creating a patched boot image

  1. Download the same firmware from the link provided above and other required files.
  2. Extract the files in downloaded firmware.
  3. Download and install the latest Magisk Manager app.
  4. After that connect your device with the PC using the USB cable.
  5. Now, transfer the “boot.img” file from the extracted folder to your phone.
  6. Open magisk manager app.
  7. Go to Install > Install > Select and Patch a file.
  8. Navigate through the internal storage where you transferred the boot image earlier.
  9. Select the “boot.img” file that you copied from the steps mentioned above.
  10. Replace the “boot.img” file in the extracted folder with the newly created “patched_boot.img” file through the Magisk Manager App.

Flashing the patched boot image

  1. You need to download the Odin Tool on your PC.
  2. After that make sure you have the 7zip software to archive the new patched_boot.img into .tar format (Odin accepts .tar format).
  3. Download ADB and Fastboot drivers on your computer and extract it to the folder.
  4. Copy the .tar file or patched boot image into the extracted ADB and Fastboot directory.
  5. Open Developer Mode from your phone and enable USB debugging setting before proceeding any further.
  6. Press the volume up and volume down button to boot the device in Download Mode.
  7. Connect your device with PC using the USB Type-C cable.
  8. Open Odin Tool.
  9. When you’re device is successfully connected, the log section will show that the device has been added.
  10. After that, tap on the “AP” button on the Odin flash tool.
  11. Then select the “magisk_patched.tar” file and uncheck the auto-reboot option before proceeding any further.
  12. Now tap on the “start” button.
  13. Once the process gets done, it will show a Pass button on the screen, which means that the flashing had been successful.
  14. Now, press volume down and power button to turn off your Samsung Galaxy M51.
  15. After that, press the volume up + power button immediately as soon as the bootup logo appears.
  16. Release the power key but don’t release the volume up key.
  17. After the flash is done, you will be asked to work factory reset.
  18. It will take about 10 minutes to boot the Android system.
  19. Install the Magisk Manager application after the boot is complete.

You can verify the root status in the Magisk Manager app. The phone will reboot eventually. After that enable the Magisk Hide. Then all you’ve to do is to reload the Magisk Manager and check for Safety Net for the green light.

However, in order to get back your warranty, you must uninstall Magisk from your device. The following are the steps: Magisk Manager>Uninstall>COMPLETE UNINSTALL. Once done, you can reboot your device.

Note: Rooting voids the warranty of your Samsung device. The security will be at risk and threats from spyware and malware increases.

Up next: How to unlock bootloader and install TWRP on Samsung Galaxy Tab S7+