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:
Well, that’s all the suggestions I have. Let’s see the steps to do this task.
Disable Hardware Buttons on Android
Rooted and Non-Rooted Android Devices
Both the volume buttons are disabled now.
Here is an important thing to note: the free version of this app allows you to create two actions only. If you need to create more, then you need to get premium version.
I don’t recommend disabling power button. And, note that disabling power button using this app doesn’t work on most of the devices.
I tried it and it didn’t work on my device. If you are willing to give a try on your device, then here are the steps you need to follow:
Hopefully, your device’s power button is disabled now.
If you want to enable hardware buttons, then just delete the action (Long press the action and then tap Delete option).
Rooted Android Devices Only
If you wonder about your device's root status, then I suggest you to check out this article.
Also, I suggest you to install this app which helps to reboot your device. You will need it while enabling power button.
Key 115 VOLUME_UP
Key 114 VOLUME_DOWN
Key 116 POWER
#Key 115 VOLUME_UP
#Key 114 VOLUME_DOWN
#Key 116 POWER
That’s it. All the hardware buttons on your Android device are now disabled.
If you want to enable all the hardware keys back, then just remove # from all the code above, save the file and reboot your device.
If you have disabled the power button, then you can’t restart your device using power off menu. So just use the restart app (that I’ve mentioned earlier to install) to do this reboot work.
I hope this post is useful to you. If you find the information in this post useful, share this post with your friends.