[Q] CM10 Remap G Button - LG Optimus Black

Hey folks,
So yeah, I'd like to remap the G button to the camera. This was possible in all GB ROMs by editing a .kpl file in /system/usr. I remember the G button's number in the file was 95, but I can't find this key in CM10. Can anyone help with this? Cheers!

edit /system/usr/keylayout/Generic.kl

t0g3 said:
edit /system/usr/keylayout/Generic.kl
Click to expand...
Click to collapse
I got that far myself, thanks... but as I said, G button on GB was nr 95, I can't find that here anywhere. Tried adding a string with it manually, didn't work.

Siguiriya said:
Hey folks,
So yeah, I'd like to remap the G button to the camera. This was possible in all GB ROMs by editing a .kpl file in /system/usr. I remember the G button's number in the file was 95, but I can't find this key in CM10. Can anyone help with this? Cheers!
Click to expand...
Click to collapse
Yeah.... You can do it in cm10 too....
Here's the link...
http://forum.xda-developers.com/showthread.php?p=32732761
And here's the proof.. Img
Sent from my LG-P970 using xda app-developers app

Related

How to wake TD2 up from sleep mode by pressing any button

It's incovenient to press the power button only.
I tried to put keylock.exe in it but it don't work.
Pls help
ssseii said:
It's incovenient to press the power button only.
I tried to put keylock.exe in it but it don't work.
Pls help
Click to expand...
Click to collapse
I'm also interested in such an option.
Any news on this one? My Diamond1 had the option "Keylock" onder Settings --> System... The D2 hasn't anymore?
I'm Currently using ThrottleLock V.06 The lockscreen like on Android. It has the option to wake on any key.
Also try the cab file I have below. I used it on my Elfin with 6.5 ROM to Auto Lock when I closed the screen. I'm sure it has the same option to wake on any button.
HTC Touch Freak said:
I'm Currently using ThrottleLock V.06 The lockscreen like on Android. It has the option to wake on any key.
Also try the cab file I have below. I used it on my Elfin with 6.5 ROM to Auto Lock when I closed the screen. I'm sure it has the same option to wake on any button.
Click to expand...
Click to collapse
any method to do this by edit the registry or install a little application? coz i want to use PocketShield but it don't hv this option
Any news on this one?
vegardg said:
Any news on this one?
Click to expand...
Click to collapse
Seems like changing HKCU\controlpanel\Keybd\DefaultKeyLock from 1 to 0 did the trick.
It works great!!
Thank you! vegardg!
hi bro, hwo do u edit that? sorry i'm a noob, hope u can help. thanks,
vegardg said:
Seems like changing HKCU\controlpanel\Keybd\DefaultKeyLock from 1 to 0 did the trick.
Click to expand...
Click to collapse
Didnt work for me
any other suggestions?
Can i copy a file from my athena that would enable this? and if so, which?
wackyr said:
Didnt work for me
any other suggestions?
Can i copy a file from my athena that would enable this? and if so, which?
Click to expand...
Click to collapse
Did you perform a soft reset after changing the registry value?
Very nice! Thanks
vegardg said:
Seems like changing HKCU\controlpanel\Keybd\DefaultKeyLock from 1 to 0 did the trick.
Click to expand...
Click to collapse
Works for me. Thank you.
It works it works now, I like my Topaz so much
It works OK. Thank you.
Thanks.works well.
It works,thanks.
But when it in some program,can't work well,have to use power button to wake up

Renal search button

Hi,
I have forzen all the google search apk and now the search hutton is useless how can I remap it Rondo something else? I have some experiense with digging Into the phone can some one point into the right direction ?
Thanks
Sent from my LG-P990 using XDA App
flash your rom again?
no i dont want to get the search feature back
i want to configure the search button to do something else, like open a browser or a certain app.
You might have to change the .kl file (system/usr/keylayout/) to report a different key code for search key.
yep found it
key 127 and 217
thanks.
I also found it, but which file?.. how should i change it? Lets say, i want to change it to open my stock browser..
shpapy said:
yep found it
key 127 and 217
thanks.
Click to expand...
Click to collapse
Tell me too how to change/remap it to be as a virtual camera key without halfpress button(obvious) or some app ???
Sent from my Optimus 2X using XDA App
Errr.. people...
Which of this files and lines i need to edit? I want my "Search Button" to run my stock browser..
1. AVRCP.kl
2. lgosp-hid.kl
3. qwerty.kl
4. tegra-kbc.kl
5. usb_keyboard_102_en_us.kl
My rom is V20q..
shpapy said:
yep found it
key 127 and 217
thanks.
Click to expand...
Click to collapse
You should definitely right a tutorial, mate

[Q] ics software keys

Can anyone tell me what to change in system to get the keys to show up in rc1?
giandeli said:
Can anyone tell me what to change in system to get the keys to show up in rc1?
Click to expand...
Click to collapse
I'd talk to Thinikk, he posted them in the teamhacksung's thread. He might be able to help you, or find someone who can. Here is his post:
http://forum.xda-developers.com/showpost.php?p=20438850&postcount=2394

[Q] Search Key assistance

http://forum.xda-developers.com/showthread.php?t=2094809
just happen to install the lactose rom from the above mentioned link and the search key on the HTC incredible S is now mapped to lock the screen and put it in sleep....i want to map that key back to search app...!!!
i tried using the zip file mentioned in the thread but that is screwing up my home key.
I tried this rom too and had the same issue. Could not resolve this issue at all. Sorry
dazzawill said:
I tried this rom too and had the same issue. Could not resolve this issue at all. Sorry
Click to expand...
Click to collapse
i was able to fix that key ... it was an easy fix...!!!!
Lactose ? Where's the milk
JELLYZ said:
Lactose ? Where's the milk
Click to expand...
Click to collapse
since im a newbie i cannot upload the files .. i would have done it long time back
JELLYZ said:
Lactose ? Where's the milk
Click to expand...
Click to collapse
i have posted the fix here
http://forum.xda-developers.com/showthread.php?t=2236135
dazzawill said:
I tried this rom too and had the same issue. Could not resolve this issue at all. Sorry
Click to expand...
Click to collapse
i have posted the fix here
http://forum.xda-developers.com/show....php?t=2236135

Need touch_dev.kl

Hi guys!
Please help me: I need the following file:
touch_dev.kl
located at
\systrem\usr\keylayout\
Can someone please upload a copy?
I would be very happy if u could help me!
Regards Cheetah1024
Cheetah1024 said:
Hi guys!
Please help me: I need the following file:
touch_dev.kl
located at
\systrem\usr\keylayout\
Can someone please upload a copy?
I would be very happy if u could help me!
Regards Cheetah1024
Click to expand...
Click to collapse
I cannot find this file in the folder.
itandy said:
I cannot find this file in the folder.
Click to expand...
Click to collapse
Really?
Can u make a screenshot please, so i can see what files u have there? Maybe it's just called different on your phone... I have the lg optimus 4x hd...
Sent from my LG P880
Cheetah1024 said:
Really?
Can u make a screenshot please, so i can see what files u have there? Maybe it's just called different on your phone... I have the lg optimus 4x hd...
Sent from my LG P880
Click to expand...
Click to collapse
This is what's in the layout folder.
Can u please give me generic.kl? Should do the trick...
Sent from my LG P880
Cheetah1024 said:
Can u please give me generic.kl? Should do the trick...
Sent from my LG P880
Click to expand...
Click to collapse
Here you go.
Didn't help, but thanks anyways...
Sent from my LG P880
Cheetah1024 said:
Didn't help, but thanks anyways...
Sent from my LG P880
Click to expand...
Click to collapse
Each device is having difference .kl files because they have/support different hardware buttons/keyboards
Don't mess up your device .kl files with our device.
CressKH said:
Each device is having difference .kl files because they have/support different hardware buttons/keyboards
Don't mess up your device .kl files with our device.
Click to expand...
Click to collapse
Yeah, i got it... But i know what this file does, so don't be afraid... I got myself a navbar on my phone and now i want to use the menu button for opening the camera and taking pics... I already use the home button for power...
Sent from my LG P880
Cheetah1024 said:
Yeah, i got it... But i know what this file does, so don't be afraid... I got myself a navbar on my phone and now i want to use the menu button for opening the camera and taking pics... I already use the home button for power...
Sent from my LG P880
Click to expand...
Click to collapse
Cool. Wish you luck then
CressKH said:
Cool. Wish you luck then
Click to expand...
Click to collapse
Thanks! Wait, maybe u can help me... Do u know what kl file it is, where the phone actually gets the information from? For example in my phone it's the touch_dev.kl
Sent from my LG P880
I'm trying to figure out too. Trying to make my camera shutter button to quick launch my camera in cm10.1 where this feature is lost from stock.
My device uses gpio-keys.kl, and some other .kl files under different scenario.
You can have my gpio-keys.kl if you want to explore.
CressKH said:
I'm trying to figure out too. Trying to make my camera shutter button to quick launch my camera in cm10.1 where this feature is lost from stock.
My device uses gpio-keys.kl, and some other .kl files under different scenario.
You can have my gpio-keys.kl if you want to explore.
Click to expand...
Click to collapse
Thanks! What does your button do now?
Sent from my LG P880
Hey man, that really helped!! Thanks!!:thumbup:Btw, try longpressing your camera button... This should open the camera app... At least it workes here... normal press in camera app takes a picture:thumbup:
Sent from my LG P880
No sweat. Glad I helped.
In stock Sony ROM, the camera shutter button is able to quick launch camera from deep sleep.
But in cm10.1, this feature is lost, probably because the key is intercepted in interceptKeyBeforeQueueing method in android.policy.jar
I need help in smali programming for that lol.
CressKH said:
No sweat. Glad I helped.
In stock Sony ROM, the camera shutter button is able to quick launch camera from deep sleep.
But in cm10.1, this feature is lost, probably because the key is intercepted in interceptKeyBeforeQueueing method in android.policy.jar
I need help in smali programming for that lol.
Click to expand...
Click to collapse
Hehe^^ I don't know smali either...
What does the button do now in cm?
Sent from my LG P880
It does nothing in sleep mode.
The key got intercepted before it tries to wake the device.
Sad...
CressKH said:
It does nothing in sleep mode.
The key got intercepted before it tries to wake the device.
Sad...
Click to expand...
Click to collapse
And what does it do if its awake?
Sent from my LG P880
Cheetah1024 said:
And what does it do if its awake?
Sent from my LG P880
Click to expand...
Click to collapse
After unlocked, it can launch camera apps.

Categories

Resources