How to Root Samsung Galaxy A31 using Magisk
In this guide, we will be showing you how to root your Samsung Galaxy A31 using Magisk. We will be providing you with two methods for rooting your device, one with TWRP recovery and another without TWRP recovery. By following this guide, you will be able to unlock the full potential of your Samsung Galaxy A31 and gain access to a world of customization options.
Rooting your phone is a great way to take control of your device and unlock its full potential. Not only does it allow you to remove unwanted system apps, but it also increases the performance of your device by increasing RAM usage and overclocking the CPU frequency. With a rooted Samsung Galaxy A31, you can experience a faster and more efficient device, ready to take on any task. So, let’s get started and root your Samsung Galaxy A31 using Magisk.
Install TWRP on Samsung A31
Before we begin with the rooting process, it’s important to first install TWRP recovery on your Samsung Galaxy A31. TWRP, or Team Win Recovery Project, is an open-source software that allows you to install custom ROMs, backups, and other modifications to your device. If you haven’t already installed TWRP on your Samsung Galaxy A31, don’t worry, we have a guide that will walk you through the process.
You can follow this link for detailed step by step guide on how to install TWRP on Samsung Galaxy A31: Install TWRP on Samsung A31. This guide will help you install TWRP on your device in a safe and secure manner, ensuring that you don’t run into any issues during the rooting process.
Root Samsung A31 using TWRP and Magisk
In this section, we will be showing you how to root your Samsung Galaxy A31 using TWRP recovery and Magisk. By following the step-by-step instructions provided, you will be able to gain full control over your device and unlock its full potential. This process will allow you to install custom ROMs, remove unwanted system apps, and improve the performance of your device. So, let’s get started and root your Samsung Galaxy A31 using TWRP and Magisk.
- Download Magisk Zip file and keep on internal storage.
- Reboot your phone to TWRP recovery mode. (Keep pressing the “Volume Up” buttons and connect phone to pc using data cable).
- Press install button on TWRP recovery.
- Select your downloaded Magisk Zip file.
- After select the file swipe to flash.
- After successfully flash reboot phone to system.
- After phone restart you found new Magisk App.
Remember to always read and follow the instructions carefully, and if you have any questions, feel free to ask on comment section.
Root Samsung Galaxy A31 without TWRP
Rooting your Samsung Galaxy A31 without TWRP recovery is also possible and in this section, we will be showing you how to do it. This method does not require TWRP recovery to be installed on your device, making it a simpler and easier process. However, it is important to note that this method may not be as stable as the method that uses TWRP and may have some limitations. Nevertheless, if you are looking for a quick and easy way to root your Samsung Galaxy A31 without TWRP, this method is a great option.
Unlock Developer Options on Samsung Galaxy A31
- Go to Phone Settings on your Samsung Galaxy A31.
- Scroll down and select About phone.
- Next, select Software information.
- Tap on the Build number multiple times.
- Enter your phone’s lock screen Password.
- You will now see the “Developer mode has been enabled!” toast message on the phone screen.
Enable is the OEM unlocking option on Samsung Galaxy A31
- Go to Phone Settings on your Samsung Galaxy A31.
- Scroll down and select Developer options.
- Toggle ON the OEM unlocking option.
Unlocking the Bootloader
After enabling OEM unlocking, power off your phone. Press and hold the Volume Up and Volume Down buttons, then connect your phone to your PC using the data cable. Once you see the bootloader warning screen, press and hold the Volume Up button to unlock the bootloader on your device.
Confirming Bootloader Unlock
You will be prompted to confirm whether you want to unlock the bootloader, use the volume buttons to navigate to ‘Yes’ and press the power button to confirm.
Download Stock Firmware for Samsung Galaxy A31
You need a Samsung Galaxy A31 stock firmware, you can download from Samfw.com,
You need first your phone’s model number and second, and CSC/regional code.
- You can get your phone model number by going to Settings → About phone.
Download 7zip and LZ4 Tools
After downloading the firmware, we need to extract it. To extract the firmware, we need to use a lz4 extract tool, which can be downloaded from the link provided below.
Download: 7zip Tool
Download: LZ4 Tool
To make sure you can extract the firmware file properly, you need to download and install the 7zip software on your PC. Once installed, use it to extract the LZ4 tool downloaded. This will make it easier for you to extract the firmware file and access the files inside it.
Preparing Patched Boot Image file
- Extract the “AP” firmware package using 7zip.
- Open the extracted folder and again Extract AP firmware file.
- Now you will find boot.img.lz4 file.
- Copy boot.img.lz4 to LZ4 Installed folder.
Next, we need to convert boot.img.lz4 to boot.img file.
- Open the lz4 extracted folder
- Drag the boot.img.lz4 file to the lz4.exe program
- This step convert the file to .img format.
Patch the boot.img Firmware File with Magisk App
- Download and install Magisk App on your phone.
- Open the Magisk App.
- Tap on the INSTALL button.
- Then Select and Patch a File.
- Choose the Boot.IMG File
- Once the file is selected, tap on LET’S GO.
- The patched file can be found in the Downloads folder.
- Connect your phone to the PC and copy the magisk_patched.img file on your PC.
Convert .IMG File to .TAR (For ODIN)
- Download and Install 1st 7zip software in your PC.
- Select magisk_patched.img and right click mouse and point to 7zip > Add to archive
- Archive formats select tar and click OK.
- Finally we are build the magisk-patched.tar file for ODIN (AP)
Boot your Samsung Galaxy A31 into Download Mode
- First, power off your phone.
- Press Button Volume Up, Volume Down and connect your phone to your PC using data cable.
- You will now see the Bootloader warning screen.
- Long press Volume Up button to unlock bootloader.
- If your device bootloader already unlock just press one time volume up button.
- Following this method you enter to download mode.
Flash Magisk_Patched.tar using Odin flash tool
- Run Odin Tool.
- Reboot your phone to download mode.
- Connect your Samsung Galaxy A31 device to a PC/Laptop.
- You will see ID:COM section light up blue. It means the port is working.
- BL: Select the firmware file starting BL.
- AP: Select the Magisk Patched AP firmware file (magisk_patched.tar)
- CP: Select the firmware file starting CP.
- CSC: Select the firmware file starting CSC.
- Once done, click Start to begin the flashing process.
- The first boot will take some time.
- After on phone you will see in app drawer Magisk APK installed.
We have shown you how to root your Samsung Galaxy A31 using TWRP and Magisk and also without TWRP recovery. By following the step-by-step instructions provided in this guide, you should now be able to gain full control over your device and unlock its full potential. Remember to always read and follow the instructions carefully, and if you have any questions, feel free to ask. Keep in mind that rooting your device may void the warranty and also be aware of the risks involved.