Ich habe dich schon verstanden, aber hast du
Post Nr. 44 von http://en.miui.com/thread-312976-1-1.html gelesen? (schau mal 3. und das Protokoll an).
Wenn ich das richtig lese, dann hilft mir eben edl über miflash gar nicht, da das persist, obwohl vorhanden, nicht geflasht wird und um das zu bewerkstelligen eben der Bootloader unlocked sein muss, da in den Scripts persist gar nicht kopiert wird.
Some replies to questions above:
1. I can only confirm that this fixes COMPLETELY DEAD sensors. I have not yet had temporary sensor failures or laggy sensors (and issues related to automatic brightness etc.), so I cannot say anything about that.
2. I have not found a way to flash persist with a locked bootloader. I had to unlock the bootloader.
3. Why does a regular fastboot flash not fix the issue? Here is an example flash_all script taken from latest MIUI 8 ROM:
- fastboot $* getvar product 2>&1 | grep "^product: *kenzo[ DISCUZ_CODE_0 ]quot;
- if [ $? -ne 0 ] ; then echo "Missmatching image and device"; exit 1; fi
- fastboot $* flash tz `dirname $0`/images/tz.mbn
- fastboot $* flash sbl1 `dirname $0`/images/sbl1.mbn
- fastboot $* flash rpm `dirname $0`/images/rpm.mbn
- fastboot $* flash aboot `dirname $0`/images/emmc_appsboot.mbn
- fastboot $* flash hyp `dirname $0`/images/hyp.mbn
-
- fastboot $* flash tzbak `dirname $0`/images/tz.mbn
- fastboot $* flash sbl1bak `dirname $0`/images/sbl1.mbn
- fastboot $* flash rpmbak `dirname $0`/images/rpm.mbn
- fastboot $* flash abootbak `dirname $0`/images/emmc_appsboot.mbn
- fastboot $* flash hypbak `dirname $0`/images/hyp.mbn
-
- fastboot $* erase boot
- fastboot $* flash modem `dirname $0`/images/NON-HLOS.bin
- fastboot $* flash system `dirname $0`/images/system.img
- fastboot $* flash cache `dirname $0`/images/cache.img
- fastboot $* flash userdata `dirname $0`/images/userdata.img
- fastboot $* flash recovery `dirname $0`/images/recovery.img
- fastboot $* flash boot `dirname $0`/images/boot.img
-
- fastboot $* flash sec `dirname $0`/images/sec.dat
- fastboot $* flash dsp `dirname $0`/images/adspso.bin
- fastboot $* flash mdtp `dirname $0`/images/mdtp.img
- fastboot $* erase splash
- fastboot $* flash splash `dirname $0`/images/splash.img
- fastboot $* erase DDR
-
- fastboot $* flash cust `dirname $0`/images/cust.img
-
- fastboot $* reboot
Copy the CodeAs you can see, the normal flash_all file does NOT flash persist! There is a persist.img in the images folder but it does not get used by the script. As a matter of fact, MiFlash does not even use this script, even if you select it... I tried adding persist to the scripts that come with a fastboot rom but they get ignored. In fact, I can delete the contents of the flash scripts and MiFlash still works. So it must be using something else...
Why is persist.img broken? I have no idea... If you see other Xiaomi models, you can find examples of broken persist.img there, too. It seems to happen mostly with phones that were shipped with an unofficial firmware...