how can I change the note5 long press key function - Galaxy Note5 Q&A, Help & Troubleshooting

I changed the recent app button to menu button in Generic.kl
I just find the key 254 can change form APP_SWITCH to MENU
But how can I change long pree button?
What is the key number of long press BACK key and long press MENU key and long press HOME key?
I can't find above 3 number in the Generic. kl .

billyhaha said:
I changed the recent app button to menu button in Generic.kl
I just find the key 254 can change form APP_SWITCH to MENU
But how can I change long pree button?
What is the key number of long press BACK key and long press MENU key and long press HOME key?
I can't find above 3 number in the Generic. kl .
Click to expand...
Click to collapse
Did you ever figure this out? I'm running a note 5 ROM on my GS5 and I'm really missing this functionality... Currently long press on app switch button opens multi window. Thunderbolt 2.8.1 ROM.

Related

[Q] Hold menu button

If you hold menu button, you get search which is exactly the same as hitting the search button. That's duplicated functionality. Is there a way to reassign the hold menu button action?
saint168 said:
If you hold menu button, you get search which is exactly the same as hitting the search button. That's duplicated functionality. Is there a way to reassign the hold menu button action?
Click to expand...
Click to collapse
I found this hopefully this will help
http://www.appbrain.com/app/com.socialnmobile.buttonshortcuts

Only for real developers!

I want to change hardware keys function on my rom. So that when screen is off, volume buttons skip music. And also when phone is active, long press on power button opens statusbar instead of power menu and it's annoying. To open power menu i have to long press power button from lockscreen. How can i change button's funcions?
Tried hard reset?
XDRdaniel said:
I want to change hardware keys function on my rom. So that when screen is off, volume buttons skip music. And also when phone is active, long press on power button opens statusbar instead of power menu and it's annoying. To open power menu i have to long press power button from lockscreen. How can i change button's funcions?
Click to expand...
Click to collapse
Can't...
Sent from my GT-S5570 using xda app-developers app
try key remapping
manoj94 said:
try key remapping
Click to expand...
Click to collapse
Edit sec_key.kl in /usr/keylayout to your liking, is very easy to edit
Format (I believe) is the following
key # is what physical key is selected - action done by that key - if it should wake up the phone
Code:
key 158 BACK
key 102 HOME WAKE
key 139 MENU
key 107 POWER WAKE
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 28 DPAD_CENTER
key 106 DPAD_RIGHT
key 105 DPAD_LEFT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 217 SEARCH
key 231 CALL
key 228 CAMERA
Then push it to your phone/put in your ROM and reboot.
Paul L. said:
Edit sec_key.kl in /usr/keylayout to your liking, is very easy to edit
Format (I believe) is the following
key # is what physical key is selected - action done by that key - if it should wake up the phone
Code:
key 158 BACK
key 102 HOME WAKE
key 139 MENU
key 107 POWER WAKE
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 28 DPAD_CENTER
key 106 DPAD_RIGHT
key 105 DPAD_LEFT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 217 SEARCH
key 231 CALL
key 228 CAMERA
Then push it to your phone/put in your ROM and reboot.
Click to expand...
Click to collapse
that's not what i meant....
on certain miui roms, if you long press power button it collapses statusbar, instead of showing power menu. I think the command is somewhere in framework-res.apk, but i'm not sure.
XDRdaniel said:
that's not what i meant....
on certain miui roms, if you long press power button it collapses statusbar, instead of showing power menu. I think the command is somewhere in framework-res.apk, but i'm not sure.
Click to expand...
Click to collapse
Disable power control. Try play more with ROM !
F4uzan said:
Disable power control. Try play more with ROM !
Click to expand...
Click to collapse
you mean to do that by editing build.prop? Because i don't think power control can be disabled from settings....
XDRdaniel said:
you mean to do that by editing build.prop? Because i don't think power control can be disabled from settings....
Click to expand...
Click to collapse
Settings > Toggle. Play there.
XDRdaniel said:
I want to change hardware keys function on my rom. So that when screen is off, volume buttons skip music. And also when phone is active, long press on power button opens statusbar instead of power menu and it's annoying. To open power menu i have to long press power button from lockscreen. How can i change button's funcions?
Click to expand...
Click to collapse
For volume button music control search for a guide. Its somewhere in android.policy.jar
Sent from my GT-S5570 using xda app-developers app
arpitkh96 said:
For volume button music control search for a guide. Its somewhere in android.policy.jar
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
That was the answer to both of my problems. I replaced android.policy.jar with one that i knew was working
thank you
XDRdaniel said:
That was the answer to both of my problems. I replaced android.policy.jar with one that i knew was working
thank you
Click to expand...
Click to collapse
Ma pleasure
Sent from my GT-S5570 using xda premium

[Q] Change Button Function?

I'm currently on CM12.1 and one of the best things I love about it is the ability to change the function of the buttons. I've always thought that the Menu button is useless so I changed it to bring up the Recent Apps Switcher. Now that I'm thinking of flashing the official Lollipop update, is there a way to change the funcion of the buttons?
VIPNobie said:
I'm currently on CM12.1 and one of the best things I love about it is the ability to change the function of the buttons. I've always thought that the Menu button is useless so I changed it to bring up the Recent Apps Switcher. Now that I'm thinking of flashing the official Lollipop update, is there a way to change the funcion of the buttons?
Click to expand...
Click to collapse
Do a little research into the gpoi-keys.kl file. It's located in /system/usr/keylayout/ It controls the function of all the buttons on your phone, so by changing the values in this file you can change the function of some of your buttons. Just make sure you back that file up in case you break something.
Devo7v said:
Do a little research into the gpoi-keys.kl file. It's located in /system/usr/keylayout/ It controls the function of all the buttons on your phone, so by changing the values in this file you can change the function of some of your buttons. Just make sure you back that file up in case you break something.
Click to expand...
Click to collapse
Say I successfully changed the button function, will there be a 3-dot menu on all apps automatically? Or will I be unable to access the menu?
VIPNobie said:
Say I successfully changed the button function, will there be a 3-dot menu on all apps automatically? Or will I be unable to access the menu?
Click to expand...
Click to collapse
I honestly don't know, you can try it and find out. If you can't access the menu you can always change you buttons back, that's why you make a backup.
Successfully remapped the Menu Button. I edited two files in /system/usr/keylayout/: generic.kl and gpoi-keys.kl
In generic.kl:
I changed the following lines
Code:
key 139 [B]MENU[/B]
key 217 [B]SEARCH[/B]
to
Code:
key 139 [B]APP_SWITCH[/B]
key 217 [B]MENU[/B]
In gpoi-keys.kl
I changed the following lines
Code:
key 139 [B]MENU[/B]
to
Code:
key 139 [B]APP_SWITCH[/B]
Key 139 is short-press of the Menu Button while 217 is long-press. I didn't want to go into trouble of making the 3-dot menu appear in apps so I decided to reassign the latter from search to menu.
VIPNobie said:
Successfully remapped the Menu Button. I edited two files in /system/usr/keylayout/: generic.kl and gpoi-keys.kl
In generic.kl:
I changed the following lines
Code:
key 139 [B]MENU[/B]
key 217 [B]SEARCH[/B]
to
Code:
key 139 [B]APP_SWITCH[/B]
key 217 [B]MENU[/B]
In gpoi-keys.kl
I changed the following lines
Code:
key 139 [B]MENU[/B]
to
Code:
key 139 [B]APP_SWITCH[/B]
Key 139 is short-press of the Menu Button while 217 is long-press. I didn't want to go into trouble of making the 3-dot menu appear in apps so I decided to reassign the latter from search to menu.
Click to expand...
Click to collapse
I'm glad evening worked out for you. Good job.

Any way to activate menu without three dots?

I believe this has something to do with new Android system.
I have some older apps like nbpro or simple task switcher that don't have three dots. Is there any way on tab s2 to remap an existing key to menu key? For example, long press switching or long press home will activate menu?
I found that I can have more settings key by activating assistant menu under accessibility. Assistant menu is a cyan circle, once tapped, it explodes to show further onscreen keys. To able to assign more settings to a key off the screen or to a gesture would be nice. I am not ready to root my tab s2 yet. Or else using xposed would be handy.
Long press the back button. It brings up settings/menu
Long press back key does work sometimes.
In some app like nbpro, the menu, more options appear when I hold back key after lo press. When I release after the long press the more options disappear. It sometimes does not register very well. I don't know if it is something to do with the app or something to do with the system.

Change long press Home button

Currently holding the square screen button does a screenshot, rather redundant with Volume Down+Power. Any way to change it something else?
Never mind, it's the recent apps button/ alt tab button, whatever you want to call it. It's not the home button.
It can be changed in >Gestures>Screen Tools> Screenshot>recent apps key

Categories

Resources