Most times after removing MI Cloud account on some Xiaomi devices, the device ends up with bad sensors ie fingerprint sensor does not register, bad gyroscope so compass app does not work, light sensors don't work, iR Remote control problems and sometimes even WiFi and Bluetooth cannot start. This is usually caused by a corrupted persist partition on the phone.
If you face this problem, follow the tutorial below to solve it.
Note:
Even though the process work flawlessly,
I'm not responsible for whatever happens to your device after using this process.
Do this at your own risk!!
Download and install adb-fastboot setup from here (install this package system wide).
Download and install Qualcomm drivers from here.
Download and install Notepad++ from here
Download the latest version of firmware for the xiaomi device you want to fix.
Extract the firmware .tar file with the help of 7zip or winrar.
Open the folder images found inside the extracted content.
Locate rawprogram0.xml and open with notepad++.
Find the line with persist.img.
Delete all other lines leaving only the lines with persist.img and <data> </data> tags.
save and exit.
Now open flashall.bat file using notepad++.
Before the line fastboot reboot, add
fastboot %* flash persist %~dp0images\persist.img || @echo "Flash persist error" && exit /B 1
Now delete all other lines except the first 3 lines and fastboot %* reboot.
save and exit.
The video above shows how to edit both files easily.
Boot device into fastboot mode by holding volume down + power key.
Open command prompt and then type in fastboot oem edl.
Phone will turn off and boot into edl mode.
You can also force boot phone into edl mode using test points.
Launch Xiaomi flashtool
Click on select button
Navigate and select folder of extracted firmware.
Click refresh and device will be detected.
Now click flash and wait for for process to complete. (takes about 10 secs)
Hold power button for at least 12 seconds for phone to boot.
All sensors (fingerprint, gyro, infra red, etc) with WiFi and Blutooth will be working perfectly.
If you like to share your sensor fix file to help others, just package the following files in the edited firmware folder.
flashall.bat
rawprogram0.xml
patch0.xml
persist.img
prog_emmc_firehose_8937_ddr.bin
Like and Share
facebook.com/romkingz
is this working with mi5s?
ReplyDeleteIs this trick work forWifi Mac id 02:00:00:00:00:00 problem ?
ReplyDeletedump: erro
ReplyDeleteI am having the problem on Redmi 4 Prime miui 9.6.2.0 global stable. Which ROM should I download? Latest(10) or 9?
ReplyDeleteCan anyone share fix folder for Redmi 4 prime, please?
is it working on locked bootloaders?
ReplyDeleteIs this trick work forWifi Mac id 02:00:00:00:00:00 problem
ReplyDeleteThanks bro Ur genius, good working,
ReplyDeleteMy Redmi 5a phone all sensor properly Wakad , god bless you and once again thanks
i can not do same your process
ReplyDeletemy phone mi note3
unauthorized on my MI 8 Dipper
ReplyDelete