Hello everybody
First i dont own a Mi5 but in the newer version of the MIUI V8 Android 7 there is the problem that
a modified splash.img does not change the bootlogo which is shown on boot.
A friend of me (**@[email protected]**) asked if i could try my luck to get a new bootlogo on his phone. So i screwed around build a kernel and tried and tested... till i opened the logo.img file from the rom with a hex editor and tried to understand its header data.
With help from **GokulNC** i figured out how the file is build ( Thank you for that Goku! )
So i was able to rebuild the file with a modified script.
It seems to work!
But i could only test it at Hoschis phone so please feel free to write if something do not work or if there are errors or bugs.
For Windows i edited Gokus tool that it reads 5 pictures from its "pics" folder. ( put your pictures there and name them logo1.png till logo5.png )
I am not familiar with the windows powershell ( ok i wasnt with python either... ) so if somebody could write it better please tell me.
I tested it in a virtual machine with windows7 and was logged in as admin ( if somebody want to know ).
Instead i wrote a tool with a gui for linux. You can use one picture for all or set every single one.
You can adjust the resolution of each picture if you like.
I tested it on Mint and on a nacked virtualized Ubuntu.
Both tools can build a update.zip to easily install your new bootlogo.
How to use Logo_img_Maker for Linux
How to use Logo_img_Maker for Windows
I only have Windows in a virtual machine to test it but it should work.
I have had it running with the administrator account and it build well... some others had proplems.
Download the Logo_img_Maker_Windows.rar and unrar it
then put your 5 .png pictures in the pic folder and rename them to logo1.png logo2.png logo.3png logo4.png logo5.png
start the CREATE_LOGO.bat to build your logo.img / update.zip after that
Ok i have took this script directly from **GokuINC**s work. the only difference is
that the batchscript estimates logo1.png till logo5.png directly and dont ask if there is a file.
The direct link to **GokuINC**s work:
https://forum.xda-developers.com/mi-5/how-to/guide-how-to-create-custom-splash-t3425054
logo.img explained:
the original logo.img header got explained by **GokulNC** from xda-developers.com - big thanks
- without him this all could not have been possible!
The header from ori file is:
SPLASH!!
Width (of 5 pictures)
Height (of 5 pictures)
SUPPORT_RLE24_COMPRESSIONT (of 5 pictures) (1 means it is RLE encoded, 0 means RGB24)
Payload size/4096 (of 5 pictures)
(Offset/4096)-1 (of 5 pictures)
And the funny thing my script do:
SPLASH!!
Width (of 5 pictures)
Height (of 5 pictures)
SUPPORT_RLE24_COMPRESSIONT (of 5 pictures) (1 means it is RLE encoded, 0 means RGB24)
(Offset/4096)-1 (of 5 pictures)
and it works on "MIUI V8 Android 7" with a Mi5 (gemini)
I first tried to rebuild it like Gokus example ( and of course - in the hex editor it was clear the same as in the original logo.img ..
ok different sizes but all was calculatebale and logical)
but it didnt work....
So i poked around and got this working solution - tested on **@[email protected]**s Mi5
There are many things that arent clear as they should - but it works somehow
It shows the bootlogo equal if you boot to your system or your recovery.
I dont know really if the 5 pictures are all the same but different sizes or if they are different.
The original resolutions are:
logo picture 1 = 161x321
logo picture 2 = 558x992
logo picture 3 = 178x350
logo picture 4 = 1080x1920
logo picture 5 = 1080x1920
Update 04.06.2017 :
Windows tool now v0.2 = fixed installer script
XDA:DevDB Information
Mi5_logo_img_Maker, Tool/Utility for the Xiaomi Mi 5
Contributors
Cynob, GokulNC, @[email protected]
Version Information
Status: Testing
Created 2017-05-09
Last Updated 2017-05-09
First i dont own a Mi5 but in the newer version of the MIUI V8 Android 7 there is the problem that
a modified splash.img does not change the bootlogo which is shown on boot.
A friend of me (**@[email protected]**) asked if i could try my luck to get a new bootlogo on his phone. So i screwed around build a kernel and tried and tested... till i opened the logo.img file from the rom with a hex editor and tried to understand its header data.
With help from **GokulNC** i figured out how the file is build ( Thank you for that Goku! )
So i was able to rebuild the file with a modified script.
It seems to work!
But i could only test it at Hoschis phone so please feel free to write if something do not work or if there are errors or bugs.
For Windows i edited Gokus tool that it reads 5 pictures from its "pics" folder. ( put your pictures there and name them logo1.png till logo5.png )
I am not familiar with the windows powershell ( ok i wasnt with python either... ) so if somebody could write it better please tell me.
I tested it in a virtual machine with windows7 and was logged in as admin ( if somebody want to know ).
Instead i wrote a tool with a gui for linux. You can use one picture for all or set every single one.
You can adjust the resolution of each picture if you like.
I tested it on Mint and on a nacked virtualized Ubuntu.
Both tools can build a update.zip to easily install your new bootlogo.
How to use Logo_img_Maker for Linux
download the Logo_img_Maker_Linux.tar and untar it to your homefolder.
In the Logo_img_Maker_Linux folder check that the makeLogo.sh script is marked executeable.
Now start the Script with a double click ( run in terminal ) or start it with "./makeLogo.sh"
On start the script check if all necessary additional software is installed and if not try to install it with the apt-get tool.
To run the script succesful following programms are needed:
python; python-imaging; python-pit; imagemagick; zenity; zip
If a error occur the script shows it in the terminal window and maybe ask for your superuser password to install the missing things.
You can also run: "sudo apt-get install python python-imaging python-pit imagemagick zenity zip -y" first to set up your system.
How it works:
At first you see a Welcome screen. Click ok to get to a file selection dialog where you can select the .png file which will get your new bootlogo.
After that you can adjust the resolution if you like. Your original picture dont get edited (the script copy it first to a temporary folder).
If you dont want to let the "keep_size" radiobutton active and only press ok then.
So now you can decide if you want to use the selected picture for all slots in the logo.img file or to put a different for every single slot.
If you want more to know about it read "logo.img explained" in this readme
If you select
one4all:
your before selected picture get used for logo Nr.1
The Script resizes the other 4 to 161x321 to save space on disc
add more:
you have to select the other 4 pictures one after another and set its size like you did with the first one. Of course the sizes can differ
for each picture.
When you are done with one of the two options the logo.img get build.
If that was successful you will get asked if you want to generate a update.zip for your custom recovery.
If you dont want to the logo.img can be found in the output folder.
If you click yes the flashable zip get generated in the output folder too.
In the Logo_img_Maker_Linux folder check that the makeLogo.sh script is marked executeable.
Now start the Script with a double click ( run in terminal ) or start it with "./makeLogo.sh"
On start the script check if all necessary additional software is installed and if not try to install it with the apt-get tool.
To run the script succesful following programms are needed:
python; python-imaging; python-pit; imagemagick; zenity; zip
If a error occur the script shows it in the terminal window and maybe ask for your superuser password to install the missing things.
You can also run: "sudo apt-get install python python-imaging python-pit imagemagick zenity zip -y" first to set up your system.
How it works:
At first you see a Welcome screen. Click ok to get to a file selection dialog where you can select the .png file which will get your new bootlogo.
After that you can adjust the resolution if you like. Your original picture dont get edited (the script copy it first to a temporary folder).
If you dont want to let the "keep_size" radiobutton active and only press ok then.
So now you can decide if you want to use the selected picture for all slots in the logo.img file or to put a different for every single slot.
If you want more to know about it read "logo.img explained" in this readme
If you select
one4all:
your before selected picture get used for logo Nr.1
The Script resizes the other 4 to 161x321 to save space on disc
add more:
you have to select the other 4 pictures one after another and set its size like you did with the first one. Of course the sizes can differ
for each picture.
When you are done with one of the two options the logo.img get build.
If that was successful you will get asked if you want to generate a update.zip for your custom recovery.
If you dont want to the logo.img can be found in the output folder.
If you click yes the flashable zip get generated in the output folder too.
How to use Logo_img_Maker for Windows
I only have Windows in a virtual machine to test it but it should work.
I have had it running with the administrator account and it build well... some others had proplems.
Download the Logo_img_Maker_Windows.rar and unrar it
then put your 5 .png pictures in the pic folder and rename them to logo1.png logo2.png logo.3png logo4.png logo5.png
start the CREATE_LOGO.bat to build your logo.img / update.zip after that
Ok i have took this script directly from **GokuINC**s work. the only difference is
that the batchscript estimates logo1.png till logo5.png directly and dont ask if there is a file.
The direct link to **GokuINC**s work:
https://forum.xda-developers.com/mi-5/how-to/guide-how-to-create-custom-splash-t3425054
logo.img explained:
the original logo.img header got explained by **GokulNC** from xda-developers.com - big thanks
- without him this all could not have been possible!
The header from ori file is:
SPLASH!!
Width (of 5 pictures)
Height (of 5 pictures)
SUPPORT_RLE24_COMPRESSIONT (of 5 pictures) (1 means it is RLE encoded, 0 means RGB24)
Payload size/4096 (of 5 pictures)
(Offset/4096)-1 (of 5 pictures)
And the funny thing my script do:
SPLASH!!
Width (of 5 pictures)
Height (of 5 pictures)
SUPPORT_RLE24_COMPRESSIONT (of 5 pictures) (1 means it is RLE encoded, 0 means RGB24)
(Offset/4096)-1 (of 5 pictures)
and it works on "MIUI V8 Android 7" with a Mi5 (gemini)
I first tried to rebuild it like Gokus example ( and of course - in the hex editor it was clear the same as in the original logo.img ..
ok different sizes but all was calculatebale and logical)
but it didnt work....
So i poked around and got this working solution - tested on **@[email protected]**s Mi5
There are many things that arent clear as they should - but it works somehow
It shows the bootlogo equal if you boot to your system or your recovery.
I dont know really if the 5 pictures are all the same but different sizes or if they are different.
The original resolutions are:
logo picture 1 = 161x321
logo picture 2 = 558x992
logo picture 3 = 178x350
logo picture 4 = 1080x1920
logo picture 5 = 1080x1920
Update 04.06.2017 :
Windows tool now v0.2 = fixed installer script
XDA:DevDB Information
Mi5_logo_img_Maker, Tool/Utility for the Xiaomi Mi 5
Contributors
Cynob, GokulNC, @[email protected]
Version Information
Status: Testing
Created 2017-05-09
Last Updated 2017-05-09
Attachments
-
257.5 KB Views: 413
-
7.8 MB Views: 1,041
-
769 KB Views: 763
-
5.9 MB Views: 904
-
1.1 MB Views: 1,653
-
7.5 MB Views: 2,121
Last edited: