Samsung Galaxy M40 is receiving a new update based on Android Pie that brings in Camera Night Mode, QR Code functionality and a newer security patch to the device. If you own a Galaxy M40, here are steps which you can use to immediately update your phone manually with Odin and enjoy all the new features. Samsung’s M series has been a surprising add to the complete Galaxy lineup. While placing itself beneath the A lineup, phones like Galaxy M40 provide great value especially when considered that it has a hole-punch / infinity-O display. In this guide, we will focus on explaining how users can manually update Samsung Galaxy M40 to new camera Night Mode official firmware update.
While shipping with Android Pie, this update doesn’t change the Android revision rather it pushes major changes that improve the existing one. Night Mode is a great addition that many owners would love as before it wasn’t present in the camera app. Further, this latest update carries August 2019 security update as well. Before we begin with explaining all the steps required to update Samsung Galaxy M40 using Odin to new official firmware, it is essential that you first create a complete backup of all your data.

Disclaimer: Please use this guide at your own risk. We, at TeamAndroid, would not be held responsible if you brick or generally mess up with your device. Further, the firmwares, system files or apps used are property of their respective owners.
August 2019 Camera Night Mode Update Details:
Within this update, users will be able to find newly added night mode that can be accessed directly with the camera app. Further, there is new functionality implemented that lets you read QR codes as well directly from the stock camera.
Lastly, another important change comes in the form of a new security patch (August 2019) that should improve reliability and security of your device.
This firmware tutorial applies to various Galaxy M40 varaints. The specific model numbers supported through this guide are mentioned ahead.
- Samsung Galaxy M40 M405F
To make sure you own the correct Samsung Galaxy M40 model / variant, go to Settings > About phone > Model number.
You might find these following Galaxy M40 related articles interesting:
- Install Android 10: How to Install Android Q on Computer.
- Custom ROMs: For a complete collection of Samsung Galaxy M40 custom ROMs, click here!
If you plan on rooting this phone or are still confused for why to root Galaxy M40, read: Benefits of Rooting Your Android Device.
Samsung Galaxy M40 USB Drivers
You will need to connect your Android phone with the computer. For that, please make sure you have installed the USB drivers for Samsung Galaxy Galaxy M40 properly. If not, you can download the latest official drivers from our Android USB Drivers section here:
Download Samsung Galaxy M40 USB drivers!
All set and ready? Good. You can now continue reading below and update Galaxy M40 to latest official firmware update.
How to Install Night Mode Update on Galaxy M40
Ahead, we have a detailed step-by-step procedure through which you can update Galaxy M40 to latest official update. The firmware is an official one signed by Samsung and we will utilize latest ODIN to flash it onto Galaxy M40.
Please read every line carefully and make sure you read the tutorial once before actually performing on your device.

To Remember:
- This tutorial is only for Samsung Galaxy M40. Please don’t try this on any other variants of the phone.
- Firmwares used in this post are official releases by Samsung for the Galaxy M40.
- Make sure you backup all your data in your phone before proceeding.
Complete Step-By-Step Instructions:
Step 1 – Download Android Pie update from the following links for your specific Galaxy M40 model to your computer and extract the zip file.
- Galaxy M40 M405F: M405FDDU1ASH1
Step 2 – Download Odin which will help you to install Android Pie update on Samsung Galaxy M40.
Step 3 – Switch OFF your phone. Now go to Download Mode. How? Press and hold the Volume Down + Bixby buttons together, and then press the Power button till you see the construction Android robot and a triangle. Press Power again to confirm to enter into Download Mode.
Step 4 – Make sure you have your Galaxy M40 USB drivers installed on your computer.
Step 5 – Open ODIN on your computer. Connect your phone to your computer while your phone is in the Download Mode.
Step 6 – If your phone is connected successfully, one of the ID:COM boxes will turn yellow with the COM port number. This step might take some time.
Step 7 – Now select the files that you have to flash/install on your phone. These files are to be found from the extracted files in Step 1.
- Click on ‘AP’ and select file with ‘AP’ in its name.
- Click on ‘CP’ and select file with ‘MODEM’ in its name. Ignore this step if there is no such file.
- Click on ‘CSC’ and select file with ‘CSC’ in its name. Ignore this step if there is no such file.
- Click on ‘PIT’ and select the .pit file. Ignore this step if there is no such file.
- Click on ‘BL’ and select file with ‘BL’ in it’s name. Ignore if there is no such file.
If you are using an older version of ODIN or flashing a firmware which doesn’t have the above mentioned file name format then look below for the abbreviations to the old name format. Do note that only file name changes, the functionality and back end process remains the same so don’t worry.
- AP = PDA
- BL = Boot Loader
- CP = Modem
Step 8 – In ODIN, check the Auto Reboot and F. Reset Time options. As for the Re-Partition option, check it ONLY if you selected a .PIT file in the above step.
Step 9 – Now click on the Start button in ODIN. Installation process will start and would take a few minutes to complete.
Step 10 – After the installation is completed, your phone will restart. After you see the home screen, unplug your phone from the computer.
That’s it. Your Samsung Galaxy M40 has now been updated to Android Pie firmware update. Go to Settings > About phone to verify.
Backup and Other Important Tips
Please take a look at the following tips and important points you need to take care of. These are important, as we don’t want anyone losing their personal data or apps.
Always backup your important data that you might need after you install a new custom ROM, an official software update or anything else. Make a backup for just in case, you never know when anything might go wrong. Read: How to Backup Android Apps, Text Messages, WhatsApp, Call History.
Samsung users can also back up data using Samsung Smart Switch to your computer. Smart Switch helps to move data across different Android devices i.e moving Samsung Galaxy S7 Edge backup data to Samsung Galaxy M40.
If you already have a custom recovery (ClockworkMod, TWRP etc.) installed on your phone, we strongly recommend a backup using that as it creates a complete image of your existing phone set up. [Tutorial: How to Backup Android Phone using TWRP]
A few more optional tips that you should remember:
1. Having problems connecting your Android phone to the computer? You need to enable USB debugging mode. See here: How to Enable USB Debugging — for Gingerbread, Ice Cream Sandwich, Jelly Bean, KitKat, Marshmallow, Nougat and Oreo.
2. Make sure your Android device is charged up to 80-85% battery level. This might help you: How to Check Battery Percentage. Why? Because, if your phone goes off suddenly while installing a custom ROM, flashing an official firmware update or installing mods etc. — your phone might get bricked or go dead permanently. No one wants that, right?
3. Most of the tutorials and how-to guides on Team Android are for factory unlocked Android phones and tablets. We recommend NOT to try our guides if your phone is locked to a carrier, unless we have specified the carrier name or device model.
That’s all! For if you have problems or issues with the steps, make sure to get to us via comments! Found any broken links? Let us know!