How to Sweeze Xiaomi Robot Vacuum on MAT via Android: A Complete Guide with Risks and Solutions

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.

πŸ“Š What Xiaomi model of vacuum cleaner do you use?
Mi Robot Vacuum-Mop 2 Pro
S5 Max
STYJ02YM
Another Xiaomi model
Not Xiaomi.

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?
Open the app β†’ select your vacuum cleaner β†’ tap three dots in the top right corner β†’ Device settings β†’ Device Information. The firmware version is listed in the "Software Version" bar.

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:

  1. Go to Settings β†’ About the phone β†’ The version of the software.
  2. Click 7 times on the build number until the notification β€œYou became a developer” appears.
  3. 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 devices

3. 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 1

3. Start the MAT installation:

adb push mat_vacuum.zip /sdcard/


adb shell pm install -r /sdcard/mat_vacuum.zip

Make 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:

  1. Turn it off. OTG-cable.
  2. Turn on the vacuum cleaner with a button on the body.
  3. Connect to its Wi-Fi point (the name of the type rockrobo-XXXX).
  4. 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 foundThe vacuum cleaner is not detected by USBCheck 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 workingIncompatible version of the firmwareReverse to stock firmware via Mi Home, then repeat the process
Failed to copy 'mat_vacuum.zip': No such fileNo 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 onDamaged loaderRestore 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.

  1. Download stock firmware for your model with Xiaomi Firmware Updater.
  2. Connect the vacuum cleaner to the PC via OTG and run the ADB.
  3. 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.

FAQ: Frequent questions about MAT firmware

❓ Can I stitch it? MAT Android-free root-rights?
Yes, root is not required, but it may be necessary for some models (for example, for example, STYJ02YM Most of the steps are done through ADB, But if your smartphone blocks commands, try using a Linux PC or turn on it. USB-debugging PTP.
❓ The vacuum cleaner doesn't turn on after the firmware?
It's probably a damaged bootloader. Try: Hold the power button for 20 seconds to reset. Connect through the power button. ADB If it doesn't work, run the stock firmware through Fastboot. UART). In 90% of cases, repeated firmware helps MAT with the correct file for your model.
❓ MAT I've been asked, but the vacuum cleaner doesn't connect to Wi-Fi?
This is a typical error when you have the wrong network settings: πŸ”Ή Does your router support 2.4 GHz (MAT not working 5 GHz). πŸ”Ή Is it off? DHCP or filter MAC. πŸ”Ή If you use the token correctly, reset the vacuum cleaner network settings through Valetudo (if you use it). ADB: adb shell rm /data/misc/wifi/WifiConfigStore.xml
❓ Can I update you? MAT post-installation?
Yes, updates are coming out regularly. To update: Download the new version MAT From GitHub, connect the vacuum cleaner to your smartphone through OTG. Do: Adb install -r new_mat_version.apk ⚠️ Do not upgrade β€œover the air” through Mi Home – this will lead to a firmware conflict.
❓ Is firmware legal? MAT? Will Xiaomi block the vacuum cleaner?
Technically, MAT It does not violate the laws, as it uses open protocols Xiaomi: πŸ”Ή Xiaomi can block an account if it detects unofficial software (rarely, but it does happen). πŸ”Ή The warranty is canceled - when contacting the service center will refuse repairs. πŸ”Ή Some features (such as voice assistant Alice) may stop working. MAT, minimize risks.