Xiaomi has built a recovery with hidden features, but these features are proprietary and only Xiaomi devs know how to interact with them.
After analysis of recovery, apps and already modified adb produced by Xiaomi, I discovered how stock recovery installation works and I implemented in my tool, XiaoMiTool.
With Miui 9 Xiaomi updated his recovery, but modified adb provided by them (extracted from MiPcSuite) is no more update supported and is now missing some features of new recovery.
So I decided to code my own version of adb to work with new recovery, and since this isn't enough to make rom installation available, I decided to implement the whole process needed for rom installation, which I originally coded into XiaoMiTool, in adb code.
The result is a lightweight, user-friendly, fast way to install official miui roms via stock recovery.
Just reboot your device to recovery mode (hold vol+ and power button, then after reboot press "Connect to Mi Assistant" or "连接小米助手", then run xiaomiadb sideload_miui <filename> and in a matter of seconds you will know if the rom you want to install can be installed, and if it can, this tool will instll it immediately.
This tool is also useful for those who have a bricked device and want to unbrick it. Just sideload latest official rom, format data and you're good to go.
Why to use Xiaomi ADB instead of XiaoMiTool:
Why to use XiaoMiTool instead of Xiaomi ADB:
Xiaomi ADB guidelines , simpler is better,
XiaoMiTool and Xiaomi ADB are free to use, if you like them and want to help the development you can make a donation to the developer.
XiaoMiTool and Xiaomi ADB are not official, they have been developed by a random guy (me) and not by Xiaomi!
If you have questions unanswered you can check the FAQs section below.
* = Every stock recovery installation must be validated by Miui update server individually and so installation availability is subject to Xiaomi policies. With miui 9 some cross region installations have been blocked (from china to global and vice versa). Unless you try to install the rom, you don't actually know if you can do it.
I (developer) invested many hours (days) into developing this tool. I made it to help people for free (nobody has paid me to do this) but further development requires resources (time and money) so a donation isn't just gratitude, but also support to me and I am happy to continue this project and thankful for every donation :)
- Does it work for my device? This tool is made to work with mi recovery 3 which is the one installed on current Xiaomi devices with miui 8 and miui 9. It may not work with previous recovery versions. - Can I install this rom if I have this and this...? Just try, the tool will tell you which rom can be installed. - Do I have to download anything in addition to this tool? Yes, the rom you want to install and if you have driver problems you also need to download them as well. - Which languages are available? There is not much text in there, but it's English - Does Xiaomi ADB unlock the bootloader? No. Nothing to do with it. - English is pretty bad... I know, my English is pretty bad. - This tool doesn't work... Sorry to hear that, just go back to old manual modding and leave feedback. - Do I need to backup my data? YES! Backup is always a good thing. Anyway, xiaomi adb will tell you if it's going to format data partition or not. After some installation where data partition isn't formatted the device could have problems (not booting or apps crashing) and you will need to manually format data with xiaomiadb format-data command - Can my device get bricked? Yes, but with very small probability. If it get bricked you can flash the rom you have previously installed using the same tool. - I need to install lineageos with google services and supersu, how can I do that? You cannot do it with this tool. Only latest official xiaomi roms are allowed. - My device is bricked, can I use this tool to unbrick it? Yes if you can reach recovery mode. - How can I access FastFlash? - My device got an error/bircked or the installation wasn't succesful, what can I do to help you to improve the tool? Just send me an email with a quick explanation of the problem and attach to it the text you see on the prompt. Emails without the text attached (or crash message) are useless to me (and to you) and will not be considered!