Since you want to brush back the official rom, then your phone must be third-party rom, or brick, and in both cases, can only take wire brush
First, download the official wire brush rom: http://www.miui.com/thread-11592951-1-1.html (red rice 5plus in the corresponding handset's official forum Li searches: Model + official wire brush rom go Find)
After download, extract, there is a folder and a compressed package unzip
Download the official brush machine software: https://www.lanzous.com/i6bfv9c
installation
Double-click to open
Unzip the file after selecting a folder
Off the phone, press the volume down + power button built into FASTBOOT
Data lines linking computers and mobile phones, click on the loading device, then click on Brush, Brush will automatically restart after a successful