yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] Fidel Cashflow:
I just tried to use Oxygen and it was unusable. The capacitive buttons would provide feedback but do nothing. I kept getting force closes after using titanium backup to restore things. Overall I'm not impressed with this ROM. I wiped dalvik, cache, and data before flashing. I'm sure I'm in a small minority.
[Nexus S Android Development] irishrally:
The problem lies between the chair and the keyboard ;)

Joking aside, you have to be careful how you restore from titanium backup. I suggest starting from scratch and only restore missing apps, not system data.

You can also try to fix permissions.
[Nexus S Android Development] fosdos4790:
I'm having a problem with this rom. Whenever I close an app whether it be browser or clock the launcher will restart. The phone goes black then the wallpaper shows up then apps on the homescreen then it takes about 30 seconds for the application drawer to load. It's almost like what happens when the phone boots up except it happens when I exit apps. This happens on launcher pro adw and the stock launcher.
[Nexus S Android Development] :
Titanium has given me issues in this rom when I restore system settings. Otherwise though, it runs great.
[Nexus S Android Development] dena994:
I have tried it...most fast and stable kernel I have ever tried

Inviato dal mio Nexus S usando Tapatalk
[T-Mobile myTouch 4G Slide] ekoee:
Once again, good work blue. When I get home I'm gonna try figure out how to add shift + alt characters.
[T-Mobile myTouch 4G Slide] fcreeves:
Very Nice addition to the cause.
[T-Mobile myTouch 4G Slide] arcticwolf8:
Can anyone make a key map that enables users to place objects in the MineCraft mobile apk for the Xperia Play?
[T-Mobile myTouch 4G Slide] Undeadk9:
It's only the Doubleshot that blue was talking bout. LOL. Go to the xperia play thread and ask there. :P
[T-Mobile myTouch 4G Slide] arcticwolf8:
I know, the game was made for the Xperia play and I want to play it on the MTS4G :P
[T-Mobile myTouch 4G Slide] Undeadk9:
Oh got ya. :D
[T-Mobile myTouch 4G Slide] Paitor:
Great. When I get my computer back I will also try to work on my version with scandinavian letters åäö on back, genius and questionmark button.
[T-Mobile myTouch 4G Slide] Blue6IX:
Thanks guys, glad you like.

I have a theory that the terminal app only printing a tilde on screen when you press an alt character can be patched by some swapping.

With the question mark character, if you swapped the function so that it was alt+press to get the question mark, and just press to get slash, would it print a slash in terminal?

Could be the workaround to deal with having to use the soft keyboard for terminal emulator.

To the two of you interested in alt characters and their functions, what do you think?

This time of life right now is not good for me, time-wise - too much going on out there for me to spend enough time in here, but i'll keep up as much as I can.

Sounds to me like you'd either need to:

-Get the .apk in question

-open it up, and change the button presses in the .apk to match something in our keylayout file.

or:

-get the .apk in question

-open it up and write down the button presses needed to use the app.

-Edit the doubleshot keylayout file to contain those button presses

(probably lose those hardware keys you remapped for anything else)

Sounds like an .apk edit, so you won't be able to get any updates for it in the future without having to go back into it and edit it again.

Way to start us off with a hard one - lol.

Is it a free app? If I get more then a few minutes to sit in development i'll take a look over the next few days if it is.
[T-Mobile myTouch 4G Slide] Paitor:
On droid/milestone we always edited the bin file in keychars with a hexeditor. This with keylayout was new to me.
[T-Mobile myTouch 4G Slide] Etn40ff:
Did you get home? ;)

Just kidding but I would love to see your setup for shift + alt
[T-Mobile myTouch 4G Slide] arcticwolf8:
Thanks Blue, but they just released a touchscreen version yesterday evening :)
[T-Mobile myTouch 4G Slide] Undeadk9:
Im digging your sig. :D
[T-Mobile myTouch 4G Slide] arcticwolf8:
Danke, sir :P
[T-Mobile myTouch 4G Slide] Bec07:
So does anybody know how we could create cut/copy/paste via ctrl+c etc for bluetooth keyboards?
[T-Mobile myTouch 4G Slide] Blue6IX:
I don't have a bluetooth keyboard, so not too much I can do to help you with this yet.

I am organizing all of my notes and double-checking my findings for the modded kernel released as we speak - should have it posted within a few hours.

After that my next project is to work on bluetooth controllers and getting them working with our device. I am working with one other member here as we have the time to get this project out the door, so expect some info to come out this week.

While i'm at it, i'll tack this on to the project. I'll be able to afford a new accessory this paycheck, so if I can get someone to lend me a ps3 controller i'll pick up a bluetooth keyboard.

As this is only loosely related to keylayouts, as the OP i'll let this fly in this thread because it's gonna require some modifications to the keylayout file if it doesn't work natively.

Please post the brand and model number of your bluetooth keyboard so I can download the driver file and look through it - thanks.
[T-Mobile myTouch 4G Slide] Bec07:
Here it goes: carrefour CBK01 (OY661-1)
[T-Mobile myTouch 4G Slide] Blue6IX:
http://www.oyama-mobility.com/html/ProductView.asp?ID=109&SortID=133

If this is the keyboard you are using, it's darned hard to find an english manual or product support page.

Do you have any software/driver files that came with it, or a link to a product support page with a driver download? Send me a pm if you do and i'll get you my email so you can send me the software.

Without the physical device, I need some kind of software to comb through for a driver file or there isn't much I can do - don't worry though, it'll still be a few days until I can get to it if you need time to get that together.
[T-Mobile myTouch 4G Slide] Bec07:
Yup, pretty embaressed to admit but that's it. The awkward thing about it is that shift behaves normally with go keyboard and swiftkey but caps does't work. On all other keyboards caps works but not shift (this is on the galaxy tab 8.9)

On sgs2 shift works, caps doesn't...
[T-Mobile myTouch 4G Slide] dung8604:
I just used the app "button remapper" somewhere on the forums to re-map my keys. Have both Genius buttons to search for single press, and use button shortcut to long press to the actual genius app.
[T-Mobile myTouch 4G Slide] Paitor:
Hi finally got some time over. Here is åäö for those who needs it. I don't know how to make an installation. So if someone can do that it would be nice. I have included keychars and keylayout file.

This is changed:

HOME = LEFT ARROW

MENU = RIGHT ARROW

BACK = ö

BACK + SHIFT = Ö

BACK + ALT = ö

BACK + SHIFT + ALT = Ö

GENIUS = ä

GENIUS + SHIFT = Ä

GENIUS + ALT = ä

GENIUS + SHIFT + ALT = Ä

? = å

? + SHIFT = Å

? + ALT = ?

? + SHIFT + ALT = /
[T-Mobile myTouch 4G Slide] dillalade:
$ ==> £

can anyone tell me what I need to change to edit the ALT D for '$' to be '£' instead???

Thanks in advance

EDIT:

I managed to edit the hex value for $ to £ by replacing the value 24 to a3 using Hex Editor Neo - and then Root Explorer. wahoo
[T-Mobile myTouch 4G Slide] Blue6IX:
I'm warming up my car for the drive home, so when I get back i'll take a look at this ( either before or after I sleep ) and make it into a flashable zip file. I'll post it back to the OP and link to your post.

Thanks for taking the time to put this together.
[T-Mobile myTouch 4G Slide] Paitor:
Great, thanx.

Offtopic (Just need to speak my mind): This is the third time a developer that makes great roms for one of my phones is banned. WTF is wrong with the people at xda.

The lost ones:

Itje - developer for Xperia X1 - Moved to htcpedia.com

Feeyo -developer for Milestone - cronosproject.org

undeadk9 - MT4GS - rootzwiki.com

This is so unnecessary and a waste of good knowledge!
[T-Mobile myTouch 4G Slide] Blue6IX:
Respectfully requesting, can we keep off-topic talk about other members and XDA policy out of my developmental threads? Not upset, just asking - enough talk about that in every other thread.

Much appreciated!

---------------------------------

I added the swedish keylayout to the original post, and credited you in the file name and in the printed output of the installer.

I also made a new flashable zip to return to stock since you also edited a bin file that wasn't touched in earlier installations. This will become the default return to stock zip for alternate languages.

Sorry it took a wee bit longer to get to this then I wanted it to, picked up a new piece of hardware that sidetracked me a little bit.

What you did here will open the door for others to make alternate language keylayouts (I know at least one other member wants german).

Would you mind describing how you edited the bin file and what programs you used to do so for other members who come through here and want to build on your work or make alternate language keycharacters?

Thanks!
[T-Mobile myTouch 4G Slide] Blue6IX:
Creative approach - thanks for sharing your method and success!
[T-Mobile myTouch 4G Slide] Paitor:
First I have to say that I don't know how the bin file in keychars is built to 100%, there are still things I don't really know what they do. I just tried to make it look as the other letters and it worked. I will try to describe what I did anyway.

With Notepad++ I edited the kl (keylayout) file and changed GENIUS and BACK button to a keycode that I had seen existed in the bin (keychars) file but wasn't already used. (will explain the bin file further down). I chose SLASH and PLUS and wrote them in with the Insert key activated in wordpad so the risk of messing something up was minimized. What the symbols are called can be found here: http://developer.android.com/reference/android/view/KeyEvent.html

Then I edited the bin file with a hex editor. I chose XVI32 because it was free and came up first on google ;-) http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm. In the bin file we can see the scancode (http://en.wikipedia.org/wiki/Scancode) followed by five letters. For example A 2 a A ! ! that represents:

A: Scancode

2: Don't have any clue (please tell me if you do know)

a: Letter when button connected to the scan code is pushed

A: SHIFT + button connected to the scan code is pushed

!: ALT + button connected to the scan code is pushed

!: SHIFT + ALT + button connected to the scan code is pushed

As you can see I just put blanks (hex value 00) in where 2 was for A when I changed +, / and ?

Finally I put everything back with the same permissions as the files had before and held my thumbs. Eureka, it worked. ;-)
[T-Mobile myTouch 4G Slide] Blue6IX:
Nice - appreciate you posting all of that info and source links.

Anyone wanting to spend time working on this in the future has a real good place to start from now!

The pictures were a definite helpful touch, very well done.
[T-Mobile myTouch 4G Slide] Paitor:
Maybe make a sticky of this thread?
[T-Mobile myTouch 4G Slide] tbalden:
Nice thread, gonna take a look at these for pyroice... Ics framework needs the kcm files in text format, not the binary.

Hopefully this will help to get the yet not working keys perfect.

sent from HTC Doubleshot pyroice
[T-Mobile myTouch 4G Slide] d3athb4dishonor:
I'm making a request to the main buttons on the bottom of the device.

I just need the back button to become the genius button (meaing the genius key would now allow me to return back on my device) because my button doesn't work anymore. If you need to make the layout the same on the physical keyboard a swell then so be it. I never really used those keys until I ran into this issue with my button.

It would be greatly appreciated, I found the tutorial you hooked me up with but I dont wanna have a paper weight with a keyboard lol.
[T-Mobile myTouch 4G Slide] Blue6IX:
Done - bone stock keylayout with the Genius button on the front face of the device re-mapped to the BACK function.

The BACK key on the front face will still perform that function, it was not changed.

Nothing else was changed either.

See OP for download.
[T-Mobile myTouch 4G Slide] d3athb4dishonor:
You just flash these by installing zip from sd right? If so I don't think it works because I tried it rebooted and now my homekey doesn't perform its function. The genius button doesn't work as the back button either.

Just trying to make sure I installed it properly.

Also noticed now I can't even use my physical keyboard to do any of the front facing functions either.
[T-Mobile myTouch 4G Slide] Blue6IX:
What ROM are you using? It won't work with ICS or anything too far from gingerbread...

I'm floating around here, i'll dl it and test it again, I tested it on a fresh factory reset.
[T-Mobile myTouch 4G Slide] d3athb4dishonor:
Ok then thats what it is.

I was using an ICS rom. Damn that stinks lol... Guess I'll flash a different ROM then because not having the back button is the most annoying thing in the world. It reminds me of when the E on my blackberry stopped working.
[T-Mobile myTouch 4G Slide] Blue6IX:
Sorry man, i haven't messed with ICS stuff yet - maybe one of the devs who are working on it can fix you up - i'm not sure when i'll be able to sit down and figure that one out.

I'll make a notation on the OP about it now - it didn't even occur to me.

Sorry for the troubles man - if i'm feeling froggy after I get finished making all these flashables for stock i'll see what I can do.
[T-Mobile myTouch 4G Slide] d3athb4dishonor:
Its appreciated regardless especially with how quick you got it done.
[T-Mobile myTouch 4G Slide] Paitor:
I have fixed two key setups for ICS. It was made for Pyr'o'Ice ICS Desensed 1.1.3 but will probably work on all using the new standard that ICS use. The symbol key didn't work in the ROM so I fixed that too. See these as beta but should work for daily use.

ICS_doubleshot_keylayout_dpad

Front Facing:

Genius = Search

Hardware Keyboard:

Home = Left Arrow

Menu = Right Arrow

Back = Up Arrow

Genius = Down Arrow

ICS_doubleshot_keylayout_swedish

HOME = LEFT ARROW

MENU = RIGHT ARROW

BACK = ö

BACK + SHIFT = Ö

BACK + ALT = ø

BACK + SHIFT + ALT = Ø

GENIUS = ä

GENIUS + SHIFT = Ä

GENIUS + ALT = æ

GENIUS + SHIFT + ALT = Æ

? = å

? + SHIFT = Å

? + ALT = ?

? + SHIFT + ALT = /
[T-Mobile myTouch 4G Slide] tbalden:
@Paitor, excellent! Thanks for sharing!
[T-Mobile myTouch 4G Slide] Blue6IX:
Paitor, I have them wrapped up in flashable zips, but question - the kcm files don't have the .bin extension?

I added it and then made them flashable - because all the other kcm files are bin files - does ICS handle it differently?

If so or if the flashables don't work let me know, I don't have an ICS ROM to test them in.

I'm updating the main posting now, if the flashables don't work i'll fix and re-up.
[T-Mobile myTouch 4G Slide] Paitor:
Yes, ICS don't use bin files anymore. They have changed it to a format in plain text that doesn't support characters other than the standard ones so all other characters have to be entered as unicode. å = \u00E5 etc. All in all thay have made it a bit easier from my point of view.

It looks like this now :
[T-Mobile myTouch 4G Slide] Blue6IX:
Cool, I figured you were right and I was wrong, so i'll fix that now.

Thanks!
[T-Mobile myTouch 4G Slide] Paitor:
Great, thanks for the zip files. I guess that I should try to learn how to make a flash-able zip someday too ;-)
[T-Mobile myTouch 4G Slide] Blue6IX:
If you ever feel like looking into it, here would be a good place to start:

Edify Script Tutorial - Replacing the Google Market

...and then open up one of these installers from the thread to see how it was put together.

I don't mind throwing them together, so don't feel obligated - but if you get curious that should get you started.
[T-Mobile myTouch 4G Slide] Blue6IX:
Also, Paitor, thanks for adding something to this thread.

I had pulled the keymappings from the gingerbread kernel source that HTC provided us, and posted them in my dev reference but they were'nt categorized and should probably be here instead.

If we get ICS kernel source that would help a lot, but meantime here are the gingerbread source keymappings, and code block structure is preserved so you can make sense of the spacing and groupings - that's part of how it makes sense.

Doubleshot key mappings from HTC kernel source GB 2.6.35.10:

static unsigned short doubleshot_pmic_keymap[KEYMAP_SIZE] = {
[KEYMAP_INDEX(0, 0)] = KEY_RESERVED,
[KEYMAP_INDEX(0, 1)] = KEY_RESERVED,
[KEYMAP_INDEX(0, 2)] = KEY_WWW,
[KEYMAP_INDEX(0, 3)] = KEY_LEFTSHIFT,
[KEYMAP_INDEX(0, 4)] = KEY_LEFTALT,
[KEYMAP_INDEX(0, 5)] = KEY_EMAIL,
[KEYMAP_INDEX(0, 6)] = KEY_F16, /*KEY_HOME*/

[KEYMAP_INDEX(1, 0)] = KEY_RESERVED,
[KEYMAP_INDEX(1, 1)] = KEY_RESERVED,
[KEYMAP_INDEX(1, 2)] = KEY_RIGHTSHIFT,
[KEYMAP_INDEX(1, 3)] = KEY_P,
[KEYMAP_INDEX(1, 4)] = KEY_RIGHTALT,
[KEYMAP_INDEX(1, 5)] = KEY_BACKSPACE,
[KEYMAP_INDEX(1, 6)] = KEY_ENTER,

[KEYMAP_INDEX(2, 0)] = KEY_Q,
[KEYMAP_INDEX(2, 1)] = KEY_COMMA,
[KEYMAP_INDEX(2, 2)] = KEY_A,
[KEYMAP_INDEX(2, 3)] = KEY_X,
[KEYMAP_INDEX(2, 4)] = KEY_F17, /*KEY_MENU*/
[KEYMAP_INDEX(2, 5)] = KEY_S,
[KEYMAP_INDEX(2, 6)] = KEY_Z,

[KEYMAP_INDEX(3, 0)] = KEY_K,
[KEYMAP_INDEX(3, 1)] = KEY_L,
[KEYMAP_INDEX(3, 2)] = KEY_QUESTION,
[KEYMAP_INDEX(3, 3)] = KEY_M,
[KEYMAP_INDEX(3, 4)] = KEY_F13, /*SYM*/
[KEYMAP_INDEX(3, 5)] = KEY_O,
[KEYMAP_INDEX(3, 6)] = KEY_I,

[KEYMAP_INDEX(4, 0)] = KEY_SPACE,
[KEYMAP_INDEX(4, 1)] = KEY_D,
[KEYMAP_INDEX(4, 2)] = KEY_W,
[KEYMAP_INDEX(4, 3)] = KEY_E,
[KEYMAP_INDEX(4, 4)] = KEY_V,
[KEYMAP_INDEX(4, 5)] = KEY_F,
[KEYMAP_INDEX(4, 6)] = KEY_C,

[KEYMAP_INDEX(5, 0)] = KEY_N,
[KEYMAP_INDEX(5, 1)] = KEY_F14, /*Genius*/
[KEYMAP_INDEX(5, 2)] = KEY_U,
[KEYMAP_INDEX(5, 3)] = KEY_Y,
[KEYMAP_INDEX(5, 4)] = KEY_J,
[KEYMAP_INDEX(5, 5)] = KEY_H,
[KEYMAP_INDEX(5, 6)] = KEY_RESERVED,

[KEYMAP_INDEX(6, 0)] = KEY_DOT,
[KEYMAP_INDEX(6, 1)] = KEY_G,
[KEYMAP_INDEX(6, 2)] = KEY_F15, /*KEY_BACK*/
[KEYMAP_INDEX(6, 3)] = KEY_T,
[KEYMAP_INDEX(6, 4)] = KEY_R,
[KEYMAP_INDEX(6, 5)] = KEY_B,
[KEYMAP_INDEX(6, 6)] = KEY_RESERVED,
};
[T-Mobile myTouch 4G Slide] ranteo:
Realize most of the layouts here don't show a change for the .com button? I would like it to be .com but some roms make it a google search button instead.

Any layouts to specifically leave it as .com?
[T-Mobile myTouch 4G Slide] siani_8:
+1 for this
[T-Mobile myTouch 4G Slide] Blue6IX:
I am not sure I understand what you are asking?

None of the keylayouts in this thread touch the .com button (at least so far) so if it isn't stock then the creator of the ROM has changed it. What you would have to do is flash one of these if compatible, fix those files in the ROM, or pull them and post them here with a request so someone else can?

I get home internet speeds that make 56k dialup look fast, so given the size of a normal ROM at a couple hundred megs, that's hours of download time and it's a safe bet to assume I have none of the ROMs out there but my own - I have no source to pull the file from, and going to download one of them basically kicks me off the internet until it's done.
[T-Mobile myTouch 4G Slide] seidler2547:
Dead keys

Hi,

just wanted to add my input here:

I was quite annoyed with the www./.com button being a button that threw you into browser (because I hit it quite often). So I edited the doubleshot-keypad.kl (NB: not the .kcm) and changed or added (can't remember) the "KEY 150" definition (to DPAD_CENTER for me, because that allows me to use it as Ctrl/ESC in ConnectBot).

Also, it's nice to have localized umlaut mappings, but there's something better, which I knew from the Moto Milestone: dead keys.

For example, I have changed the alt+shift definition of "M" (which used to be ") to \u0308 (see here) which allows me to type "alt shift M a" to get an a with an umlaut, being "ä". Same: "alt shift M u" gives "ü" and so on. And "Ä" would be "alt shift M shift A", which is 5 keypressed, but still I find this faster than the onscreen selector!

I added the dead acute accent (\u0301) to alt+shift+N and grave accent (\u0300) to alt+shift+B (because this doesn't even have a printed alt value, but is right next to N). For the Spanish ñ I added alt+shift+AT (@/~ key) to be \u0303. I didn't do the ° because I don't need it, but could be added on alt+shift+O for example (would be \u030A), which makes a little bit of sense because O looks like the ring :).

Also, alt+shift+S is ß (\u00DF) for the Germans (like me ;) ) and alt+shift+C is ç (\u00E7) for the French.

All combining marks can be found on this website.

It's also nice to give meaning to alt+shift+J and alt+shift+K (being "(" and ")" before), which I did by giving them "<" and ">" (although "{" and "}" or "[" and "]" might also be an option, but I use <> more often).

Finally, I added the pipe (\u007C) to the alt+shift+L key, again, extremely useful in ConnectBot.

Hope that helps some! Maybe I can get around making an update.zip myself, or someone more experienced could do this?!

Stefan

P.S.: If someone could enlighten me about how to map the pretty useless "pressing the optical trackpad" action into something useful (e.g. DPAD_CENTER), I would be very grateful! Right now it generates an BTN_LEFT event, which just doesn't do anything at all!
[T-Mobile myTouch 4G Slide] siani_8:
I'm not sure if this counts as button remapping but......

I have $30.00 to the first person that constructs a flashable zip that will make the Trackpad Button wake/sleep the phone on Virtuous Inquisition like it does on Bulletproof.
[T-Mobile myTouch 4G Slide] bc54:
It does not generate a BTN_LEFT (or DPAD_LEFT as the doubleshot-keypad.kl file would say). That's just accidental scrolling on the trackpad. DPAD_CENTER is not mapped to any key, and also there is no "key" definition in the doubleshot-keypad.kl for the trackpad center. This post says it should be "key 272", but that did not work for me (running Virtuous Primadonna, ICS if that matters). I also saw somewhere (I forget where) that it could be "key 232", however that also did not work.

However, once someone does fin the appropiate "key" number for the trackpad center, anyone can implement trackpad wake by doing:

key XYZ DPAD_CENTER WAKE_DROPPED

I mapped the www. key to DPAD_CENTER and it woke the phone, so I'm confident that would work.

Finally, seidler2547, you created a great doubleshot-keypad.kcm but forgot to post it! I made one very similar to yours, slightly different, but with just as much alt+shift characters. It is attached and anyone can modify as they like. Don't bother asking for permission, it's not a big deal. Also attached is a modified doubleshot-keypad.kl with... "wake-on-www." Oooohhhhhh Aaaahhhhh! Shiny! ***THIS IS NOT A FLASHABLE .ZIP DON'T TRY. IT WONT WORK ANYWAY. YOU WILL NOT FEEL SMART IF YOU DO TRY.***

But seriously though, if anyone can figure out the key number for the trackpad center it would be greatly appreciated.

Thanks.
[T-Mobile myTouch 4G Slide] Blue6IX:
When I get home or before work tomorrow night I'll make it into a flashable and copy it forward to the OP.

Thanks!

Sent from a digital distance.
[T-Mobile myTouch 4G Slide] bc54:
Ok, so I have made some progress. Not on the trackpad wake, unfortunately. I figured out how to get the "www." button back to the original "www." functionality, and more.

First, here is a screenshot of how the alt, shift, and alt+shift combos are modified:

Now, a look at the regular SYM pop up:

Now the alt+SYM or shift+SYM or alt+shift+SYM:

The www. button now inserts www. Shift+www. or alt+www. inserts .com and alt+shift+www. results in this pop up:

So, as you can see this is a vast improvement over the stock doubeshot-keypad.[kcm/kl]. If you want to use this (Ice Cream Sandwich ONLY!!), download the doubleshot-keypad.zip attached to this post, then copy doubleshot-keypad.kl to /system/usr/keylayout/ and copy doubleshot-keypad.kcm to /system/usr/keychars/. Be sure to backup the previous files.

Thanks.