Why you need to use the ADB Run
Firmware from Xiaomi smartphones via ADB Run is one of the most flexible ways to update or restore a system when standard methods (via Updater or Mi Flash) donβt work, and this method is especially relevant for devices with a locked bootloader, corrupted firmware, or when custom software installation is required without unlocking the bootloader.
Unlike the classic fastboot, the firmware through ADB Sideload (which is automated by ADB Run) allows you to install official and informal firmware directly from recovery mode. This saves when the phone does not turn on, hovers on the Mi logo, or after a failed update "over the air." However, the method requires care: a mistake in the command or an interrupted process can turn the gadget into a "brick".
In this article, weβll break down the entire process from installing drivers to fixing common bugs, and explain why ADB Run makes it easier for beginners to work with ADB and Fastboot.
What is ADB Run and Why is it Better than Standard ADB?
ADB Run is a graphical shell (or scripting interface) for ADB (Android Debug Bridge) and Fastboot utilities, designed specifically for Xiaomi devices. It automates routine commands, reduces the risk of input errors, and offers ready-made scripts for firmware, unlocking the bootloader or resetting settings.
Advantages of the classic ADB:
- πΉ Visual menu: no need to remember commands β just select the item in the list.
- πΉ Automatic Connection Check: The utility itself determines whether your Xiaomi PC can see your device.
- πΉ Script support: You can create a sequence of commands to reuse.
- πΉ Logistics: All actions are recorded in a file, which makes it easier to diagnose problems.
However, ADB Run has limitations: it does not replace full knowledge of ADB commands, and in some cases (for example, when working with custom Recovery) it may require manual input.
Preparation for firmware: what to do before the start
Before you start firmware, make sure that all the preliminary steps are followed. Neglect of preparation is the main reason for "bricking" devices.
Mandatory conditions:
- Charge the battery by at least 60%. When discharged during firmware, the device may turn off and stop responding to charging.
- Download the correct firmware. ADB Sideload only has a.zip file for your model. Fastboot firmware (with.tgz or.img extension) won't work!
- Install drivers. Without them, your PC won't see your phone in ADB or Fastboot mode. Xiaomi needs a Mi USB Driver package.
- Unlock OEM (if required). In the developer settings (Settings β About Phone β MIUI version β tap 7 times), enable OEM Unlock and USB Debugging.
Downloaded firmware for his model |Installed ADB Run and drivers |Enabled debugging on USB| Charged phone >60%| Made backup of important data-->
Critical: Firmware through ADB Sideload erases all data on your device if you install the full package (not the full package). OTA-Even if the phone doesn't turn on, try extracting files through TWRP or Mi Assistant before the firmware.
Step-by-step: Xiaomi firmware through ADB Run
Now, to the process itself, follow the instructions strictly by step, and skipping a stage can lead to errors.
Step 1: Starting ADB Run and Connecting Your Phone
1. Unpack the archives with ADB Run to the root of the disk C:\ (for example, C:\ADB_Run\).
2. Launch the file. ADB_Run.exe on behalf of the administrator.
3. connect the phone to the PC via USB-cable (preferably original).
4. From the ADB Run menu, select ADB Device to check the connection. If the device is determined, move on.
Step 2: Transfer your phone to Recovery Mode
To run through ADB Sideload, you need to load into stock or custom recavers:
- π Turn off the phone.
- π Hold the Loud up. + Food before the appearance of the Mi logo.
- π In the recovery menu, select Connect with MiAssistant (or ADB Sideload, if you have one. TWRP).
Step 3: Starting the firmware through ADB Sideload
1. In ADB Run, select the Manual Command β ADB menu.
2. Enter a command to check the connection:
adb devicesIf the device is displayed, continue.
3. Run the firmware with the command:
adb sideload path to firmware.zipFor example:
adb sideload C:\MIUI\miui_LMI_V12.5.3.0.zip4. wait for the process to be completed (there will be a progress bar on the phone screen).
π‘
If the firmware is 47% or 99% down, don't panic. This is normal for some versions of MIUI. Wait 10 to 15 minutes before you interrupt.
Step 4: Reboot and initial setup
After successful installation:
- π In the recovery menu, select Reboot. β System.
- π The first download can take up to 10 minutes β donβt turn off your phone!
- π If the device has been stuck on the logo for more than 20 minutes, try flashing or installing a different version. MIUI.
What to do if the firmware does not start?
Common mistakes and their solutions
Even if you follow the instructions accurately, you can get errors, and we'll look at the most common ones and how to fix them.
| Mistake. | Reason. | Decision |
|---|---|---|
| adb: failed to stat | The Wrong Path to the Firmware File | Check the file extension (.zip) and no gaps in the path |
| device not found | Drivers are not installed or the cable is faulty | Reinstall Mi USB Driver, try another cable/port |
| signature verification failed | The firmware is not designed for your model. | Download the official firmware from the Xiaomi website for your device |
| Hanging up 47 percent | Features of some versions of MIUI | Wait 10-15 minutes, do not interrupt the process. |
| cannot read | Firmware archive damaged | Download the file again, check the checksum (MD5) |
If the error is not listed in the table, examine the log ADB Run (file) ADB_Run_log.txt It's often a hint, like an error code, in a folder with a utility. 7 It means a mismatch between the device model and the firmware.
π‘
90% of firmware errors through ADB Sideload are due to incorrect firmware or connection issues. Always check the device model and archive integrity.
Firmware of blocked devices: what you need to know
If your Xiaomi bootloader is blocked, firmware via ADB Sideload is possible, but with limitations:
- π You can install only official firmware from Xiaomi (custom) ZIP-Files will not pass signature verification).
- π Version. MIUI Downgrade version requires unlocking.
- π Some models (e.g. Redmi Note 10 Pro) POCO F3) You may need to link your Mi Account even for official firmware.
To check the status of the bootloader, type the command into ADB Run:
fastboot oem device-infoIf the answer is Device unlocked: false, the bootloader is blocked.
β οΈ Note: On devices with locked bootloader and enabled anti-Rollback protection (ARB) try to flash the old version MIUI It will lead to a hard brick. ARB in settings (Settings) β The phone. β Version. MIUI β Full information).
Alternative Firmware Methods Xiaomi
If ADB Sideload doesnβt work, consider other ways to:
| Method | When to use | Pluses | Cons |
|---|---|---|---|
| Mi Flash Tool | Complete Fastboot Fastboot Fastboot Fastboot | It works on bricks, supports all models. | Requires unlocking the bootloader, erases all data |
| TWRP + ZIP | Install custom firmware (LineageOS, Pixel Experience) | Flexibility, backup through Nandroid | You need to unlock the bootloader, the risk of errors in case of incompatibility |
| OTA-update | Update "over the air" or via Updater | Secure, saves data | Does not work on damaged systems |
| Qualcomm EDL | Recovery after hard brick | It works without unlocking. | Requires an authorized account, the risk of blocking IMEI |
For most ADB Sideload users, ADB Run is the optimal balance between security and functionality, but if you need to install custom software or restore your device after a major crash, Mi Flash or TWRP is a must.