Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,734,168 Members 51,339 Now Online
XDA Developers Android and Mobile Development Forum

[APP] Moto X/G/E boot logo command line tool

Tip us?
 
marmottepoilue
Old
(Last edited by marmottepoilue; Today at 11:14 AM.)
#1  
Junior Member - OP
Thanks Meter 10
Posts: 7
Join Date: Jul 2014
Prompt [APP] Moto X/G/E boot logo command line tool

Here is a small windows command line tool to manage boot logo (android 4.4.x) on moto X/G/E with unlocked bootloader

With this tool you can mainly create your own custom boot logo and/or remove warning message.
You can also list, extract, replace, remove image from a boot logo file or create a new one from scratch.

The tool can accept a large variety of image format, but prefer using a non-destructive format like BMP or PNG.
Images are exported as PNG.

Code:
Usage:
mlogo <logo_filename> command [arguments]
Commands:
mlogo <logo_filename> list
        list logo contents
mlogo <logo_filename> extractall
        extract logo contents
mlogo <logo_filename> create
        create a new empty logo
mlogo <logo_filename> append <name> <image_filename>
        append image to an existing logo
mlogo <logo_filename> replace <name> <image_filename>
        replace image in an existing logo
mlogo <logo_filename> remove <name>
        remove image in an existing logo
mlogo <logo_filename> extract <name>
        extract image from an existing logo
Create a custom logo:
Your image can have any size less or equal to your phone's native which is:
Moto X/G: 720x1280
Moto E: 540x960

If your image resolution is less than phone's native:
Changes are done by the phone not by this tool
- it will be centered vertically and horizontally
- the background color not covered by your image will be the same as the top-left pixel of your image.

List the content of your current logo:
mlogo logo.bin list

Replace the image you want to change with yours:
Start logo on unlocked bootloader:
mlogo logo.bin replace logo_unlocked mylogo.png
Empty battery logo:
mlogo logo.bin replace logo_battery mylogo.png
Low power logo (moto E):
mlogo logo.bin replace logo_lowpower mylogo.png
Unplug logo (moto E):
mlogo logo.bin replace logo_unplug mylogo.png

Thanks to:
Carock, for explanations on boot logo RLE image encoding.

Changes:
v1.01 change errorlevels behavior
return errorlevel 0 on succes and errorlevel 1 on error

mlogo v1.01.zip SHA-1:
189120A78080DA0605D26F0282F8C25EB292E0EE
Attached Files
File Type: zip mlogo v1.01.zip - [Click for QR Code] (1.02 MB, 48 views)
The Following 5 Users Say Thank You to marmottepoilue For This Useful Post: [ Click to Expand ]
 
KidJoe
Old
#2  
KidJoe's Avatar
Senior Member
Thanks Meter 650
Posts: 1,730
Join Date: Aug 2008
Location: Thorndale/Romansville, PA
This tool appears to be dealing only with Logo.bin... and not CLOGO... so you might want to clarify this is for unlocked bootloaders only.


Does this tool resize any images that are larger than 1280x720? And does it take into account needing a solid border around the edges if there isn't one?
aka Mark_Venture

My Moto X tips and info

Currently using Verizon Moto X Developer Edition on my personal line.. But I have too many devices to choose from for work and personal... For the full list click -> HERE <-

Sign up for Dropbox -> HERE
 
marmottepoilue
Old
(Last edited by marmottepoilue; 18th July 2014 at 08:15 PM.)
#3  
Junior Member - OP
Thanks Meter 10
Posts: 7
Join Date: Jul 2014
Yes the tool only manage logo.bin container and don't care of image size or number.

Quote:
Originally Posted by KidJoe View Post
And does it take into account needing a solid border around the edges if there isn't one?
Are you sure for the solid border around the edges ?
I generate random noise image and it display without problem.
 
KidJoe
Old
#4  
KidJoe's Avatar
Senior Member
Thanks Meter 650
Posts: 1,730
Join Date: Aug 2008
Location: Thorndale/Romansville, PA
Quote:
Originally Posted by marmottepoilue View Post
Yes the tool only manage logo.bin container and don't care of image size or number.



Are you sure for the solid border around the edges ?
I generate random noise image and it display without problem.
Yup. I am very sure.. See -> http://forum.xda-developers.com/show...&postcount=150

and more recently a specific example with walk through and samples -> http://forum.xda-developers.com/show...&postcount=408

And over sized images (greater than 1280x720) will also cause issues, at least when replacing the unlocked bootloader warning message.
aka Mark_Venture

My Moto X tips and info

Currently using Verizon Moto X Developer Edition on my personal line.. But I have too many devices to choose from for work and personal... For the full list click -> HERE <-

Sign up for Dropbox -> HERE
 
marmottepoilue
Old
#5  
Junior Member - OP
Thanks Meter 10
Posts: 7
Join Date: Jul 2014
Quote:
Originally Posted by KidJoe View Post
and more recently a specific example with walk through and samples -> http://forum.xda-developers.com/show...&postcount=408
I make the test on moto G (android 4.4.4) with IMAG0434.bmp (legoland toy story without border) from your post and it works.

I think the carock's script you used has issues.
 
KidJoe
Old
(Last edited by KidJoe; 19th July 2014 at 04:58 PM.)
#6  
KidJoe's Avatar
Senior Member
Thanks Meter 650
Posts: 1,730
Join Date: Aug 2008
Location: Thorndale/Romansville, PA
Quote:
Originally Posted by marmottepoilue View Post
I make the test on moto G (android 4.4.4) with IMAG0434.bmp (legoland toy story without border) from your post and it works.

I think the carock's script you used has issues.
Ok. I just took the logo.bin from the Verizon 4.4.2 rom, placed it in the folder with your tool. Added IMAG0434.bmp to the folder, then ran the following... mlogo logo.bin replace logo_unlocked imag0434.bmp

I then used mfastboot to flash the resulting logo.bin. It does work. So is it an issue in Carock's script itself? or FFMPEG which he is using?

Btw, doing the same using an oversized image (i.e. greater than 1280x720) with your tool does result in a scrambled screen when booting, but at least it boots and doesn't get hung.

Doing a mlogo logo-chrimbus.bmp.bin extract logo_unlocked (from a previously created logo.bin I made using carock's script) works. I get the proper 1280x720 png image.

Are there any conditions to changing the battery graphic?
aka Mark_Venture

My Moto X tips and info

Currently using Verizon Moto X Developer Edition on my personal line.. But I have too many devices to choose from for work and personal... For the full list click -> HERE <-

Sign up for Dropbox -> HERE
 
marmottepoilue
Old
(Last edited by marmottepoilue; 20th July 2014 at 06:27 PM.)
#7  
Junior Member - OP
Thanks Meter 10
Posts: 7
Join Date: Jul 2014
Quote:
Originally Posted by KidJoe View Post
Are there any conditions to changing the battery graphic?
I've not tested but it should be the same.

If you want to automatically reduce images greater than phone resolution you can use XnView nconvert:
nconvert.exe -ratio -rtype lanczos -rflag decr -resize 720 1280 image.png

I also updated my first post to explain how images with resolution lesser than phone's are managed.
The Following User Says Thank You to marmottepoilue For This Useful Post: [ Click to Expand ]
 
TheStrix
Old
#8  
TheStrix's Avatar
Senior Member
Thanks Meter 76
Posts: 264
Join Date: May 2014
Location: Mumbai

 
DONATE TO ME
Is this tool also available for Linux OS??
Press THANKS if I deserve it!!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...