yashsingh1/xdaforums huggingface dataset:
[myTouch 4G Android Development] Mftek1:
If your using the way I said. It gives you an option to change the long press to either genius button, voice search, or hancent quick compose.

Sent from my HTC Glacier
[myTouch 4G Android Development] floepie:
Strange, I can't seem to get it to work, and I have a hunch there is a formatting error in the my glacier-keypad file. And, stupid me, I don't have the original. So, as of now, I have a non-working GB, and func_4 doesn't restore original function.

Could someone please attach the original file here? Thanks much.

EDIT: Well, all is working now that the permissions were reverted back to those of the others in that same directory. I don't know how they had changed to having no system rights.
[myTouch 4G Android Development] allen099:
Well look at that! After re-enabling all user permissions and rebooting, the button now works. Good find.
[myTouch 4G Android Development] floepie:
Does anyone know of a way to map the trackpad button to lock the phone the way the top power button does? It's pretty awkward reaching up the top of the phone holding it in my left hand. I wish that button was on the upper right side....

EDIT: For those who think the Voice Search doesn't work very well on this device, there is an update in the market, but you have to do it manually. Just search for the official Voice Actions.
[myTouch 4G Android Development] mattjmartin:
After remapping, is is safe to remove the genuis app altogether?
[myTouch 4G Android Development] VolcanicSkunk:
So now that King has released a custom kernel is it possible to change the long press on the volume button to make it change tracks?
[myTouch 4G Android Development] dustrho:
I gave this a shot and it worked flawlessly for me. Thank you for providing this tip/hack for us.

Any idea what key 217 is? I noticed this is also configured to SEARCH. Sorry if it's already been answered, but I didn't see specifics about it here.
[myTouch 4G Android Development] Mftek1:
In OP at the button.

Sent from my HTC Glacier
[myTouch 4G Android Development] larryg2k3:
Can't get Root Explorer to allow r/w on my /system directory. Can get r/w on the main folder/others.
[myTouch 4G Android Development] omega46:
I got this to work once... I have a perm root and su works fine even with reboots and batt pulls, but this never sticks for me... I hate the genius button app.. What am I doing wrong?
[myTouch 4G Android Development] 21productionz:
What did you do to lose what you had. I was having that problem once, but I flashed a bu and it worked again. I can only guess that my problem was, android was mad at me for not leaving it alone and just stopped making the changes stick. But after I flashed the bu it worked fine.
[myTouch 4G Android Development] omega46:
Flashed a bu? Every root app work but root manager in regard to this sticking. I edit, save, reboot and its gone. Suggestions?
[myTouch 4G Android Development] 21productionz:
I flashed a back up. I downloaded Rom Manager and backed up my phone before I made any changes. When it stopped working I flashed the back up and it started sticking again. I have no idea what was wrong with it.
[myTouch 4G Android Development] AndroidFeens:
Anyone know this?
[myTouch 4G Android Development] omega46:
Just did the same thing, but still not sticking. wtf. I hate this genius button crap... :mad:
[myTouch 4G Android Development] Tallyphillips:
How do i temp.root mt4g? Visionary doesn't work right?
[myTouch 4G Android Development] dustrho:
Just a quick FYI for those who decide to flash a ROM on your phones (e.g. Iced Glacier or CyanogenMod), in that you'll have to re-apply this tweak/hack to your phone as it will get reverted back to the lame-ass Genius application.
[myTouch 4G Android Development] aznpr1de808:
awesome ive been using vlingo since ive first got this phone and now i can make it my default instead of tmobile's so-called "genius" button which is not so smart in the first place lol... this works perfectly thanks so much
[myTouch 4G Android Development] tux-lover:
i might say the poster is the GENIUS here ...

not the BUTTON :D
[myTouch 4G Android Development] sicdroid:
Just did this and it works perfectly. Great job!!!
[myTouch 4G Android Development] villajose95:
can you possibly do this so it can replace it as the power off and sleep button because i dont really like the genius button i rather it be a power off and sleep button
[myTouch 4G Android Development] drzodiac:
Great WORK! Can anyone figure out how to change the faves button to something less lame?
[myTouch 4G Android Development] 21productionz:
Yeah you can either change it to ENDCALL (this will make it end call and long press power) or you can change it to POWER (this will make it the power button only) Best to do it as ENDCALL Both have the same function, but end call ends the call.
[myTouch 4G Android Development] floepie:
If using POWER, would it be necessary to remove the POWER from the default button?
[myTouch 4G Android Development] 21productionz:
No! You can have more than one button do the same thing.
[myTouch 4G Android Development] hawaiian.monzta:
No visionary can give you real permanent root if you click permaroot. But if you wanna flash different roms or get into the recovery mode and flash certain files. S-off iz required. You should be able to remap this and edit through root explorer since your changing files in there and not in recovery. All you have to do iz permaroot. And if you wanna undo permaroot then click on unroot in visionary + app. Simple
[myTouch 4G Android Development] Daguse:
any way to set the menu key to not just wake up the phone but on 2nd press unlock it, like the old mytouch 3G?
[myTouch 4G Android Development] newowner:
Don't be sorry, thanks for the full explanation!
[myTouch 4G Android Development] CaliCL9:
I get a message saying this file is read only. I have soff bit its not laying me touch any of the files in system
[myTouch 4G Android Development] Mftek1:
You need s off and perm root. Download visionary r14. Run temp root then perm root. That should do the trick.

Sent from my HTC Glacier
[myTouch 4G Android Development] boon2:
Has anyone experienced the keys not going back to original mapping after reverting back to the original file?

I was able to get the home key to wake the phone, but neither the short press nor long press of the genius button worked for me; however, I replaced the file with the original to get back to stock. I also uninstalled Button Search. I pulled out the battery, reset the phone, etc..

Searching online I have found that other's have had their genius buttons fail without a mod and only a hard reset would fix their problem. Please let me know if anyone has come across this problem as well.
[myTouch 4G Android Development] CaliCL9:
I have s-off with perma root. I'm running iced glacier
[myTouch 4G Android Development] Mftek1:
Before you long press keylayout are you pressing r/w at the top?

Sent from my HTC Glacier
[myTouch 4G Android Development] thiagomme:
I'm having the same problem...I have s-off with perma root and running iced glacier.
[myTouch 4G Android Development] Daguse:
Does it say R/W in the upper right or does it say R/O. If you have the R/O you need to click the R/W.
[myTouch 4G Android Development] boon2:
Did you have to reset the phone or anything? When I open the file as read only to verify the contents it's back to it's original state, but the changes are not taking effect. The home key is still mapped to wake the phone and the genius button is no longer working.
[myTouch 4G Android Development] timbo1083:
I somehow lost my file even though I've made some back ups. My keys are working.. I just don't have that file. Can someone upload a copy for me please? So I can remap my stuff lol. thanks.
[myTouch 4G Android Development] boon2:
PM me your email and I will send it to you.
[myTouch 4G Android Development] Matt105:
Is there a way to do this without root explorer? Don't want to purchase...
[myTouch 4G Android Development] Matt105:
Ok I just went ahead and got the app :) for some reason I thought it was more expensive
[myTouch 4G Android Development] hawaiian.monzta:
Out maybe you he's need to click that r/w button in the top right corner
[myTouch 4G Android Development] CaliCL9:
I try passing rw at top to make out ro but it doesn't change nothing happens
[myTouch 4G Android Development] cal3thousand:
I had this problem too... you need a proper editor

My solution was to copy the file to SD card (that way I also have a backup)

then edit a copy using Notepad++, and then overwrite the system file by copying it back.
[myTouch 4G Android Development] boon2:
Thanks, I will keep that in mind next time. I ended up installing Ice Glacier which replaced the file anyways.
[myTouch 4G Android Development] aangrywombat:
This is working perfectly. I have google search on short press and the genius button on long. Thanks for this guide and could you help me with one more remapping if its possible.

Is there a way to get my camera to be short press and a different app as long press? I already succeeded at changing the camera to short press but can't get the long press to bring up any options.
[myTouch 4G Android Development] Mftek1:
Try button shortcut. It might work for the camera long press as well

Sent from my HTC Glacier
[myTouch 4G Android Development] aangrywombat:
There is an option for the camera long press but it doesn't seem to make any changes.
[myTouch 4G Android Development] CaliCL9:
Can anyone tell me how to do this through adb shell. Root explorer isn't letting me get the permission to re write the file. I'm rooted s off but when I press rw to get ro its not doing anything
[myTouch 4G Android Development] kbshowtyme:
Anyway to remap Genius Button to Phone? This is the first phone I ever bought that doesnt have a actual phone button..
[myTouch 4G Android Development] txsurfer:
Is there anyway to remap genius button in car dock mode.
[myTouch 4G Android Development] crypysmoker:
I had the same exact problem. Mine was that I hadnt updated Root explorer in months. try and see if you need to update.
[myTouch 4G Android Development] Lakeshow423:
Thanks guys! This works awsome! Now there is a purpose for the G button :p
[myTouch 4G Android Development] jccobia:
Great guide thank you so much! I would never use genius.
[myTouch 4G Android Development] CaliCL9:
My problem had something to do with rooting by forcing the update amd I still don't have permissions with phone on only in recovery through adb shell
[myTouch 4G Android Development] jonesodae:
it didn't work after the 20th time I've tried /:
[myTouch 4G Android Development] Mftek1:
Are you perm rooted?

Sent from my HTC Glacier
[myTouch 4G Android Development] crypysmoker:
I think some people may be forgetting to hit menu and save. It wont stick if you just back out after doing the changes
[myTouch 4G Android Development] Mftek1:
And once your save changes you must reboot your phone..

Sent from my HTC Glacier
[myTouch 4G Android Development] halftonehero:
Thanks for the walkthrough. I can't get Root Explorer to mount the folder as r,w though. I don't get it because I'm most definitely rooted. Oh well, thanks again!
[myTouch 4G Android Development] dustrho:
Do you have Superuser installed on your phone, and if so is Root Explorer listed under the "Apps Allowed" tab (should be the default one that opens after launching Superuser)? If not, install Superuser from the Market, and then try launching Root Explorer. It should then ask you if you want to allow superuser permissions for Root Explorer, and of course you would say Allow. Hopefully that'll help you out a bit.
[myTouch 4G Android Development] Psyclism:
Voice dialer

Now that the genius app has been unbound from the button, does anyone have a clue how to unbound the genius app as the voice dialer? I don't want genius to function as the voice response system when I press the dial button on my bluetooth headset. I want this, primarily, because it takes upwards of 30 seconds for the damn thing to prompt me for a number.
[myTouch 4G Android Development] XfooYen:
That's not a Genius problem. That's something else. Genius voice prompt takes about 4 secs to fire up for me.
[myTouch 4G Android Development] daewond3r:
I'm not sure if anyone wrote a tutorial on how to do this in ADB. I just did this in ADB w/ Mac Terminal app:

adb reboot recovery

Mount System via menu in Clockwork

adb pull /system/usr/keylayout/glacier-keypad.kl (path to wherever you want the file on your local computer i.e. Documents/glacier-keypad.kl)

nano (path to wherever you want the file on your local computer i.e. Documents/glacier-keypad.kl)

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

control X to exit, Y to save, return/enter

adb push (path to wherever you want the file on your local computer i.e. Documents/glacier-keypad.kl) /system/usr/keylayout/glacier-keypad.kl

adb reboot

Short press brings up Google Search and long press composes a text message (not sure what that's about).

NOTE: I'm not responsible if you screw up your phone. Don't mess with ADB unless you know what you're doing :)
[myTouch 4G Android Development] Madblaster6:
Thanks. I like this better. Also when I long press it gives me google voice search. I like it better than genius but I thought I should let you know. :)
[myTouch 4G Android Development] halftonehero:
Tried all that. Looks like I'll just do it through ADB. I was at work earlier and our IT guys have administrative locks on the computer so no sdk at work! Thank you for the advice, my friend.
[myTouch 4G Android Development] splat matt:
Does anyone know how to map the bluetooth button to trigger google's voice search instead of the dragon dictate's genius button?
[myTouch 4G Android Development] joeyklatzko:
Using both Root Explorer and pushing the file with ADB resulting in a message saying it is a Read-Only file system :/
[myTouch 4G Android Development] daewond3r:
Did you read my directions on the previous page?
[myTouch 4G Android Development] Jaskwith:
Quick question... There is no such thing as free ROOT explorer correct?
[myTouch 4G Android Development] Jaskwith:
Ummm, soo first of all I love it.. I freaking HATED that dumb genius button crap, and I love simple Google search. BUT! When I restarted my phone it was weird my friendstream and news and clock widgets were all deformed, and I had to remove them and replace them and they seem to work... but I now notice that my dialer is having such a problem...some of the buttons are missaligned...? Is this a serious problem?
[myTouch 4G Android Development] joeyklatzko:
Thanks! I pulled the file using ADB, edited it in notepad and pushed it back onto my phone. The trick is to mount /system in recovery through ClockWork and push the new file without rebooting because that will unmount /system. For some reason RootExplorer is not able to change permissions for system even though I have superuser.

Sorry for being a n00b, first time using ADB/recovery was a few hours ago lol. But thanks for the help!
[myTouch 4G Android Development] daewond3r:
I had the same problem with Root Explorer. Glad you got it working!
[myTouch 4G Android Development] jjlean:
Worked perfect first try. Thanks guys!
[myTouch 4G Android Development] QUEDRO:
END CALL button remap

Is it possible to map an "End Call" function to trackpad button press during a call?

Sometime I place a call or in the middle of a call and lookup smth (like a contact) and to end the call I need to drag down the notif. bar and press end.

CAN WE PORT <END CALL> to TrackPad button press ??
[myTouch 4G Android Development] dungtran88:
After remapped my genius button, it work beautifully but suddently today I tried to use it and it doesn't do anything. It doesn't bring up google search anymore so I decided to revert back to original but it still wont work. Does anyone know what is going on?
[myTouch 4G Android Development] xxdrcft:
ButtonRemapper Mistake Leads to Success

I tried to do the text remapping described here with a paid app called ButtonRemapper. After doing that everything went screwy (apps crashing, etc), and I clicked the ButtonRemapper status option to restore the original settings. After rebooting the "genius" button now works exactly the same way the search button did on cyanogenmod (thank god).

Just, FYI, in case it might help someone else in the future.
[myTouch 4G Android Development] labrea:
My device is mytouch 4g, is rooted

when i tried to open text editor it says

Warning:

You cannot edit this file,

because the file system is read-only.

what should I do?
[myTouch 4G Android Development] Mftek1:
Before you open it click the r/w button at the top

Sent from my HTC Glacier
[myTouch 4G Android Development] labrea:
As I said before, I did everything whatever it says here, but no success

Btw, when I click r/w nothing happens, is that normal?
[myTouch 4G Android Development] joeyklatzko:
Read back to page 13. I had the same problem. You must go into recovery, use adb to pull the file to your computer, edit it in notepad or a similar text editor, make sure to save it as a .kl file, mount /system through recovery and push the file back on to your phone. Page 13 of this thread has all the commands for adb and in depth instructions.
[myTouch 4G Android Development] kambiz.aghaiepour:
If you're old school, you could also do the following:

adb shell

# mount -o remount,rw /system

# cp /system/usr/keylayout/glacier-keypad.kl /system/usr/keylayout/glacier-keypad.kl.save

# vi /system/usr/keylayout/glacier-keypad.kl

(of course, you have to be familiar with how to use the vi editor, which is why I said if you're old school)

# exit

adb reboot
[myTouch 4G Android Development] labrea:
My point is get search option working with long press and genius with short press.. any idea?
[myTouch 4G Android Development] labrea:
Ok, it's fixed,

solution was upgrading root explorer to newest one.

but still need to remap to long press for search, short press genius, ?

Thanks!
[myTouch 4G Android Development] jbrew78:
For everyone who is having problems getting root explorer to give you r/w permissions... If updating to the the latest version doesn't fix your problem, download busy box from the market...even if you already have it on your phone. Open the app and click install. The fresh install will allow you to get r/w in root explorer. You may have to do this after each time you reboot. Why? I have no idea.
[myTouch 4G Android Development] Dodolom:
Worked great with the busybox installation. Thanks so much for the step by step easy guide.
[myTouch 4G Android Development] sdkboy1028:
i did this to wake up with home and it didnt work
[myTouch 4G Android Development] unk2009:
Thank You, this is great, it was the only thing really missing from MT4G...
[myTouch 4G Android Development] unk2009:
Thank You, this is something I really missed coming from NT3G, great work...
[myTouch 4G Android Development] Phateless:
I noticed this too, but I'm using a slightly older version of root explorer that I happen to have lying around. Very strange...

Successfully copied, edited and pasted the keylayout file, but Genius button didn't work to do anything. Every button woke the phone but genius button did absolutely nothing.

Any thoughts?
[myTouch 4G Android Development] asimons81:
Thanks a ton! This was one of my main dislikes about the mt4g! I'm really glad to see we have such a great crew of devs already plugging away on this stunning device!
[myTouch 4G Android Development] Phateless:
Does anyone know how to make the trackpad wake AND SLEEP the phone in CM6? That's one thing that I miss from Sense when using CM6.
[myTouch 4G Android Development] neronian:
First post root. 2nd post, eliminate the damn genius button! Thanks for this guide!! All sorts of win.
[myTouch 4G Android Development] beelbeel:
Thanks for the guide! I really appreciate figuring this out. It kills me that there is a button (two if you coun't the camera button) on my phone that I absolutely never use.

Is there a way to do this without Root Explorer? I know it's only four bucks, but I would still prefer free. Who wouldn't?
[myTouch 4G Android Development] beelbeel:
Anybody have a response?
[myTouch 4G Android Development] vettejock99:
Buy buttonremapper in the market for a buck.
[myTouch 4G Android Development] mulletcutter:
very awesome...that dumb genus button is gone. thanks
[myTouch 4G Android Development] TrueBlue_Drew:
Much thanks to the OP for this great mod!! It works great!! If anyone is having trouble figuring out how to make these changes or you don't want to use Root Explorer you can Visit my thread for a zip file that can be installed using CWR or Rom Manager.
[myTouch 4G Android Development] leejeans:
i changed the g and home button to wake up the phone,but when the phone sleep deeply(a long time after the screen off),home and g can't wake up it. power button still work...................
[myTouch 4G Android Development] tnpapadakos:
try WAKE_DROPPED
[myTouch 4G Android Development] beelbeel:
I was about to say that the mod in your thread was a great, but different mod. Then I found the genius button mod that you included there too. Thanks!
[myTouch 4G Android Development] leejeans:
i tried WAKE_DROPPED,i can wake my phone up within few second but after a few minutes i can't wake it up,so i have to push my power button to wake it up,sorry for my poor english
[myTouch 4G Android Development] jentzschman2000:
Quick question?

Is google search better then the the genius button?

Guess what I am asking is if its worth it to remap?

If so, what are the pro/cons of genius vs google?

Thanks.
[myTouch 4G Android Development] TrueBlue_Drew:
It's really just a matter of opinion. I like genius button but I also like google search. You really just need a mess with both of them and decide which 1 you like best. You can still remap the button but then just use genius out of the app drawer.
[myTouch 4G Android Development] jentzschman2000:
Is the Google search that is remaped like the voice search option that is on the Google search bar widget? If that makes sense.
[myTouch 4G Android Development] TrueBlue_Drew:
Yes it is the same google search and google voice search
[myTouch 4G Android Development] jentzschman2000:
Cool, thanks.

Oh, another question popped up. Does re-mapping to google allow for voice texting like genius?
[myTouch 4G Android Development] hkbladelawhk:
What's the default file?

Was it:

SEARCH

FUNC_4

OR

FUNC_4

SEARCH?

I don't remember. I only ask, because I have S-ON, and I could have sworn it worked the first time I did it.
[myTouch 4G Android Development] TrueBlue_Drew:
I dont believe that google voice supports voice texting like Genius does.

You can download the Genius app here for CM7 and I believe it will work on other HTC roms as well.
[myTouch 4G Android Development] Spudge:
So I installed the Genius button and Dragon Dictation zip to my CM7 install, and updated the keylayout to

Key 217 FUNC_4

Key 183 SEARCH

And now the button does nothing. The volume and power keys still work so I assume the file isn't messed up but still, nothing. Anyone have ideas/thoughts?
[myTouch 4G Android Development] TrueBlue_Drew:
Yep, download button shortcut from the market and set it to open Genius on longpress of search (Genius) button. CM7 is allready mapped correctly so you need the original file that came with it. You dont need to modify it.
[myTouch 4G Android Development] l0uisz:
AWESOME! thank you =)
[myTouch 4G Android Development] cal3thousand:
Why yes it does!

I do it all the time actually. "send text to ... " "I'm driving right now..."
[myTouch 4G Android Development] Vinsane:
Works great. Now my Genius button takes screen shots!
[myTouch 3G Slide Q&A, Help & Troubleshooting] Ace42:
Does anyone else's phone give a diff vib when holding both keys, I just discovered this while screen was of.
[myTouch 3G Slide Q&A, Help & Troubleshooting] MusicMan374:
Whoa it does. That's weird. I'm running cr_mod on mine. I wonder why it does that.
[myTouch 3G Slide Q&A, Help & Troubleshooting] btate0121:
whoa... same here... that's weird.

it vibrates.. then about 30 seconds later it gives me a triple vibrate
[myTouch 3G Slide Q&A, Help & Troubleshooting] Ace42:
Thanks for the replies, I thought it was only me.

Sent From My MT3GS