Fix Sensors on Custom ROM’s on Xiaomi Mi 4

722201412113PM_635_xiaomi_mi_4

The Xiaomi Mi 4 has an issue of sensors not working on a lot of custom roms and kernels. With the help of this simple guide by XDA Senior Member Prince Chandela, you can have them functioning back to normal on all stock and custom roms.