[GUIDE][MOD] Assign Search Button as Power Button

WNSTNSNRS

Senior Member
Aug 28, 2013
631
220
0
25
Usually, many of us aren't using the search capacitive key on our phone. So we'll change it's function in order to make it useful and to prevent early damage on our Power button.
Now, We will remap search button as the power button. But take note. It turn off screen, toggle power menu. But, cannot turn screen/phone on.

Here's the guide. This is very easy! Even Gradeschool students can do this. :p

I suggest to use RootExplorer app. It has built in Text editor.

- Go to /system/usr/keylayouts/Generic.kl (Some devices may be different)
- Open "Generic.kl" using text editor (Press & Hold choose Open with text editor)
- Find
Code:
key 217 SEARCH
and change it to:
Code:
key 217 POWER     WAKE
-Save it
-Reboot and you're done :D

:good: :good: