Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,898 Members 48,176 Now Online
XDA Developers Android and Mobile Development Forum

[how-to] remap genius key

Tip us?
 
falken98
Old
(Last edited by falken98; 25th June 2010 at 12:54 AM.)
#1  
Senior Member - OP
Thanks Meter 1
Posts: 291
Join Date: Jun 2010
Default [how-to] remap genius key

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.
 
HebrewToYou
Old
#2  
HebrewToYou's Avatar
Senior Member
Thanks Meter 66
Posts: 701
Join Date: Feb 2010
Quote:
Originally Posted by falken98 View Post
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?
 
kingofyo1
Old
#3  
Senior Member
Thanks Meter 17
Posts: 777
Join Date: Apr 2009
Location: gulfport, ms

 
DONATE TO ME
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
Current:
Samsung Galaxy S3 T-mobile
Darthstalker latest

Samsung Galaxy S4 r970x on the way!!!

Retired:
HTC Thunderbolt
rom:Infected Eternity 260
radio: MR4

Transformer TF101 32gb
Rom: ICS Android Revolution HD

HTC Rezound
Rom: CM9 8/3 update
 
falken98
Old
#4  
Senior Member - OP
Thanks Meter 1
Posts: 291
Join Date: Jun 2010
Quote:
Originally Posted by kingofyo1 View Post
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
 
falken98
Old
#5  
Senior Member - OP
Thanks Meter 1
Posts: 291
Join Date: Jun 2010
Quote:
Originally Posted by HebrewToYou View Post
Complete aside: Is your handle taken from the movie "WarGames"? If so, awesome.
haha. yes, it is. nice catch!
 
kingofyo1
Old
#6  
Senior Member
Thanks Meter 17
Posts: 777
Join Date: Apr 2009
Location: gulfport, ms

 
DONATE TO ME
and what about the sleep functionality like on the old mytouch?
Current:
Samsung Galaxy S3 T-mobile
Darthstalker latest

Samsung Galaxy S4 r970x on the way!!!

Retired:
HTC Thunderbolt
rom:Infected Eternity 260
radio: MR4

Transformer TF101 32gb
Rom: ICS Android Revolution HD

HTC Rezound
Rom: CM9 8/3 update
 
squidbutt
Old
#7  
squidbutt's Avatar
Senior Member
Thanks Meter 7
Posts: 349
Join Date: May 2008
Location: suffolk
YESSS
i started a thread on this and was hard into figureing this out
thanks for the help
 
falken98
Old
#8  
Senior Member - OP
Thanks Meter 1
Posts: 291
Join Date: Jun 2010
Quote:
Originally Posted by kingofyo1 View Post
and what about the sleep functionality like on the old mytouch?
That i'm not sure about, i'll do some digging and see.
 
tubaking182
Old
(Last edited by tubaking182; 24th June 2010 at 08:24 PM.)
#9  
tubaking182's Avatar
Senior Member
Thanks Meter 13
Posts: 1,088
Join Date: Mar 2008

 
DONATE TO ME
Quote:
Originally Posted by kingofyo1 View Post
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)
XDA has become a playground for morons and script kiddies
 
squidbutt
Old
#10  
squidbutt's Avatar
Senior Member
Thanks Meter 7
Posts: 349
Join Date: May 2008
Location: suffolk
its not working whenever i put in adb pull "" it just gives me all the adb options..

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Make Your Calendar Widget Beautiful with Month

For some of us, summer vacation is alreadyover. For those getting ready to school, work, or … more

Integrate Social Networks Into Your Project With ASNE Library

Social network applications and services have developed into major parts ofour … more

Give Your Android Wear Device a Lock Screen with Lockable

Without a doubt,Android Wear is one of the most frequently talked abouttopics of … more

Forums Added for the LG G Watch R and Samsung Gear S

A little over a week ago, LG “inadvertently” let the world know about the … more