You can now download and install TWRP 3.4.0-0 on the Samsung Galaxy M31 variant. Developers over at TWRP have released the first working build for the Galaxy M31 (SM-M315F).
Below you can find a detailed guide on how to download and install TWRP on the Samsung Galaxy M31.
What is TWRP (TouchWiz Recovery Project)
TWRP is one of the most popular custom recoveries for Android phones. A big reason for this popularity is that developers frequently add new devices to their already huge database of phones.
- Install ZIP files (ROMs, kernels, mods, themes)
- Wipe data and perform a full factory reset
- Wipe cache and dalvik cache
- Backup all data (Nandroid backup – System, Data, Cache, Boot, EFS)
- Restore saved data through backup
- Fix permissions
- ADB sideload
- Terminal Command
TWRP makes it possible to customize the firmware of your phone by installing custom ROMs, kernels and various mods. It also makes it possible to improve the speed of the phones and reduce battery usage, thanks to its ability to flash custom kernels and files that modify the way the CPU behaves.
Before you proceed with the flashing tutorial, it is important to be prepared. This will avoid any possible issues such as the phone turning off or getting bricked.
- Make sure that your phone is charged to at least 60%. This ensures the phone will not accidentally turn off during the process.
- Make a full backup of the data on your phone. The process below involves unlocking the bootloader, which will delete everything on your phone.
- You need an external micro SD card, otherwise, you will not be able to flash the encryption disabler script.
- Go to Settings > Developer Options and enable USB Debugging and OEM unlock. This is very important.
- Download and install the proper USB drivers for the Galaxy M31. If you don’t have the proper drivers, the computer will not recognize your phone.
How To Install TWRP 3.4.0-0 Recovery on Galaxy M31
- Make sure to download both ODIN flashing tool and the Galaxy M31 TWRP file from the download links above and extract both packages.
- Launch the extracted ODIN file.
- Turn off your phone and go into Download Mode. To do so, press and hold the volume down + power buttons at the same time while connecting the phone with a USB cable.
- Connect your phone to your computer using the provided USB cable. If the USB drivers are properly installed, the ID:COM box in ODIN will turn blue.
- Click the AP button and select the extracted firmware button.
- Go to Options and make sure to disable Re-Partition and Auto Reboot and enable F. Reset Time.
- Click the Start button and wait for TWRP to be installed on your Galaxy M31.
- Once the recovery is installed, press and hold the Volume up + Power keys at the same time to go into recovery mode.
- Go to Advanced and select File Manager.
- Naviate through the file system and find a folder called “data/knox/”. Delete this folder.
- Reboot your phone.
That is it. Now your Samsung Galaxy M31 will have TWRP installed permanently. Now you can also root your phone with Magisk. If you are having any issues or problems, let us know below.