FORUMS

Hauwei’s Rapid Rise to Third Place in the Smartphone Race

Huawei has quickly grown to become one of the world’s biggest … more

OnePlus 2 Bares All in New Tear Down Gallery

Last year, the launch of the OnePlus One, dubbed ‘the flagship killer’, visibly … more

Focus – An Attractive But Raw Gallery Replacement

Focus is an attractive new app built by XDA members Liam Spradlin … more

How to Root the LG G4 and Install TWRP Recovery – XDA TV

A rooting method has finally been found for the flagship LG G4. In this … more

[how-to] remap genius key

291 posts
Thanks Meter: 1
 
By falken98, Senior Member on 24th June 2010, 05:43 PM
Post Reply Subscribe to Thread Email Thread
1) Boot in to ClockworkMod Recovery
2) mount /system from partitions menu
3) adb pull /system/usr/keylayout/latte-keypad-v2.kl latte-keypad-v2.kl
4) Edit file locally, the genius key is: key 187 (make a backup of the original file first)
5) adb push latte-keypad-v2.kl /system/usr/keylayout/
6) Reboot

For more information on remapping keys see: http://forum.xda-developers.com/showthread.php?t=695936

If you want the genius button remaped to ENDCALL (if on a call it will end the call, if not on a call it will lock the screen, if you hold it down it activates the power button menu) and don't won't to edit the file yourself you can download this premodified version, just place it in the directory you are running adb from and skip steps 3&4): http://www.4shared.com/file/ein06_25...keypad-v2.html

Notes:
There is a slight hardware delay on the button press, so whatever you assign it to you need to hold the button for half a second just like with the current genius app.
It does not seem to be any easy task to be able to call an alternate application, for now, you can only reassign the key to something another key already does (letter/number, end call, power, volume, camera, etc.). I'm currently working on being able to call an alternate application.
Last edited by falken98; 25th June 2010 at 12:54 AM.
 
 
24th June 2010, 05:47 PM |#2  
HebrewToYou's Avatar
Senior Member
Thanks Meter: 66
 
More
Quote:
Originally Posted by falken98

1) Boot in to ClockworkMod Recovery
2) mount /system from partitions menu
3) adb pull /system/usr/keylayout/latte-keypad-v2.kl
4) Edit file locally, the genius key is: key 187
5) adb push /system/usr/keylayout/latte-keypad-v2.kl
6) Reboot

For more information on remapping keys see: http://forum.xda-developers.com/showthread.php?t=695936

Well, how about that. Great find, falken98!

Complete aside: Is your handle taken from the movie "WarGames"? If so, awesome.

So what are people planning to map to this particular hardware key?
24th June 2010, 05:48 PM |#3  
Senior Member
Flag gulfport, ms
Thanks Meter: 17
 
Donate to Me
More
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
24th June 2010, 05:53 PM |#4  
OP Senior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by kingofyo1

and would we easily be able to make this a end call/sleep key? if so what needs to be changed

Sure can, to make end call just change:
key 187 FUNC_4
to:
key 187 ENDCALL WAKE_DROPPED
24th June 2010, 06:03 PM |#5  
OP Senior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by HebrewToYou

Complete aside: Is your handle taken from the movie "WarGames"? If so, awesome.

haha. yes, it is. nice catch!
24th June 2010, 06:03 PM |#6  
Senior Member
Flag gulfport, ms
Thanks Meter: 17
 
Donate to Me
More
and what about the sleep functionality like on the old mytouch?
24th June 2010, 06:13 PM |#7  
squidbutt's Avatar
Senior Member
Flag suffolk
Thanks Meter: 7
 
More
YESSS
i started a thread on this and was hard into figureing this out
thanks for the help
24th June 2010, 06:48 PM |#8  
OP Senior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by kingofyo1

and what about the sleep functionality like on the old mytouch?

That i'm not sure about, i'll do some digging and see.
24th June 2010, 07:43 PM |#9  
tubaking182's Avatar
Senior Member
Thanks Meter: 13
 
Donate to Me
More
Quote:
Originally Posted by kingofyo1

and would we easily be able to make this a end call/sleep key? if so what needs to be changed

glad you asked this, that is what i want my genius button to be and it bugs me that it's not since i hit it all the time when trying to hang up on people(came from G1 so that's where my button was) i will do this later

managed to switch fn and menu on hw keyboard, it was bugging me that i constantly hit menu when trying to hit fn(bad button planning by HTC) but now i have the keys where i want them may have to make a few changes later as well to other stuff(camera and focus should do something else)
Last edited by tubaking182; 24th June 2010 at 08:24 PM.
24th June 2010, 08:29 PM |#10  
squidbutt's Avatar
Senior Member
Flag suffolk
Thanks Meter: 7
 
More
its not working whenever i put in adb pull "" it just gives me all the adb options..
24th June 2010, 08:33 PM |#11  
fermunky's Avatar
Senior Member
Flag Tampa, FL
Thanks Meter: 59
 
More
Quote:
Originally Posted by kingofyo1

and would we easily be able to make this a end call/sleep key? if so what needs to be changed

This is actually working this way for me. If on a call, I can hold it for about half a second, it will end the call. Press it for half a second again, it will put it to sleep. If I press and hold the key, it will bring up the Power options menu. This is after I mapped key 187 to ENDCALL WAKE_DROPPED.

Edit: Also, I love "187" being the Genius key
Last edited by fermunky; 24th June 2010 at 08:40 PM.

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes