Android phone interchange function button position

  
Most Android phones are equipped with menu, home page and return three shortcut function keys at the bottom. Unfortunately, few vendors offer the ability to swap menu keys and return keys. If you want to be able to swap the two functions at any time based on your left and right hand habits, just modify the two configuration files. Customs and reality conflicts Different brands of Android phones have their own considerations in the layout of buttons. Some product menu buttons are on the left and the return button is on the right; while some product return buttons are on the left and menu buttons are on the right (Figure 1). . The problem is, if you use the left hand to operate the phone, naturally it is desirable to return the button on the left side of the design, you can easily exit the program or menu at any time. But if you are left-handed, but the phone's back button is designed on the right, is it very embarrassing? The good news about the configuration file is that we can solve the above problems by modifying the configuration file of the Android system. It is important to note that before proceeding, please make sure your phone is rooted and the RE file manager is installed. The author's mobile phone is OPPO N1 mini (Qualcomm solution), find the /system/usr/keylayout directory through the RE file manager, where generic.kl and qwerty.kl are the two files that we need to modify (Figure 2). Tips for different hardware solutions for mobile phones, the configuration options required to be modified are different. For example, the Qualcomm solution phone needs to modify the generic.kl and qwerty.kl, while the MediaTek solution phone needs to modify the generic.kl and mtk-kpd.kl. Although the file names are different, the modification method is the same. Since there are certain risks in modifying the system configuration file, it is recommended that you back up the two files to the memory card before modifying. Click on each of the two files and select Open with the "Text Editor". In the generic.kl file, the phone's “key 139” and “key 158” keys default to MENU (menu) and BACK (return), so we only need to swap the two values ​​139 and 158. Yes (Figure 3). For the same reason, we also need to swap the key positions of 139 and 158 in the qwerty.kl file (Figure 4). Legend: Just modify the position of the picture, do not modify the other positions! Save and exit after the modification is complete, then restart the phone. Now let's take a look, is the phone's back button and menu button already swapped? Summary In theory, all the physical buttons of the Android phone can be exchanged by the method of this article. Interested students can try to modify it themselves, but the premise is to pay attention to backup source files and backup of important data. Some Android uses virtual buttons (such as Sony Z1, return, menu and home button at the bottom of the screen), the method modified in this article does not apply to this type of phone. This article comes from [System Home] www.xp85.com
Copyright © Windows knowledge All Rights Reserved