Xiaomi 18 Pro Max HyperOS 4.0 OS4.0.31.0.XEOCNXM
Stable firmware for the China Xiaomi 18 Pro Max (madrid), released November 17, 2026.
Download OS4.0.31.0.XEOCNXM
Recovery ROM (OTA .zip) · 12.5 GB
Install from the phone’s updater app — keeps your data.
Download
MD5: f68143ee306dd41504475b13e4698d2c
Files are served from Xiaomi’s official servers. Compare the MD5 checksum after downloading to make sure the file is complete and untouched.
Firmware details
- Device
- Xiaomi 18 Pro Max
- Codename
madrid- Region
- China
- Version
OS4.0.31.0.XEOCNXM- OS
- HyperOS 4.0
- Android
- 17.0
- Branch
- Stable
- Released
- Nov 17, 2026
- Package
- Recovery 12.5 GB
How to install OS4.0.31.0.XEOCNXM
Recovery ROM (recommended, keeps data)
- Back up your important data and charge the phone to at least 50%.
- Download the Recovery ROM above on your Xiaomi 18 Pro Max.
- Open Settings → About phone and tap the HyperOS version card.
- Tap the ⋮ menu → Choose update package and select the downloaded .zip file.
- Wait for verification, then tap Reboot now. The update takes 10–20 minutes.
Other Xiaomi 18 Pro Max (China) builds
Device page →| Device | Version | Released |
|---|---|---|
Xiaomi 18 Pro MaxChina · madrid | OS4.0.29.0.XEOCNXM |
No matching firmware. Try a different filter.
Xiaomi 18 Pro Max firmware for other regions
Frequently asked questions
Is OS4.0.31.0.XEOCNXM an official Xiaomi 18 Pro Max update?
Yes. OS4.0.31.0.XEOCNXM is an official Stable HyperOS 4.0 build for the Xiaomi 18 Pro Max (China), released by Xiaomi on November 17, 2026. The download links point directly to Xiaomi’s update servers.
Which Android version does OS4.0.31.0.XEOCNXM use?
This firmware is based on Android 17.0.
Will installing OS4.0.31.0.XEOCNXM erase my data?
Installing the Recovery package through the updater app keeps your apps and data. Flashing the Fastboot package with “clean all” wipes the phone — back up first.
Can I install this on another region’s device?
Only install firmware that matches your device’s region (China) and codename (
madrid). Cross-region flashing requires an unlocked bootloader and can cause problems.