• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root I need to disable the search button on my Ally ...

Either the corner of the screen with the search button is messed up, or the search button on my keyboard is messed up. Either way, my phone is acting like it thinks I'm rapidly pressing the search button, and it has been like this for a week.

Is there a config file I can edit to disable Search?
Is there an alternate solution you can think of?
 
Use your preferred method of exploring the file system and go find /system/usr/keylayout/aloha_keypad.kl and open it with a text editor.

Find
Code:
key 247	  SEARCH

Put a # at the very beginning of the line like so
Code:
#key 247	   SEARCH

That should disable the search button on the front of the phone.
Now for the one on the physical keyboard, I haven't tested this, but this should work. Open qwerty.kl in the same folder and find
Code:
key 127   SEARCH            WAKE_DROPPED
key 217   SEARCH            WAKE_DROPPED
And put #s at the beginning like the last one

Replace the one (two if you did the second part (durr)) and reboot. When your phone turns back on, the search button(s) won't work.

I did this with my EVO to disable the buttons since I use the nav bar for back/home/etc

EDIT: Changed the line to what frugalally said worked for him
 
Thanks, cr. I'm gonna have to download the SDK and install it, since I can't stay on the notification page, or any other page, long enough to enable usb storage. I'll let you know how it went.
 
Welp, I commented out from both files just like you recommended and ... it's still searching. So, I'm just gonna wipe and reinstall and hope it's some software glitch.
 
I haven't wiped/reinstalled yet, because ...

While the keyboard's search button is definitely off, the screen's search button is still on. I pulled both .kl's again just to make sure I'd properly commented out what needed to be commented out, and they have.

Is there a way I can remotely capture the keypresses?
 
Wow. Search is disabled, but now it's evident that the screen's back button is continually being pressed, too. I'm gonna take a wild guess and say it's the one directly below key 247, key 248 on line 90. Commented out, rebooting.
 
Back
Top Bottom