yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] nYdGeo:
There is another very important thing to note here. ALL 3.30.x releases are designed only for and optimized only for the latest hardware revision 004 Evo's. If you own a hardware version 001-003 Evo, the ROM may work fine in general or like others you may have nothing but issues. You will definitely find that your battery life sucks bad.

If you have a hardware version 001-003 Evo and want a truly superior running phone with outstanding battery life...and you'd like something very current, I would suggest trying out the Azrael v2.5 as it is built from the proper 3.29.651.5 code-base, the current, official release for these 001-003 Evo's.

I love Caulkin's ROMs more than anything, but just can no longer tolerate that performance and battery life I get using a 3.30.x ROM on my version 003 Evo.

From there you can play with kernels, looking for one's made from the correct code-base. The official HTC for this build is #11. The #17 kernel is for the 3.30.x ROMs for the 004 Evo's.

I hope that this helps someone. Thank you for your time.
[myTouch 4G Android Development] 21productionz:
Here is the guide to remap the Genius button to Google search.

A press will give you text search and long press will give you voice search.

Items needed:

Root access (Perm root required as not having perm root will result in changes being undone on reboot)

Root explorer

MT4G

Fingers

If you misspell the word you will lose button functionality. Your Power button and volume buttons won't work. All is not lost though, pull the battery follow the steps again. I would recommend making a backup of the file before you edit it (Root explorer makes a backup, but you can never make too many. That and Root explorer makes a backup of the file before editing).

Steps:

1. Open Root explorer and navigate /system/usr/keylayout/ (That is scroll down and press the system folder. Scroll down again and press the usr folder. Press the keylayout folder)

2. At the top right corner of the screen press mount r/w

3. Long press "glacier-keypad.kl"

4. A screen will pop up, scroll down to "Open in Text Editor"

5. key 183 will say FUNC_4, change this to SEARCH (all caps)

6. Press the menu button

7. Press "Save Changes"

8. Long press power button

9. Press Restart

10.Try it out, and say thank you after it works. :D

Sorry but I was always told to explain it as if you were 10yrs old to prevent questions. Wasn't trying to offend anyone's intelligence.

Also while you're in there if you want to add WAKE_DROPPED after HOME, your phone will now wake when you press the home button.

If someone wants to make a guide for how to do this with adb, post it and I will update the op.

Update: The google voice search on this phone sucks balls. Go to the market and download Vlingo. The first time you long press search after this it will give you the option to make it the default voice search. Imo it is superior to the native voice search, at least on this phone.

Update: The latest update for Voice Search has fixed whatever the problem may have been. But Vlingo is still a great app so feel free to give it a try.

Update: Mftek has given you another alternative. Please see this post For instruction on how to get Google search on a short press, and the Genius button on a long press.

Update
[myTouch 4G Android Development] cal3thousand:
Absolutely genius... I will try it soon.

Before I do... we can reverse by simply changing it from SEARCH back to FUNC_4, I assume?
[myTouch 4G Android Development] 21productionz:
Already tried to change it back and it worked no problem.
[myTouch 4G Android Development] jsc619:
You are the man! Thanks

Works perfect
[myTouch 4G Android Development] Phateless:
OMG this has been bugging me since my first boot! Thank you!! :D
[myTouch 4G Android Development] Phateless:
Tried this while temprooted with visionary and didn't work. Copied the file to sdcard and edited it there, then moved it back to its original location, overwriting the original.

On reboot nothing changed. What'd I do wrong?
[myTouch 4G Android Development] aohmer:
Brilliant!
[myTouch 4G Android Development] Gr8gorilla:
If you only had temproot and have not unlocked then Nand, then when you reboot it likely didn't stick.......
[myTouch 4G Android Development] Phateless:
Ah... So is S-OFF required to achieve real permanent root? Or can I just use visionary to temp root --> perm root --> remount system as r/w and then go on my merry way?
[myTouch 4G Android Development] 21productionz:
Perm root is required, I have updated op to say that. Sorry for the confusion. S-off is required for this to stick, unless someone with S-on figures out a way to make it work.
[myTouch 4G Android Development] Phateless:
Ah ok, this will just have to wait a little then.
[myTouch 4G Android Development] aohmer:
Hmm I just noticed something strange when I did this, my text on my lockscreen disappeared after doing this .. along with when I press the power button, the text for each option was gone .. restoring back to stock the text is back .. weird.
[myTouch 4G Android Development] mobilelingual:
Worked perfectly!!! Home button now wakes screen and Genius button does Google search. Thank you so much.
[myTouch 4G Android Development] PeterC18st:
Just did it without any hitches. Added Home_Dropped as well. THANK YOU DUDE!!! This made my day even better. Rooted and key re-mapping sweet.
[myTouch 4G Android Development] PolishDude:
wow awesome that was fast
[myTouch 4G Android Development] aohmer:
Ok problem figured out, it was the font I replaced in my system it started acting weird :) thanks again!
[myTouch 4G Android Development] PolishDude:
I actually went back to the genius button, for some reason the voice search function could not get a single command right, it couldnt understand "call home" in a perfectly quiet environment, let alone any other commands, like texts, but thanks for the write up.
[myTouch 4G Android Development] Phateless:
I haven't rooted yet and I've also noticed that voice search performs surprisingly poorly on this phone. Wonder what's up with that?
[myTouch 4G Android Development] 21productionz:
I'm looking into a solution. It has nothing to do with changing it though. It's hearing it correctly, but not understanding commands. I say "call blah" and the search box comes up with call blah. Not cool.
[myTouch 4G Android Development] Phateless:
Mine's blatantly missing words. If I didn't know better I'd say the phone is sassing me for not using the genius button. :p
[myTouch 4G Android Development] l0uisz:
how'd you get it to do that? :confused:
[myTouch 4G Android Development] markjnj:
I would like to know hwo this is done as well?
[myTouch 4G Android Development] l0uisz:
@MARKjNJ go here chief http://xdaforums.com/showthread.php?t=885967 the app that allows you to do this ISN'T free ( BTW ) .
[myTouch 4G Android Development] eyenokea:
Excellent thanks for this, works perfect
[myTouch 4G Android Development] Roake:
I can't seem to switch for r/w once I get to "system" and beyond.

Any advice?
[myTouch 4G Android Development] TrueBlue_Drew:
Make sure you are using the latest root explorer.
[myTouch 4G Android Development] Phateless:
Are you rooted?
[myTouch 4G Android Development] 2rz_taco_sr5:
hey guys sorry if its been brought up but is there a way to make my lock key ALSO end my calls? similar to how the home key goes home and wakes the phone if you set it to do so like explained in the first post.... i got very used to it in cm6 and now im running 7rc which does not have the option so i keep hitting my lock key after calls to hang up out of habbit which does nothing lol

any help is really appreciated this is driving me nuts!
[myTouch 4G Android Development] 21productionz:
I don't know how the files are set up in CM7, but if you change the key from power to ENDCALL it will act as a power button and end calls.
[myTouch 4G Android Development] abcdavidefg:
Help please

[/CODE]

I have root, I am using root explorer. if i hit mount R/O inside the system folder it doesnt do anything. but if I hit R/O outside the system folder it change

Any help?Thanks
[myTouch 4G Android Development] TrueBlue_Drew:
You arent using the latest version of root explorer. Try a different version and you should be fine.
[myTouch 4G Android Development] LBOG_Kush:
does anybody know how to put genius on soft and voicesearch/menu on long?
[myTouch 4G Android Development] sunsean:
This might be a lame request, but oh well: is there a free alternative to using Root Explorer? I've tried using Super Manager, and I've navigated to the appropriate keyboard section, but can't get to a "text edit" option to change the necessary text. I hope I don't come off as scheezy or cheap, but re-mapping the genius button is the only current reason I'd have to need this kind of access, and I don't know if I want to spend $5 to do it lol.
[myTouch 4G Android Development] camapghe:
I read quite a few thread but could not find solution to remap Genius button - short press to MMS application on my CM 6.1 RC2. Short pres, not long press, to show message inbox, like one-click-solution in GB rom. Any ideas guys?
[myTouch 4G Android Development] thugamistic:
No App

Can I assign the Genius button to do nothing? I think I may have damaged the button and it keeps bringing up the Genius App on sense Roms and Google Search on CM7. It's so bad that the phone becomes un-usable. Currently I've replaced the mapping to nothing which works, but as is pointed out in the OP the Power Button nor the Volume Rockers don't work.

Any Ideas?
[myTouch 4G Android Development] rocky2005:
umm ya didnt u read the post? if you miss spell it the button will do nothing, duh.
[myTouch 4G Android Development] beezie916:
Well I read through this whole thing....I am currently using Evil's Fusion Sense 3.0. It does not have the genius app apk in it anymore and I tried flashing the CM7 zip and it does not install the files so looking for an idea...

Also I have seen a bunch of people ask about using the trackpad to wake and no one has ever mentioned how to do that...can someone enlighten us?
[myTouch 4G Android Development] sleepyfu:
Yes. Pull the kl file (terminal app or adb) and edit with notepad on pc then replace the stock kl file. Done.

For terminal

SU to get # (superuser)

Cp /system/usr/keylayout/glacier-keypad.kl /sdcard

Edit the file once you get it from the sdcard to pc, put back on sdcard then

Cp /sdcard/glacier-keypad.kl /system/usr/keylayout/glacier-keypad.Kl

[via XDA premium]
[myTouch 4G Android Development] pnut22r:
What about remapping to launch an app? or settings?
[myTouch 4G Android Development] GazaIan:
https://market.android.com/details?id=com.beansoft.launchkey&feature=search_result
[myTouch 4G Android Development] sprocket87:
I used the flashable zip to accomplish this trick (found in this post) and it worked fine (short press = google search, long press = genius search).

HOWEVER, if I short-pressed the search button from my homescreen it wouldn't do anything. On other Android phones it opens the Google quick search screen to do a text search. Now, short-pressing from within an app would open the search bar (good) but the Google quick search bar wouldn't come up from the homescreen.

You can fix this and bring back the quick text search on short press...

Using Root Explorer (or ES File Explorer with Root Explorer permissions checked.... or use adb), do the following:

Copy /data/app/com.google.android.googlequicksearchbox-1.apk

to /system/app/GoogleQuickSearchBox.apk

Reboot

Now the quick text search works fine from the homescreen, and long-press works great for genius.
[myTouch 4G Android Development] fulloflove:
can I disable the genius button? It got stuck so the google voice menu appears randomly when I play games or using any other apps
[myTouch 4G Android Development] estallings15:
Google Button Remapper.
[myTouch 4G Android Development] fulloflove:
I've tried this before but it didn't show the dpad keys. I want to remap the button to the dpad hey because I never use it
[myTouch 4G Android Development] estallings15:
Did you use the key tracker app?

Edit: Here.

key 102 HOME

key 139 MENU

key 158 BACK

key 231 CALL

key 211 FOCUS

key 212 CAMERA

key 217 SEARCH

key 183 SEARCH

key 107 ENDCALL

WAKE_DROPPED

key 116 POWER WAKE_DROPPED

key 115 VOLUME_UP WAKE

key 114 VOLUME_DOWN WAKE
[myTouch 4G Android Development] Phateless:
He wants to disable the genius button and remap the D pad to that function.

Make sense?

Remapping that stupid genius button to regular Google search is the reason I rooted that phone 2 years ago in the first place.

I was planning to keep it stock, lol. Fat chance.
[myTouch 4G Android Development] estallings15:
Yeah, I read it too fast the first time. Second time around I got it. I left him a list from /system/usr/keylayout/glacier-keylayout.kl
[myTouch 4G Android Development] fulloflove:
I tried the keytracker before but it didn't show the dpad keys

I've also see the key layout file but there's no dpad keys in it too

currently I use button savior for temporary soft button when I hardbutton is stuck
[myTouch 4G Android Development] mixer5911:
ADB instructions

Here's how I did it through ADB (since I don't have root explorer and it wouldn't work with the su file manager)

You have to be in recovery mode. So turn off the phone and when the screen turns black hold the volume down button. Select recovery.

Open Terminal and type: (I was using Ubuntu)

adb pull /system/usr/keylayout/glacier-keypad.kl /home/*username*/desktop/file.kl

Open the file and change:

FUNC_4 to SEARCH

Save the file and then on terminal and type:

adb push home/*username*/desktop/file.kl /system/usr/keylayout/glacier-keypad.kl

adb reboot

And it should work!
[myTouch 4G Android Development] 21productionz:
I just updated the op with instructions for people who's google voice search sucks as bad as mine. When I get to the desk I will update with adb instructions.
[myTouch 4G Android Development] erkmasterflex:
any way we can keep the genius feature as a long press or is that a little too complex for it being pretty much stock?

Short press: google text search

Long press: genius

reason i ask is because the genius feature is pretty sweet and i have gotten quite used to it.
[myTouch 4G Android Development] AbbaSou:
Flippin awesome! I was seriously missing my Search button. Thanks a bunch!
[myTouch 4G Android Development] option94:
You shouldn't have to be in recovery mode. Do you have USB debugging turned on?
[myTouch 4G Android Development] bobsbbq:
Thanks this is a big help. Works great.
[myTouch 4G Android Development] mixer5911:
Yeah it kept telling me permission denied. I could only make it work in recovery mode
[myTouch 4G Android Development] floepie:
I don't understand this part. You're implying that Google Search is somehow different on this phone? Is it limited in some way on this device in that not all the Search functions can be carried out on this device? If so, what functions are present in Vlingo that aren't in Google's Search? Thanks....
[myTouch 4G Android Development] 21productionz:
On every other phone I have used with android voice search, when I say "call blah", it 99% of the time called blah. When I do it on this phone It just does a search for call blah, or it calls some very long distance phone number. My only guess is that function is limited by the genius app somehow.

After doing some research on google voice search, it appears that some people have been having problems with it on many different devices for the last couple of weeks. Maybe the last update broke something that hasn't been fixed yet.

I tried deleting voice search with Titanium and downloading it from the market and had the same problems. I even tried a different TTS engine with no luck. I haven't tried a newer version of Pico though, maybe that's the ticket.
[myTouch 4G Android Development] civicvx94:
Absolutely amazing. Thank you sir, thank you.

Now I just to get rid of the my faves on the dock and this phone will be perfect lol
[myTouch 4G Android Development] cl2eep:
Haha. I was reading this guide thinking, wow this guy is being concise as a motherf**cker, funny someone is making a guide that no one would ***** that they couldn't do. Well done.

What would one have to add to have it Voice Search on press and Genius on long press? The Genius button does have its uses.
[myTouch 4G Android Development] 21productionz:
I'm digging around and trying to find the function file (I come from a php background) that tells the keys how to handle the press vs long press. I'll see what I can do.
[myTouch 4G Android Development] erkmasterflex:
good stuff :) best of luck to you!
[myTouch 4G Android Development] borodin1:
What if we try pushing older VoiceSearch.apk from N1 or G2 or something pre-update and just ignore update notifications?
[myTouch 4G Android Development] mixer5911:
My voice actions work fine guys. Call, send text, send email, everything works
[myTouch 4G Android Development] Rsotbiemrptson:
Works with temproot

Just wanted to let people that I have accomplished this with temproot using the visionary.sh method. I have attached my visionary.sh incase anyone wants to have a look at how I did it, just remove the txt on the end. The file needs to be put in /data/local along with the modded glacier-keypad.kl file. I used root explorer to do this all. Also don't forget to change the permissions on the files. I should also mention that I am using r11 of visionary.

Rsotbiemrptson
[myTouch 4G Android Development] RealityDesign:
Instead of "rm"ing all of those apps, you know you can just permanently disable them once, right? Just go in ADB or terminal with su and type:

pm disable <app package name>

If you need to know what the package names are, just use:

pm list packages
[myTouch 4G Android Development] Rsotbiemrptson:
If I permanently remove them will this get rid of the odex, dalvik-cache, and the data associated with that program.

Thanks,

Rsotbiemrptson
[myTouch 4G Android Development] g351427:
I switched the two commands in the key layout file.

key 217 FUNC_4

key 183 SEARCH

Not sure if assigning FUNC_4 to 217 was necessary, cause it popped up a shortcut list when I long pressed it before I made that change.

After that, I got an app from the market called Button Shortcut. That allowed me to assign Genius to the long press.

Voila! Short press is search button and long press is Genius.
[myTouch 4G Android Development] Mftek1:
This really worked?

Sent from my HTC Glacier
[myTouch 4G Android Development] M9x3mos:
Not bad was able to assing the genius button app to search key on g2 now.
[myTouch 4G Android Development] borodin1:
Perfect, that's going to be my set-up once I get MT4G next week.

Thanks for that!
[myTouch 4G Android Development] g351427:
It did on mine. I am sure there is a more elegant way to do it, but I am not that familiar with the keymaps to do something simpler.
[myTouch 4G Android Development] PolishDude:
worked perfect for me, thanks
[myTouch 4G Android Development] legioncwe:
Thanks

Thanks OP for the remapping instructions :)

I switched from the N1 to the HD2 (Android) and I've been missing my end call/screen off button that I got with the HD2... any way to remap the home/genius to send / end call? =p

**EDIT: If you change it to ENDCALL then you can use genius button to hang up phone as well as put phone into standby (if not on a call). If you add the WAKE_DROPPED you can use the button to wake phone up too like someone posted earlier...works just like my end call button on HD2, thanks.
[myTouch 4G Android Development] 21productionz:
I actually remapped the home button to CALL, and the G button to ENDCALL. I hated not having a home button. I made the power button home but it didn't feel natural, so I switched it all back. I too miss my hd2 buttons. If the HD2 had a camera button it would be the perfect phone with the Froyo build I have on it.
[myTouch 4G Android Development] ryan562:
Many thanks!
[myTouch 4G Android Development] JPongco:
goodbye genius button!

This mod works! A painless process after downloading root explorer.

I honestly thought T-Mobile would allow users to have the option on default settings but current version of genius button is downright unusable. If it didn't have to load every time you fired up genius, I would actually use it more.

Thanks again!
[myTouch 4G Android Development] ESKIMOn00b:
That's the thorn in my side for this app too.....
[myTouch 4G Android Development] QUEDRO:
ADB

nvm...

10 char
[myTouch 4G Android Development] VolcanicSkunk:
Does anyone know how to map the long press of the volume keys to change tracks?
[myTouch 4G Android Development] streetx613:
Does anyone know what button is referenced as "key 231" in the "glacier-keypad.kl" file?

Also, is there a way to map the home button to home on short press and call on long press?
[myTouch 4G Android Development] borodin1:
There's no long press function for volume keys in the stock kernel, you'll have to wait for custom (CM) kernel for that.
[myTouch 4G Android Development] epsix:
Is there anyway to make the genie button into a widget or a shortcut?
[myTouch 4G Android Development] slowestcivic:
I guess I just never got used to voice but I would really like to make either long or short press bring me to an app of my choice, probably handcent. I'm sure you might be working on something but just throwing it out there!
[myTouch 4G Android Development] floepie:
I'd like to transform the action button (optical trackpad push) to a 'home button' press. Would this be possible? Thanks!
[myTouch 4G Android Development] borodin1:
Yes, you would map the appropriate key inside Glacier-keypad.kl to HOME. You would loose the "enter" function though so may not be a great idea.
[myTouch 4G Android Development] g351427:
Drag the genius button app out of the programs list and onto the desktop.
[myTouch 4G Android Development] 21productionz:
I've been all over this (but I'm not the best so please correct me [it would make my day]). Without the kernal it is not possible to remap the trackpad. The scan-code for the pad is 272, and it is not in the .kl. I have tried adding it and assigning it to the home key, cause that would perfect the phone for me (giving me my call and end button back). And it just didn't work.
[myTouch 4G Android Development] Mftek1:
Short Press: Google Search

Long Press: Genius Button

Follow all the intructions listed on the first page but with a few more steps:

once your in the text editor make the following changes:

Key 217 FUNC_4

Key 183 SEARCH

make sure there all upper case!

hit menu and save changes.

Now go to the market and download Button Shortcut.

Open it up and where it says long press search to open: select genius button.

go to your homescreen and long press the genius button and select button shortcut.

THERE YOU GO!

short press = google search

long press = genius button
[myTouch 4G Android Development] 21productionz:
I have posted a link to this post in the OP with credit. Good find.
[myTouch 4G Android Development] floepie:
Hmmm. Previous to my attempt to remap the genius button I had downloaded 'Voice Actions' from the market, and I believe it supersedes the built-in Voice Search. And, I can't get this to work, that is, nothing happens with either a short or long press of the genius button. It could very well be that the new Voice Actions can't be called with a simple SEARCH in the keys config. Anyone have any ideas as to how I can go back to using the default Search?
[myTouch 4G Android Development] allen099:
I'm permanently rooted with S-OFF and am trying to remount, however when attempting to mount system folder (or any of its subfolders) as R/W, it doesn't work. It keeps its R/O rights. Any idea as to what's up there?
[myTouch 4G Android Development] floepie:
Yes. You need to purchase the latest version of RE.
[myTouch 4G Android Development] allen099:
Awesome! Thanks. I've mainly stuck with Astro and my buddy told me to try this one out. It's a really nice app!

Edit: Hmm, I edited the file and the search still isn't working (after a legit restart).
[myTouch 4G Android Development] OneBadLT123:
Is there any way to map the key to the recent calls window? i am sure there is a way, just need to know the replacement phrase