Alternative firmware MAT (Mi Home Alternative Tool for robot vacuum cleaners Xiaomi opens access to advanced features that the manufacturer has hidden in standard software. It's the ability to adjust the suction power across zones, manage maps through third-party apps like Valetudo, or even integrate a vacuum cleaner into Home Assistant without cloud servers. But the process of firmware through an Android device requires accuracy: One wrong step can turn your vacuum cleaner into a brickΒ».
In this guide, we will take a step-by-step guide to Xiaomi Mi Robot Vacuum-Mop 2 Pro, S5 Max, STYJ02YM and other compatible devices, learn how to prepare your smartphone, where to download the correct firmware files, and how to avoid typical errors, and what to do if the vacuum cleaner stops responding to commands after the firmware is done.
β οΈ Warning: Firmware MAT This will cancel the Xiaomi warranty and may cause the device to run unsettled. If you're not prepared for the risks, stop at this paragraph. FAQ, where key security issues are addressed.
1. Compatibility: What Xiaomi models support MAT
Not all Xiaomi robot vacuum cleaners can be flashed on MAT. The firmware is developed by enthusiasts and its support depends on the deviceβs hardware platform. Below is the current list of compatible models (June 2026):
- πΉ Xiaomi Mi Robot Vacuum-Mop 2 Pro (Models) STYJ02YM, STYTJ02ZHM)
- πΉ Xiaomi Mi Robot Vacuum-Mop 2 Lite (STYJ03YM)
- πΉ Xiaomi Mi Robot Vacuum-Mop P (SDJQR02RR)
- πΉ Xiaomi Mi Robot Vacuum-Mop 1S (SC06, SDJQR05RR)
- πΉ Xiaomi Mi Robot Vacuum-Mop Essential (STYJ07YM)
- πΉ Xiaomi Mi Robot Vacuum-Mop 2 Ultra (STYTJ10YM) β partial support
β οΈ Note: Chip-based models MT7688 (Xiaomi Mi Robot Vacuum 1 is not supported MAT. For them, there are other custom firmware, but their installation requires soldering and work with the UART.
To accurately determine the model, flip the vacuum cleaner and find a sticker with an article (starts on the STY, SDJ or SC). Also check the firmware version in the original Mi Home app: MAT It only works with devices on firmware 3.5.8_000000 newer.
How to find out the firmware version in Mi Home?
2. Android smartphone preparation: what you need for firmware
For Android firmware, you'll need a smartphone that supports OTG (to connect the vacuum cleaner directly) and root rights β but that's not necessary. Most steps are done via ADB (Android Debug Bridge), which works without root access. However, some models (such as STYJ02YM) may need to unlock the bootloader.
List of requirements:
- π± Android smartphone with OS version 7.0 and higher (recommended 10)+)
- π OTG-cable (Type-C or Micro-USB, depending on the port of the smartphone)
- π» Utility. ADB Fastboot (you can download from the official Android website)
- π Firmware MAT For your model (download only from the official repository)
- π Charge vacuum cleaner at least 50% (interruption of the process due to discharge leads to a breech)
If you have Samsung, Xiaomi or another custom-shell brand, turn on the developer mode:
- Go to Settings β About the phone β The version of the software.
- Click 7 times on the build number until the notification βYou became a developerβ appears.
- Go back to Settings β System β For developers and enable USB debugging.
π‘
If you have a Xiaomi smartphone, disable MIUI Optimization in the developer settings β this will eliminate problems with ADB connection.
3. Step-by-step instruction: Firmware MAT via Android
The entire process takes 15 to 40 minutes depending on the model, and follow the instructions in strict order, and skipping steps can lead to errors.
Step 1: Connecting the vacuum cleaner to a smartphone
1. Turn off the vacuum cleaner with a button on the case.
2. Connect. OTG-cable to the smartphone and the other end to the USB-vacuum cleaner port (usually located under the cover next to the switch button).
3. Hold the power button vacuum cleaner for 10 seconds until the white indicator lights up - this means that the device has switched to firmware mode.
Step 2: Starting ADB and checking the connection
1. Connect your smartphone to your PC and open the terminal (CMD or PowerShell).
2. Enter a command to check connected devices:
adb devices3. If the vacuum cleaner is determined (a row with a serial number will appear), move on. If not, check the drivers or cable.
Step 3: Installation of MAT
1. Download the firmware archive and unpack it into a folder with ADB.
2. At the terminal, execute a command to unlock the bootloader (if required):
adb shell setprop persist.sys.fflag.override.settings_bluetooth 13. Start the MAT installation:
adb push mat_vacuum.zip /sdcard/
adb shell pm install -r /sdcard/mat_vacuum.zipMake sure the vacuum cleaner is 50%+ charged
Connect OTG-cable
Check the visibility of the device in ADB
Download the firmware for your model
Disable antivirus on your smartphone (can block) ADB)-->
Step 4: Reset and Configure
After installation:
- Turn it off. OTG-cable.
- Turn on the vacuum cleaner with a button on the body.
- Connect to its Wi-Fi point (the name of the type rockrobo-XXXX).
- Open your browser and go to http://192.168.8.1 to complete the setup.
π‘
If the vacuum cleaner does not turn on after firmware, try to reset it to factory settings by holding the power button for 20 seconds.
4. Typical errors and their solutions
Even with the correct following of the instructions, problems can arise, and below is a table of the most common errors and how to fix them:
| Mistake. | Reason. | Decision |
|---|---|---|
| ADB: device not found | The vacuum cleaner is not detected by USB | Check it out. OTG-cable, set up debugging. USB On a smartphone, reconnect the device |
| The vacuum cleaner is turned on, but the MAT is not working | Incompatible version of the firmware | Reverse to stock firmware via Mi Home, then repeat the process |
| Failed to copy 'mat_vacuum.zip': No such file | No firmware file found. | Check the path to the file in the adb push command, unpack the archive again |
| The vacuum cleaner makes an error sound when turned on | Damaged loader | Restore the stock firmware through Fastboot (solding required) |
β οΈ Warning: If the vacuum cleaner is constantly restarting or does not respond to the buttons after firmware, this is a sign of damage to the boot partition. UART (requires disassembly of the device and soldering).
For diagnosis, connect the vacuum cleaner to the PC and check the logs through the command:
adb logcat | grep -i "error"5. What MAT gives: post-firmware opportunities
The main advantage of MAT is full control of the vacuum cleaner without the restrictions of Xiaomi.
- πΊοΈ Management of maps via Valetudo or Home Assistant (without the Xiaomi cloud)
- β‘ Suction power settings by zone (for example, maximum power on carpet, minimum on laminate)
- π Castomic cleaning scenarios (e.g., cleaning only around the perimeter or avoiding certain rooms)
- π‘ Local access without depending on Xiaomi servers (works even when the Internet is disconnected)
- π§ Advanced settings (change in speed, sensor sensitivity, timeouts)
π‘ Example: C MAT You can program the vacuum cleaner to clean the nursery during the day and the hallway every 2 hours, or you can set up an automatic power increase when the vacuum cleaner detects the carpet.
There are, however, downsides:
- β Loss of official Xiaomi support (no updates via Mi Home)
- β Risk of unstable operation (for example, accidental rebuttals at low charge)
- β Difficulties with restoring the warranty (you will have to roll back to the runoff)
π‘
To integrate with Home Assistant after the MAT firmware, use the valetudo component β it supports all custom settings.
6.How to get back stock firmware Xiaomi
If the MAT is unstable or you want to return the warranty, you can roll back to the original firmware.
- Download stock firmware for your model with Xiaomi Firmware Updater.
- Connect the vacuum cleaner to the PC via OTG and run the ADB.
- Run the command to reset:
adb shell recovery --wipe_data
adb sideload stock_firmware.zipβ οΈ Note: After rolling back to stock firmware, all settings MAT If you're using Valetudo, you're going to have to reset the integration.
For models with a locked bootloader (for example, STYJ02YM on firmware newer than 4.0.0), you may need to log in through a Xiaomi developer account.
7. Alternative ways of firmware (without Android)
If the firmware through Android failed, there are other methods:
- π₯οΈ Through Windows/Linux Python script: Uses the mirobo utility (installed via pip install mirobo) Suitable for power users.
- π Through UART (soldering: Requires opening of vacuum cleaner and connection to contacts TX/RX/GND. The most reliable way for βbrickβ devices.
- βοΈ Through the cloud (unofficial servers): Risky method - firmware is downloaded through swapped Xiaomi servers.
For most users, firmware via Android remains the most convenient option, since it does not require disassembly of the device or complex manipulations with the PC.