How to Disable Any Physical Button on Android Devices

Is the volume button on your phone broken? I mean does it increase or decrease the volume on its own? Or has it just been smashed into the case and can’t turn the volume down forever. Or even worse, your Power button is broken! All of those can be remedied simply by disabling them and using some third-party apps for volume control and power on/off. Well, there is a small caveat. Your phone must have Root access to complete this particular task.

Disable Android physical buttonDisable abnormal hardware buttons | Journey / Shutterstock

Now, if you have a rooted Android phone and want to disable the physical buttons on your device regardless of whether they are broken or working, just follow.

Disable physical buttons on Android

So to disable physical/hardware buttons on Android you need to edit the original file that activates these buttons. To access these original files, you need a File Manager that can discover the original files. You can use the popular ES file explorer or a specific root explorer like Root Explorer. Or a free root explorer like Root browser. Here, we have used ES File explorer to keep it simple.

Yes, we know ES File Explore is pretty annoying with some unnecessary add-ons. So we found some worthy alternatives to it.

Step 1: Open ES File Explorer and Enable Root Explorer. Now tap original explorer to open the options where you can change the Read and Write options for the original files. Knock on Mount R/W and on the next dialog select write (W) for /system files. So now we can edit the system operating system files.

See more:  How to Use iPhone to Scan and Add a Document to Mac

Activate Root ExplorerFile write permissions for system files

Step 2: Now below Local in the ES sidebar, tap /Device. This directory contains all the original files. Now, navigate down to this location – system/usr/keylayout. In this folder you will have Chung.kl and some other files that contain physical button and keyboard activity triggers.

1 . root navigation2 . root navigation

Now, here you will need to find the perfect file that might work for you. Try the step below first in Chung.kl document. If that doesn’t work then use it in some other file with keyword like Volume up, Turn down the volume And Power. If you have a MediaTek device then you just need to edit mtk-kpd.kl document. As shown in the screenshot above. Follow the steps below carefully.

Step 3: First, create a backup of the specific file that you will be editing. Here, since I have a MediaTek device, I will edit mtk-kpd.kl. To make a backup, make a copy of that file and rename it by adding .bk at the end as an extension.

Now open the original file and hit edit. Search keywords related to Volume_UP, Volume_Down or Power. All you have to do is add # before the specific line of code for the particular button. Here, I inserted # (with a space after it) in front Volume up key code 115.

Edit files

Step 4: Save the file by pressing the back button and pressing Correct. Then restart the phone. The specific button where you added the # sign will not work, which means it is currently disabled.

Essentially, what you’ve done here is comment out the line of code for that particular button. Anything after the # in that particular line will not be compiled and executed by Android. So Android can’t execute button so button won’t work now.

See more:  How to Buy and Listen to Audiobooks on Spotify

Application solution for on-screen functionality of physical buttons

You have disabled your desired physical button. But only the button is disabled, not its function. Any other application can enable this function (Low/High volume and screen on/off) and use it easily. You can use Pie Control or you can see this list of apps that will allow you to control the volume on the screen.

Let us know if the above method of disabling hardware buttons worked or not. Also, if you have some tips regarding your phone specifically for this topic then please share them. You can also ask questions in our forum.

ALSO SEE: 3 quick tips to fix late notifications on Android

Categories: How to
Source: thpttranhungdao.edu.vn/en/

Rate this post

Leave a Comment