Jump to content

[MOD] Disable Proximity Sensor - CM10.1 Based ROM's only!


Guest kyan31

Recommended Posts

Hi

Excuse I want to Disable Proximity Sensor - CM10 android 4.2.2

:wub:  plz Help me♥

 

wat?

 

 

 

I'm aware that many people have problems with their proximity sensor, which can be quite annoying when making calls etc. Fortunately I have made two zips, one to completely disable the proximity sensor, and one to re-enable it. Anyway, here they are:

Disable Proximity Sensor

Enable Proximity Sensor

You can test the zips by making a call, and then waving your hand over the top front of the phone. The screen should either stay on, or go off depending what zip you flashed.

EDIT:

This mod seems to stop the accelerometer from working, i'm not sure why, but maybe i'll look into it if its really that important to some people. If you really need the accelerometer working, just flash the Enable Proximity Sensor zip.

THIS IS ONLY FOR CM10.1 AND CM10.1 BASED ROMS (INCLUDES ELECTRA, FAVAROOOO, LIQI ETC.)

If you want to disable the proximity sensor in your ROM, follow these steps:

  • Navigate to System/lib/hw
  • Open sensor.default.so with a hex editor
  • Use the search tool and look for the word 'proximity'
  • If you get a line, such as ._ZNK15, You need to modify it to ._ZNK16 - This is just an example, you can also use this method do disable other sensors such as the light sensor.
  • Save the file, and you're done.
+1 this post if I helped you out, thanks.

 

did you miss this whole thread lol?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.