So i guess you are here because your sensors are not working after flashing certain Rom or Kernel Right? 
But Don't worry I'm here to help you
NOTE: If you are on new partition table (i.e if you flashed miui mm) use this partion name "mmcblk0p21"
Things you need
Open terminal emulater app and type
su
dd if=/dev/block/mmcblk0p22 of=/sdcard/persist.img
Then you will get the persist.img file on your storage. copy and take it on a safe place... Like on OTG Drive or On PC...
Now copy the downloaded "persistnew.img" file to Internal storage and on terminal emulater app type
dd if=/sdcard/persistnew.img of=/dev/block/mmcblk0p22
Now Reboot... Now check your sensors with "Sensor Box" app on play store :fingers-crossed: Hurray!! Your sensors will be working again :highfive:
Enjoy!
Thanks to @satvikvg (for new partition name)
But Don't worry I'm here to help you
NOTE: If you are on new partition table (i.e if you flashed miui mm) use this partion name "mmcblk0p21"
Things you need
- Root Access
- Terminal Emulator
- persistnew.img
Open terminal emulater app and type
su
dd if=/dev/block/mmcblk0p22 of=/sdcard/persist.img
Then you will get the persist.img file on your storage. copy and take it on a safe place... Like on OTG Drive or On PC...
Now copy the downloaded "persistnew.img" file to Internal storage and on terminal emulater app type
dd if=/sdcard/persistnew.img of=/dev/block/mmcblk0p22
Now Reboot... Now check your sensors with "Sensor Box" app on play store :fingers-crossed: Hurray!! Your sensors will be working again :highfive:
Enjoy!
Thanks to @satvikvg (for new partition name)
Last edited: