The Samsung Galaxy M31 is a new member of the Galaxy M family that was recently launched in March 2020. This Dual Nano-SIM device comes with Super AMOLED display, Android 10 (One UI 2), octa-core processor, quad rear cameras, a huge battery with fast charging, and other features as well. This is a budget all-rounder smartphone that comes with pretty good hardware specifications. Now, if you’re using this device and want to unlock the bootloader & then want to enable root access, this guide is for you. So, check out How to unlock bootloader and root Samsung Galaxy M31 (No twrp).
The device packs a 6.4″ Super AMOLED Full-HD display, Exynos 9611 processor, Mali-G72 MP3 graphics, 6GB of RAM, 64/128GB of onboard storage (dedicated micro SD card slot), a 6000mAh battery with 15W quick charging. While the device sports a quad rear camera setup of a 64-megapixels + an 8-megapixels + a 5-megapixels + a 5-megapixels lens with other modes. The front has a single 32-megapixels selfie camera with AI modes. It packs Wi-Fi, a 3.5mm audio jack, GPS, NFC, FM Radio, Type-C, etc. On the other side, the device has a rear-mounted fingerprint scanner, an ambient light, gyroscope, an accelerometer, proximity, compass sensor.
By unlocking the device bootloader at first, the device will be able to perform customizations and install third-party files. Here we will use the Magisk root method without TWRP. However, the Samsung KNOX status will be removed from your device after rooting it. Make sure to follow all the requirements below and take a complete backup of the important data at first. By using the Magisk, you can patch the Stock Firmware Boot Image file and flash the boot partition on your device.
For more information about Android rooting, check out our detailed post here > What Is Rooting Android Phone? Advantages And Disadvantages
RootMyGalaxy.net is not responsible for any damage happened to your device(s) while following this guide so please proceed at your own risk. However, we would be happy to help with any problems within our reach
Important Note: Without TWRP, you can’t flash the root files like Magisk. Now, we have to manually modify the stock boot image by patch to get root access on the device
How To Unlock Bootloader and Root Galaxy M31 with Magisk
#1 Unlock the bootloader
- First, unlock the bootloader of your device, guide: How To Unlock Bootloader Of Any Android Using Fastboot Commands
#2 Download stock boot image
- Download Stock ROM > Download
Download the boot file according to your device. Once downloaded, unzip the file and open it, look for a .zip file. Open that file too, now you will see a file named boot.img (This is the official stock image or firmware)
#3 Patch boot image
- Move the boot.img to your device’s internal storage.
- Download & install the latest Magisk Manager on your device.
- Open magisk manager, On the main screen, select Install > Install > Patch Boot Image File
- Now select the boot image (boot.img). Magisk will start to patch the boot image.
- After completion, the file will be saved as “magisk_patched.img” in your Downloads folder
#4 Finally, Steps To Root Galaxy M31
- Connect your device to PC and transfer the “magisk_patched.img” file to the internal storage of the device (ROM folder).
- Use 7Zip to archive the .img file to .tar file which is compatible with Odin Flash Tool.
- Now, you have to download and install the ODIN Flash Tool on your PC.
- Make sure to install the latest Samsung USB Drivers on your computer also.
- Boot your Samsung Galaxy M31 into Download/Odin Mode. (Switch off the phone > press & hold Volume Down + Power button together for a few seconds and the download mode will open)
- Connect your handset with the PC using a USB cable.
- When your device is connected, launch the ODIN tool.
- Next, load the magisk-patched.tar file in the AP section.
- Click on Options tab > select F.Reset Time.
- DO NOT select the Auto Reboot and Re-Partition.
- Next, click on the AP button and select the magisk_patched.tar file.
- Click on the BL button > select the BL file from the extracted firmware folder.
- Then select the CP and CSC file in the Odin tool.
- Once added BL, AP, CP, & CSC files in the preferred sections, click on the Start.
- The rooting process will start and it will take some time. You will get ‘PASS’ notification if successful.
- Now, turn on your handset by press & hold the Volume Up + Power button. Release the buttons when you see a warning screen.
We hope you’ve found this guide helpful. Keep visiting the blog for more info.
12 thoughts on “How to unlock bootloader and root Samsung Galaxy M31 (No twrp)”
bro what after warning screen
Does this method actually work on M31? Is this tested or just theoretical?
This is how we were able to root a Galaxy device. This method will work on most of the Samsung devices
did this method format my galaxy phone and remove all previous update ?
Yes, It will format the user data.
How to download twrp file for samsung m31
TWRP recovery (Official) is not available yet for the device. We will inform once we have some updated info about that
Any other safe way to root samsung m31
Can i go through the above method??? It works ?? Is it safe???
My phone is bricked by this method..it says odin mode avb fail vbmeta error… What is the solution on that now..
Boot into Download Mode and Flash stock rom back that should work.
What happens when you load a custom recovery to the M31? In knox devices, the result is clear, knox counter is tripped and there is no way to revert back to 0, so all knox related features are not available. M31 does not have knox in the first place, so if we want to try multiuser to make up for the lack of secure folder, will it trigger any other counter, warranty seal, etc?