Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,576 Members 44,227 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
bombadier
Old
#11  
bombadier's Avatar
Senior Member
Thanks Meter 1,711
Posts: 2,054
Join Date: Jul 2010
Location: The Borders

 
DONATE TO ME
Quote:
Originally Posted by lineaira View Post
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
 
lineaira
Old
(Last edited by lineaira; 16th March 2012 at 01:52 PM.)
#12  
Member
Thanks Meter 18
Posts: 64
Join Date: Mar 2010
Default 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)
The Following 2 Users Say Thank You to lineaira For This Useful Post: [ Click to Expand ]
 
bombadier
Old
(Last edited by bombadier; 16th March 2012 at 02:33 PM.)
#13  
bombadier's Avatar
Senior Member
Thanks Meter 1,711
Posts: 2,054
Join Date: Jul 2010
Location: The Borders

 
DONATE TO ME
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?
 
lineaira
Old
#14  
Member
Thanks Meter 18
Posts: 64
Join Date: Mar 2010
Quote:
Originally Posted by bombadier View Post
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: [ Click to Expand ]
 
Myrmidon83
Old
#15  
Senior Member
Thanks Meter 10
Posts: 113
Join Date: 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.
Current Phone:
Motorola Moto G

Retired Phones:
HTC Wildfire, HTC Desire Z, Motorola Razr MAXX
 
lineaira
Old
#16  
Member
Thanks Meter 18
Posts: 64
Join Date: Mar 2010
Quote:
Originally Posted by Myrmidon83 View Post
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
 
dicko99
Old
#17  
Senior Member - OP
Thanks Meter 1
Posts: 167
Join Date: May 2008
Lineaira,

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

Regards,
Richard
HTC One M7 - AHRD 71
HTC One X+ - AHRD 8.0
Asus Transformer - PRIME! v2.1.1
HTC Desire Z - Cyanogenmod 7.2 Earpiece broke
HTC Touch Pro 2 on T-Mobile UK Drowned
HTC Vox - WM6.1 CLEAN v1.4
 
setspeed
Old
#18  
Senior Member
Thanks Meter 134
Posts: 941
Join Date: May 2009
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)
--------------------------------------
POSSIBLY MY NEXT
Moto X+1

CURRENT
Phone :: Google Nexus 5
ROM :: Mahdi-ROM 2.7
Kernel: ElementalX

RETIRED / SOLD / STOPPED WORKING
Phone :: Samsung Galaxy S3, HTC Desire Z, HTC Desire, TMobile G1

BRIEFLY FLIRTED WITH
Phone :: Google Nexus 4, Samsung Galaxy S i9000, Google Nexus 1
 
lineaira
Old
#19  
Member
Thanks Meter 18
Posts: 64
Join Date: Mar 2010
Quote:
Originally Posted by setspeed View Post
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
 
bombadier
Old
#20  
bombadier's Avatar
Senior Member
Thanks Meter 1,711
Posts: 2,054
Join Date: Jul 2010
Location: The Borders

 
DONATE TO ME
Quote:
Originally Posted by lineaira View Post
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes