How can I disable/stop the event when the HOME button is pressed?
Setup:
AOSP 4.4
Nexus 5
This is for a custom ROM so I can modify anything in the AOSP code
You could disable the home button, but it might be difficult to navigate without a home button.
In case you just want to disable home button because of some application that you are running, there might be easier ways to do so, like setting your application as a homescreen and overriding the home button.
To disable a button in android. You could try commenting it out in the keylayout
Refer: https://source.android.com/devices/tech/input/key-layout-files.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.