New answers tagged buttons
The only hardware buttons that can be used by apps (to launch other apps or start a recording) are the “camera” button on the device and the “media” button(s) on the headset. You’ll need a sound recording app that support it, or use an automation app like Automate with its Media button and Audio record blocks.
Answering own question in case anybody else has the same issue. There is another file /system/usr/keylayout/Generic.kl that contained the mapping for the power button. The Android docs say never to modify this file but I did anyway. Commenting out the power button line in this file has solved my issue (power button stuck in) and I'm now using my volume up ...
Top 50 recent answers are included