Install TWRP Recovery on Samsung Galaxy A40

August 16, 2023

Samsung recently launched their most compact smartphone from the Galaxy A series lineup. The all-new Galaxy A40 is a mid-range smartphone with an astonishing premium look. Are you looking for a Samsung smartphone with decent specs and an affordable price?

Then Galaxy A40 is the one for you. This device is the smallest in the Galaxy A lineup with a 5.9-inch display. Besides, it is quite similar to other Galaxy A devices with its Infinity-U display, glass-like design, and camera setup.

In this easy step by step guide, we’ll root Galaxy A40, unlock bootloader and install TWRP recovery. Samsung Galaxy A40 price in India starts from Rs. 19,500 onward. Buy Galaxy A40 from Amazon or Flipkart for exclusive offers.

Install TWRP Recovery on Galaxy A40
Talking about the Galaxy A40 specs, it features 5.9 inches of Infinity U display with 1080 x 2340 pixels of resolution. Besides, it is powered by Exynos 7904 Octa-core processor with 64GB storage and 4GB RAM.

The internal storage is expandable up to 512GB through a micro SD card. Moreover, Galaxy A40 colors include white, blue, and coral. Although it is made of plastic, it has a shiny finish. Hence Samsung calls it a Glasstic look.

Galaxy A40 features a dual-camera setup of 16 MP wide lens and 5 MP ultra-wide lens. Most importantly, it offers LED flash, panorama, and HDR modes. Whereas on the other hand, it sports an impressive 25 MP front camera for selfies.

Most important, for more detailed Samsung Galaxy A40 review and unboxing, visit YouTube. Samsung Galaxy A40 launch date in India was March 2019. If you compare Samsung Galaxy A40 vs A50, or Galaxy A40 vs M40, you can come to the verdict that Galaxy A40 is best of all.

Do you want to Root Galaxy A40? Do you want to install custom ROM on Galaxy A40? If yes, then you need to install TWRP recovery on Galaxy A40 first. To flash TWRP, all you need is an Odin flash tool or ADB drivers installed on your PC.

With the help of TWRP, you can easily root Android phone without Kingoroot, Flashify, or any app. Let’s install the latest TWRP recovery 3.2.3-0 on Samsung Galaxy A40 SM-A405F/DS, SM-A405FN/DS (Global), SM-A405FM/DS smartphone.


We at Droid Thunder will not be held responsible for any damage. Perform all the steps correctly without implementing anything on your own.


  • Ensure to charge your phone at least 50%.
  • Install the latest USB drivers on PC to recognize your device.
  1. Download Samsung Galaxy A40 USB Drivers.
  • Enable USB debugging from phone settings.
  1. How to Enable USB Debugging on Galaxy A40.
  • Backup your contacts, apps, messages, call logs, notes, etc for safety.

Steps to install TWRP Recovery on Galaxy A40:

Method 1: Odin Tool

Step 1: Download the Odin tool on PC.

Step 2: Also download A40 TWRP recovery.

Step 3: Power off your device. Then boot it into download mode.

Step 4: For that, press and hold the Power button+ Volume down key simultaneously until the download mode appears.

Step 5: Keeping the phone in downloading mode, connect it to the PC using a USB cable.

Step 6: Launch the downloaded Odin tool on your PC.

Install TWRP Recovery on Galaxy A40

Install TWRP Recovery on Galaxy A40

The ID: COM section in Odin will turn blue. Also, an Added message will appear. This will confirm a successful connection between your phone and PC.

Install TWRP Recovery on Galaxy A40

Note: If such a thing doesn’t happen, then re-install USB drivers. If the problem persists, change the USB cable or port.

  1. How to fix USB Device Not Recognized error.

Step 7: Next, check the Auto Reboot and F.Reset Time options.

Install TWRP Recovery on Galaxy A40

Note: Do not tick Re-partition or Nand Erase options. Leave the options as they are.

Step 8: Simply tap on the AP tab and select the downloaded TWRP recovery.tar.md5 file.

Install TWRP Recovery on Galaxy A40

Step 9: To start the actual TWRP flashing procedure, click on the Start button present on the Odin window.

Install TWRP Recovery on Galaxy A40

Be patient and wait until the flashing finishes. As soon as it completes, the ID: COM section will turn green with a Pass message as shown below.

Install TWRP Recovery on Galaxy A40

Note: If the process fails, then close Odin, again boot your Galaxy A40 into download mode and repeat the complete procedure.

Finally! You’ve successfully installed TWRP recovery on Samsung Galaxy A40 using the Odin flash tool.

Method 2: ADB & fastboot

Step 1: Download ADB and Fastboot.

Step 2: Install it on your PC.

Step 3: Also download the TWRP.img file.

Step 4: Copy this twrp.img file to the location C:\Program Files\Minimal ADB and Fastboot folder (where you’ve installed the ADB drivers).

So you’ll have these files in the Minimal ADB and Fastboot folder:

Install TWRP Recovery on Galaxy A40 adb files

Step 5: Using a USB cable connect your phone to PC.

Step 6: Go to C:\Program Files\Minimal ADB and Fastboot folder, hold the Shift button, and right mouse click on a space. You’ll see a list of options from which select the Open command window here option. This will launch the cmd window as shown below.

Install TWRP Recovery on Galaxy A40 shift button cmd window
Install TWRP Recovery on Galaxy A40 cmd window 0

Step 7: Type the following command in the cmd window and press enter:

adb devices

As soon as you hit enter, a message saying ‘List of devices attached’ will appear. This will confirm that your phone is successfully connected to the PC.

Install TWRP Recovery on Galaxy A40 cmd window 1

Note: If there is any connection issue, re-install the latest USB drivers from the Pre-requisites section.

Step 8: Enter the below command to boot your phone into fastboot mode.

adb reboot bootloader

Install TWRP Recovery on Galaxy A40 cmd window 2

Step 9: To confirm whether fastboot is functional or not, enter the below command:

fastboot devices

Install TWRP Recovery on Galaxy A40 cmd window 3

Note: Some random numbers along with the ‘List of devices attached’ message will confirm that fastboot is functional.

Step 10: Let’s flash the latest TWRP recovery on Galaxy A40 now. For that, type the below-given command and hit the enter key:

fastboot flash recovery twrp.img

Install TWRP Recovery on Galaxy A40 cmd window 4

This will start the actual TWRP recovery installation process. It will hardly complete within few minutes.

Finally! This is how you can install TWRP recovery on Galaxy A40 using ADB and fastboot commands.

Steps to Boot Galaxy A40 into TWRP recovery mode:

Step 1: Power off your phone.

Step 2: Press and hold the Volume up key + Power button simultaneously. As you see the TWRP logo, leave both the keys.

Note: If you are not able to restart Galaxy A40 into recovery, use the TWRP Manager app from Google Play Store.

I hope this guide helps you to download TWRP Recovery for Samsung Galaxy A40 along with installation. For any kind of problem, please contact us through the comments section.

Recommended Articles
No data was found

Leave a Comment

You Might Like
Flash Custom ROM using TWRP recovery featured image