Disable Hardware Keys Android Rom
Solution 1:
here is a good place to look for editing the file PRIOR to compiling
http://www.kandroid.org/online-pdk/guide/keymaps_keyboard_input.html
In the source you will find the default keymap under /device/vendor/product/ and it will be the file(s) ending in .kl
If you have a rooted device you can always edit the /system/usr/keylayout/qwerty.kl file on the actual device with a root file explorer.
I was looking for the answer myself and hopefully shared the correct information
Edited Also I'm pretty sure unless you do some modding to the emulator before you run it the changes made do not persist after reboot
Edited If you are looking to edit files on the device in the ROM before compiling try looking at the device.mk file for instance:
device/lge/hammerhead/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl
this line from the make file for the nexus 5 indicates that system/usr/keylayout/gpio-keys.kl is derived from device/lge/hammerhead/gpio-keys.kl in the source code
Solution 2:
once you edit the 3 keys and add # to them in the keylayout do the same thing in /system/usr/keylayout/sec_touchkey.kl and VOLLA!! it works like a charm.. working perfectly on my galaxy s3. once that is done.. download GES4 light control and turn off the lights on the keys too.
Post a Comment for "Disable Hardware Keys Android Rom"