View Single Post
raandoom's Avatar
Posts: 46 | Thanked: 131 times | Joined on Jul 2011 @ Russia, Moscow area
#34
Don't know is there some people who interested in it, but why not. Maybe later, in my free time, i will post how to use icons and logo with custom width and height.

A couple of weeks ago i had a little upgrade my elf Let it be version 1.1. Now elf can compress any files (first version work correct only with files that have 59904 bytes size).
For what? Now it is possibble to compress images for changing USB and R&D icons
You can find elf in attached archive.

General FAQ about changing Nokia logo

Fast FAQ for changing USB and R&D icons
(If have questions - go to general FAQ)

1. Preparing icons
Format of icons must be the same as in general FAQ (16bpp BMP)
Icon sizes:
- 40x40 for USB
- 64x54 for R&D

2. Compress icons
Your actions for compress the same as in general FAQ:
- get RAW from your images
- rename RAW to "rawbmp.bin", run elf and get compressed image in "logo.bin"

3. Checking size of compressed images
There is limitations for size of compressed image:
- "logo.bin" for USB icon must be less or equal to 1089 bytes
- "logo.bin" for R&D icon must be less or equal to 3954 bytes

If all ok - next step, if not - edit your image for decreasing it's compressed size.

4. Patch "secondary.bin"
for USB icon:

Code:
dd if=logo.bin of=secondary.bin bs=1 seek=82596 conv=notrunc
And again, better if we write value with new size of USB icon to "secondary.bin":
* In this example size of "logo.bin" with USB icon equal to 1089 bytes, it is 0x441 bytes, that mean '\x41\x04'

Code:
echo -ne '\x41\x04' | dd of=secondary.bin bs=1 seek=33598 conv=notrunc
echo -ne '\xBF\xF8\x56\x61' | dd of=secondary.bin bs=1 seek=33252 conv=notrunc
echo -ne '\x3C' | dd of=secondary.bin bs=1 seek=33584 conv=notrunc
for R&D icon:

Code:
dd if=logo.bin of=secondary.bin bs=1 seek=71976 conv=notrunc
And again, better if we write value with new size of R&D icon to "secondary.bin":
* In this example size of "logo.bin" with R&D icon equal to 3954 bytes, it is 0xF72 bytes, that mean '\x72\x0F'

Code:
echo -ne '\x72\x0F' | dd of=secondary.bin bs=1 seek=33596 conv=notrunc
echo -ne '\xBF\xF8\x70\x61' | dd of=secondary.bin bs=1 seek=33226 conv=notrunc
echo -ne '\x3C' | dd of=secondary.bin bs=1 seek=33584 conv=notrunc
* Third command in both cases is the same. I write so for those who decide change only one icon. Because this command (third) is required for correct patching value with size of "logo.bin". If you change both icons - you can enter this command (third) only once.

Thats all, flash your phone with new "secondary.bin"
Attached Files
File Type: zip logo_compress.elf.v.1.1.zip (2.5 KB, 173 views)

Last edited by raandoom; 2012-05-01 at 14:23.
 

The Following 9 Users Say Thank You to raandoom For This Useful Post: