thx a lot for excellent work HalifaxTe55!
but I'm a little confused with sensors including accelerometer/light/proximity/magnetometer/gyroscope
if I just only flashboot flash the MIUI ROM you mentioned (oxygen_global_images_V10.3.1.0.NDDMIXM_20190613.0000.00_7.1_global),everything works fine,every sensor working as it should be under the MIUI.
but if I completely follow the installation instruction:
1.fastboot flash oxygen_global_images_V10.3.1.0.NDDMIXM_20190613.0000.00_7.1_global
2.fastboot boot aosp_recovery.img
3.Select "Factory reset" --> "Format data/factory" reset
4.adb sideload PixelExperience_Plus_oxygen-12.1-20220714-0903-OFFICIAL.zip
5.reboot to system and finished initiation setting.
6.accelerometer/light/proximity/magnetometer/gyroscope sensors couldn't work
7.this lead to auto-rotate and adaptive-brightness function couldn't work as MIUI(oxygen_global_images_V10.3.1.0.NDDMIXM_20190613.0000.00_7.1_global)
because every sensor works fine under MIUI, so I assumed persist partition was not damaged or broken (persist -> /dev/block/mmcblk0p58)
In fact,I had tried backup persist partition use "dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img" under MIUI and restore use "dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img" under Pixel Experience,with no luck this didn't solve the problem.
would you please helping me to check which step I did wrong ? thx!
[sensors works fine in MIUI]
View attachment 5683713
[sensors didn't work in Pixel Experience]
View attachment 5683725