• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.
Sign in to follow this  
Followers 0

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

27 posts in this topic

Posted

Hi

Excuse I want to Disable Proximity Sensor - CM10 android 4.2.2

:wub:  plz Help me♥

0

Share this post


Link to post
Share on other sites

Posted

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?

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.