Remap / Swap of BACK & RECENT capacitive buttons - Xiaomi Redmi 4X Guides, News, & Discussion

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

Its not reversed, infact it is the right position,

Thanks , will tinker with it later

Related

Remap OK Button to Rotate Screen?

I'm interested in remapping the ok button (the one on the side, below the scroll wheel, not the one below the end key) to rotate the screen. However, I can't seem to find out how to do anything at all with this button. Can anyone help?
i'd like this also.
I'm wondering if maybe this has to be done within the registry?
i remember reading in a thread before this that the remapping was not possible for that OK button... but i am not sure i could be wrong
try hbutton. it lets you map about anything to the hard buttons. you can map multiple programs to one button too. i use it to map the OK button to close a program, open htc audio, and screen rotate.
http://forum.xda-developers.com/showthread.php?t=306794
if you are referring to the ok button on the front of the kaiser, i remapped that button to rotate the screen from; settings>buttons. i am, however, using a sim free htc tytnII. this may not be available in the network branded versions. hope this helps.
sorry misread your post, you were talking about the side one. doh! no i couldn't remap that one either.
at this moment no one can really find the registry for that button. people have tried, i read about 3 posts that had people trying and they were unsuccessfull
i am still also interested in getting that button remapped
AE button plus will remap the side button, except if you are on the today screen, where a press of the button will bring up the start menu.
i currently have it to turn off the phone, since i friggin hate how htc made the real power button so flush with the body, so that if i'm on the today screen, i press it twice quickly to power off the device. the first press brings up the start menu, then the second press will take the focus off the today screen and implement your action. likewise, hitting the side button will turn off the phone if i'm in any sort of application or anything non-today screen.
and mapping this buttom also maps the keyboard ok, so now i'm suddenly without a keyboard ok button
What exactly is this Side Ok Button for anyways? It doesnt act as a confirm button
I would also like to remap the OK button to rotate screen. When I am using Garmin I like to have it rotated for cradle and visual purposes.
Also, don't know if anyone ever noticed this. I have polarized sunglasses, and when my phone is facing up and down like in portrait mode it is not as bright as it could be, but i rotate it like it is in landscape mode and I can see perfect with them on. Weird!
Let me know if this doesn't work out. I wrote apps for the Universal once to assign to any key. But that was a long time ago. I'm sure better solutions exist now.
V
You can do it for sure with SPB Pocket Plus & the Shortcut Add-in/Plugin.
I actually made an action sender for this purpose, for another button, but if I get some time , I'll pull out my old work & look.
But SPB PP does allow it for sure. You can map two of anything to that button, one for press & one for press & hold.
Anything new on this?
I've tried some different things...still nothing.
another bump...
bump it up again...anyone know how to remap the OK button (forget the rotate screen)?

Button Mappings on Android for the HTC Vogue

Hello XDA'ers,
I am wondering what the reason behind why the buttons (camera, power, green, red, etc.) in Android on HTC Vogue map to the various tasks they do? For example, the camera button is back, but why not the red button? Is this something hard set in Android and cannot be changed or did someone specifically set it up this way for a reason?
Secondly I am wondering if I create a new "keylayout file" (source.android.com/porting/keymaps_keyboard_input.html) or modify the default one in /system/usr/keylayout/qwerty.kl will I be able to change the mapping of these buttons?
Compared to the Win Mobile mapping, they button layout can take some getting used to,
but once you get used to it, it's actually a very cool layout, especially if you are right handed.
You can hold the phone in your left hand, and use your thumb to access the settings 'top button',
Use your ring-finger to always back-out or end an app
Green button for phone / initiating calls
Red button to end a call, sleep mode, or power off
I wish the d-pad had more use, but I'm always using the stylus, so barely use it.
Would love for the d-pad center key to maybe be the main power-off button.
Does_It_Matter said:
... It's actually a very cool layout.
...
I wish the d-pad had more use, but I'm always using the stylus, so barely use it.
Would love for the d-pad center key to maybe be the main power-off button.
Click to expand...
Click to collapse
I completely agree the current layout is a very cool layout indeed, but as I imagine most people on here like to tinker it may be interesting to know how to customize the button bindings.
I am not sure if its just a matter of changing the button layout file.
I looked at that qwerty.kl file in the android.tgz
It looks like its just a mapping file, and if you change the mapping, you change
buttons,
but doesn't that mean you're just re-mapping the button itself?
Not re-mapping its functionality?
I.e., if you remapped the camera button to the d-pad center, for example, then
the d-pad center would do all functions the camera button used to do,
and the camera button would do any functions the d-pad center would?
Seems like you'd actually have to change more code than just the .kl file?
i wrote this application for polaris, and with simple changes you can add the vogue setup...

Back button simulation, for righthanded

Our phone has back button on the bottom right side of the phone, thus making the phone use with right hand only very unpleasant, mostly in news reading apps where back button is used often when going back to the front page.
Is there any software button simulation app where I could position the back button somewhere in the bottom middle?
jazzh said:
Our phone has back button on…………
Click to expand...
Click to collapse
by adding some line (i forgot what it was ) to build.prop, u can enable on screen keys.
something like-
<something >. hardwarekeys=0
then, in settings (settings/system i think)
u can rearrange them...
Sent from my GT-I9070 using xda app-developers app
It sounds good, I'll take a look into it. But I don't want to disable hardwarekeys, I want all hw keys and just 1 sw key (back)...
To enable and use Onscreen buttons...
@jazzh,
Yep, you can you can use on-screen buttons BUT it will take/reserve some part of your screen's display.. that's why I don't use it BUT you can give it a try..
Just download the app build.prop editor and add this line at the end of your build.prop:
Code:
qemu.hw.mainkeys=0
(make sure to keep an empty line at the end of your build.prop, otherwise you will get a bootloop)
To disable it, simply remove the line above or set the value to "1"
3 MORE THINGS:
- This is what it will look like...
- You can resize the on-screen buttons BUT that will require you to modify your framework-res.apk
- I just found out about this app.. this will allow you to enable or disable on-screen buttons easily but its made for Xperia devices, so I am not sure whether it will work or not...
jazzh said:
It sounds good, I'll take a look into it. But I don't want to disable hardwarekeys, I want all hw keys and just 1 sw key (back)...
Click to expand...
Click to collapse
i don't think it disables the hw keys. it just enables the onscreen keys.
Even better: u can use pie controls if u add that line to build.prop
Sent from my GT-I9070 using xda app-developers app
Thank you all guys!
I added the line at the bottom and rebooted and... voila, soft keys are up and running.
Now, I didin't see anywhere not in the settings>system where these buttons can be adjusted. It would be nice if there is autohide option or something. Remember, I need only back soft key to be in the bottom middle or bottom left?
Then I installed pie control app, this works too but it doesn't have the option of autohiding softkeys at the bottom.
Is there something else I could try, I just need back software button elsewhere then bottom right corner and not all the time. Can it be achieved?
Thx again for helping...
jazzh said:
Thank you all guys!
I added the line at the bottom and rebooted and... voila, soft keys are up and running.
Now, I didin't see anywhere not in the settings>system where these buttons can be adjusted. It would be nice if there is autohide option or something. Remember, I need only back soft key to be in the bottom middle or bottom left?
Then I installed pie control app, this works too but it doesn't have the option of autohiding softkeys at the bottom.
Is there something else I could try, I just need back software button elsewhere then bottom right corner and not all the time. Can it be achieved?
Thx again for helping...
Click to expand...
Click to collapse
No mate you cannot directly edit the on-screen button's configurations and functions from Settings.. you need to decompile and modify certain files in your framework-res.apk.. I guess it will be too complicated for you to do all that - so it would be better for you to not try it now and end up getting a bootloop (no offence)
The only reason why I don't use on-screen buttons is because of this only.. It takes up screen's space and there is no auto-hide option...
And which Pie Control app did you install? Give this is a try if you still haven't tried it... As far as I know, Pie controls only appear when you tap and hold on a certain part of your screen...
If you don't want to use your on-screen buttons then just remove the line from your build.prop or set its value to 1... And if you don't want your phone's capacitive buttons to light up then you can turn that off from Settings > Display > Touch key light duration and set it to "always off".. It won't disable them BUT it will not light them up..
I tried exactly the same pie control app you've posted, found it by searching.
But I also uninstalled it afterwards, pie is working fine but I can't auto hide soft keys at the bottom, so when pie is active and visible, soft keys at the bottom are also visible. Which is not what I wanted at the 1st place.
So at the end I commented the line in build.prop and reverted to the way it was before, cause A) space is more important to me, and B) soft back key is again on bottom right.
In the meantime, if someone runs into solution for simulating only back key with adjustable position... kindly let me know...

Menu Button Failing

So, if you were following my other thread (which I doubt anyone was since no-one offered help), I managed to fix my incredibly hard soft brick
Everything's running great now, except the menu key isn't functioning. This would be fine, except the 3dot menu xposed module is causing other problems when installed and I'm not running a CM ROM so I can't simply make it double press the home button for menu or anything like that.
So I actually need to get the menu button working, not find an alternative. I can't seem to find the number of the button tho. I know you can check with CWM but I don't have it and don't want to risk stuffing up my phone again right now because I will be relying on it pretty heavily for the next week or so. How can I remap the menu button so it can be used as the menu button if I don't know the hard key number? International S4 Active, thanks.
You can try here
http://forum.xda-developers.com/showthread.php?t=2534697. In the Aroma Installer, there's is a button fix of sorts, used on the i537 in safestrap, so we could use regular s4 roms, soomewhere else, don't remember where, the is the button .zip file, by itself.
Sent Via Smoke Signals
tiskael said:
So, if you were following my other thread (which I doubt anyone was since no-one offered help), I managed to fix my incredibly hard soft brick
Everything's running great now, except the menu key isn't functioning. This would be fine, except the 3dot menu xposed module is causing other problems when installed and I'm not running a CM ROM so I can't simply make it double press the home button for menu or anything like that.
So I actually need to get the menu button working, not find an alternative. I can't seem to find the number of the button tho. I know you can check with CWM but I don't have it and don't want to risk stuffing up my phone again right now because I will be relying on it pretty heavily for the next week or so. How can I remap the menu button so it can be used as the menu button if I don't know the hard key number? International S4 Active, thanks.
Click to expand...
Click to collapse
You should be able to flash the keys fix in the MasterPatch that @captaincado posted above. For the actual key numbers see below.
Code:
key 115 VOLUME_UP
key 114 VOLUME_DOWN
key 172 HOME
key 139 MENU
key 158 BACK
Good luck.
Just an update, I followed all the instructions, couldn't get this working. It's possible that the button just happened to physically break when I flashed the ROM but it doesn't matter, because I found All in one Gestures (link below) which I used to replace the menu button... and then every other button, plus some. It's really good, I recommend it to anyone who has trouble reaching certain button, has a broken button or would just wants to have a go at increasing speed:
https://play.google.com/store/apps/details?id=com.phoenixstudios.aiogestures&hl=en

Back, Home and Recents buttons?

Hello,
after the sources for the Z2 Pro have been released and good Custom ROMs are possible, I would love to buy this beautiful device. I've read alot about this U-Touch thing, where you navigate only by using the Home Button... and I don't like it. So my question is: Does this phone also have the normal Back, Home and Recents hardware buttons?
Thanks!
Hi,
Yes, you can add on screen buttons in "Developer Options" menu. At least you can do it with z2 (non pro). I guess you will have this option too.
So there are no "real" hardware buttons to the left and the right of the home button?
On screen buttons are in developer options in both models, make sure you reboot to effect the changes.
Thanks for your answers. I know about the possiblity to show the On Screen Buttons, but that's not what I wanted to know.
I'm curious if the device also has dedicated hardware buttons (not on screen) for Back and Recents, or just the U-Touch button?
It only has 1 physical button on the front..
I'd love to see an app or even integration in a custom rom to be able to configure the behaviour of the front button. What are the chances this will become reality?
It already lets you configure what the button does. You can also preset actions to open specific apps.
Karly Johnston said:
It already lets you configure what the button does. You can also preset actions to open specific apps.
Click to expand...
Click to collapse
But that is in the ZUI ROM right? I'd like to see this in a separate app or built into custom ROM so it can also be used outside ZUI.
Now that the sources are available someone who knows what he is doing should be able to pull this off.
Is there a way to make swipe left on the u-touch button act like a back button? Maybe there would be a way to have it open an scripted action that acts as back button?
Edit: Just figured out that short tap is back, so my problem is solved!
Thanks, this helped me out!
I'm looking for a phone with this same exact button. I'm always super stunned how retarded iphones are compared to my $200 phone.

Categories

Resources