FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

[MOD] Re-Mapping Keys (Genius Button to Search - www/com button to TAB) and more..

82 posts
Thanks Meter: 26
 
By nyolsson, Member on 30th July 2011, 12:51 AM
Post Reply Email Thread
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: [ View ] Gift nyolsson Ad-Free
 
 
31st July 2011, 01:38 PM |#2  
Junior Member
Thanks Meter: 0
 
More
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?
1st August 2011, 05:06 AM |#3  
OP Member
Thanks Meter: 26
 
More
Quote:
Originally Posted by masker2011

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.
2nd August 2011, 01:31 PM |#4  
Senior Member
Thanks Meter: 10
 
More
Can you use this to map multiple actions per button. Say, short press for search, long press for Genius button?
2nd August 2011, 07:18 PM |#5  
21productionz's Avatar
Senior Member
Thanks Meter: 183
 
More
Appreciate the credit.

Sent from my HTC Vision using XDA Premium App
2nd August 2011, 07:39 PM |#6  
OP Member
Thanks Meter: 26
 
More
Quote:
Originally Posted by OmsagroSylph

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.
2nd August 2011, 07:42 PM |#7  
OP Member
Thanks Meter: 26
 
More
Quote:
Originally Posted by 21productionz

Appreciate the credit.

Sent from my HTC Vision using XDA Premium App

No problem. Appreciate the original find!
4th August 2011, 06:11 AM |#8  
Senior Member
Thanks Meter: 10
 
More
Quote:
Originally Posted by nyolsson

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
15th August 2011, 02:23 AM |#9  
overhauling's Avatar
Senior Member
Thanks Meter: 735
 
Donate to Me
More
Thank you ! This works perfectly fine.
15th August 2011, 03:37 AM |#10  
Senior Member
Thanks Meter: 15
 
More
hi there,

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

thanks
15th August 2011, 04:39 AM |#11  
overhauling's Avatar
Senior Member
Thanks Meter: 735
 
Donate to Me
More
You could push an already edited file using ADB... let me know if you need one, I'll upload it.
The Following User Says Thank You to overhauling For This Useful Post: [ View ] Gift overhauling Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes