Xiaomi 18 Pro Max
This page has the official stock firmware (stable ROM) details for the Xiaomi 18 Pro Max, codename madrid. The main ROM is OS4.0.5.0.XEOMIXM, the Global build of HyperOS 4 based on Android 17. It is a very large package of about 11 GB.
Device details
| Brand | Xiaomi |
| Codename | madrid |
| Chipset | Qualcomm Snapdragon 8 Elite Extreme Gen 6 |
| Android version | Android 17 (HyperOS 4) |
| Flash tool | Mi Flash Tool |
Step 1: Get the firmware
| Build | Region | Android | Size | Download |
|---|---|---|---|---|
| OS4.0.5.0.XEOMIXM | Global Region code MI | Android 17 | 11 GB | DownloadOfficial source |
| OS4.0.7.0.XEOEUXM | Europe (EEA) Region code EU | Android 17 | 11 GB | DownloadOfficial source |
| OS4.0.2.0.XEORUXM | Russia Region code RU | Android 17 | 11 GB | DownloadOfficial source |
| OS4.0.2.0.XEOTWXM | Taiwan Region code TW | Android 17 | 11 GB | DownloadOfficial source |
Builds checked against the official source on 4 December 2026.
Step 2: Download the flash tool
Mi Flash is only needed for the fastboot ROM route, which needs an unlocked bootloader and erases the phone. The recovery ROM above installs from the phone itself.
Step 3: Follow the flashing guide
- Check the model number in Settings → About phone (or About tablet). Firmware for another model can brick the device.
- Back up your data. Flashing usually erases the device.
- Charge the battery to at least 50% and use the original USB cable.
- Get the file only from the official source linked above and let the download finish completely.
About the Xiaomi 18 Pro Max software
The Xiaomi 18 Pro Max is a new flagship. Notebookcheck reports that the global version was unveiled in November 2026 with the Snapdragon 8 Elite Extreme Gen 6 and Xiaomi HyperOS 4. Xiaomi’s download page lists HyperOS 4 on Android 17 for every region, so the phone is on its first software generation and the builds are still early ones. We could not open Xiaomi’s own spec page, and we did not find a published update policy for this model, so no number of update years is given here.
Reading the ROM version
OS4.0.5.0.XEOMIXM can be read part by part:
- OS4.0 is the HyperOS 4 generation.
- 5.0 is the build number inside HyperOS 4.
- X marks the Android version. X is Android 17.
- EO is the device code for the Xiaomi 18 Pro Max.
- MI is the region code for Global. The other two ROMs use EU for Europe (EEA) and TW for Taiwan.
- XM are the last two letters. They are the same on all three ROMs.
Europe is ahead right now on build 4.0.7.0. Global is on 4.0.5.0 and Taiwan on 4.0.2.0. All three are Android 17. On a phone this new, builds change often, so compare the page with the version in Settings, About phone before you download. The region code must match your phone. Xiaomi’s anti-rollback protection can also refuse an older build, which is explained in our guide to downgrading HyperOS.
Regions and ROM types
Xiaomi lists three regions for madrid: Global, Europe (EEA) and Taiwan. No India, Indonesia, Russia or Turkey ROM is on the page at this time. All three files are recovery ROMs. These are full update packages that the phone installs with its own updater. A fastboot ROM is flashed from a PC with Mi Flash, needs an unlocked bootloader, and erases the phone in a clean flash. Our fastboot ROM vs recovery ROM article compares the two.
Good to know before updating the Xiaomi 18 Pro Max
- At about 11 GB, this is a much bigger file than most Xiaomi recovery ROMs. Use Wi-Fi and check your free storage first.
- Manual install: Settings, About phone, System update, options menu, then “Choose update package”. If you do not see “Choose update package”, tap the MIUI or HyperOS logo on the update screen several times (about 10) until a message says the extra update features are on, then open the menu again.
- A phone this new normally gets these builds over the air, so manual install is mostly useful when the update has not reached you yet.
- Mi Flash needs a fastboot ROM and an unlocked bootloader. Read the official Xiaomi bootloader unlock rules before you plan that route, because “clean all” wipes the phone.
Guides and fixes
Common questions
Which Android version does the Xiaomi 18 Pro Max run?
Xiaomi's download page lists HyperOS 4 based on Android 17 for the Xiaomi 18 Pro Max in all three regions. The Global build is OS4.0.5.0.XEOMIXM.
Why is the Xiaomi 18 Pro Max firmware 11 GB?
Xiaomi's page lists each of the three recovery ROMs at about 11 GB, which is far larger than ROMs for older phones. Xiaomi does not explain the size, so plan for a long download and plenty of free storage.
Can I install the European ROM on a Global Xiaomi 18 Pro Max?
The European ROM OS4.0.7.0.XEOEUXM is newer, but it carries the EU region code. A Global phone uses the MI code, so keep to the ROM that matches the version in Settings, About phone.
Firmware and tools are the property of their respective owners and are listed unmodified. Product names and logos are trademarks of their owners. Flashing is at your own risk.
