Disable Side Volume Control Buttons

kazea182

Well-known member
Jan 2, 2011
100
12
0
My girlfriend has an Optimus S with CM7 from Drew. Unfortunately she must have dropped the phone one too many times and the volume buttons on the side are being activated just by shaking the phone, so often the annoying volume screen comes up with it increasing or decreasing her ringtones at any random time. Is it possible to disable these buttons, she can just use the Settings -> Volume for the time being.

Any ideas?

Thanks in advanced if anyone knows how to do this! :)
 
Yes it is possible. Take a look at this thread:

http://forums.androidcentral.com/lg-optimus-s-rooting-roms-hacks/89699-mod-remap-your-hardware-keys.html

You can also use Root Explorer and edit the file right on your phone then reboot. The keypad file is located in /system/usr/keylayout/thunder_keypad.kl

Just delete the entries for the volume buttons and reboot.

Example:

Code:
key 232   DPAD_CENTER       WAKE_DROPPED
key 108   DPAD_DOWN         WAKE_DROPPED
key 103   DPAD_UP           WAKE_DROPPED
#key 102   ENDCALL           WAKE_DROPPED
key 102   HOME              WAKE
key 105   DPAD_LEFT         WAKE_DROPPED
key 106   DPAD_RIGHT        WAKE_DROPPED
key 115   [B]VOLUME_UP         WAKE[/B]             [COLOR="Red"]<--------REMOVE BOLD[/COLOR]
key 114   [B]VOLUME_DOWN       WAKE[/B]        [COLOR="Red"]<--------REMOVE BOLD[/COLOR]
key 213   DEL               WAKE_DROPPED
key 355   DEL               WAKE_DROPPED
key 212   CAMERA
key 247   FOCUS
key 217   SEARCH            WAKE_DROPPED
key 216   VOICE

FYI, I tested this out and you will not lose the vol up and down key functions in recovery, which is a good thing. :)
 
Makes ya wonder about that GPS tracing stuff...the find yer phone apps. I've seen several news local news reports about people getting busted that way. Though I spose u Gotta be quick if some one who knows what to do with it steals it.

Sent from my LG-LS670 using Tapatalk
 
Makes ya wonder about that GPS tracing stuff...the find yer phone apps. I've seen several news local news reports about people getting busted that way. Though I spose u Gotta be quick if some one who knows what to do with it steals it.

Sent from my LG-LS670 using Tapatalk

Oh, btw I got it back today by using "Plan B", got me the EXACT street address and went with the police and they said they were keeping it until someone wanted to claim it. (After no one would answer and they called a whole bunch of people yay sprint for being able to see your call log live) LMFAO! FAIL!
 
  • Like
Reactions: c4manceph
Glad to see that Plan B actually works. Hope I never need it. Knowledge is power.

Thanks Kazea
 

Trending Posts

Forum statistics

Threads
956,757
Messages
6,969,809
Members
3,163,608
Latest member
cambium