How to Root Samsung Galaxy M40 SM-M405F/G/FN and Install TWRP Recovery
If you are an owner of a Samsung Galaxy M40 SM-M405F/G/FN smartphone, and also want to customize this rugged smartphone, then you have visited the right page.
If you are an Android Enthusiast, and want to Root and Install TWRP recovery on your beloved, then you have landed on the right page. In the due course of the article, we will guiding you through the process to install TWRP and root Samsung Galaxy M40 SM-M405F/G/FN.
The TWRP features the material design, and attractive user interface (UI), and by following this guide you can install latest TWRP for Samsung Galaxy M40 SM-M405F/G/FN. You can download TWRP Recovery from the links provided in the pre-requisite section of this article. Kindly note that this is a official TWRP recovery and is only for Samsung Galaxy M40 SM-M405F/G/FN (Kindly confirm the model by going to Settings>About). The process given below is merely for rooting and installing TWRP on Samsung Galaxy M40 SM-M405F/G/FN, do not try out this method on any other device.
If you want to unleash the full potential of the hardware of your Samsung Galaxy M40 SM-M405F/G/FN, then rooting and flashing the TWRP is the main concern. The Stock ROMs have often limited and unsupported features in the sense of Customization. When you have a rooted device and also flashed TWRP recovery, then you are free to install any Custom ROMs, Mods, Kernel, and Xposed etc., as well as many apps which requires root access to work properly.
Table of Contents
Brief Details and Advantage of TWRP Recovery
TWRP (Team Win Recovery Project) is an open source, community development project. By flashing the TWRP, your device will be enabled to install any custom firmware, rooting your smartphone, mod zip files for customizations, Xposed Modules for customized features, one click root and unroot processes. Apart from that, it allows you to take Full Nandroid Backup and restore it later, one click image file flashing, remove bloatware, overclock and underclock. Using TWRP, one can easily clean Wipe, Cache and Data after flashing any image file to reflect the changes and rectify minor errors due to cache.
For installing the TWRP, your Samsung Galaxy M40 SM-M405F/G/FN phone must have the Unlocked bootloader. That means you have to firstly unlock the bootloader to root your device as well doing any customization.
Disclaimer: The AndroidWeblog.com covers although everything in a very neat and a processed manner so that our readers get exactly what they want, still there are meager chances of basic issues that may arise out of the listed steps here. Hence it is in the sole interest of the user to follow the steps very cautiously to stay away from any mishappenings with your device.
Rooting and flashing the Custom ROM firmware, certainly without any doubt voids the warranty of your device, and AndroidWeblog.com in no way will be held responsible for warranty void or your bricked device.
Prerequisite
Ensure to check your model number, which must be:
- Samsung Galaxy M40 SM-M405F/G/FN [Models: SM-M405FN/DS (Global); SM-M405F/DS (India); SM-M405G/DS (LATAM)]
You must have to ensure that prior to rooting your phone , you have read thoroughly the disclaimer and you agree to proceed further on your risk.
- Phone Should be Charged
Your phone must be 70% charged atleast else, it may lead to complications sometimes while experimenting. Why to take risk, try to charge it fully.
- Back Up
If you are either going to root your phone or install a Custom ROM, it is a good habit to make a back up of your phone. Make a back up of all your media like images, videos and all on your PC and your contacts on Cloud.
- Enable USB Debugging
You must enable USB debugging option by going in to Settings, Applications and Developer options.
Downloads For Rooting Samsung Galaxy M40 SM-M405F/G/FN on Android 9.0 Pie
Download Samsung USB Drivers here (If your PC have already drivers installed then skip this)
Download Odin from here.
Download TWRP Recovery for Samsung Galaxy M40 SM-M405F/G/FN from here:
TWRP Recovery 3.2.3 (Rooting method only, TWRP coming soon)
Download SuperSU by Chainfire from here.
Download Magisk from here.
Unlock Bootloader of Samsung Galaxy M40 SM-M405F/G/FN Android 10 One UI 2.0
Step 1: Ensure that you have already Enable USB Debugging Mode and OEM Unlock on your smartphone. To do the same, just navigate to Settings > About > and then tap on the “Build Number” 7-10 times consistently, and this would enable the USB Debugging Mode and OEM Unlock. So it is clear that the process is not complicated.
Step 2: Then just switch off your Samsung Galaxy M40 SM-M405F/G/FN device. Now, its time to enter the Download Mode. To enter into the Download Mode, Press Volume UP+ Volume Down buttons together and then connect your smartphone using USB Data cable. When the device enters into the Download Mode and Download mode screen appears on the display, simply Press Volume Up button and this would unlock the bootloader of Samsung Galaxy M40 SM-M405F/G/FN.
Caution: The process of unlocking the bootloader would wipe the User Data of your device. After doing the Setup of your device, kindly recheck the OEM Unlock in the settings, In rear cases, it would Lock Again.
Steps to Flash/ Install TWRP on Samsung Galaxy M40 SM-M405F/G/FN
Step 1: First of all, enable USB Debugging on your device. To turn on the USB Debugging, just enter to Developer options. Navigate to the Settings>About Phone> then tap on the Build number 7-8 times until the message ‘Developer option enabled’ displayed. Once the developer options are active, you can go back to the settings>Developer options>Enable USB Debugging.
Step 2: Assuming you have already downloaded the latest version of Odin and TWRP Recovery for your device from the prerequisite section above. If in case latest version of Odin is not working for your device, or having some problems, then just download the appropriate version of the Odin software.
Step 3: Make sure that you have already downloaded the TWRP Recovery for your Samsung Device. Then, just extract the zipped file of Odin to your computer, and then install the latest Samsung USB Drivers in your computer.
Step 4: While the device is turned off, press the ‘Power+Volume Down+Home’ buttons simultaneously, and this will put the device into the Download Mode. If this Key combination didn’t worked for your, then just search for the key combination for your device in Google.
Step 5. Now, connect the Samsung device to computer through USB Cable. Then navigate to the folder where Odin files were extracted, then right click on the ‘Odin’ executable file, and click ‘run as administrator’.
Step 6: The interface should display something like below with ‘ID:COM’ mentioned, and carefully check the interface below.
Step 7: Notice the ‘ID:COM’, and there is a blank space underneath, which would turn blue after the device gets recognized. The device should be recognized, if your computer have correct drivers installed.
Step 8: Next, what we need to do is to just click on ‘AP’ and then go to the firmware archive, and locate the .tar.md5 file, and select the same after clicking on ‘AP’.
Note: There is a PIT section under the Re-partition. Do not place any file under the ‘PIT section’, and also ensure that ‘re-partition’ is not checked. Just tick/ check the ‘Auto Reboot’ and ‘F. Reset Time’ options.
Step 9: As soon as TWRP (.img) file is loaded into the AP Section, the process can be begin to start the flashing or installation. Make sure that you do not touch the USB cable while the flashing process is running.
Step 10: If everything goes fine, then at the end, you will see the message ‘PASS’ or ‘RESET’ in the green color, which would indicate the TWRP flashing process has been completed successfully for your device, and it now has TWRP Recovery. At this stage, the device would reboot automatically, don’t be panic, this is normal. Now, you can disconnect device from computer.
Procedure to Root Samsung Galaxy M40 SM-M405F/G/FN on Android 10 One UI 2.0/ Install Magisk or SuperSU
Make sure that you have downloaded SuperSU or Magisk Manager (link in the pre-requisite section of this article). Then, proceed to the steps.
Note: You can use either Magisk Manager or Super SU, but only one, so choose wisely. Go for Magisk Manager if you are not sure.
Step 1: Transfer the downloaded SuperSU or Magisk Manager file to the internal storage / SD card of your Samsung Galaxy M40 SM-M405F/G/FN smartphone.
Step 2: Now, just boot into the recovery. From the TWRP interface, you can optionally backup the Stock ROM. Though, I would recommend to backup the Stock ROM. Because if in case process gets failed, you can flash the Stock ROM.
Step 3: Tap on Install ‘, and then navigate to the file ‘SuperSU.zip’ or ‘magisk.zip’ and swipe to confirm flash (located at the bottom of the screen). The flashing process of Magisk/ SuperSU has been started and will take a few seconds to complete.
Congratulations, now you have rooted Samsung Galaxy M40 SM-M405F/G/FN and also flashed the TWRP. Now, you can install Xposed Framework, and customize your smartphone as per your preference. If you wish to verify, you may download and check the Root Status through Root Checker app.