THIS POST IS BASED ON THE ON A POST OF THE MI 9 FORUM
The Mi 9T Logo.img contains 4 images in BMP format.
1. The regular LOCKED boot screen
2. The Fastboot screen
3. The UNLOCKED boot screen
4. The system destroyed screen
Image dimensions MUST be in 1080x2340 format BMP 24Bit. (Check to see if your file size of each individual picture is 6.2MB when you create one)
During boot Xiaomi displays picture 1 and if unlocked, then picture 3. So if you want a consistent appearance you have to have both set to the same picture.
The python script is about as simple as it gets. The only annoying thing was to find the proper offsets for the Mi 9T.
Replace the images with the new ones that you would like displayed..and you are ready to run the script.
Usage of the python script would be : python mi9T_logo.py and thats it. (Of course this all depends on your environment)
Once the script is done you should see a file called : logo_new_mi9T.img in the directory.
This one you can simply flash via fastboot.
Command is like this : fastboot flash logo logo_new_mi9.img
EXTRA: you can make this without a PC! Just use the QPython app (available on Play Store) and put the bmp files on /sdcard/qpython/*here* and the script on /sdcard/qpython/script3/*here* and run the script
Source: https://forum.xda-developers.com/Mi-9/themes/mi-9-splash-boot-image-creation-script-t3952572
Related
Hi there, yes I know, there are some threads about this, but nothing special about our HTC LEGEND...
Somebody tried to install a custom splash-screen?
Or somebody created a custom-splash screen for HTC Legend?
I´ve found a tool for G1, that creates a splash-screen, but I don´t know if it works on my Legend... Don´t wanna brick it
TheGrammarFreak created one from my bootanimation, see HERE
As for myself I have no idea howto
Get the image you want. It needs to be 320 pixels wide and 480 high. Save it out as a 24 bit bmp file called splash1 (ms paint does the job). Any name will do, but for the sake of this guide we'll use that.
Download this tool and extract it into a known directory. Put the bmp you created earlier in there. Open cmd (if you're on windows) and cd into that directory (cd C:\nbimg for example) then run this command:
Code:
nbimg -F splash1.bmp -w 320 -h 480
Take the output file and change the extension to .img
To install:
Reboot your phone to fastboot mode
Code:
fastboot flash splash1 C:\nbimg\splash1.img
Yeah guys, u r cool!
For all other, who need the Converter, here's it:
http://forum.xda-developers.com/showpost.php?p=2366042&postcount=1
Thank u sooo much!
Crap, I forgot to link. Sorry mate, but you found it anyway
This one is better!
WARNING: Your input image shoud be 320 * 480 pixels!!!
All credits goes to: DeToX-cz
Forum thread: http://forum.xda-developers.com/showthread.php?t=537515
ogo2 said:
This one is better!
WARNING: Your input image shoud be 320 * 480 pixels!!!
Click to expand...
Click to collapse
Why is it better?
TheGrammarFreak said:
Why is it better?
Click to expand...
Click to collapse
It's easy to use, it has nice GUI, no cmd line...
ogo2 said:
It's easy to use, it has nice GUI, no cmd line...
Click to expand...
Click to collapse
Oh, boring then.
A tool without command line functionality doesn't deserve to be called a tool
Sent from my HTC Legend
Ha! I win, I have the almighty BlaY0 on my side
Linux users…
For those of you who use Linux:
1.: Download View attachment splash1script.zip, and extract it somewhere convenient.
2.: Create an image in GIMP with the dimensions 320x480. (You may also use an image from the web, and resize it to 320x480 in GIMP.)
3.: In GIMP go to "Save As…" (or press "CTRL+SHIFT+s").
4.: Browse to where you extracted the script.
5.: Click "Select File Type (By Extension)".
6.: Scroll down and select "Windows BMP image".
7:: Name the file "splash1" (without ""), for your own convenience.
8.: Click "Advanced Options".
9.: Choose "24 Bits" - "R8 G8 B8".
10.: Click "Save".
11.: Open a "Terminal" (Either with "Applications>Accessories>Terminal" or with "CTRL+ALT+t").
12.: "cd" to the folder where you extracted the script and saved your image. (For example: "cd ~/Downloads".)
13.: Write "./splash1script splash1.bmp".
14.: Follow the instructions in "Terminal".
15.: Done.
-Torkiliuz
It's show the "Device not allowed" when I flash the splash1. I chenck the /proc/mtd, There is no partition of splash1. How can I flash it?
Do u have S-OFF from alpharev installed?
If not, u can´t install it...sorry
I can't get it to flash - it isn't finding my device when it's in fastboot, only when it's in recovery mode, or just on.
I've flashed AlphaRev and it created the .raw65 image successfully, but my device isn't recognised by the script, nor by the adb, when it's in fastboot mode.
Even booting into recovery, starting an adb shell, and using 'reboot bootloader' just disconnects the device. I have no idea how to fix it.
I'm using the linux tool on Ubuntu btw, and I've definitely flashed to the bootloader before (can't remember what, though)
TheGrammarFreak said:
Get the image you want. It needs to be 320 pixels wide and 480 high. Save it out as a 24 bit bmp file called splash1 (ms paint does the job). Any name will do, but for the sake of this guide we'll use that.
Download this tool and extract it into a known directory. Put the bmp you created earlier in there. Open cmd (if you're on windows) and cd into that directory (cd C:\nbimg for example) then run this command:
Code:
nbimg -F splash1.bmp -w 320 -h 480
Take the output file and change the extension to .img
To install:
Reboot your phone to fastboot mode
Code:
fastboot flash splash1 C:\nbimg\splash1.img
Click to expand...
Click to collapse
Hi TheGrammarFreak
I tried the fastboot command on my HTC Legend with HBOOT HTC dev unlocked recently, but I just get this:
Code:
C:\Program Files\Android\android-sdk\platform-tools>fastboot flash splash1 splash1.img
sending 'splash1' (300 KB)...
OKAY [ 0.126s]
writing 'splash1'...
(bootloader) signature checking...
FAILED (remote: signature verify fail)
finished. total time: 0.239s
Any suggestions?
didn't work for me either - probably the htcdev unlock didn't include s-off for splash1?!
The HTC bootloader unlcock method sucks. It allows nothing except writing direcrly to the system. It even checks for signatures when using fastboot from the Android SDK. At least I get signature error when trying to flash a .img file thru fastboot.
DISCLAIMER:
I am not responsible if you break your phone. You should always do a nandroid backup befor flashing any files. Remember to wipe your dalvik before making a nandroid to save a lot of time and space
Intro
So. Boot animations. Hard to make? At first yes. But I will explain in great detail each step in making a boot animation.
Requirements
-A photo Editing program (GIMP and Photoshop are the best.)http://www.photoshop.com/
-A text editor besides notepad or wordpad. (Notepad++)http://notepad-plus-plus.org/
-An archive manager (7-Zip or WinRAR)http://www.win-rar.com/website/index.php
My setup:
Photoshop CS5
WinRAR
Notpad++
The Tutorial
Step 1: Folders
So in this step, we need to make folders. The number of folders depends on what type of animation you want. You can name the folders anything you want as long as they are reflected in your desc.txt (we will get more into that later).
If you have a video that you want to repeat, you will need only 1 folder. (Name it anything you want)
If you want an intro (only shown once) and then a repeated set, You will need 2 folders. Most common names: (part0, part1) (intro, repeat)
If you have more then 2 sections of images, then I have no clue what you are doing but good for you for being awesome!
Step 2: Images
So this section will be a generilization of the images. I say this because every video is going to be different.
Each image in the video is called a frame. They usually vary slightly from image to image which sped through makes the illusion of a video.
-Each frame must be 480*800 px (thats 480 pixels wide by 800 pixels tall).
-Each frame must be saved in a .png format. (If you are using Photoshop, File > Save for Web & Devices to reduce the file size drastically.)
-Each frame needs to have some numarical value.
+Recommended would be something like frame0001.png, frame0002.png, frame0003.png, etc.
+Try to keep it under 300 images total
After all of the images are created, we now need to place them in folders.
Step 3: Placing images in folders
This step will vary from user to user. based on what type of animation you are making.
Intro to loop (2 folders):
With this one, you are going to place all of the images that is to be the intro to folder 1.
All looping images will go into folder 2.
Looping video:
All images will go into a single folder.
Step 4: desc.txt
This is the 'script' that tells android what to do.
Open up your text editing program. You have to use something other then notepad/wordpad included with Windows. They add some funky stuff for every new line you make which will ultimately break the script. It is best to use Notepad++.
This is an example of a desc.txt that has 2 folders in it:
480 800 20
p 1 0 intro
p 0 0 repeat
Here is what it is telling android to do line by line:
480 800 20 <-- Width of the animation in pixels. This will stay 480 for Evo users Height of the animation. Keep this 800 for Evo Users Frames per second. This is basically your 'speed' of the animation. This will stay in between 10-30 (10 being slower, longer, and choppy; 30 being fast, short, and smooth.)
p 1 0 intro <-- p is telling it to play this folder. It will always be there. Folder is to be played 1 time before moving on to the next folder. Pause the movie for 0 frames after the animation is completed before moving on to the next folder. (This will normally stay 0). Name of the folder to be played. In this case, the folder named "intro" gets played once and then it moves on to the next line.
p 0 0 repeat <-- Play the animation... Folder is to be indefinately played. The 0 is telling it to play this folderover and over. Just keep it 0. Folder "repeat" gets played
And now for an example of a single folder (same thing looping over and over):
480 800 20
p 0 0 part0
So same as before... 480px wide by 800px tall at 20 FPS
Play the folder "part0" an indefinate amount with no pause in between.
Why not go funky!:
480 800 20
p 1 0 intro
p 5 0 cookies
p 2 0 cake
p 0 0 mynion
Same... 480px wide by 800px tall at 20 FPS
Play "intro" 1 time with no pause
Play "cookies" 5 times with no pause
Play "cake" 2 times with no pause
Play "mynion" indefinately
Ok. So now we save this file with the file name "desc.txt". It must be named that. Case sensitive.
Get it? Good. Let's move on.
Step 5: Packaging
Now we are going to package this sweetness of a custom boot animation!
(this is assuming you are using Windows with WinRAR. Steps may vary from OS and program)
1. Highlight all of your folders and desc.txt and right click > "Add to archive..."
2. On the left side, change the radio buttons from rar to zip
3. Change compression method to "store"
4. Name the file. For now, you can name it anything. Eventually, it will need to be named "bootanimation.zip"
And we are done! Now we just need to set it up on your phone!
Here are 2 methods of doing this:
Root Explorer method:
1. Rename your boot animation to bootanimation
2. Put it on your SD card
3. Open Root Explorer and copy bootanimation.zip to /system/customize/resource. The destination folder may vary from ROM to ROM. I am using Synergy.
4. Reboot your phone
ADB method:
1. Make sure you have downloaded android sdk
2. Put android sdk in C:\
3. Set the directory of command prompt to C:\android-sdk-windows\platform-tools. Click here for a video tutorial.
4. Rename your boot animation to bootanimation and put it in C:\android-sdk-windows\platform-tools
5. Open cmd
6. Type in order:
-adb remount
-adb push bootanimation.zip /system/customize/resource/bootanimation.zip The destination folder may vary from ROM to ROM. I am using Synergy.
-adb reboot
Cool...! Thanks alot! Great tut!
Sent from my iPad 3 using XDA App
good but too long...almost slept reading it
[TOOL] Deuces' & sixohtew's Bootloop-Recovery & Flashing Script [v4-Windows+Linux]
This script is for the UNLOCKED BOOTLOADER Pixel XL (MARLIN) and Pixel (SAILFISH), and will:
Unlock Bootloader and Critical
Fix Bootloops
Flash both Slots A and B
Work with any current 8.0 or 8.1 beta image
Detect bootloader and radio special *.img names automagically
(Optional): Format Userdata
(Optional): Re-Lock Bootloader and Critical
You MUST extract factory image zip file
(found here: https://developers.google.com/android/images#marlin for Pixel XL and https://developers.google.com/android/images#sailfish for Pixel)
You also MUST extract the included zip file
This will lead to ~21 .img files in the same folder, with the deuce-sixohtew-flash-all script in the same folder!
If you are having issues with this script:
Verify you are using the latest platform tools: ( https://developer.android.com/studio...orm-tools.html)
Verify you have the environment variable set for adb and fastboot: ( https://wiki.lineageos.org/adb_fastboot_guide.html)
Make sure you are using a USB 2.0 Port (not 3.0!)
Try a different cable
Format Userdata
*I did not create this script, I helped port it from the .bat windows script to the .sh linux script, then modded it to work for the og pixel & pixel xl
Download the script here: https://androidfilehost.com/?fid=745849072291691811
Sagit Logo Generator for Xiaomi MI 8 (dipper)
Download: here
How to use (Windows)
1. Download this project and goto GenLogo folder.
2. Edit these 5 bmp files, do not change filename or format.
3. Run GenLogo.exe and you get logo_new.img.
4. flash through fastboot
HTML:
fastboot flash logo logo_new.img
5. Enjoy!
How to use (Linux&Unix)
1. Download this project and goto GenLogo folder.
2. Edit these 5 bmp files, do not change filename or format.
3. Run python genlogo.py and you get logo_new.img (python3).
4. flash through fastboot
HTML:
fastboot flash logo logo_new.img
5. Enjoy!
How to restore
Just flash logo.img in official fastboot ROM.
Source: https://github.com/moonheart/sagit-logo-gen/tree/MI8_Dipper
Thanks @huhu2207 for advice (binwalker).
Thanks @grabik.pk for test.
Thank You for your work!
Thanks for the tutorial, does the phone have to have an unlocked bootloader for this to work?
I've modified your tool to work with Xiaomi Mi Max 3. Thank you for the sources!
Thks for sharing, Can this work for Mi8Lite platina??
moonheartmoon said:
Sagit Logo Generator for Xiaomi MI 8 (dipper)
Download: here
How to use (Windows)
1. Download this project and goto GenLogo folder.
2. Edit these 5 bmp files, do not change filename or format.
3. Run GenLogo.exe and you get logo_new.img.
4. flash through fastboot
HTML:
fastboot flash logo logo_new.img
5. Enjoy!
How to use (Linux&Unix)
1. Download this project and goto GenLogo folder.
2. Edit these 5 bmp files, do not change filename or format.
3. Run python genlogo.py and you get logo_new.img (python3).
4. flash through fastboot
HTML:
fastboot flash logo logo_new.img
5. Enjoy!
How to restore
Just flash logo.img in official fastboot ROM.
Source: https://github.com/moonheart/sagit-logo-gen/tree/MI8_Dipper
Thanks @huhu2207 for advice (binwalker).
Thanks @grabik.pk for test.
Click to expand...
Click to collapse
the second step I have not guessed, you can explain more clearly and in detail. Thank you
@Paoloqu24 Edit these five images with Photoshop or other tools, but you should not rename these images.
moonheartmoon said:
Sagit Logo Generator for Xiaomi MI 8 (dipper)
Download: here
How to use (Windows)
1. Download this project and goto GenLogo folder.
2. Edit these 5 bmp files, do not change filename or format.
3. Run GenLogo.exe and you get logo_new.img.
4. flash through fastboot
HTML:
fastboot flash logo logo_new.img
5. Enjoy!
How to use (Linux&Unix)
1. Download this project and goto GenLogo folder.
2. Edit these 5 bmp files, do not change filename or format.
3. Run python genlogo.py and you get logo_new.img (python3).
4. flash through fastboot
HTML:
fastboot flash logo logo_new.img
5. Enjoy!
How to restore
Just flash logo.img in official fastboot ROM.
Source: https://github.com/moonheart/sagit-logo-gen/tree/MI8_Dipper
Thanks @huhu2207 for advice (binwalker).
Thanks @grabik.pk for test.
Click to expand...
Click to collapse
It did not work. Got this message
Code:
$ python3 genlogo.py
$ fastboot flash logo logo_new.img
target didn't report max-download-size
Sending 'logo' (20056 KB)...
FAILED (command write failed (Success))
Finished. Total time: 0.011s
$
This is your battery view when your device is turned off and plugged in.
This thread is Made for the S5 specifically (though these images can be used if rescaled to the right size.
The file can be known as Battery_scale.PNG
The file can be Located at. /res/images/charger
The file is a Multi surface image. Basically a zip png
To extract All the ".PNG" files use. https://github.com/Aaahh/Battery-Images-Replacer
Thanks to @Aaahh for making this a lot easier
Originally posted by cunha17 @ https://forum.xda-developers.com/showthread.php?t=1609059&page=5
Battery-Images-Replacer (forums.oneplus.net/threads/battery-charging-image-replacer.186460) is a way to easily change the battery boot animation. You can use Aaahh provided images or change them and make your own flashable zip. There are 2 problems in that solution, first it is directed to a specific platform (oneplus) and second, it does not work in Marshmallow (CM13).
I figured out a way to make Battery-Images-Replacer to work in Android 6 (Marshmallow) and problably in 5 (Lollipop). Just stating that I'm using CM13 in a Galaxy S3 (i9300) phone, but the code is the same one Aaahh provided with two minor changes:
The battery_?.png and battery_charge files are deprecared in 6.0, and replaced by battery_scale.png (multi surface image) with mandatory 6 frames (hardcoded in Android). To make Battery-Images-Replacer work with previous Android versions, the deprecated files are kept; and
The block device in anykernel.sh file needs to be generalized to work in i9300 (my case) and maybe others, so it was replaced at line 9 with: block=`find /dev/block/platform -name BOOT`;
Warning: be shure to do the 2nd step above, or the flashing will not work, but also, you may brick your phone!!!
But the catch is the creation of the new battery_scale.png file. In this case, we have the 6 single surface images (battery_?.png files) and want to make a "Multi Surface Image" file compliant with Android 6.0.
I made the following script (create_multi_surface_image.sh) that convert multiple PNG to a single "Multi Surface Image", you just need to change the FILES and SCALEFILE variables if needed. This script uses ImageMagick, exiftool and pngcrush to do the job. Just run the script where the battery_?.png files are.
create_multi_surface_image.sh
Once the battery_scale.png is created, you need to copy it to the Battery-Images-Replacer-ak-opo-anykernel/charger/ directory if you didn't run the script there. Go to the base directory (Battery-Images-Replacer-ak-opo-anykernel) and run "zip -r ../Battery-Images-Replacer.zip ." and you should get the flashable zip file at the parent directory.
Now transfer the zip file to your phone (adb push, usb file transfer, etc) and make shure that the file is available to TWRP ou CWM. Boot into recovery and flash the zip file. Turn off the phone and start charging. Enjoy your new battery animation.
I will attach the battery_surface.png file if you just want the final result using the source files (battery_?.png) provided by Aaahh and available at github.com/Aaahh/Battery-Images-Replacer.
Thanks Aaahh for the great job!
And what you have waited for
(Please note this is from my device which is running RR9.0)
(Edit will upload via computer as labs doesn't let edit an add images)