If you came here because you have the same problem, please check this:
https://www.htcmania.com/showthread.php?t=1435734
It's in Spanish but luckily you have Google translate to help you. Follo every step and you'll be ready to go. Yes, including buying an account from a scammy-looking website. This will definitely fix your problem.
If you have problems with Accelerometer, Gyroscope, Magnetic sensor, Pressure sensor,, Proximity sensor, light sensor, Hall, Rear camera, Rear sub camera, Front camera, Rear dual camera and NFC, don't worry. Do you recall wiping the Persist partition? That's alright, you can fix it too in the same process.
Just follow these steps just after extracting the chinese ROM you've downloaded:
Unzip the fastboot rom you downloaded (See link above)
Open flash_all.bat with notepad
Find this line:
fastboot %* flash storsec_ab %~dp0images\storsec.img || @echo "Flash storsec_ab error" && exit /B 1
Add a new line below with this:
fastboot %* flash persist %~dp0images\persist.img || @echo “Flash persist error” && exit /B 1
Save the file.
Open images\rawprogram0.xml
find the line:
<program SECTOR_SIZE_IN_BYTES="4096" file_sector_offset="0" filename="" label="persist" num_partition_sectors="16384" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="65536.0" sparse="true" start_byte_hex="0x4000000" start_sector="16384"/>
And change filename="" to filename="persist.img"
It should look like this:
<program SECTOR_SIZE_IN_BYTES="4096" file_sector_offset="0" filename="persist.img" label="persist" num_partition_sectors="16384" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="65536.0" sparse="true" start_byte_hex="0x4000000" start_sector="16384"/>
Now save this file.
Hope this helps, in my case my mi8 is now like new, don't loose hope