禁用硬件按键的Andr​​oid ROM [英] Disable hardware keys android rom

查看:309
本文介绍了禁用硬件按键的Andr​​oid ROM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要禁用主页,菜单,返回键在我的自定义AOSP ROM。 从来就seached在互联网上,看见我可以经过succesfull构建在输出/目标/产品/通用/系统的/ usr / keylayout找到键布局文件禁用按钮。 该文件i'm编辑是:Generic.kl 现在,从来就注释掉这些按钮:

I want to disable the Home, Menu and Back button in my custom AOSP rom. I´ve seached on the internet, and saw i can disable buttons after a succesfull build in the key layout files found in out/target/product/generic/system/usr/keylayout. The file i´m editing is: Generic.kl Now i´ve commented out these buttons:

  • #键139 MENU WAKE_DROPPED
  • #键158 BACK WAKE_DROPPED
  • #键172首页

然后我重新启动模拟器,并且按钮仍然工作... 有什么我很想念?

Then i restarted the emulator, and the buttons still work... Is there something i am missing?

谢谢,斯特凡

推荐答案

一旦你编辑3个按键,并添加#到他们在keylayout 做同样的事情在/system/usr/keylayout/sec_touchkey.kl和VOLLA! 它的工作原理就像一个魅力......在我的银河S3工作完美。 一旦做到这一点..下载GES4光控关灯上的按键了。

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.

这篇关于禁用硬件按键的Andr​​oid ROM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆