Categories How To Tricks

How To Fix Accelerometer, Compass, Sensors Revert Issues On Custom ROM [ Android Origination, Proximity, Magnetic, Sensor Fix ]

After we flash a new custom ROM our android phone, tablet some sensors aren’t working or there’s a delay on respond. For instance if the magnetic sensor doesn’t work, as a result of that your compass app not work or it’s not giving the correct result. It’s a result of missing or corrupted sensor files. If we can replace a new working file into the require directories we can fix this issue.
This method you can use any android phone or tablet, but i can’t clearly mention it works each and every device. Use this guide as a basic and build your own sensor fix flashable zip.

This method we need to collect the official firmware sensors files, after that we use a flashable zip file using them and flash via recovery. 

Alternatively you can push those files into the relevant directories using root browser and fix permission to rw–r– (0644). Easiest way to flash it suing recovery.

  • First download all the sensors working custom ROM or a stock firmware.
  • Extract downloaded ROM into your desktop.
  • Create a desktop folder and name it as “system”.
  • Now collect following folders contain sensor files in your stock or any other ROM and paste them with their folders to desktop “system folder” separate sub folders. eg: – system/lib/hw

“system/bin/” folder contain “sensorservice” and “akmd8975” files.
“system/etc/” folder “sensors.conf”
“system/etc/permissions”  folder “android.hardware.sensor.accelerometer.xml” and “android.hardware.sensor.compass.xml”
“system/lib/hw” folder contain files, that have “sensors” name. There can be several files or one file. (These files name change according to the device manufacture) ex:- sensors.semc.so

  • Now download this flashable zip file and open it using winzip, WinRar, 7Zip etc file compress tool. (Don’t extract it)
  • Add files that we collected, using above 2nd method to the downloaded zip file relevant folders. (In winzip click “Add Files” button). In this case you can copy all the folders in the desktop system folder into this zip file. (If you do it correctly). Now your zip file inside looks like following screenshot.
  • Move updated sensor fix files into your phone SD card or external memory.
  • Reboot into recovery.
  • When the recovery appears go to “Install zip from the sd card> Choose zip from sd card” and select the Fix_Sensor Android.zip file.
  • Now go to “Advanced>Fix permission”.
  • After permission fix completed, reboot the phone and check your android phone, tablet sensors work properly by using this “Check Android Phone, Tablet Sensor Work Properly” post.

As I mention above paragraph use this guide as a basic and build your own sensor accelerometer, magnetic, Proximity, temperature, orientation fix zip file.

Related posts.
Chathu

View Comments

  • I am having problems with sony xperia S, accelerometer not working after installing custom ROM CM 11 kitkat, tried doing the above mentioned method, but got a message Failed while installing the zip file. please help me in resolving the auto rotation issue

    • Using a root file manager copy each file to the necessary folder. I guess when you are creating zip file something went wrong.

Comments are closed

Recent Posts

Root Sony Xperia Z 10.6.A.0.454 Android 5.0.2

Sony Xperia Z C6603 received the Android 5.0.2 lollipops build 10.6.A.0.454 firmware. This firmware version can easily root and most significant this is it doesn't…

4 years ago

Best Expense Income Tracker App For Android

Managing personal income and expense important. With a proper management we can reduce the unnecessary expenses. To track your each…

4 years ago

Root Sony Xperia Z C6603 10.5.1.A.0.292 Locked Bootloader

Sony rolls out Android 4.4.4 KitKat 10.5.1.A.0.292 firmware to Sony Xperia Z C6603. This version is known for hard to…

4 years ago

Make Own Android Dictionary With Facebook Chat, Gmail, Etc

Most of the time when we are chatting with our friends in Facebook, Hangout, WhatsApp, and also when we update…

4 years ago

GravityBox Best Xposed Framework Moudle With Tones Of Tweaks

The gravitybox is a one of the all in one best Xposed framework module. It has a wide variety of…

5 years ago

Best Free TWRP Recovery Theme Manager App Download

TWRP is a one of the popular, customizable and features rich, custom recovery for Android devices. Unlike the ClockworkMod recovery,…

5 years ago

This website uses cookies.