Samsung has thrown an uncountable number of Galaxy devices in 2019. The Galaxy A40 is one among them which didn’t bring much traction, unlike the Galaxy A50. That doesn’t mean the former is a not so good device though. The Galaxy A40 comes with a solid build and a catchy design. While the processor seems to be underwhelming the device indeed packs enough power for carrying out daily chores.galaxy a40

Without stretching further, we can now dive in and see how to root the Galaxy A40.

Must See: Samsung Galaxy Z Fold 3 to use the under-screen camera

Unlock Galaxy A40 Bootloader

Warning: Bootloader unlock erases the data, do take a backup before proceeding.

If you made up your mind to unlock the bootloader, on your device;

  1. Go to the Settings app and then to About phone.
  2. Find your Build number.
  3. Tap on the Build number option 6-10 times repeatedly until you see “You’re now a developer” toast.
  4. Now, go to Developer options
  5. Enable OEM unlocking.
  6. Connect the device to your PC via USB cable
  7. Power off your device.
  8. Turn on your device by pressing and holding the Volume UP and DOWN simultaneously!
  9. The device will boot in DOWNLOAD MODE.
  10. Long press the Volume UP key to unlocking the bootloader. This will wipe your data and automatically reboot your device!

Your device should be now bootloader unlocked. Now you can proceed with the rooting steps.

Root Galaxy A40

Warning: Rooting trips KNOX, which in effect voids the device warranty. You can no longer use Samsung Pay, Secure Folder or other Knox-enabled apps once your root. Proceed further if and only if you know the complications of rooting.

Downloads

Once you’ve set-up the above tools, it’s time to begin rooting.

  1. Download the latest stock firmware for your Samsung Galaxy A40 model. We recommend using SamFirm or Frija for the same.
  2. Extract the SM-A40XX_1_EXAMPLE_0000000000_fac.zip file with WinRAR, 7zip or any other unzipper.
  3. Copy the file which will look something like — AP_A40XXXXU1XXXX_CL00000000_QB00000000_REV00_use r_low_ship_MULTI_CERT_meta_OS10.tar.md5 and transfer it to your internal storage.
  4. Install the latest Magisk Manager APK.
  5. Open Magisk Manager.
  6. Tap on Install > Install > Select and Patch a file.
  7. Navigate through the storage manager and select the extracted AP file.
  8. The firmware will be patched by Magisk and will be found in Internal Storage/Download/magisk_patched.tar.
  9. Transfer the patched file to your PC.
  10. Power off your device and boot into DOWNLOAD MODE.
  11. From Odin, click on AP button and select the patched .tar file.
  12. Uncheck “Auto Reboot” and click on Start.

The tool will flash Magisk on your Samsung Galaxy A40. Once the flashing completes, there is something you’ve to take note of.

To boot in recovery or boot the system with Magisk installed, the following key combinations should be used.

  • Powering up normally → System without Magisk.
  • Power + Volume Up → Bootloader warning → Release all buttons → System with Magisk.
  • Power + Volume Up → Bootloader warning → Keep holding volume up → Actual recovery.

You’ve to go through the above key combo fiasco cause devices like Galaxy A40 no longer use ramdisk in boot images. So, Magisk has no choice but to be installed in the recovery partition. On these devices, it’s required to boot to recovery every time for the Magisk to be loaded in the system.

Hope you’ve been able to successfully root your Samsung Galaxy A40. For more guides and tutorials, have a look at our dedicated section over here.

Also Read: Samsung Galaxy Z Flip Lite to use UTG glass panel