Jump to content


Photo

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


  • Please log in to reply
26 replies to this topic

#21
Johnnyd1979

Johnnyd1979

    Newbie

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Location:Portugal
  • Devices:Huawei G300
So the accelerometer remains untouched if I install this on AOKP?

  • 0

#22
kyan31

kyan31

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 3,861 posts
  • Gender:Male

So the accelerometer remains untouched if I install this on AOKP?


No, the accelerometer will never work no matter what ROM :(

  • 0

e2199c4dbb.png823c51b6b0.pngc3f6e04cdb.pngbc36a18046.pngead60d1912.pnge46a22ae54.png

 

Phones: Samsung Galaxy S4 Qualcomm & Huawei Ascend G300

PC: AMD FX 8350 8 CORE 4.2Ghz CPU, 16GB 1600Mhz Kingston HyperX RAM, Gigabyte R9 270X Winforce Edition GPU

Like my work? Hit that +1 button as a thank you! Want to support me? You could consider donating!  :)

Subscribe to my YT Channel: https://www.youtube.com/user/thekyan31


#23
ChrisPNE

ChrisPNE

    Enthusiast

  • Members
  • PipPipPip
  • 180 posts
  • Gender:Male
  • Devices:Vowney V5, Huawei G300
  • Twitter:@ChrisPNE

So the accelerometer remains untouched if I install this on AOKP?


Sorry for the ambiguity in my post.

The accelerometer does not work. This is not a problem for me though.

  • 0

#24
PCTechRoss

PCTechRoss

    Diehard

  • Members
  • PipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:London
  • Interests:Computers, Mobile Phones, Game Development
  • Devices:Samsung Galaxy S4 4G

Added instructions for ROM cookers.


Can this work on stock based roms?

  • 0

Check out Blooops & Sam Adventures

1a2dad00f5.png0b2f5277f1.png

Click the icon


#25
kyan31

kyan31

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 3,861 posts
  • Gender:Male

Can this work on stock based roms?


There is actually a build prop line in stock ROMs that disables the proximity sensor. Just search for proximity while in the build.prop and you'll find it.

  • 0

e2199c4dbb.png823c51b6b0.pngc3f6e04cdb.pngbc36a18046.pngead60d1912.pnge46a22ae54.png

 

Phones: Samsung Galaxy S4 Qualcomm & Huawei Ascend G300

PC: AMD FX 8350 8 CORE 4.2Ghz CPU, 16GB 1600Mhz Kingston HyperX RAM, Gigabyte R9 270X Winforce Edition GPU

Like my work? Hit that +1 button as a thank you! Want to support me? You could consider donating!  :)

Subscribe to my YT Channel: https://www.youtube.com/user/thekyan31


#26
dynamite98

dynamite98

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:Xperia z

Hi

Excuse I want to Disable Proximity Sensor - CM10 android 4.2.2

:wub:  plz Help me♥


  • 0

#27
kyan31

kyan31

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 3,861 posts
  • Gender:Male

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

e2199c4dbb.png823c51b6b0.pngc3f6e04cdb.pngbc36a18046.pngead60d1912.pnge46a22ae54.png

 

Phones: Samsung Galaxy S4 Qualcomm & Huawei Ascend G300

PC: AMD FX 8350 8 CORE 4.2Ghz CPU, 16GB 1600Mhz Kingston HyperX RAM, Gigabyte R9 270X Winforce Edition GPU

Like my work? Hit that +1 button as a thank you! Want to support me? You could consider donating!  :)

Subscribe to my YT Channel: https://www.youtube.com/user/thekyan31





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users