Filed Under Android CategoryLast Updated on October 17, 2018,by Thirumal raj
Typically Android devices have three hardware buttons (volume buttons (also called as Volume Rocker) and a power button).
If you want to disable those hardware buttons for some reason, then you can do it on both the rooted and non-rooted Android devices.
But before you going through the steps, I want to give some suggestions:
Don’t disable power button. Yes, don’t do it because it is risky. Disabling volume buttons are not risky. But the power button is. So, unless you have a good reason to disable power button, don’t do it.
Now go to the following location: system > usr > keylayout
Here is an important thing to note: If you have a MediaTek device, you need to edit the mtk-kpd.kl file. If you have a non-MediaTek device, then you need to edit Generic.kl file. If you wonder your device is MediaTek or not, then check out this guide.
Make sure to take a backup of the file before making any changes.
In this instance, I’m using MediaTek device. Tap mtk-kpd.kl file, choose Text and then ES Note Editor.
Now hit the Overflow menu (three vertical dots) at the top.