Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
nyolsson
Old
(Last edited by nyolsson; 12th September 2011 at 08:15 PM.)
#1  
Member - OP
Thanks Meter 23
Posts: 76
Join Date: Oct 2009
Cool [MOD] Re-Mapping Keys (Genius Button to Search - www/com button to TAB) and more..

Thanks to 21productionz, and his re-mapping of the Genius button on the MT4G, I was able to re-map the keys on the MT4G Slide as well.

Pls read through before attempting.

What you need:
An S-OFF and perm rooted MT4G Slide. (so re-map sticks)
A file explorer capable of read/writing root directories/files. (Root Explorer is my personal fav)
The expectation that this is a guide to re-mapping keys, so don't mess up.


Steps to take:

1. Using Root Explorer, go to /system/usr/keylayout
2. Make sure Root Explorer is mounted as R/W.
(top right button should display Mount R/O, bc you are currently in R/W mode)
3. Long press 'doubleshot-keypad.kl'
4. Select 'Open in Text Editor'
5. Line 5 shows 'key 188' with FUNC_4 next to it. Replace FUNC_4 with 'SEARCH' - all caps.
This re-maps the Genius button on the front of the phone.
6. Scroll down a little and you will see # column 3. 'Key 184' needs to be changed from FUNC_4 to "SEARCH" as well.
This re-maps the Genius button on the qwerty keyboard. (now you can actually use quick launch)
7. Hit the hard menu key and select Save Changes or Save and Exit.
8. Root Explorer will automatically create a backup of the original file you edited with the original file name ending with the extension .bak
(doubleshot-keypad.kl.bak)
9. Need to restart before it takes effect.

Pls be sure you have re-mapped the correct keys and entered 'SEARCH' correctly, or your buttons could fail, resulting in a paperweight - with a keyboard.

Also, I did this without editing 'doubleshot-keypad-v0.kl.'

You can also reverse the re-map by replacing 'SEARCH' back to FUNC_4.
__________________________________________________ ________________________________

Some users have changed the qwerty home, menu, back, and genius buttons to DPAD values, in other words, up down left right..
-to do so, see this thread here


Some other useful info and re-maps.

FUNC_1 = inputs ".com"
using alt while pressing the key you remapped to FUNC_1 results in ".www"

FUNC_2 = is equivalent to pressing the SYM key next to ALT-Right.

FUNC_4 = Genius Button App

To create a 'tab' button in place of www.com

Same file to edit. under # column 0

---- key 150 should say = FUNC_1

make key 150 = "TAB" (all caps, no quotes, make sure spacing stays even)

restart.
The Following 12 Users Say Thank You to nyolsson For This Useful Post: [ Click to Expand ]
 
masker2011
Old
#2  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Jul 2011
Thank you!im come from china .my device is S-OFF.but not have perm rooted. how to get perm rooted. can you tell me?
 
nyolsson
Old
#3  
Member - OP
Thanks Meter 23
Posts: 76
Join Date: Oct 2009
Quote:
Originally Posted by masker2011 View Post
Thank you!im come from china .my device is S-OFF.but not have perm rooted. how to get perm rooted. can you tell me?
you will want to check this thread here in development section.
 
OmsagroSylph
Old
#4  
Senior Member
Thanks Meter 8
Posts: 146
Join Date: Sep 2008
Can you use this to map multiple actions per button. Say, short press for search, long press for Genius button?
Samsung Galaxy S III - SGH-T999
Paranoid Android 2.54
 
21productionz
Old
#5  
21productionz's Avatar
Senior Member
Thanks Meter 164
Posts: 556
Join Date: Feb 2008
Appreciate the credit.

Sent from my HTC Vision using XDA Premium App
 
nyolsson
Old
#6  
Member - OP
Thanks Meter 23
Posts: 76
Join Date: Oct 2009
Quote:
Originally Posted by OmsagroSylph View Post
Can you use this to map multiple actions per button. Say, short press for search, long press for Genius button?
From the source thread (21productionz) there was a fix/app called "button shortcut" in the market that would allow you to change certain long press button mapping.. (camera, search button) and this would allow you to choose Genius Button App as the long press search function.

However, I haven't personally looked for it in the market for the Slide..
------------------------------------------------------------------------
This was provided by Mftek, and if it helped you, you can click here to thank him.
 
nyolsson
Old
#7  
Member - OP
Thanks Meter 23
Posts: 76
Join Date: Oct 2009
Quote:
Originally Posted by 21productionz View Post
Appreciate the credit.

Sent from my HTC Vision using XDA Premium App
No problem. Appreciate the original find!
 
OmsagroSylph
Old
#8  
Senior Member
Thanks Meter 8
Posts: 146
Join Date: Sep 2008
Quote:
Originally Posted by nyolsson View Post
From the source thread (21productionz) there was a fix/app called "button shortcut" in the market that would allow you to change certain long press button mapping.. (camera, search button) and this would allow you to choose Genius Button App as the long press search function.

However, I haven't personally looked for it in the market for the Slide..
------------------------------------------------------------------------
This was provided by Mftek, and if it helped you, you can click here to thank him.
I'll look into it. I was just wondering if you had information on how the commands would look if editing that config file without an app.

Sent from my myTouch_4G_Slide using XDA App
Samsung Galaxy S III - SGH-T999
Paranoid Android 2.54
 
overhauling
Old
#9  
overhauling's Avatar
Senior Member
Thanks Meter 510
Posts: 450
Join Date: Aug 2011
Thank you ! This works perfectly fine.
 
pao_revolt
Old
#10  
Senior Member
Thanks Meter 13
Posts: 120
Join Date: Nov 2008
hi there,

can anyone recommend a tool, i saw that root explorer is paid app, is there any free tools?

thanks

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...