Disable soft keys - T-Mobile Samsung Galaxy S 5

I use lmt and want to disable soft keys. I edited the ./system/usr/keylayout/generic.kl
I commented out key 158(back) and 139(home). this disabled back button but recents apps soft key still active.
Anyone know the name of the left soft key that opens up active apps or what key number it is?

zanoli99 said:
I use lmt and want to disable soft keys. I edited the ./system/usr/keylayout/generic.kl
I commented out key 158(back) and 139(home). this disabled back button but recents apps soft key still active.
Anyone know the name of the left soft key that opens up active apps or what key number it is?
Click to expand...
Click to collapse
APP_SWITCH i think is the name.

zanoli99 said:
I use lmt and want to disable soft keys. I edited the ./system/usr/keylayout/generic.kl
I commented out key 158(back) and 139(home). this disabled back button but recents apps soft key still active.
Anyone know the name of the left soft key that opens up active apps or what key number it is?
Click to expand...
Click to collapse
key 254 APP_SWITCH
as defined in /system/usr/keylayout/gpio-keys.kl
.

That worked guys. Thank you

Related

[Q] Remap bluetooth keyboard keys

I have the zaggfolio case and keyboard. I was wondering is there anyway to edit the functions of the keyboard. For example: change the ctrl key to a shortcut for my browser or if i long press the home but recents will show. thanks
Bumping you because I want to do the same thing for the opposite reason: My keyboard Esc key is interpreted as a local 'Back' press, and Ctrl goes I don't know where. I want it to stop modifying these keys and send them through ConnectBot instead.

HELP??? Force In App Overflow Menu to Appear

Ok ive remapped menu to APP_SWITCH and now recent apps appear when i press menu. But how do i force the overflow menu (three dots) to appear? I know the samsung apps are capable because if you add qemu.hw.mainkeys=0 to build.prop it shows the navigation bar and all app have a menu in them. But how can i make the menu appear without forcing the navigation bar?
I think i read something about changing "hasPermanentMenuKey" to return as false so that the system automatically display the overflow menus but im not sure how to do that or if thats even correct.
In summary: I want menus to appear in apps.
Any help would be greatly appreciated.
bump. Any help?
Singa. said:
bump. Any help?
Click to expand...
Click to collapse
I remap the menu key to APP_SWITCH too, anyhow, without showing the emulated home/cancel button on screen via qemu.hw.mainkeys=0, the force overflow action menu button just do not appear. If able to trick the app to alway show the action menu button, the remap key may work good, just some app like Whatapps / Facebook / Twitter may not able to access the menu.
Also, looking at keylayout folder, the file Vendor_04e8_Product_7021.kl contain list per below, change of it do have any impact? I tested but it acted weird and no conclusion on this. I did tried to put the Key 704 from RECENTAPPS -> APPLICATION and it launch the voice search when long pressing home button.
Key 704 RECENTAPPS
Key 705 APPLICATION
Key 706 SIP_ON_OFF
Key 707 VOICESEARCH
Key 708 QPANEL_ON_OFF
Any key# to remap the long press of capacitive Menu key to other function? Or long pressing feature is control by software only??
kindle fire hd
sesameb said:
I remap the menu key to APP_SWITCH too, anyhow, without showing the emulated home/cancel button on screen via qemu.hw.mainkeys=0, the force overflow action menu button just do not appear. If able to trick the app to alway show the action menu button, the remap key may work good, just some app like Whatapps / Facebook / Twitter may not able to access the menu.
Also, looking at keylayout folder, the file Vendor_04e8_Product_7021.kl contain list per below, change of it do have any impact? I tested but it acted weird and no conclusion on this. I did tried to put the Key 704 from RECENTAPPS -> APPLICATION and it launch the voice search when long pressing home button.
Key 704 RECENTAPPS
Key 705 APPLICATION
Key 706 SIP_ON_OFF
Key 707 VOICESEARCH
Key 708 QPANEL_ON_OFF
Any key# to remap the long press of capacitive Menu key to other function? Or long pressing feature is control by software only??
Click to expand...
Click to collapse
Do you know by any chance how do you do this for kindle fire hd 7 7.3.1 I want to disable nav bar by using qemu.hw.mainkeys=1 but this will get rid of the action bar app Manu as well. This wouldn't be a problem but the LMT launcher app menu button won't work unless the action bar app menu is there. Please help

remap left capacitive button functions to switch apps

I always want the left capacitive key to perform the function - switch apps ( recent apps) because long pressing the home button to call out switch apps function is time consuming (it takes about 2 seconds) and need too much effort ( the button is so tight).
I googled around and figure out how to do that. I think a lot of people will have interest in such changes, so I would post here.
Actually, it is easy. What you need is a rooted phone and a root explorer( an app)
Then, in the root explorer, open /system/usr/keylayout/Generic.kl in Text Editor, scroll down and find key 139 ( this is the key you need to change) change the word" menu" to " APP_SWITCH" after the key 139. save and exit then reboot.
This changes change the left capacitive button function to open switch apps function. Of course , you will lose the menu function.
Hope it helps. :laugh:
Could you tell how would be the exact commands to make the buttons "back", "home(already is)" and "menu" respectively from left to right?
Sent from my Galaxy Note II using xda app-developers app
_delice_doluca_ said:
Could you tell how would be the exact commands to make the buttons "back", "home(already is)" and "menu" respectively from left to right?
Sent from my Galaxy Note II using xda app-developers app
Click to expand...
Click to collapse
OK, originally, the lines in the generic.kl for the 3 buttons should be like this:
key 139 MENU WAKE_DROPPED
key 102 MOVE_HOME
key 158 BACK WAKE_DROPPED
If you want to change function of the buttons, you just need to know the function name, in my case, I want to change the function of the left capatcitive button function from menu to switch apps. Therefore I serach around the web and found that the function name is APP_SWITCH, then, I just need to replace the "MENU" to "APP_SWITCH" in the Generic.kl file in order to change the function.
After the changes, the line should be as follow:
key 139 APP_SWITCH WAKE_DROPPED
So, same theory, you could switch the functions of those keys, for example, if you want to switch the menu and back key, all you need to do is change to :
key 139 BACK WAKE_DROPPED
key 158 MENU WAKE_DROPPED
In addition, the word" wake_dropped" means that the key will function when your device is awake, that means, when your phone is not awake ( screen is off), the key will not function.
So,theoretically, if you want the keys to function when the phone is not awake ( when the screen is off), you could change the word" wake_dropped" to "WAKE" ( I have not tried, you could try that out). By doing so, you could wake the phone and perform the key function at the same time even when your phone is not awake.
anguslaw said:
I always want the left capacitive key to perform the function - switch apps ( recent apps) because long pressing the home button to call out switch apps function is time consuming (it takes about 2 seconds) and need too much effort ( the button is so tight).
I googled around and figure out how to do that. I think a lot of people will have interest in such changes, so I would post here.
Actually, it is easy. What you need is a rooted phone and a root explorer( an app)
Then, in the root explorer, open /system/usr/keylayout/Generic.kl in Text Editor, scroll down and find key 139 ( this is the key you need to change) change the word" menu" to " APP_SWITCH" after the key 139. save and exit then reboot.
This changes change the left capacitive button function to open switch apps function. Of course , you will lose the menu function.
Hope it helps. :laugh:
Click to expand...
Click to collapse
how about keeping menu function
but long press will initiate switch apps?
This would be great :good:
Actually, mounting function to a long press capacitive key is not that simple,therefore I think it is not worthy to do so.
Alternatively, I would suggest installing virtual button apps such as button savior and add the menu function to it.
Sent from my GT-I9305 using xda app-developers app
neato4u said:
how about keeping menu function
but long press will initiate switch apps?
This would be great :good:
Click to expand...
Click to collapse
1+
I would like to be able to do that long press thing too, in the meantime I use LMT to get to my multitasking, that's definitely a lot snappier than the home button
anguslaw said:
Then, in the root explorer, open /system/usr/keylayout/Generic.kl in Text Editor, scroll down and find key 139 ( this is the key you need to change) change the word" menu" to " APP_SWITCH" after the key 139. save and exit then reboot.
This changes change the left capacitive button function to open switch apps function. Of course , you will lose the menu function.
Hope it helps. :laugh:
Click to expand...
Click to collapse
Hi, do you know how to make this work on Tmobile Galaxy S3 rooted official firmware 4.3 ?
I edit the file, save, exit, reboot but it didn't work. Menu button still behave the same, open Generic.kl file to check, new text is there. Don't understand.
Thanks!
nguyen2011 said:
Hi, do you know how to make this work on Tmobile Galaxy S3 rooted official firmware 4.3 ?
I edit the file, save, exit, reboot but it didn't work. Menu button still behave the same, open Generic.kl file to check, new text is there. Don't understand.
Thanks!
Click to expand...
Click to collapse
Sorry I am using omni 4.4.2 ROM now, there is already an option to assign functions to the keys, so I have no need to do in the other way. Can't help.
This works as a charm, however Android does not recognize that we no longer have a menu button. The tree dots in Chrome are not present for example. Is there a way of telling the system that no physical menu botton is there, so that apps show the soft menu?
Thanx!
molm said:
This works as a charm, however Android does not recognize that we no longer have a menu button. The tree dots in Chrome are not present for example. Is there a way of telling the system that no physical menu botton is there, so that apps show the soft menu?
Thanx!
Click to expand...
Click to collapse
use xposed, there are modules to force enable 3-dot menu button
anguslaw said:
I always want the left capacitive key to perform the function - switch apps ( recent apps) because long pressing the home button to call out switch apps function is time consuming (it takes about 2 seconds) and need too much effort ( the button is so tight).
I googled around and figure out how to do that. I think a lot of people will have interest in such changes, so I would post here.
Actually, it is easy. What you need is a rooted phone and a root explorer( an app)
Then, in the root explorer, open /system/usr/keylayout/Generic.kl in Text Editor, scroll down and find key 139 ( this is the key you need to change) change the word" menu" to " APP_SWITCH" after the key 139. save and exit then reboot.
This changes change the left capacitive button function to open switch apps function. Of course , you will lose the menu function.
Hope it helps. :laugh:
Click to expand...
Click to collapse
Thank you for the generosity to share such a great knowledge. you really made my day. Wish you the best in life.
I also want the same thing if is possible
how to have menu or other function by press and holding the capacitive button.
Sent from my GT-I9500 using Tapatalk
Actually i would suggest installing xposed framework and use the module menubegone to performe same function-remap menu key to switch app key.
In addition it forced every apps to show the 3 dots menu button on the top left corner. That means the menu function is no longer needed. Try it out guys. This is the simplest way now.
Sent from my GT-I9305 using XDA Premium 4 mobile app
Help Remap Home key on galaxy note 4
anguslaw said:
OK, originally, the lines in the generic.kl for the 3 buttons should be like this:
key 139 MENU WAKE_DROPPED
key 102 MOVE_HOME
key 158 BACK WAKE_DROPPED
If you want to change function of the buttons, you just need to know the function name, in my case, I want to change the function of the left capatcitive button function from menu to switch apps. Therefore I serach around the web and found that the function name is APP_SWITCH, then, I just need to replace the "MENU" to "APP_SWITCH" in the Generic.kl file in order to change the function.
After the changes, the line should be as follow:
key 139 APP_SWITCH WAKE_DROPPED
So, same theory, you could switch the functions of those keys, for example, if you want to switch the menu and back key, all you need to do is change to :
key 139 BACK WAKE_DROPPED
key 158 MENU WAKE_DROPPED
In addition, the word" wake_dropped" means that the key will function when your device is awake, that means, when your phone is not awake ( screen is off), the key will not function.
So,theoretically, if you want the keys to function when the phone is not awake ( when the screen is off), you could change the word" wake_dropped" to "WAKE" ( I have not tried, you could try that out). By doing so, you could wake the phone and perform the key function at the same time even when your phone is not awake.
Click to expand...
Click to collapse
What is the key number for long press home key?
---------- Post added at 07:54 AM ---------- Previous post was at 07:49 AM ----------
eddi3chan said:
What is the key number for long press home key?
Click to expand...
Click to collapse
What is the key number for long press home key? I want to change on my galaxy note 4 long press home key to open recent apps. and the left soft key for Menu.
eddi3chan said:
What is the key number for long press home key?
---------- Post added at 07:54 AM ---------- Previous post was at 07:49 AM ----------
What is the key number for long press home key? I want to change on my galaxy note 4 long press home key to open recent apps. and the left soft key for Menu.
Click to expand...
Click to collapse
sorry man , its a very old post . i now didnt do it this way. i install xposed framework and the xposed addition module to remap the keys. try it out.
let me know if you need further help.
in addition , as far as i remember, the home button need not use this method, my method in op is for captative buttons. for hardware buttons it is easier. try search in xda if you dont want to use xposed framework.
Sent from my GT-I9305 using XDA Free mobile app
Is there any chance of soft bricking the phone by doing this? I tried to bring soft keys with an app and after restarting the phone was stuck in bootload.
So simple
Buttons remapper app in playstore worked flawlessly!! Try that first... I SCOURED internet for answers to this question. I know this isn't a "developer" type solution... But it worked for THIS noob.
cowleygail said:
Buttons remapper app in playstore worked flawlessly!! Try that first... I SCOURED internet for answers to this question. I know this isn't a "developer" type solution... But it worked for THIS noob.
Click to expand...
Click to collapse
It worked like a charm on My Samsung Galaxy J7 pro. Thank you. You made my day.

Looking to remap my home key and soft keys

Looking to remap my home key, and my menu and back soft keys on my s3. I've looked at editing scripts, and even Xposed modules for this and here is what I found.
I can remap my keys manually, but I cannot map them to open an application.
With Gravity Box Module, I can map the applications to launch on a double press or a long press.
Here is what I want to do with a single tap.
[MENU SOFT KEY] [HOME KEY] [BACK SOFT KEY]
Open Phone Open search Open Camera
Is there an xposed module for this?
Bump.
vbetts said:
Bump.
Click to expand...
Click to collapse
Not sure there is a module for it..but all button controls are in android.policy.jar.. it would take a heavy re working to get all those things.. not saying it's not possible but..yea..not easy
Sent from my SCH-I605 using xda app-developers app
I've reset them in the touchkeys.kl file under keychars, but I cannot get CAMERA to map on the back button. I can get other actions too, but CAMERA Won't map. Here's my thread in the 747 section.
http://forum.xda-developers.com/showthread.php?t=2705040
I'm doing a few tweaks on my phone, mainly not using the capacitive keys as menu and back, and using the home key as the app switcher, and using the nav bar for those three tasks. Here's what I've got so far.
I edited a few files under system/usr/keylayout
The Menu and Search key layouts were found under sec_touchkey.kl(Home was also found under this, but I had to also edit sec_keys.kl and sec_key.kl to get the home key as the app switcher)
Here's the default settings.
key 139 MENU VIRTUAL
key 158 BACK VIRTUAL
key 102 HOME
key 217 SEARCH
Here's what I set them to.
key 139 CALL VIRTUAL
key 158 CAMERA VIRTUAL
key 102 APP_SWITCH
key 217 SEARCH
Changing the roles of keys 139 and 102 worked, but Camera does not open the camera. I've tried assigning different roles to key 158 and they've worked except for the camera role. So I'm thinking CAMERA is not the correct event name to open the camera up....
http://developer.android.com/referen...KEYCODE_CAMERA
That's where I got the keyEvent listings from.
Rom is in my signature.
Click to expand...
Click to collapse

[Guide] Replace MENU with Recent Apps on CM12.1

This guide is for the Note 3 Neo and should work on all variants.
If you're looking at this thread then you should have noticed that the Menu key on @FireLord 's CM12.1 is mapped to MENU and you can't change it from Buttons in Settings since it only has Power Button, Recents Button, Volume Button and Home button and no Menu Button.
Of course, there are a bunch of Xposed Modules such as MenuBegone available to do the same but if you'd rather not install anything or if you just like to mess with your phone then this is the guide to follow
So here's what you to do make your Menu key function as a Recent's key.
Download any Root Brower (I'd suggest the one included in Rom Toolbox)
Navigate to /system/usr/keylayout/Generic.kl
Open the File Generic.kl as a text file
Look for key 139 MENU in the list
Replace MENU with APP_SWITCH
Save and Reboot
Now your Menu key will function as a Recents Key and you'll also be able to change what tapping it and long-pressing it does through Buttons In Settings.
Thanks for the info.
but do you know how to enable vibration on them?
damadikaz said:
Thanks for the info.
but do you know how to enable vibration on them?
Click to expand...
Click to collapse
Oh I'm sorry, I'm afraid i don't know about that. All the vibrations are on and it seems only the Soft keys aren't vibrating. I'll fill you in if i do find something out though.
ICUDeadNaw said:
Oh I'm sorry, I'm afraid i don't know about that. All the vibrations are on and it seems only the Soft keys aren't vibrating. I'll fill you in if i do find something out though.
Click to expand...
Click to collapse
I've found temporary solution tbh, but it kinda weird. the softkey also vibrate when the screen is off.
http://forum.xda-developers.com/showthread.php?t=2152355
still searching for another solution tho.

Categories

Resources