Moto X Boot Logos

Bill Idol

Senior Member
Aug 4, 2007
607
51
0
San Francisco
Tell me where it can be found and I'll give it a shot.



I attached what I believe is the correct bootanimation.zip which is found in /data/local/moodle

Edit: found out how to find and back up the purple boot logo. Looks like this. Uploaded to imgur so everyone can see it and also to dropbox so you don't have to rename it. It's a 4mb bmp.



https://www.dropbox.com/s/r17e78p82r9ron2/clogo.bmp
Thanks brudda

Sent from my XT1060 using Xparent Cyan Tapatalk 2
 

bgdc

Member
Dec 19, 2013
7
0
0
Attached purple motorola logo bin file, as requested.
It doesn't include the "motorola a google company", but it does include the empty battery logo in the bin.
Thanks. Now i need to find a way to nuke that animation when I reboot my phone. Moodles...moodles...off to kill the moodles.
 

cannondale0815

Senior Member
Apr 21, 2009
583
216
63
I tried everything and i couldn't find a way to open it in GIMP, it just refused to open the .bin or .raw extensions!
You have to change the file extension to ".data" for GIMP to correctly identify it as a RAW image. This worked for me. I also figured out that the dimension is 540 x 1620 (for the three-image logo type with the battery image), and the Palette Type is "B, G, R, X".

But I still have issues with the correct offset.
 
  • Like
Reactions: mschumacher69

KidJoe

Inactive Recognized Contributor
Aug 23, 2008
3,208
1,560
0
Thorndale/Romansville, PA
Attached purple motorola logo bin file, as requested.
It doesn't include the "motorola a google company", but it does include the empty battery logo in the bin.
Thank you!

Can you share how you replaced the individual image?

I would love to change the warning message to the jeweled logo in the OP (the box art).
 
Last edited:

carock

Member
Dec 13, 2013
31
99
0
Thanks. Now i need to find a way to nuke that animation when I reboot my phone. Moodles...moodles...off to kill the moodles.
\data\local\moodle\bootanimation.zip
If you rename the file (e.g. bootanimation.zip.bak), you should only see the boot logo during startup. At least that's what happened when I tried to replace it with an incorrectly formatted bootanimation :p


You have to change the file extension to ".data" for GIMP to correctly identify it as a RAW image. This worked for me. I also figured out that the dimension is 540 x 1620 (for the three-image logo type with the battery image), and the Palette Type is "B, G, R, X".

But I still have issues with the correct offset.
Thank you!

Can you share how you replaced the individual image?

I would love to change the warning message to the jeweled logo in the OP (the box art).
All the info is in the file header:
logo_boot
starts at 0x200, is 0xD5930 bytes
logo_battery
starts at 0xD5C00, is 0xD5930 bytes
logo_unlocked
starts at 0x1AB600, is 0xD5930 bytes

If you do the math, that leaves a buffer between the logos of 0xD0 bytes.
As for the image formats. They are all 540x540 and BGR-24bit, except logo_boot is RGB-24bit.

What I did, was remove the logo_unlocked (everything after 0x1AB600), and append my own image.
I used ffmpeg to convert a 540x540 bmp to the correct format:
Code:
ffmpeg -i logo.bmp -f rawvideo -s 540x540 -pix_fmt bgr24 logo.raw
 

cannondale0815

Senior Member
Apr 21, 2009
583
216
63
All the info is in the file header:
logo_boot
starts at 0x200, is 0xD5930 bytes
logo_battery
starts at 0xD5C00, is 0xD5930 bytes
logo_unlocked
starts at 0x1AB600, is 0xD5930 bytes

If you do the math, that leaves a buffer between the logos of 0xD0 bytes.
As for the image formats. They are all 540x540 and BGR-24bit, except logo_boot is RGB-24bit.

What I did, was remove the logo_unlocked (everything after 0x1AB600), and append my own image.
I used ffmpeg to convert a 540x540 bmp to the correct format:
Code:
ffmpeg -i logo.bmp -f rawvideo -s 540x540 -pix_fmt bgr24 logo.raw
Carock, this is hugely useful, you clearly know your stuff. I am honestly a bit of a rookie when it comes to image manipulation. What's the best way to accomplish cutting off the last image before apending the new one?

Thanks
-J
 

carock

Member
Dec 13, 2013
31
99
0
Carock, this is hugely useful, you clearly know your stuff. I am honestly a bit of a rookie when it comes to image manipulation. What's the best way to accomplish cutting off the last image before apending the new one?

Thanks
-J
I would suggest using a hex editor. If you're using windows, you can try a program called Frhed. It has an option under the edit menu to delete a section by offset and size. And you can also insert a file, under the file menu, wherever you place the cursor. I attached the bin file with the logo_unlocked already removed for use/reference.

Cheers.
 

Attachments

  • Like
Reactions: cannondale0815

darkgodz

Senior Member
Oct 26, 2011
562
200
0
Sealy
anyone able to take a request for making a few of the custom images with the battery info? :confused:

thought i'd add, im on 4.4, unlocked but not rooted.
 

Attachments

Last edited:

carock

Member
Dec 13, 2013
31
99
0
Got bored and decided to decipher the compressed 4.4 logo bin.

The header is the same format as the old logo bin, but the image data is compressed using an odd algorithm.

There is a header for each image now too. Each starts with 0x4d6f746f52756e (MotoRun in hex), followed by 0x00, followed by 2bytes for the horizontal resolution, and 2bytes for the vertical resolution. Such as, 0x4d6f746f52756e0002d00500 would be for a 720x1280 image.
Basically, each chunk of the image is preceded by a 0x8 or 0x0, followed by a 12bit number.
For 0x8, the number that follows signifies how many times to repeat the next 3bytes as RGB (or BGR) pixels. With a maximum number of repetitions being the horizontal resolution. For instance, 0x82D0FFFFFF would be 720 white pixels.
For 0x0, the number that follows signifies how many 24bit(3byte) pixels will follow. For instance, 0x0002FFFFFF000000 would be 1 white pixel followed by 1 black pixel.
And that's basically it. With one extra rule, that you cant repeat 2 of the same color pixels using 0x8. Such that 0x8002FFFFFF wouldn't occur. It would instead be 0x0002FFFFFFFFFFFF.

I've tested this with a script to decompress the images, and I've also compressed other images with this method. Both work fine.


anyone able to take a request for making a few of the custom images with the battery info? :confused:

thought i'd add, im on 4.4, unlocked but not rooted.
attached (tested & worked for me)
 

Attachments

Last edited:

darkgodz

Senior Member
Oct 26, 2011
562
200
0
Sealy
Got bored and decided to decipher the compressed 4.4 logo bin.

The header is the same format as the old logo bin, but the image data is compressed using an odd algorithm.

There is a header for each image now too. Each starts with 0x4d6f746f52756e (MotoRun in hex), followed by 0x00, followed by 2bytes for the horizontal resolution, and 2bytes for the vertical resolution. Such as, 0x4d6f746f52756e0002d00500 would be for a 720x1280 image.
Basically, each chunk of the image is preceded by a 0x8 or 0x0, followed by a 12bit number.
For 0x8, the number that follows signifies how many times to repeat the next 3bytes as RGB (or BGR) pixels. With a maximum number of repetitions being the horizontal resolution. For instance, 0x82D0FFFFFF would be 720 white pixels.
For 0x0, the number that follows signifies how many 24bit(3byte) pixels will follow. For instance, 0x0002FFFFFF000000 would be 1 white pixel followed by 1 black pixel.
And that's basically it. With one extra rule, that you cant repeat 2 of the same color pixels using 0x8. Such that 0x8002FFFFFF wouldn't occur. It would instead be 0x0002FFFFFFFFFFFF.

I've tested this with a script to decompress the images, and I've also compressed other images with this method. Both work fine.



attached (tested & worked for me)
:victory: :highfive: :D
 

carock

Member
Dec 13, 2013
31
99
0
Script? Can you share?

Or write up a process for us to make our own logo.bin for kitkat?
I cleaned up my scripts and made them more universal and friendly. Rough scripting, so it might not be perfect (or very efficient).
File attached.

This was made for windows. You'll need to install perl and ffmpeg and add them to your path for this to work properly. If you're running linux, I'm sure you can figure out how to adjust it.

Once you've done that, simply place your 720x1280 image in the folder and run the compress.bat. You'll be prompted to enter the image name. I'd recommend a lossless format, but any image file should work.
This will output a logo.bin that should work fine. It will also output a file called logo-moto.raw, which is the raw compressed file. I did this in case you want to run my decompress bat file on it and check if it outputs the correct image.

Hope this helps.
Oh, and of course, I'm not responsible if anyone damages their phone/pc from using this :p
 

Attachments