Remap Menu Button - Galaxy S 4 Q&A, Help & Troubleshooting

Hello everyone!
I am currently using @Lenny Bard's SuperTouchWiz v5 ROM (https://forum.xda-developers.com/galaxy-s4/i9505-develop/rom-untouched-stock-rom-t3419034) and I'm loving the ROM except for one thing:
The leftmost key (to the left of the home button), once short-pressed launches the switch app, the long-press does the menu function (or settings? w/e). I want to swap the two as I am much used to a short press launching the menu function.
Can anyone help or lead me to somewhere which can help me solve my problem? I've been searching around but alas it seems that I cannot fully find the proper solution.

Except for Xposed, there isn't any way to do it. Except if you're a developer.

Pwnycorn said:
Except for Xposed, there isn't any way to do it. Except if you're a developer.
Click to expand...
Click to collapse
My installed ROM comes with Magisk manager, any way to make a workaround with it?

postnobil said:
My installed ROM comes with Magisk manager, any way to make a workaround with it?
Click to expand...
Click to collapse
Unless there is a Magisk module that allows you to do it, then no.

Well here's what I did which turned the soft press to menu and long press to google search (altho what I wanted was for it to become app switcher but the long press on home button does that already so I guess it's fine )
On system/usr/keylayout/Generic.kl
I replaced Key 139 APP_SWITCH to MENU
and Key 217 to APP_SWITCH

Related

[Q] is it possible to change key functions?

I was wondering if there is a way to change key functions on note 3, for example: by pressing menu key we can see recent apps instead of menu
I would be thankful if anyone can suggest a solution to do this:good::laugh:
arash2901 said:
I was wondering if there is a way to change key functions on note 3, for example: by pressing menu key we can see recent apps instead of menu
I would be thankful if anyone can suggest a solution to do this:good::laugh:
Click to expand...
Click to collapse
There are actually a couple different ways to do it...
You can used Xposed mod, with either Xposed Additions or MenuBeGone
(I've never used either of these methods...)
or, the way that I do it, manually edit the \system\usr\keylayout\Generic.kl file.
When I do it, I make the following two changes:
Change key 139 from MENU to BACK
Change key 158 from BACK to APP_SWITCH
Then I use button savior to add the menu for those things that need it...
(I'm coming from Nexus devices, so having the keys with back on the left, and app switch on the right is how I'm used to it...)
Ever wondered to use Google search ? Just saying.
Sent from my N9005
carnagecjb said:
There are actually a couple different ways to do it...
You can used Xposed mod, with either Xposed Additions or MenuBeGone
(I've never used either of these methods...)
or, the way that I do it, manually edit the \system\usr\keylayout\Generic.kl file.
When I do it, I make the following two changes:
Change key 139 from MENU to BACK
Change key 158 from BACK to APP_SWITCH
Then I use button savior to add the menu for those things that need it...
(I'm coming from Nexus devices, so having the keys with back on the left, and app switch on the right is how I'm used to it...)
Click to expand...
Click to collapse
thanks
that's helpful (kind of!)
I was able to change function of key like starting camera by pressing menu key, but still don't know how to put recent app instead of menu?
--------------------------------------------
[problem solved,found it]
thanks a million man
big help
arash2901 said:
thanks
that's helpful (kind of!)
I was able to change function of key like starting camera by pressing menu key, but still don't know how to put recent app instead of menu?
Click to expand...
Click to collapse
Quick and easy answer:
Change key 139 from MENU to APP_SWITCH

[Q] How To Change Home Button Behavior

How to change Home Button behavior
i'm using this rom
in this the home key long press has google search and menu key has recent app switch
i want to revert it to stock like home button long press recent apps and menu key open menu like s4 launcher
how to change key value
any solution of this problem plz help me,
thanks
___A said:
How to change Home Button behavior
i'm using this rom
in this the home key long press has google search and menu key has recent app switch
i want to revert it to stock like home button long press recent apps and menu key open menu like s4 launcher
how to change key value
any solution of this problem plz help me,
thanks
Click to expand...
Click to collapse
Download GravityBox[KK] from Xposed. You can modify what they keys do in there. If you don't have Xposed then HERE is the link
I think that's better use MenuBeGone xposed module.
It does only that..
Works for me on stock samsung touchwix rom (gng8).

[Q] AHHHHH I want my old galaxy button layout!!

Hi All
I've just got a S5 today. Overall I like it a lot however the bloody button res-assignments is soooooooo annoying!
Is there any to re-map the button layout back to the older galaxy versions? I.E.
Press the left button and the menu will activate (I know if I hold it down it will work but I keep forgetting and it brings up the tasker)
Hold the home button to bring up the tasker.
Frustrating yours
Paul
jokerni said:
Hi All
I've just got a S5 today. Overall I like it a lot however the bloody button res-assignments is soooooooo annoying!
Is there any to re-map the button layout back to the older galaxy versions? I.E.
Press the left button and the menu will activate (I know if I hold it down it will work but I keep forgetting and it brings up the tasker)
Hold the home button to bring up the tasker.
Frustrating yours
Paul
Click to expand...
Click to collapse
Root it -> Install Xposed -> Install GravityBox
Thanks, I had thought about it but its a new fone and you know what Samsung are like... I'm leaving towards re-mapping the key.
/system/usr/keylayout/Generic.kl
Anyone know the key number for the left button (Is it 138), what would I need to change to make the default option a menu. I suppose thinking out loud I want to swap the commands over. I.e. I press the key once I get the menu, press and hold I get the tasker.
Thanks
P.
Just long press the left button and the options come up
Sent from my SM-G900F using XDA Premium 4 mobile app
jokerni said:
Thanks, I had thought about it but its a new fone and you know what Samsung are like... I'm leaving towards re-mapping the key.
/system/usr/keylayout/Generic.kl
Anyone know the key number for the left button (Is it 138), what would I need to change to make the default option a menu. I suppose thinking out loud I want to swap the commands over. I.e. I press the key once I get the menu, press and hold I get the tasker.
Thanks
P.
Click to expand...
Click to collapse
Your best bet is to use gravity box, as suggested above. You can only change the recents function to menu via the file you mentioned. I believe the rest of the options you want are smali edits.

Remapping hardware keys Galaxy on5

Hey, before anything thank you for your time. So I'm coming from the Samsung Galaxy Light and very much prefer the old hard key setup. For instance the recent apps button was the menu button and I simply had to long-press the home button to view recent apps. I wish to revert to these old settings. I have already rooted this device and flashed/installed xposed framework. I figured out how to to edit the key layout file called "Generic.kl" and have already changed the recent apps key to menu, however I cannot figure out how to change long-press home to the recent apps key and have decided to search for help. I wasn't able to find anything on search engines or forums concerning my issue and have resorted to asking for assistance in this forum.
What do I have to do to remap longpress home to recent apps on the Galaxy on5?
http://forum.xda-developers.com/xposed/modules/mod-xposed-additions-t2294274
or maybe this:
https://play.google.com/store/apps/details?id=com.irishin.buttonsremapper&hl=en
es0tericcha0s said:
http://forum.xda-developers.com/xposed/modules/mod-xposed-additions-t2294274
or maybe this:
https://play.google.com/store/apps/details?id=com.irishin.buttonsremapper&hl=en
Click to expand...
Click to collapse
Oh um thanks. But I already tried both of those and neither can do what I want. Is there any help I can get concerning editing the keylayout files?

ZUK Z1 ZUI 2.3 Enable RECENT and BACK button instead of UTOUCH

Hey guys,
So I used ZUI 2.3 for a bit and using DEVELOPER MODE you can enable the hardware keys to be used. But the left hardware key which was used as RECENT APPS key in the COS/CM/AOSP is used as MENU which is really not useful to me. Does anybody have an idea as to how to change the hardware key binding? I heard there is a file in which values can be changed once you have rooted the phone. I wish to know the details.
SarthakSL said:
Hey guys,
So I used ZUI 2.3 for a bit and using DEVELOPER MODE you can enable the hardware keys to be used. But the left hardware key which was used as RECENT APPS key in the COS/CM/AOSP is used as MENU which is really not useful to me. Does anybody have an idea as to how to change the hardware key binding? I heard there is a file in which values can be changed once you have rooted the phone. I wish to know the details.
Click to expand...
Click to collapse
Don't have ZUI installed, if you have "Settings->Buttons" you can change the HW keys from this option.
aaswar said:
Don't have ZUI installed, if you have "Settings->Buttons" you can change the HW keys from this option.
Click to expand...
Click to collapse
But all I could do was reassign to HOME button in the UTOUCH settings of ZUI. I want the solution for ZUI 2.3.
I am going to try this: (Button Remapper No Root)
https://play.google.com/store/apps/details?id=com.irishin.buttonsremapper&hl=en
EDIT:
Tried the app. RECENT working perfectly on the left hardware button. HOME soft touch to actually working like HOME isn't working flawlessly. But will do. So people who want the capacitive buttons like COS on the ZUI 2.3 should install that app and configure it like that. I am still looking for a better solution. Cheers!
aaswar said:
Don't have ZUI installed, if you have "Settings->Buttons" you can change the HW keys from this option.
Click to expand...
Click to collapse
There is no button option under setting... Menu and back key option is in developer settings.. I do enabled it.. But how to enable soft touch home by just a single tap...
ADDICTED777 said:
There is no button option under setting... Menu and back key option is in developer settings.. I do enabled it.. But how to enable soft touch home by just a single tap...
Click to expand...
Click to collapse
Two files specifically generic.kl and fpc1020tp.kl located in system /usr/keylayout are needed to be edited.
With the help of any root browser, simply open the generic.kl with a text editor and scroll to the 'key 158' and change the attribute from default 'BACK' TO 'HOME'. Similarly, open the fpc1020tp.kl and do the same modification.
Save both files and reboot to notice the change.
Bingo
QuazIqbal said:
Two files specifically generic.kl and fpc1020tp.kl located in system /usr/keylayout are needed to be edited.
With the help of any root browser, simply open the generic.kl with a text editor and scroll to the 'key 158' and change the attribute from default 'BACK' TO 'HOME'. Similarly, open the fpc1020tp.kl and do the same modification.
Save both files and reboot to notice the change.
Bingo
Click to expand...
Click to collapse
Then back key won't work... It'll always work as the home..
ADDICTED777 said:
Then back key won't work... It'll always work as the home..
Click to expand...
Click to collapse
Exactly
QuazIqbal said:
Exactly
Click to expand...
Click to collapse
Then what is the advantage of enabling the menu and back button... If the back button work no more... Cz after tweaking those two files back button will also work as the home button... So whats the point??
ADDICTED777 said:
Then what is the advantage of enabling the menu and back button... If the back button work no more... Cz after tweaking those two files back button will also work as the home button... So whats the point??
Click to expand...
Click to collapse
Dedicated Menu and Back key work as usual. Only the home button touch will not act as back key (as present in default zui)
QuazIqbal said:
Dedicated Menu and Back key work as usual. Only the home button touch will not act as back key (as present in default zui)
Click to expand...
Click to collapse
Thanks mate it worked.. By the way is there any way to screen search of google replace the menu button with recent app switch?? On ZUI
What about APP_SWITCH?
QuazIqbal said:
Two files specifically generic.kl and fpc1020tp.kl located in system /usr/keylayout are needed to be edited.
With the help of any root browser, simply open the generic.kl with a text editor and scroll to the 'key 158' and change the attribute from default 'BACK' TO 'HOME'. Similarly, open the fpc1020tp.kl and do the same modification.
Save both files and reboot to notice the change.
Bingo
Click to expand...
Click to collapse
Can i set the menu button to open Recent Apps/App Switch screen?
may I ask if the 2 capacitive buttons back and menu do light up or wont light even enable on ZUI 2.3?
also only blue notification light on all app notifications? mine only emit blue light even with other led apps, but charging red and full charge green,
thanks for any comments

Categories

Resources