I was able to solve the problem I had with the sensors, the gyroscope sensor and the accelerometer did not work, I discovered that it was because the persist.img partition was damaged, thanks to this method that works for me, With this tutorial...
I purchased used mi 9 lite upgraded to android 10. No sensor are working. Bootloader is locked. Is there any way just to install persist.img without unlocking bootloader and not bricking phone?
I purchased used mi 9 lite upgraded to android 10. No sensor are working. Bootloader is locked. Is there any way just to install persist.img without unlocking bootloader and not bricking phone?