Post Reply

[Q] How do I get a sign with CM7 on a UK DZ?

OP dicko99

16th March 2012, 11:47 AM   |  #11  
bombadier's Avatar
Senior Member
Flag The Borders
Thanks Meter: 1,736
 
2,082 posts
Join Date:Joined: Jul 2010
Donate to Me
More
Quote:
Originally Posted by lineaira

You can pull them from your phone with adb. Then edit them with a program like hexeditor.

I can't explain how, as I do not have any *.bin files on my phone or other rom.
If I can find one somewhere in a download or something (you are on CM7 if I'm right) I'll post instructions tomorrow about how to do it. If you'd like me to, that is.

If you could I would be interested
16th March 2012, 01:45 PM   |  #12  
Member
Thanks Meter: 18
 
64 posts
Join Date:Joined: Mar 2010
More
HOW TO: remap the back to FN+Z
Okay here we go.


Before we begin, I suppose that you all know how to set up an adb session with your phone..
And you need this program to be installed on your PC:
Free Hex Editor Neo
You should make a backup of your current working ROM with your favorite recovery, so if something goes wrong, you can just reflash the backup, instead of loosing all your data and settings.

Now start a cmd prompt on your pc (Windowskey+R, type "cmd" hit enter)
browse to your platform-tools directory (cd path-to-platformtools)
Make sure your phone is connected:
Code:
adb devices
And execute these lines:

Code:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
exit
You can now read and write to the /system folder on your phone.

Next you need to pull the *.kcm.bin file you'd like to edit. (For the OP this is most likely the "vision-keypad.kcm.bin" or the "vision-keypad-wwe.kcm.bin", but if they aren't the ones used.. then try and edit the "qwerty.kcm.bin" or "generic.kcm.bin" files)

This is done by entering the following:

Code:
adb pull /system/usr/keychars/vision-keypad-wwe.kcm.bin /tmp/vision-keypad-wwe.kcm.bin
Or one of the many other files if this one isn't working.

Minimize the cmd screen for now and browse on your computer to the platform-tools folder (or the folder where you executed the adb from) there should be an new folder called "tmp", in that folder you'll find the file you just pulled from your phone.
Hit it with a right mouse-click and click "Edit with HDD Hex Editor Neo". (If that option is not available, start the Hex Editor and open the file from within the editor)

The first row and columns are blue, except for the first one on the far left-top side, this one is white.
Click it and type: "0000027c" and hit enter.
Now there are some hexadecimals selected in green. On the far right side of that row should be something like this: "6...Z.9.z.Z"
(If that isn't the case, find the line that does look like that and edit that line)

In the green field you've got, change the value to: "a3" (just type)
The cursor will automatically go to the next value, which is "00" leave that.
Press the arrow-key to the right once and edit that value to "a3" as well.

The field on the right side should now display something like: "6...Z.9.z.Z..."

That's it, save the file and push it back to your phone by entering the following in the cmd window you minimized:

Code:
adb push /tmp/vision-keypad-wwe.kcm.bin /system/usr/keychars/vision-keypad-wwe.kcm.bin
Then restart the phone and it should be working!

----
I used the file in the .zip attached as my example file, to see how to do it.
Attached Files
File Type: zip vision-keypad.kcm.zip - [Click for QR Code] (564 Bytes, 8 views)
Last edited by lineaira; 16th March 2012 at 01:52 PM.
The Following 2 Users Say Thank You to lineaira For This Useful Post: [ View ]
16th March 2012, 02:27 PM   |  #13  
bombadier's Avatar
Senior Member
Flag The Borders
Thanks Meter: 1,736
 
2,082 posts
Join Date:Joined: Jul 2010
Donate to Me
More
Where do you get the list of codes ? Need the Euro Symbol code ? __=€
Thanks
Edit google is my friend,tried 80 which shows in my file but just get a blank keypress?
Last edited by bombadier; 16th March 2012 at 02:33 PM.
16th March 2012, 03:06 PM   |  #14  
Member
Thanks Meter: 18
 
64 posts
Join Date:Joined: Mar 2010
More
Quote:
Originally Posted by bombadier

Where do you get the list of codes ? Need the Euro Symbol code ? __=
Thanks
Edit google is my friend,tried 80 which shows in my file but just get a blank keypress?

The Euro sign is set in the X key.

That line is: "4...X.x.X."

If you want it in the Z key, type "0000027c" in the left top box and hit enter, type "ac20ac20" That'll give you the euro sign. Then the field on the right looks like this: "6...Z.z.Z.- - "

If you want it in the X key, type "0000025c" in the left top box and hit enter, type "ac20ac20" That'll give you the euro sign. (string on the right looks like: "4...X.x.X.- - ")
The Following User Says Thank You to lineaira For This Useful Post: [ View ]
17th March 2012, 07:58 PM   |  #15  
Senior Member
Thanks Meter: 10
 
113 posts
Join Date:Joined: Jun 2011
Thanks for that!

It'll be fun trying this on Linux.

I'll let you know how I get on when I find the time.
19th March 2012, 11:58 AM   |  #16  
Member
Thanks Meter: 18
 
64 posts
Join Date:Joined: Mar 2010
More
Quote:
Originally Posted by Myrmidon83

Thanks for that!

It'll be fun trying this on Linux.

I'll let you know how I get on when I find the time.

For linux you can do the same as you need to do for windows. The only thing is that you have to find software which can edit binary files. A nice GUI based editor is ghex.

it's available in the universe repository.
Code:
$ sudo apt-get install ghex
20th March 2012, 03:04 PM   |  #17  
OP Senior Member
Thanks Meter: 1
 
167 posts
Join Date:Joined: May 2008
Lineaira,

Thanks for this info. It worked fine! I now have a GBP sign on Fn-Z.

Regards,
Richard
21st March 2012, 12:34 AM   |  #18  
Senior Member
Thanks Meter: 142
 
971 posts
Join Date:Joined: May 2009
More
Easier way. Download the attached file, unzip it and place the contained file on the root of your sdcard, then type in the following commands using Terminal Emulator:

su
mount -o rw,remount /system
busybox cp /sdcard/vision-keypad-wwe.kcm.bin /system/usr/keychars
reboot

Found this over at the Cyanogenmod forums ages ago
Attached Files
File Type: zip vision-keypad-wwe.kcm.bin.zip - [Click for QR Code] (591 Bytes, 16 views)
21st March 2012, 08:01 AM   |  #19  
Member
Thanks Meter: 18
 
64 posts
Join Date:Joined: Mar 2010
More
Quote:
Originally Posted by setspeed

Easier way. Download the attached file, unzip it and place the contained file on the root of your sdcard, then type in the following commands using Terminal Emulator:

su
mount -o rw,remount /system
busybox cp /sdcard/vision-keypad-wwe.kcm.bin /system/usr/keychars
reboot

Found this over at the Cyanogenmod forums ages ago

It is easier, but not as much fun and satisfying as doing it yourself, I'd say;p
21st March 2012, 02:46 PM   |  #20  
bombadier's Avatar
Senior Member
Flag The Borders
Thanks Meter: 1,736
 
2,082 posts
Join Date:Joined: Jul 2010
Donate to Me
More
Quote:
Originally Posted by lineaira

It is easier, but not as much fun and satisfying as doing it yourself, I'd say;p

Exactly,I wanted to learn how to do it myself and now that I know I would say it is just as easy to pull the file from the phone make my edits push it back and job done don't even have to reboot,thanks again for the guidance Lineaira

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes