How to flash persist partition to fix sensor issues
OP: https://t.me/MoZoiDStack/31
IMP: Flashing persist breaks widevine l1 status(which can be restored) and breaks TEE(Trusted Execution Environement) which cannot be restored but it doesnt cause any issues for any apps.
1. Check 'device info hw' app for sensors. It should show 33 or 34.(28 if on miui 10. Dont worry) If it doesnt, u need to try this command to see if it fixes sensors before flashing persist to fix it.
1. Flash stock miui rom. Extract persist.img file from any miui stock fastboot rom file(use 7 zip and extract file twice) or use this persist.img file from Indian 12.5.1 rom.
2. Place persist.img in same folder as your adb and fastboot folder on computer.
Install latest abd and fastboot using this tool. Note installation directory to place perisit.img file inside
3. Run command
fastboot flash persist persist.img
OR
You can flash persist.img using latest official ofox or any unofficial ofox. Choose persist.img, select persist partition as target and flash
4. Reboot and check sensors in 'device info hw' app. If it shows zero, perform this command.
5. Open stock camera app. Switch to front cam. It will go in and out until it shows a prompt asking to calibrate camera. Let it calibrate and make sure popup cam works fine.
6. Follow this guide to calibrate fod and this guide to restore widevine L1 status
7. Take recovery backup of persist partition and keep it safely backed up on another device/computer for future use.
OP: https://t.me/MoZoiDStack/31
IMP: Flashing persist breaks widevine l1 status(which can be restored) and breaks TEE(Trusted Execution Environement) which cannot be restored but it doesnt cause any issues for any apps.
1. Check 'device info hw' app for sensors. It should show 33 or 34.(28 if on miui 10. Dont worry) If it doesnt, u need to try this command to see if it fixes sensors before flashing persist to fix it.
1. Flash stock miui rom. Extract persist.img file from any miui stock fastboot rom file(use 7 zip and extract file twice) or use this persist.img file from Indian 12.5.1 rom.
2. Place persist.img in same folder as your adb and fastboot folder on computer.
Install latest abd and fastboot using this tool. Note installation directory to place perisit.img file inside
3. Run command
fastboot flash persist persist.img
OR
You can flash persist.img using latest official ofox or any unofficial ofox. Choose persist.img, select persist partition as target and flash
4. Reboot and check sensors in 'device info hw' app. If it shows zero, perform this command.
5. Open stock camera app. Switch to front cam. It will go in and out until it shows a prompt asking to calibrate camera. Let it calibrate and make sure popup cam works fine.
6. Follow this guide to calibrate fod and this guide to restore widevine L1 status
7. Take recovery backup of persist partition and keep it safely backed up on another device/computer for future use.