Remap / Swap of BACK & RECENT capacitive buttons

joha386

Senior Member
Jan 10, 2017
88
74
0
Berlin
Hi there,

I am pretty new to my Redmi 4X, but one thing that freaked me out was the reversed position of the BACK & RECENT Buttons compared to other phones ( which I came from ).
Since it took me a while to figure it out exactly, I will put it down here for others that might be in the need to change it:

Being rooted I changed the contents of /system/usr/keylayout/Generic.kl . You might want to backup that file in advance.
Look for the assignments of buttons 158 & 139. Change those two around, reboot - et voila: Left button will be your BACK button, right button triggering your RECENTs.

Thought it might be interesting to someone, since that option is not available in most ROMs anymore.
joha
 
Last edited:
  • Like
Reactions: arvindgr