[Q] How to Remap hardware key on optimus L9?? - LG Optimus L9 P760, P765, P768, P769

Does anyone know how to remap keys on Optimus L9 ?
I want remap one of my capacitive buttons
Ie.
Code:
Option key to Recent App button
how do i do this ??? Has anyone done this before ?

[Q] Remap hardware home key to menu key in CM10.1?
Is this possible?
I too wanted to remap hardware home key to menu key in CM10.1 .
Tried changing values in /system/usr/keylayout/touch_dev.kl but that seems to handle soft-keys.
Can I remap hardware home key to menu key in CM10.1?

In cm 10.1 it's real easy. Go to settings > system > hardware keys and check "enable custom actions"
Sent from my LG-P769 using xda app-developers app

pisherthefisher said:
In cm 10.1 it's real easy. Go to settings > system > hardware keys and check "enable custom actions"
Sent from my LG-P769 using xda app-developers app
Click to expand...
Click to collapse
Nope . In Hardware keys of CM10.1 there is home key long press action but no regular home key action. Similarly there is no back key remap function, but it is possible to remap back key through /system/usr/keylayout/touch_dev.kl file.
I only need home key remap to menu key.
EDIT :
Thanks to this POST. Hardware home key can be remapped by editing key 172 of /system/usr/keylayout/Generic.kl file. WAKE can also be added after edit.

Related

Toggle lock/unlock screen using the touch search button

Anyone knows if the buttonremapper app would work for att sgn, say, by remapping the touch search button at the right bottom of the phone ? Thanks.
jcc266 said:
Anyone knows if the buttonremapper app would work for att sgn, say, by remapping the touch search button at the right bottom of the phone ? Thanks.
Click to expand...
Click to collapse
With root, this should be able to be accomplished by editing the same text file as the "swap search and menu key hack". Just figure out the correct keycode for the power button. Not sure if a capacitative button could be used for wakeup though.
softkey can't be use to wake up the phione/screen...
lastdeadmouse said:
With root, this should be able to be accomplished by editing the same text file as the "swap search and menu key hack". Just figure out the correct keycode for the power button. Not sure if a capacitative button could be used for wakeup though.
Click to expand...
Click to collapse
Thanks for responding. Since my SGN was rooted, so I used a root browser to replace key 217 SEARCH in sec_touchkey.kl file in system/usr/keylayout/ with key 116 POWER. As you suspected, it appeared that the capacitative search button (softkey) can not be replaced by the capacitative POWER (WAKE?) button for wakeup.
So a hardkey must be used instead for wakeup?
jcc266 said:
Thanks for responding. Since my SGN was rooted, so I used a root browser to replace key 217 SEARCH in sec_touchkey.kl file in system/usr/keylayout/ with key 116 POWER. As you suspected, it appeared that the capacitative search button (softkey) can not be replaced by the capacitative POWER (WAKE?) button for wakeup.
So a hardkey must be used instead for wakeup?
Click to expand...
Click to collapse
Yeah, I was kind of guessing that capacitative were not active as a part of screenlock. Looks like it.
Sent from my SAMSUNG-SGH-I717 using xda premium

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

[Q] home button queston

is it possible to map the home button to function as multiple buttons? ex. 1 press for back long press for home and double press for menu etc?
Check button savior app
Sent from the little guy
is it not possible to simply map the home button to function as all three?
No idea, did you check that app?
Sent from the little guy
seagheart89 said:
is it not possible to simply map the home button to function as all three?
Click to expand...
Click to collapse
u can try some CM10.1/AOKP based custom roms which have the same (hardware keys rebinding functionality)

[Q] Change Long Press Menu

WITHOUT THIRD PARTY LAUNCHERS, I would like to know how to change the behavior of "long pressing" Menu capacitive button? I would like to change this function to S-Voice.
I've tried changing JUST the long press behavior before to no avail. I was told I had to make a brand new systemui apk for that to happen.
You can however change the behavior of the whole button (changing what it does both short and long press) if you edit /system/usr/keylayout files generic.kl and gpio_keys.kl item 139 I believe. Make sure you change both files equally or your phone will soft brick. You can change it to be SEARCH instead of menu so short press would work as a search button and long press will ask you what voice search you want to use. Oh and you might need to tell apps to show the action overflow button (since you have no menu button) I don't know how to do that part
Why can't you use the double tap home button to accomplish this? Do you not like it? It's standard in s-voice settings
Sent from my SCH-I545 using xda app-developers app
I have tried generic.kl and gpio_keys.kl file changing but cant get it to work with s-voice. Also, I dont want the double press home button to control this because it does seem to make things slower when single clicking.
Sent from my Hyperdriven SCH-I545 using xda app-developers app

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

Categories

Resources