• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Root SM-M405F (Galaxy M40)

Search This thread

rajeshca911

Senior Member
Mar 12, 2014
120
32
Vizag
Screenshot_20200714-013231_Gmail.jpgEftsu
Just replied our request, they added root support for m40

Enjoy everyone
 

anweshkumar

New member
Jun 28, 2017
4
0
32 GB instead of 128 GB Storage

I Flashed magisk_patched.tar as AP in ODIN, without selecting the BL, CP and HOME_CSC files, I forgot those. Now my phone flashed like new one with 32 GB storage.
I lost all data. How do I resolve this problem.
 

Akhil137

Senior Member
Jun 12, 2012
142
12
Mumbai
can anyone explain step by step method to root galaxy m40, Magisk is not working for me, tried rooting system 3-4 times but not working (completed every step as its shown) problem facing rebooting in recovery to reset.

also tried ADB method, fastboot is not working on any sceen, not sure how to do it, can someone help me i want to install android 12 GSI.
 

Ayan Chakraborty

Senior Member
Jul 26, 2019
50
2
can anyone explain step by step method to root galaxy m40, Magisk is not working for me, tried rooting system 3-4 times but not working (completed every step as its shown) problem facing rebooting in recovery to reset.

also tried ADB method, fastboot is not working on any sceen, not sure how to do it, can someone help me i want to install android 12 GSI.
Custom roms are not supported. Rooting is easy using magisk in stock rom
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Read all the Instructions very carefully, as missing even a single steps cause bootloop.

    1. Unlocking Bootloader

    • Allow bootloader unlocking in Developer options → OEM unlocking
    • Power off your device. Press Volume Up + Volume Down and plug in your device to a PC to boot into download mode
    • Long press volume up to unlock the bootloader. This will wipe your data and automatically reboot.

    Just when you think the bootloader is unlocked, surprise surprise, it is actually not! Samsung introduced VaultKeeper in the system, meaning the bootloader will reject any unofficial partitions before VaultKeeper explicitly allows it.

    • Go through the initial setup. Skip through all the steps since data will be wiped again later when we are installing Magisk. Connect the device to internet in the setup!
    • Enable developer options, and confirm that the OEM unlocking option exists and grayed out!

    2. Before Installing Magisk

    • Installing Magisk WILL trip KNOX
    • Installing Magisk for the first time REQUIRES a full data wipe, backup before continue
    • You have to have your bootloader unlocked before following the instructions
    • After installing Magisk, you can directly upgrade Magisk within Magisk Manager without an issue.

    3. Flashing Magisk:

    1. Download the firmware for SM-M405F
    2. Unzip the firmware and copy the AP tar file to your device. It is normally named as AP_[device_model_sw_ver].tar.md5
    3. Install the latest Magisk Manager
    4. In Magisk Manager: Install → Install → Select and Patch a File and select the AP tar file.
    5. Magisk Manager will patch the whole firmware file and store the output to [Internal Storage]/Download/magisk_patched.tar
    6. Copy the tar file to your PC and boot your device to download mode.
    7. Flash magisk_patched.tar as AP in ODIN, together with the BL, CP and HOME_CSC files. Never flash only an AP file, as Odin can shrink your /data file-system if you do.
    8. Important: Uncheck “Auto Reboot” in Options!
    9. Magisk is now successfully flashed! But there are still several steps before you can properly use the device.
    10. We now want to boot into the stock recovery to factory reset our device.
    11. Full data wipe is mandatory! Do not skip this step.
    12. Press Power + Volume Down to exit download mode. As soon as the screen turns off, immediately press Power + Volume Up to boot to recovery partition. Just as mentioned in the previous section, since we want to boot into stock recovery, continue pressing the volume up button until you see the stock recovery screen.
    13. In the stock recovery menu, use volume buttons to navigate through menus, and the power button to select the option. Select Wipe data/factory reset to wipe the data of the device.
    14. This time, we can finally boot to the system with Magisk. Select Reboot system now, and immediately press Power + Volume Up. After seeing the bootloader warning screen, release all buttons so it can boot to the system.
    15. The device will automatically reboot for the first time it boots. This is completely normal and done by design.
    16. After the device is booted up, do the usual initial setup. The following steps will need internet connection.
    17. You shall see Magisk Manager in your app drawer; if not, manually install the APK you downloaded and continue to the next step. The app would be a stub and it shall automatically upgrade to the full Magisk Manager when you open it.
    18. Magisk Manager will ask to do additional setups. Let it do its job and the app will automatically reboot your device.
    19. Enjoy Root :)
    1
    Be careful doing this, since the latest Samsung firmware update in August it doesn't work anymore. You can root at first, but then every time you reboot the phone unroots... If you persist and do it again Samsung lock the phone for "security reasons" and you can't even reach the bootloader or recovery screens using the up / down buttons... Meaning you can't go back to stock firmware without taking your phone back to the store or sending for service, but of course you now no longer have warranty.
    1
    So this the new update it works?
    I think that I flashed on latest firmware AP_M405FDDU1ASF2_CL16060793_QB24248847_REV00_user_low_ship_MULTI_CERT_meta_RKEY_OS9.tar
    Android Pie
    Magisk 19.3
    Magisk Manager 7.3.2
    everything works perfectly except that annoying message on the boot screen

    Here are my screenshots
    View attachment 4807915Screenshot_20190819-234639_Settings.jpgView attachment 4807917
    1
    I've uploaded the latest firmware file to Mega for anyone who doesn't want to wait 10 years for it to download from the snail-speed Samsung Firmware website:

    https://mega.nz/#!T1sBka7B!iP8Ub8xbmO4ppa1CJg5vh4dWk_Vh-KjnPM6M6VjiqCc

    Feel free to check the MD5 hashes, zero changes.
    1
    I've uploaded the latest firmware file to Mega for anyone who doesn't want to wait 10 years for it to download from the snail-speed Samsung Firmware website:

    https://mega.nz/#!T1sBka7B!iP8Ub8xbmO4ppa1CJg5vh4dWk_Vh-KjnPM6M6VjiqCc

    Feel free to check the MD5 hashes, zero changes.

    Thankyou for this. Its a big help