yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV General] chochobeelai:
Hi guys, I am trying to flash my HTC Diamond GSM version with Hard-SPL-Diamond-OliNex. When I click the Update buttone after running the RomUpdateUtility.exe everything seems to go as described in the install notes, my HTC Diamond screen turns grey, and at this description, my diamond seems to disconnect from the PC therefore not able to continue with the flashing after that. Is there something I am doing wrong? Thanks for any help!
[myTouch 3G, Magic Android Development] chiasoft:
These are 2 things which never work on any Hero Rom.

1. YouTube High Quality.

(seems like this is due to "Mobile Network Type" going upto HSDPA instead of UMTS. I was able to get YouTube in high quality once when the data connection stayed @ UMTS instead of HSPDA.)

2. Seems like you need to have WIFI turned ON, for A-GPS to work with Google Maps "my location". They all seem to have an issue turning on Wifi to get location, and then off.

Are there any ways to fix this manually? :confused:

Thanks!
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] pl2959:
Hi,

I just got my tilt AT&T 8925 phone back from HTC for repair. HTC wiped out my phone and build everything back to original setting as below. Also, SIM locked now. I am not AT&T customer now, so I can't call AT&T to get the code to unlock it.

Please give me some suggestion. How can I unlock the SIM network? Any stable ROM and Radio that I should upgrade from this manufactory setting? I perfer to have a phone that I can read Chinese. Thank you very much.

R 1.65.21.18

G 25.88.40.05H

D 3.57.00.00

ROM: 3.57.502.2 WWE

Radio: 1.65.21.18

Protocol Version: 25.88.40.05H
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] msd24200:
let me help, the very first thread (sticky) of this forum has links to threads that will help you, also above that thread is a useful link that you should click on and read as it will tell you the rules about starting new threads here.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] pl2959:
Thanks. I will read that thread.

Question: Should I unlock my phone before I flash ROM? ROM and Radio, which one first? Thank you very much.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] DaveShaw:
Thread Closed. Please use the read the "for noobs" thread and ask any questions there.

Thanks

Dave
[G1 Android Development] Geniusdog254:
Ok, just to clarify a little here. These files included can be changed to remap any key to any other key. I personally have also remapped the MENU key on the actual keyboard (not the button under the screen above the trackball) to be my shift key, since that is physically more comfortable.

To do this, just open the .kl files (from any mod version, just make sure you have a complete set of them) in your text editor of choice. Then, find the key you want to change, they have labels like this (this is how I changed the camera button):

key 211 CAMERA

change to: key 212 SEARCH

Also, you may notice that some keys have the WAKE tag next to them, add this tag to any key to set it to wake the phone when pressed. I'm not quite sure what the WAKE_DROPPED tag is though.

And, for those of you that are wondering, key 59 is currently marked as MENU, change it to SHIFT_LEFT to make it a shift key as well.
[G1 Android Development] johnnylicious:
wow great job on this i might try it.
[G1 Android Development] prash:
Awesome idea for remapping the menu key the shift key, I can see how that can be a littler easier on the hands. I may have to try this out.

Thank you for sharing your find! I would have figured this would have been harder than it seems.
[G1 Android Development] xidominicanoix:
believe it or not, but this is the first time i even noticed that menu key ;)
[G1 Android Development] Dror520:
did anyone try this on a Hero rom?
[G1 Android Development] Escaladez2:
Is this only for the G1, or could this be adapted to any android device with a keyboard?
[G1 Android Development] Dare{D}evil:
Ahhh..thanks for the info...I always used to think about that menu button being waste...now I can change it :-D
[G1 Android Development] maxisma:
I was looking for that a week ago but my editor didn't display the .kl correctly <.<.

Thanks =)
[G1 Android Development] Geniusdog254:
I haven't tested it on a Hero build, and probably won't as I need my G1 stable. However, there should be no issues with it unless it is changed in the ROM. Later today I will upload v2 that has the option to push the original files as well.

In theory, it should work on any With Google or standard Android build, and probably even custom mfg ROMs like Hero unless they choose to change the way they map the keys (think hard-coded values).
[G1 Android Development] imbonez9:
Yes it works on here build i did it last night
[G1 Android Development] Dror520:
this works on the Hero rom! and also when you long press the camera button it will give you the voice search! thanks! for this!
[G1 Android Development] Bavilo:
There is one thing I have missed on the G1's keyboard since the day I got it. A proper Tabular key.

When we press tab now, it just adds about 4 spaces.

What I want it to do is jump to the next element. Just like in text areas where you can simply jump to the next field.
[G1 Android Development] Geniusdog254:
Unfortunately that is something that would require a code change instead of just a file mod, since that feature isn't in the Android OS. I guess they thought that since they require a 4-way+center button d-pad they figured that we wouldn't need a tab key, since you can just scroll with the trackball, or in the case of phones like the Galaxy, just press the arrow key or screen.
[G1 Android Development] menzo44:
thank you so much for this mod. I have been hoping and wondering for awhile about this. XDA IS AWESOME!!! :D
[G1 Android Development] menzo44:
can someone please help me getting this to work. I plugged my phone in and ran the bat file but get a error message...adb is not recognized as a internal or external command, operable program or batch file..... I did it with adb connected and not connected and got the same error. If i click on the adb.exe in the download I get another error? help me please
[G1 Android Development] Geniusdog254:
^^^^

Thats strange, if its not working for you all you have to do is do it manually, here is a guide (this assumes you have ADB already set up, I won't say how to do that here, there are guides on XDA):

1. Go to the folder of the mod version you want.

2. Run the following commands in ADB:

adb remount

adb shell rm /system/usr/keylayout/trout-keypad.kl

adb shell rm /system/usr/keylayout/qwerty.kl

adb shell rm /system/usr/keylayout/trout-keypad-qwertz.kl

adb shell rm /system/usr/keylayout/trout-keypad-v2.kl

adb shell rm /system/usr/keylayout/trout-keypad-v3.kl

adb push trout-keypad.kl /system/usr/keylayout/

adb push qwerty.kl /system/usr/keylayout/

adb push trout-keypad-qwertz.kl /system/usr/keylayout/

adb push trout-keypad-v2.kl /system/usr/keylayout/

adb push trout-keypad-v3.kl /system/usr/keylayout/

3. Reboot your phone. It should all work.
[G1 Android Development] CC CEO:
so would this mod allow for the hardware buttons to be changed? id love for the TALK button to go straight to the dialer rather than 2 the call log in cyanogen/google based roms.
[G1 Android Development] menzo44:
thanks for the reply, yes i have adb setup and i am going to give it a try now. THanks
[G1 Android Development] Geniusdog254:
Again, this is a software issue, either in the dialer app or the main OS. This mod will allow you to assign any button to function as any other button, but it WILL NOT let you add a new function to a key, sorry.

No problem, I want this to help other people as it has helped me. Let me know if it works.
[G1 Android Development] menzo44:
works perfect!!!! I did it manually through adb and it worked great thanks!
[G1 Android Development] Geniusdog254:
Awesome! Glad I could help :D
[G1 Android Development] briandresstoyota:
Hey everyone. this thread is really awesome. see my home and call buttons dont work anymore. if i could remap the call button to the camera button or something i could then be able to answer incoming calls. the only problem is i have absolutely no idea what you guys are talking about and no idea where to begin learning what you are talking about. please help me salvage my g1
[G1 Android Development] Geniusdog254:
Here is a custom version that will fix everything for you. Pressing the camera button all the way down is the end call button/lock button, basically your red button. Pressing it halfway down is call, which is your green button, it will open the phone app & answer calls.

I didn't include a custom readme.txt for this because it is simple enough. Just run install.bat & choose option one. It also has the option to push the stock files.

Let me know how this works for you, there shouldn't be any problems but obviously it only took me 15 minutes, so there could be errors ;)
[G1 Android Development] xxmonsterx:
Thank you genious for this mod. Very useful!
[G1 Android Development] constellanation:
nice work. What about the volume key can that be remapped to a key that doesn't do anything... or atleast an extra home key. i really get tired of the phone getting knocked out of vibrate into silent in my pocket.
[G1 Android Development] briandresstoyota:
thanks genius dog. but i dont know how to do what you are talking about. i think its something to do with rooting isnt it? but i think i need to be able to use my home button in the rooting process and my home button doesnt work either. the only buttons on the face of my phone that work are back, end call, and the trackball. home, green call, and menu do not work
[G1 Android Development] Geniusdog254:
Ahh well yes it does require a rooted device. If the device is already rooted then you don't need the home button & this can work on its own thru the script. If the device isn't rooted then I can think of a few ways you might make it work, like using adb to reboot into recovery instead of power+home & then flashing a custom rooted rom, then using my mod. But I don't have the time to do a full tutorial on that.

Also, to the constellanation, that can be done. I don't have the time atm to make a custom version for you but just go into one of the folders in the .zip in the first post & then look at the qwerty.kl, trout-keypad.kl, trout-keypad-qwertz.kl, trout-keypad-v2.kl & finally trout-keypad-v3.kl files in your text editor of choice. Look for the tags;

"key 115 VOLUME_UP

key 114 VOLUME_DOWN"

and change them to whatever you want, like if you wanted 2 more menu keys change it to:

"key 115 MENU

key 114 MENU".

Its pretty simple lol. Glad I could help some more of you.
[G1 Android Development] briandresstoyota:
pmd yu genuis dog
[G1 Android Development] scholbert:
Hi,

very useful thread...

So just for the curious ones:

# WAKE: When this key is pressed while the device is asleep, the device will wake up and the key event gets sent to the app.

# WAKE_DROPPED: When this key is pressed while the device is asleep, the device will wake up and the key event does not get sent to the app.

Taken from here:

http://pdk.android.com/online-pdk/guide/keymaps_keyboard_input.html

I typed getprop at the adb shell to find out which keymap is used on my device:

E.g. [hw.keyboards.0.devname]:[trout-keypad-qwertz]

Regards,

scholbert
[G1 Android Development] stevemartin1991:
possible

The volume keys. Let's say volume up turns the sound up. Volume down turns the sound down. Then is it possible to say hold volume up for 2 seconds it will skip to next track and volume down for 2 seconds go back a track in the music app?
[G1 Android Development] borodin1:
I was also wondering if we could map the camera button to start the music player in focus mode and skip to the next song in the other mode. Kind of like the stock headphones work. Is that possible at all?
[G1 Android Development] Geniusdog254:
Hold for 2 seconds not possible without a code change.

This got me interested. I'm checking it out now. Looks promising :cool:
[G1 Android Development] Geniusdog254:
Ok. Now version with music play/pause. Simple change:

After looking in ARVCP.kl (headset file) you can see what key number has the tags for MEDIA_NEXT & MEDIA_PLAY_PAUSE (as well as a few others, check them out yourself). Simple enough to then open the trout-keypad-*.kl files and change key 211 to MEDIA_NEXT & key 212 to MEDIA_PLAY_PAUSE.

Here is an attached trout-keypad-v3.kl file with search (full down) as play/pause, and focus (half down) as next song. I have only tested the search play/pause mode as my focus switch is f*cked up. There is no reason it shouldn't work, but don't blame me if it doesn't :rolleyes:

The file works for any v3 keypad (run "adb shell getprop hw.keyboards.0.devname" to see what keypad you have, most US hardware is v3). Otherwise, just pull the correct version for your device from /system/usr/keylayout and do this:

Remove the lines:
key 211 FOCUS
key 212 CAMERA

And then add:
key 211 MEDIA_NEXT WAKE
key 212 MEDA_PLAY_PAUSE WAKE

Simple enough, if you want to reverse them flip the numbers, yada yada yada... Details in first & second post for more info on changing the keys.

EDIT: Whoops, maybe I should attach the file :rolleyes: Just unzip, then push the file to /system/usr/keylayout/
[G1 Android Development] IluvBread:
Would it be possible to make it so when I press.

Left alt + A = Å

Right alt + A = Ä

???
[G1 Android Development] Geniusdog254:
Not as far as I know :(
[G1 Android Development] tee aiy emm:
Oh cool, I always wanted the camera key to be the search key. Didn't know this thread existed, but it works great :D

thanks for this
[G1 Android Development] borodin1:
Thanks GeniusDog.... I wish this was included from the start, I always thought it was kind of dumb to unlock you phone just to skip a song. My G1 is complete now.
[G1 Android Development] marxmarv:
There are files in /system/usr/keychars that may be of interest, but are apparently compiled at build time. From build/tools/kcm/kcm.cpp:

/**

* File Format:

* Offset Description Value

* 0 magic string "keychar"

* 8 endian marker 0x12345678

* 12 version 0x00000002

* 16 key count number of key entries

* 20 keyboard type NUMERIC, Q14, QWERTY, etc.

* 21 padding 0

* 32 the keys

*/

The keys are in groups of 8 shorts: one keycode, one null, display (on telephone keypad?), number (on telephone keypad), base, caps, alt, caps_alt. Knowing that, it should be relatively easy to pull the file, hex-edit it, and push it back.
[G1 Android Development] borodin1:
Ok, I spoke to soon, and so did you, I think. Apparently, camera button is a little too picky. If you want to long-press on it, you're actually going thru both modes (focus and camera) if I start my music player with it (i.e long press) it will actually go thru short press first (i.e skipping to the next song), which is fine, but if I want to stop music player it will actually skip thru 2 songs (one for each time it goes thru "focus" mode. Does that make sense to you Geniusdog? I messed with v3 file (SuperD 1.9.2 rom if it makes any difference) trying to reverse values or delete play_pause altogether and I did not make any difference, I could not get music player to stop playing. Further more, focus mode is REALLY sensitive, anytime I bump it, music player starts playing (just the way it's designed, if you hit "next", even on the widget it will start playing next song, even if it was in the standby mode before).

Not complaining, there's no way you could've known this, your camera button is messed up as you said it but again, if you have any insight on this- I would love to hear it.

Thanks for all your work that you've put into this mod, I can see myself (and many others) using it extensively.
[G1 Android Development] Geniusdog254:
Hmm good point. It never occured to me that that would happen. There is really nothing we can change about that, basically you just have the option of leaving focus normal, then setting camera as play/pause, or skip. There's not really much else you could do.
[G1 Android Development] borodin1:
I'll keep playing with that to see what I can achieve something workable, still I love the fact that I can at lest skip to the next song. That used to bug the crap out of me.

Thank you again.
[G1 Android Development] xaueious:
For the play/pause/skip music tweak, does this work with the phone in sleep?
[G1 Android Development] Geniusdog254:
Yes

(10char)
[G1 Android Development] OKK77:
Same observation. For now, I'm just pulling out the headset to "pause"!
[G1 Android Development] emmarbee:
Superb Thread!

The most desired feature in any touchscreen phone!

Guys, I'm thinking of replacing my mp3 player with the htc desire. But the problem is, I am unable to change to the next track and previous track while I'm driving like I easily do with my mp3 player with hardware keys(play/pause/next/previous/volume up/down).

Is there anyway I can assign any hardware keys for next track and previous track (or atleast next track alone). Of course, it'll be good if there is a play/pause button too!

Is there any such event for long press of volume keys?
[G1 Android Development] Geniusdog254:
No long press support, but I have an app on the market that lets you use the search button to play/pause music. Search for Search2Play on the market. If you like it please buy the donate version.

I'm currently working on Desire support, which should be up by this weekend. You must be rooted to use the app. Email me if you have any questions.
[G1 Android Development] sd2649:
Workaround

My G1 has a hardware issue where the back button (and a bunch of keys on the keyboard too) create random keypresses.

I am willing to wait out 2 months for my contract to end and just use the onscreen keyboard BUT not having a functioning "back" button is just impossible to work with.

My question is this, how could I remap the back button to the camera button?? possible?
[G1 Android Development] Geniusdog254:
Actually yes. Quite simply as a matter of fact. Just change one of the .kl files in the text editor of your choice (anything but notepad, wordpad is fine though) and change the key 212 or the key 211 line from its current value (back, camera, media_play_pause) whatever the middle column is thhat states the button, to BACK.

Then push the file to your phone. See the first and second posts for more info
[G1 Android Development] sd2649:
CRAP!!!

I have bever used ADB and now my for the life of me, I can't get it setup!!! I have downloaded all the drivers and checked the "USB debugging" checkbox on my G1, but the dumb computer only shows the G1 as a disk drive named Android device.... any ideas??? any way to put this into an update.zip?
[G1 Android Development] sd2649:
ok, got the drivers..... now to figure out how to "push" a file....
[G1 Android Development] sd2649:
ok, so I edited the trout-keypad file under "original" then ran install.bat and selected option 4..... and it flashed a bunch of stuff on the screen... thats it. ADB is working, I can see my serial number... how would I push just that one file? where would I push it to?
[G1 Android Development] sd2649:
OK, I think I have this. I placed the modified file into the adb folder and then:

adb push trout-keypad.kl /system/usr/keylayout

I then get this:

failed to copy.... blah blah blah..... read-only file system

What now???

I also tried accessing the file through root explorer, and it gave me the same "read only" error
[G1 Android Development] sd2649:
hmmm.... did adb remount and was able to push the file. I just checked it using root explorer, and the edited file is in there and the 211 line has "back" as its label. HOWEVER..... the focus button does not execute the "back" function :..(

Any other ideas??? do I need to push other files as well?? Why are there so many redundant "maps" for the buttons in /system/usr/keylayout anyway???

THANKS IN ADVANCE!!! I COULDN'T EVEN BE TRYING TO FIX THIS WITHOUT YOUR HELP!!!! IT IS MUCH APPRECIATED!!!!!!:)
[G1 Android Development] sd2649:
OK. so I edited and adb pushed all 4 trout files and was SUCCESSFUL!!!!!

Thanks again! Works great! My phone is BACK!
[G1 Android Development] mttmllns:
Cyanogen has recently put this feature in his popular CyanogenMOD. I haven't had the opportunity to upgrade yet, so haven't used it personally, but it sounds like exactly what you want:

I did a little bit of hunting for you and found metalhead's github if you want to try to hack it in yourself (looks like it requires source changes...not just a simple file like this thread). I think root was just recently gained on the Desire and people are currently experimenting with throwing CM on it so you might have to wait a bit to have a stable release.

Good luck, though!
[G1 Android Development] JackDuran:
Hey this thread looks really promising to help me with my problem.

I'm interested in remapping the QWERTZ keyboard on Android 2.1 on the MILESTONE.

I think I can follow the instructions well enough to pull this off, my only problem is, that I don't know what key or value I want to change the 'y' and 'z' values to.

I see the line "key 44 Y" in 'trout-keypad-qwertz.kl', but if I now wanted to change this value, what would I change it to? What do I type here to make the Y key produce a 'z' and vice versa?

EDIT: I mean I can't simply switch the values around, can I? Change it like this: "KEY 44 Z", can I? You didn't do the same with the camera button change?
[G1 Android Development] borodin1:
Actually... that's exactly what you do :)
[G1 Android Development] richardkemp:
So, does anyone know what the following keys and functions from trout-keyboard-v3.kl do? I can't work them out.

key 230 SOFT_RIGHT WAKE

key 60 SOFT_RIGHT WAKE

key 150 EXPLORER

key 155 ENVELOPE
[G1 Android Development] marixsmith:
Would it be possible to do this in an app? Using a gui to update this. My thought is that you could remap keys to allow you to play flash games. If i could temporarily map my trackball push to the spacebar so i could play some robot unicorn attack that would be awesome.
[G1 Android Development] Kensei22:
is it possible to remove the action of a key all together? my phone keeps typing "p" for some reason and i wanted to remap the button "p" to do nothing.
[G1 Android Development] bert269:
no, but here is a solution to your problem

not sure if I do understand your requirement for these keys, (and as they said - it may take a code change to assign 'new functions' to keys).

If you did not know this: if you press and hold the a key (in the physical G1 k/b and the virtual k/b) - it gives you the list of alternate keys for A

The other keys are the same - just hold the key and if there are any special characters related to that key, a menu with options will pop-up.

Hope it helps - if not - sorry!
[G1 Android Development] jj972:
i need to know the same thing. My home button messed up and boots into recovery everytime i reboot. also doesnt let me wipe, flash, etc because it wont let me confiirm. so i remapped my home button to the camera key and it works when my phone is in the os but if i reboot it still goes to recovery and doesnt let me wipe in flash when i press camera. i erased the 102 home lines in the .kl files but dont know? so i wana erase the function of the home button so i can reboot properly and wipe, flash, etc.
[G1 Android Development] Geniusdog254:
Unfortunately that can't be done in software like this. That's bootloader code. Sorry :(
[G1 Android Development] jj972:
yeaa kinda figured when it didnt work...sucks....but def still helped. now i can press home instead of pressin back through all the webpages justto get home..i guess its off to search for that thread i saw about flashing roms through adb. Thanks anyways. Appreciate it