[GUIDE] [Mi 4] Fix sensors not working!

userprince

Senior Member
Mar 12, 2012
732
181
0
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 :D

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! :eek:

Thanks to @satvikvg (for new partition name)
 
Last edited:

shabtab

Senior Member
Jun 11, 2013
605
194
0
25
Kolkata
Is this for CM or MIUI? I know there are lots of sensors not working CM, will this enable all sensors on CM, or this is just for those who revert back to MIUI after using some Custom Roms and Kernels and found some sensors not working?
 

Lennoard

Recognized Developer
May 5, 2015
583
713
0
22
Teresina
hebfoptimizer.androidvip.com.br
So i guess you are here because your sensors are not working after flashing certain Rom or Kernel Right? :(

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! :eek:
Any chance it work on Xiaomi Redmi 2?
We' got the same problem on Custom ROMs

If not, can you help us? :3