LightBlog

lundi 11 avril 2016

How do I disable hardware keys / Cyanogen12 [5.1.1]

So the hardware keys on Samsung tablets really annoy me. For over a year I've had to deal with randomly getting knocked out of my e-reader, comic book reader, web browser, etc. just by accidentally sliding my palm against them. What a terrible design. I had originally rooted this tablet in order to try to enable on-screen nav and disable hardware keys. I could never get that working. The instructions surrounding build.props simply didn't work with Samsung's stock firmware.

So I finally go around to installing TeamWin, wiping and installing a CyanogenMod Nightly

cm_chagallwifi-userdebug 5.1.1 LMY49J 11fa7f9ea1

I was able to enable onscreen navigation using the following command

Code:

settings put secure dev_force_show_navbar 1
That works perfectly. However, I still can't disable my physical keys. Most of the instructions I've read say to mount /system as writeable and then comment out the MENU, BACK and HOME key codes from /system/usr/keylayout/Geneic.kl. I've commented out keycodes 127 (Menu), 158 (back)and 172 (home), yet after a reboot, my hardware keys are still enabled. :(

I also found a noSoftkeyBacklight.zip file that is intended to disable the backlights. I looked in the zip before installing it (which you should always do!) and it just creates an init script that attempts to echo a 0 to /sys/class/leds/button-backlight/brightness (which doesn't even exist on this version of CyanogenMod12).

I look in the /sys/class/leds directory to see if there were any other files that may control the switch backlights, but couldn't find anything except a ton of annoying recursive symbolic links.

Anyway, how do I disable the physical keys on this thing? It shouldn't be this freakin difficult!!!


from xda-developers http://ift.tt/1qLSuL4
via IFTTT

Aucun commentaire:

Enregistrer un commentaire