ToqAN Fixes Android 5.0 Notification Bug on Qualcomm Toq

The Qualcomm Toq is probably one of the lesser known smartwatches on the market … more

How to Root and Unlock the Google Nexus 6 on a Mac – XDA TV

In the past, XDA Developer TV Producer droidmodd3rx has shown you how to … more

Set Up Your MediaTek Device with Comprehensive Beginner’s Guide

As can be seen with the use of MediaTek chips in Android One devices … more

Sony Updates AOSP Sources to Android 5.0.1

Just a few days ago, Sony did an utterly fantastic job by pushing out numerous device trees for … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[how-to] remap genius key

OP falken98

24th June 2010, 06:43 PM   |  #1  
OP Senior Member
Thanks Meter: 1
 
291 posts
Join Date:Joined: Jun 2010
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 01:54 AM.
24th June 2010, 06:47 PM   |  #2  
HebrewToYou's Avatar
Senior Member
Thanks Meter: 66
 
701 posts
Join Date:Joined: Feb 2010
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, 06:48 PM   |  #3  
Senior Member
Flag gulfport, ms
Thanks Meter: 17
 
777 posts
Join Date:Joined: Apr 2009
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, 06:53 PM   |  #4  
OP Senior Member
Thanks Meter: 1
 
291 posts
Join Date:Joined: Jun 2010
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, 07:03 PM   |  #5  
OP Senior Member
Thanks Meter: 1
 
291 posts
Join Date:Joined: Jun 2010
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, 07:03 PM   |  #6  
Senior Member
Flag gulfport, ms
Thanks Meter: 17
 
777 posts
Join Date:Joined: Apr 2009
Donate to Me
More
and what about the sleep functionality like on the old mytouch?
24th June 2010, 07:13 PM   |  #7  
squidbutt's Avatar
Senior Member
Flag suffolk
Thanks Meter: 7
 
352 posts
Join Date:Joined: May 2008
More
YESSS
i started a thread on this and was hard into figureing this out
thanks for the help
24th June 2010, 07:48 PM   |  #8  
OP Senior Member
Thanks Meter: 1
 
291 posts
Join Date:Joined: Jun 2010
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, 08:43 PM   |  #9  
tubaking182's Avatar
Senior Member
Thanks Meter: 13
 
1,088 posts
Join Date:Joined: Mar 2008
Donate to Me
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 09:24 PM.
24th June 2010, 09:29 PM   |  #10  
squidbutt's Avatar
Senior Member
Flag suffolk
Thanks Meter: 7
 
352 posts
Join Date:Joined: May 2008
More
its not working whenever i put in adb pull "" it just gives me all the adb options..

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

Advanced Search
Display Modes