[TOOL][UNIX]Bootanimation Resizer - Android Themes

Hi,
recently I have worked on resizing the Android Marshmallow bootanimation for multiple screen resolutions. To make it easier for me, I created a shell script which enables me to easily resize the bootanimation files and pack them in a flashable zip. I thought it could be useful for other users here on XDA, so I'm sharing it with you here. You can find the tool in the Downloads section of this project.
Requirements:
Linux / OS X / other UNIX operating system
imagemagick
(Very) basic shell knowledge
Preparation:
Download the bootanimation-resizer.zip from the Downloads section of this project
Extract the tool to a folder of your choosing
Copy the original bootanimation.zip to this folder (the actual bootanimation, not the flashable zip)
OPTIONAL: Edit the updater script in recovery-zip/META-INF/com/google/android/updater-script to include additional info about your bootanimation or other changes you wish to make
Usage:
Run resize.sh with the right parameters
The new bootanimation flashable zip will be saved in the folder where you extracted the tool
resize.sh parameters:
The resize.sh script is used like this:
Code:
./resize.sh WIDTH HEIGHT [ROTATION]
The parameters being:
WIDTH: the new width of the images
HEIGHT: the new height of the bootanimation images
ROTATION (optional): by how many degrees to rotate the animation (clockwise). The supported values are 0, 90, 180 and 270.
The rotation is applied after the resizing, so the WIDTH and HEIGHT parameters specify the new dimensions of the images before the rotation.
Example usage:
Code:
./resize.sh 800 600 90
This will resize the original images to 800x600 px and then rotate them clockwise 90 degrees.
The resulting bootanimation will be saved to bootanimation-flashable-800x600-90deg.zip.
Limitations:
This tool can only work with bootanimations in .zip format. It doesn't work Samsung's .qmg bootanimations, and there are no plans to add support for that.
The tool doesn't (necessarily) maintain aspect ratio of the images, it will resize them exactly to the dimensions you specify. These parameters you specify have to be in the correct ratio you want.
How does it work:
The script extracts the files from the bootanimation.zip you provided.
Using the imagemagick tool convert, it resizes and optionally rotates the images according to the parameters you specified.
Then it changes the width and height parameters in the bootanimation's desc.txt. It leaves the rest of the file as it was, including the FPS, animation commands and other parameters.
Then the script packs the new bootanimation to a new zip file.
It adds the new bootanimation.zip to the prepared recovery-zip/system/media/ folder.
Finally it zips the recovery-zip folder, creating a flashable zip with of new, resized bootanimation.
XDA:DevDB Information
Bootanimation Resizer, Tool/Utility for all devices (see above for details)
Contributors
frantisek.nesveda
Version Information
Status: Stable
Current Stable Version: 1.0
Stable Release Date: 2015-08-23
Created 2015-08-23
Last Updated 2015-08-23

Reserved
Reserved for potential changelog

Reserved

hey man how does the resize.sh run how do you run it? through your recovery?

JT1510365 said:
hey man how does the resize.sh run how do you run it? through your recovery?
Click to expand...
Click to collapse
No, you use it on your computer from the shell if you have Linux or a Mac.

@frantisek.nesveda, If I strip the .sh from the script and place the file and accompanying folder into /bin, then what permissions do I need to set for the folder ???? Ofc the resize binary will be marked with chmod a+x /bin/resize .
Sent from my HTC Desire 616 dual sim customised for Puchki using Tapatalk

MSF Jarvis said:
@frantisek.nesveda, If I strip the .sh from the script and place the file and accompanying folder into /bin, then what permissions do I need to set for the folder ???? Ofc the resize binary will be marked with chmod a+x /bin/resize.
Click to expand...
Click to collapse
This will not work as you think it will, unfortunately. The bootanimation.zip that's being resized has to be in the same folder as the script and the accompanying folder, so if you have the script in /bin (or anywhere else in $PATH) and try to resize an animation that's for example in /home/Documents/bootanimation.zip by calling the script from that directory, it won't work. (Also I think it's not a good idea to put random folders in /bin, although it probably won't create any problems.)
This is a good idea, though, I haven't implemented it the first time because I didn't need it, but I might add it to the next version. I'm a little short on time now, so it might take a while.

Related

How to make boot animation full screen on Droid/Nexus/etc

This is an explanation on how to use a boot animation originally intended for a lower resolution on a higher resolution screen.
The problem stems from the desc.txt file. This file contains a very small amount of code which tells the android device how to display the boot animation.
Steps
1. Extract bootanimation.zip to another location.
2. Open up desc.txt with notepad/etc and change 320 to 480 and 480 to 854 and save it. If for some strange reason, you do not see 320 and 480, just change whatever numbers are there to 480 and 854.
3. The next part is crucial. You need to take these three folders/files you extracted (desc.txt, part0, and part1) and rezip them WITHOUT COMPRESSION. To do this, open up 7zip or WinZip or similar program and start to create a new archive named bootanimation.zip. Before you create it, look for a setting dealing with compression. In 7zip it says "Compression level". You need to change this to either "Store" or "None" (They mean the same thing. Depends on what program you are using). Create the archive.
4. You need to push this back to your phone. There are instructions elsewhere, but they are simple so I will include them here.
5. Enter a command window. Navigate to your tools folder by typing
cd C:\<path>\tools
Click to expand...
Click to collapse
6. Now enter the following one by one.
adb remount
adb mv
adb push C:\<path>\bootanimation.zip /system/media/bootanimation.zip
adb push C:\<path>\bootanimation.zip /data/local/bootanimation.zip
adb reboot
Click to expand...
Click to collapse
That is it. I have tried this on a mac, but I have been unsuccessful in creating an uncompressed zip folder. If you can accomplish this, props. I recommend just doing this in windows if you have the chance.
Hope this helped you out.
Good lookin' out.

[TUTORIAL][updated 11/9] ANDROID .xml(decryption) & .9.png EDITING

I am not a developer myself , i did learn few thing through various search sites & posts (most frustrating way), today wildfire owners are desperately requesting for few tweaks , roms (SFM) etc , to be frank wildfire is loosing its developers(sorry dev's)due to new & improved phones being released in the market which are greater than our's
=================================================================================
CONTENTS:
Post 2 : how to edit .9 images
Post 3 :apk manager method
USEFUL LINKS
1.EVERY NEWBIE MUST READ THIS POST
2.BASIC JAVA , ANDROID JAVA TUT
3.ANDROID KITCHEN (basic)
4.ROM BUILDING GUIDE(bit outdated)
=================================================================================
1.EDIT .9 IMAGES
DESCREPTION:
.9 images are basically PNG images , but are modified to specify a few extra expandable instrustions such as HEIGHT , WIDTH . These images are compiled in draw9patch of sdk & are encrypted via eclipse software
REQUIRED SOFTWARE:
1.WinRar(or any other zip tool)
2.Android sdk manager (draw9patch)
3.eclipse IDE for java developers(download it from www.eclipse.org)
4.image editor(i use paint.net tool)
PROCEDURE:
As an example i am using cm7 nightly & i am editing a .9 image in systemui.apk(theme related file) which is in System>app folder
EDIT : now you can download the attachment or can directly see my example images in post itself
__________Extracting Image__________
1.open the cm7 zip via winrar , navigate to app folder which is in system folder
**cm7nightly 170.zip
2. double click on the systemui.apk & a new window pops up with the contents in the syatemui.apk
**cm7nightly 170.zip>systemui.apk
3.all images are in res folder(common for any app) go to res folder
**cm7nightly 170.zip>systemui.apk>res
4. now you have to keep in mind that all the images used by that particular apk are in RES folder & are kept in sub folders named starting with 'drawable' as
drawable-ldpi,drawable-mdpi,drawable-hdpi,drawable
**cm7nightly 170.zip>systemui.apk>res>drawable-ldpi , ref image step2
5.go to drawable-ldpi and extract those image to any folder in your pc
**c:/vimjam/desktop/myfolder , ref image step3
6. rename that image which you want to edit by removing the .9 in the name(original image name : header.9 edit it to header)
**c:/vimjam/desktop/myfolder/header.png , ref image step4
7.edit that image as you wish & save it in .png file only
**c:/vimjam/desktop/myfolder/header.png
8.now open draw9patch.jar which will be in the following folder x1:/x2/Android\android-sdk\tools\lib (x1 refers to your C drive or D drive or whatever partition where you installed your sdk)(x2 refers to program files folder or program files(x86) in few windows versions)
**c:/program files(x86)/android/android-sdk/tools/lib/draw9patch.jar
9.drag your edited image on the draw9patch window , then it will show as the screen shot given below
**c:/program files(x86)/android/android-sdk/tools/lib/draw9patch.jar , ref image step5
__________.9 Image Editing__________
10.this is the part where you encode .9 script on your image
11.basically what draw9patch does is it gives a black lining at the ends of the image(which are to be specified by us)which are later encrypted as instructions in eclipse software)
12.in draw9patch first tick the show patches option
13.now you have to experiment a little bit to understand this procedure , when you left click at the edges of the image a black spot appears that black spot is the .9 code
**right click on that black spot to erase it
14. for now see the screen shots and do the black lining just as what i did(type 1) (do not use the black line at round edges(only at rectangular edges)(refer type 2 image for more details)**after you've completed the procedure use the lining as done in type2 screenshot provided below , ref image type1
15. save that image with the same name as the original file (see screen shot named savetype)(you can see that the image still contains these black dots , dont worry its natural)
**c:/vimjam/desktop/myfolder/header.9.png , ref image header.9
__________Eclipse Encryption__________
16.this is the part where you complete the encryption using ECLIPSE
17. now open eclipse , click new>project>android>android project , ref image step6
18.a new window opens fill the details (refer my pic named demo)(i use the word demo in the details you can use any other) & click finish , ref image step7
19. now expand the demo project , you can see a couple of things like src , gen... ignore them except res folder , ref image step8
20.expand res folder , drag the .9 patched image(which you edited using draw9patch.jar) in drawable-xxx
(xxx refers to ldpi or hdpi or mdpi )
**NOTE: if your edited image is from drawable-ldpi place it in drawable-ldpi only similarly hdpi to hdpi , mdpi to mdpi only , ref image step8
21. right click on the demo folder project & click on android tools , and then on
EXPORT UNSIGNED APPLICATION PACKAGE.... & save your file
**your saved file will be demo.apk , ref image step8
22.now drag that saved file into any zip file(don use the cm7 nightly zip) or you can create a zip archive of that demo.apk which is generated by eclipse
** compress demo.apk to demo.zip
23. open the demo.zip archive, double click on demo.apk , navigate to res , drawable-ldpi and extract the header.9.png image
24. now open cm7nightly170.zip , navigate to systemui.apk , double click on it , click res,drawable-ldpi & now drag the previous image which you extracted from the demo.zip archive ,then the winrar will ask for confirmation click ok
** cm7nightly170.zip>systemui.apk>res>drawable-ldpi , ref image step9
25.dont close the cm7 nightly zip yet , after you clicked ok the winrar will ask for a save confirmation to save changes in parent folder click yes and close it .done
(this confirmation will be small & will be hidden behing other open windows/applications so check carefully & do not miss this confirmation) , ref image step10
now you can flash that nightly file via recovery,same procedure can be applied to any .9 images of any apk
==========================================
EDIT2: UPDATED IMAGE SCREENSHOTS , PLACED ALL IMAGE EXAMPLES IN ".9 IMAGE EXAMPLES.RAR" FILE
**RAR FILE CONTAINS ALL THE IMAGES WITH LITTLE EXPLANATION IN THE IMAGES ITSELF TO UNDERSTAND THIS PROCEDURE DOWNLOAD THAT RAR FILE(contains no virus its my word)
***EDIT : using apk manager to recomoile a sense apk is causing few errors , although decompiling is working fine
Another easier way is to just decompile the framework using apk manager, and editing the .9 png on photoshop since you can edit the black patches as well and just recompile @kevin2516
you can also use apk manager to decrypt .xml files
here are the links for apk manager 4.9 & 5.0 (detailed method will be published soon)
for version 4.9 http://forum.xda-developers.com/showthread.php?t=695701
for version 5.0 http://forum.xda-developers.com/showthread.php?t=1227179
guys as my suggestion use the apk manager method only to decompile the apk's ,(compiling them is kinda messy)(1 out of 5 times the files ive compiled caused force close so better safe than sorry)
procedure:
1. place the apk you want to edit in the folder named "place apk here for modding"
2.double click script file a cmd opens(if it shows java not found error then watch this video and get it right http://www.youtube.com/watch?v=X05JPrto_c8)
3.type 22 and hit enter
4.enter its the apk file's no which you want to edit
5.type 9 and hit enter
6.it might show some errors ignore them
7.now go to project folder which will be in the same place in apk manager folder
8.now open any .xml file with any text editor (i use notepad++)(you can also edit .9 images this way)
9.do the required changes & save it
10.type 11 if what you are editing is a system apk
11.else use 14
12.if your choice was 11(in cmd) then a the cmd will ask few confirmations(type y for both)
13. a new folder gets created by name keep
14.go to that folder and delete every file that you've changed & if you have edited a .xml file then delete the resources.arsc(else dont)
15.after doing this press any key in cmd done
16.a file by the name unsigned.apk will be created in the place the apk here for modding folder
16.sign that file if it is not a system apk , & replace it in your rom
good going mate... I'm desperately waiting to get over with my CAT exams in November... then I'll give my sole into developing!!!
oh that's great & all the best for your CAT exam , i am planning for CAT in the coming years
Another easier way is to just decompile the framework using apk manager, and editing the .9 png on photoshop since you can edit the black patches as well and just recompile
Sent from somewhere far far away.
kevin2516 said:
Another easier way is to just decompile the framework using apk manager, and editing the .9 png on photoshop since you can edit the black patches as well and just recompile
Sent from somewhere far far away.
Click to expand...
Click to collapse
I don't know how it goes with you, but I have always a bootloop when I do that. Probably because the signature isn't correct.
So perhaps to complement Kevin: after recompiling, you can take your modified files out of your "new" apk and put it in the "old" one, and then flash the "old-new hybrid" apk.
Erwin
ErwinP said:
I don't know how it goes with you, but I have always a bootloop when I do that. Probably because the signature isn't correct.
So perhaps to complement Kevin: after recompiling, you can take your modified files out of your "new" apk and put it in the "old" one, and then flash the "old-new hybrid" apk.
Erwin
Click to expand...
Click to collapse
For the framework-res.apk you don't sign it.
They would work too if the above doesn't.
Sent from somewhere far far away.
pyroblazer said:
good going mate... I'm desperately waiting to get over with my CAT exams in November... then I'll give my sole into developing!!!
Click to expand...
Click to collapse
You are not giving any of the other mgmt exams after that? Just CAT?
/ENd OT
EDIT : NVM
Very , very good job. I searched weeks on this forum and other on how to tweak , or create , or modify a rom , and all i could find was some programs ... but still don't know how to use them.
So this thread is very usefull
currently i'm busy with exams ,will update this thread for more simplicity & will add more images about .9 encryption soon

[HOW-TO] MIUI MiLocker Themeing / Customization

Good Afternoon XDA Family and Friends - Modders and such...
Today, I would like to bring you something of a how to that would possibly get Sticky-d as I think that this app is growing in popularity and customization requests. Due to some demand on our Youtube Partner Channel, we are working on a Video on how to modify and deploy these new themes for this app to your non-rooted phone / device.
Many of you may or may not know about this software: MiLocker - App to allow you to get the MIUI type Themes that are seen on their ROMS on Non-Rooted and Rooted Phones. This app will let you customize your Lockscreen and have that MIUI type theme.
Please note that this tutorial - How To involves basic knowledge of XML and modifications of types of variables that are used in the theme.
I have enclosed 2 Samples that you can use as a basis, I have converted them from Japanese / Chinese language so that you can understand them better.
Some of the basic steps are outlined below.
1. First get the theme downloaded that you wish to modify using the Machine of your choosing: Mac or PC.
a. Upon getting the theme from the provider of the application to the device, you will then need to get it on the PC.
b. Connect your device to your machine as normal, and use “Disk Drive” to access the data storage on the device. (this could be internal or SD depending on device)
c. Once you have accessed the data on the device, look for the folder “MIUI” and under will be the “Theme” folder. In this folder will be all your downloaded themes. (MTZ Format)
2. After you have the MTZ files copied to your machine, (always best to create copies as this ensures you don’t break the mtz file you have already as source)
3. You can then (if you don’t already get 7zip for PC or The Unarchiver for Mac both free utilities) to then open the MTZ file and extract it’s contents to your desktop or destination of choosing.
4. Upon extraction you will usually find a few folders and files in there. Most notably: “Preview Folder”, “Wallpaper Folder” “Fonts folder”, lockscreen file, icons file, description.xml.
5. These are usually the basics for the theming. Most of them are self-explanatory.
a. For modifying or making your own wallpaper or preview, this is quite simple, just modify the wallpaper you find in the folders and create new ones using Paint, Photoshop or GIMP (utility of your choice)
b. Create a new wallpaper of the same dimensions used and name it the same as the original file found in the folder. Just delete the original when done. (Best cases for this I have tested are : 480x954, 480x860 and a few others) at about 72DPI or better.
6. Once you have created the wallpaper and it’s preview that you wish to show in the chooser, place those files in the respective folders.
7. To first start the modification and in this the main reason for the XML is to change the Chinese Characters displayed to English or US. Most people will just change the Wallpaper and repack, and that is ok. This is for those who seek to have English displayed.
8. In the first XML : description.xml - This file allows you to customize fields of Title of the Theme , Author, Version and such. These are the only three I recommend changing. ONLY CHANGE DATA between the <Title> THIS IS TO BE CHANGED</Title>
a. (changing only the data between the start and stop tags which are the <Field></Field> items)
9. Please note that changing the information in-between the start tags and end tags for XML is how the data is read by the application. So those values are how this is displayed.
10. The second XML is called the manifest.xml file, and it’s in the lockscreen file.
11. To modify this file, you need to rename the lockscreen file to lockscreen.zip and then extract the contents and open the folder under and look for the manifest.xml file.
a. Renaming method for Windows: Start > Run > cmd | in the command prompt, CD to the correct location of the lockscreen file and then issue the command with out quotes: “rename lockscreen lockscreen.zip”
b. Renaming method for MAC: Terminal – cd to the location of the lockscreen file issue the following command : “sudo mv lockscreen lockscreen.zip” It will ask for password, input your user password.
12. If the renaming happened correctly you should now see the file as a zip file.
13. You can now extract this file using 7zip or Archive utility or other to extract to a destination of your choice.
14. After you have done this, find the “manifest.xml” file in the folder from extraction.
15. You can edit this file in any great number of free XML utilities out there: PC : Notepad++ and MAC : TextWrangler. Editing this will allow you to find all the characters, which are not English and then copy them, open a browser and go to translate.google.com and translate them and insert the correct words as necessary.
16. When you have completed editing all the Japanese and Chinese out of the document, save it and then back out of the directory that you extracted and then ZIP the lockscreen file back up using Winzip, 7zip or Arhcive Utility in Mac or whatnot.
17. Once you have compressed and ZIP’d the lockscreen folder back up, you will see a new lockscreen.zip file with your modified files in it.
18. Now it’s time for you to Reverse Rename the file and removes the .zip file making it a file plain object. (Hint – Do the reverse of step 11 above, going from lockscreen.zip to lockscreen)
19. Once you have completed this phase, you will need to compress it to a MTZ to put back on the phone. 7Zip has this built in and you can just compress using 7zip and select MTZ as the file format. As for MAC I recommend using this Automator, which will do it for you. (MAC USERS WILL NEED TO TO one extra step)
a. Mac users will need to after creating the MTZ file, make the file Unix Executable – Terminal (open this app) and then go to the MTZ file and issue the following command: “sudo chmod a+x yourfile.mtz” , it will ask for password, do as above. Then the system will make it a UNIZ Executable just like the other MTZ’ files
20. Now transfer the MTZ file you have created back to your device and launch the app and choose your new theme.
MAC TOOLS for MTZ:
PLEASE EMAIL ME for TOOLS (don't have enough posts)
IF you have any questions, please feel free to email us at [email protected]
Or check our Youtube Channel as we will be posting a tutorial on this soon!
Please EMAIL for YouTube Channel (not enough posts)
Thanks.
FluxboxMedia and GeekTekneek
*****UPDATE******
Upon more and more research , our team has discovered that simple repackaging of the theme once modified does not always work as listed above. If you are using the PC and wish to use the 7zip method, the tip we found on DroidForums was to Open the MTZ file in 7zip and leave it open. Then 'Drag' From the file manager of 7zip the contents to your machine which will allow you to modify a copy of the theme. Make your changes , wallpapers and such, and then copy 'drag' them back into the open Archive of MTZ theme you did from above in this update. Once done, close the archive by closing 7zip. If you make any changes to the 'advance' folder under the lockscreen file (note you can just 2x click on the lockscreen file while in the 7zip archive and it will open), you will need to copy the changed files into this folder, and then click the "up one folder icon " it will annouce "There are changes to the original packing files, would you like to update the file and repack?" CHOOSE YES. Then you can close the entire 7zip app and deploy to your device. If you have questions, please feel free to email us. Video YTube tutorials will be online shortly.
Great idea. I really like this application. I also see it becoming a hit.
Yup, this app is awesome! I didn't know about 7zip's ability to compress to mtz, thanks for sharing that. What we really need is a tutorial on converting themes to mdpi
Great tut tho. Excellent and clear.
Tapatalkin it from my IHO CM7.1'd, ICS Themed Optimus V
Thanks for the support so far. We at our studio have done lots over the last 2 years with customizations and installations and testing, and just feel that now is the perfect time on a brand new app.
We are going to be doing a tutorial Video which will show the basics on it.
Some of them however are not happy with configuring the XML in the manifest file. (meaning as soon as you modify any part of it, the repack and then put on device) The theme comes out as just the default.
We are still working on some of the buggy themes.
Thanks
Examples of our work thus far
Examples of the Customization Completed
Converted from Japanese/Chinese to English Format
Attached as Inline image posting is restricted to people more posts than 8
???
Nice, I'm also working a TUT, nice locker/screenlocker to have! Easy to theme!
Pitty it doesn't run the ICS'ed ones
Hello
if i want to modify a theme for my SGA what resolution and DPI should i choose?thnks
kcls said:
Yup, this app is awesome! I didn't know about 7zip's ability to compress to mtz, thanks for sharing that. What we really need is a tutorial on converting themes to mdpi
Great tut tho. Excellent and clear.
Tapatalkin it from my IHO CM7.1'd, ICS Themed Optimus V
Click to expand...
Click to collapse
From HDPI to M/LDPI just resize images, and change dimension values in manifest.xml (be aware of how MIUI roms/apps sees y value), although you don't need to do that, if you're using newest MiLocker version (1.4.2 I guess?). But as for M/LDPI Miui rom port you have to do it.
Sent from my GT-I5800 using Tapatalk 2 Beta-5
Nice Info for people who are Novice about MIUI Themes and Lockscreens.
Thanks for the great tut :good: You deserve more thanks.

[GUIDE ] How to make bootanimation [No PC] [Complete Tutorial]

Hello guys in this tutorial you will be learn how you can make some awesome bootanimation for your devices
The steps are very easy with this tutorial you can make any video or any thing that you liked as your boot animation
please support by giving some thumbs up for my Facebook page
Lets Get started
here are some requirements that you can easily get from playstore
For Bootanimation :
ES File explore/ unrar premium
Batch image convertor
video to image converter
Pics Art
Brain
For Bootaudio :
mp3 cutter and merger (play store)
music speed changer ( play store)
For Preview of animation :
Rom Tool Box pro
When you all get above stuff you will be ready to blast
in this Tutorial you will learn how to make Your name as your bootanimation the steps are very simple and nooby friendly
PROCEDURE :
First root your device and open es file explore and granted ES root permissions
open path (device or emulated/system/media
copy bootanimation.zip/bootaudio.zip and paste it in sdcard
extract bootanimation.zip you will see some folders named part0, part1, and desc.txt
open desc.txt and copy the resolution of yours default resolution helps in creating same sizes of bootanimations that you are making its written in first line like 800x480
now start a blank project on Picsart with same resolution that You copied from desc.txt
Please Note: The animation that you see on while booting on your device all depends on the style of your Drawing that you are making
some have circular, spiral, in out all depends on your drawing
now select Color of background and apply some cool and creative backgrounds for your bootanimation
after that write your name on them with different styles or different colors made minium of 25 jpgs or pngs.. with different colors combination
after that save them with extension jpg or png
now create a folder named part0 and place all your pics that you created
You can also use batch image convertor to resize them
Now again we need our default bootanimation that we extracted there are also same folder named part0
open the folder and copy the name of pics it must be as X00000
Go back to your working folder and rename all you pics with default name that is in your default bootanimation
now save them after that create a new file desc.txt in your working folder and edit it with es note editor
Tricky Part started here all the things that you written in desc.txt will affect your bootanimation
First write Resolution of device xxx X xxx
after that write frames (easy say speed of bootanimation) it should be like this xxx X xxx xx without any spaces
on next line write p 1 0 part0
to under stand what is p 1 0 please consider to this po Post
now if you want your animation will shows repeatedly write 10 times p 1 0 part0
the more you write the more it will repeated and may affect boottime
now save file as desc.txt ..
and the final flash after all done select your part0 folder and desc.txt and compressed it by using es file explore or easy unrar
NoTe : compression level should be STORE or No compression
All Done you jus created your first bootanimation without PC.....
To check your bootanimation open rom tool box and load your bootanimation file as preview it will shows up
To set as your created bootanimation as your default press install intead of preview
Hope its is the noob friendly and easiest guide on Xda
thanks all
TIP: You can also make any video as your bootanimation just use video to image converter for jpgs n repeat above steps
Here some random animation that i make
Batman vs Superman, civil war, minnions Here
ANY DOUBTS OR QUERIES FEEL FREE TO ASK ME PARAS GUGLANI
Paras guglani said:
Hello guys in this tutorial you will be learn how you can make some awesome bootanimation for your devices
The steps are very easy with this tutorial you can make any video or any thing that you liked as your boot animation
please support by giving some thumbs up for my Facebook page
Lets Get started
here are some requirements that you can easily get from playstore
For Bootanimation :
ES File explore/ unrar premium
Batch image convertor
video to image converter
Pics Art
Brain
For Bootaudio :
mp3 cutter and merger (play store)
music speed changer ( play store)
For Preview of animation :
Rom Tool Box pro
When you all get above stuff you will be ready to blast
in this Tutorial you will learn how to make Your name as your bootanimation the steps are very simple and nooby friendly
PROCEDURE :
First root your device and open es file explore and granted ES root permissions
open path (device or emulated/system/media
copy bootanimation.zip/bootaudio.zip and paste it in sdcard
extract bootanimation.zip you will see some folders named part0, part1, and desc.txt
open desc.txt and copy the resolution of yours default resolution helps in creating same sizes of bootanimations that you are making its written in first line like 800x480
now start a blank project on Picsart with same resolution that You copied from desc.txt
Please Note: The animation that you see on while booting on your device all depends on the style of your Drawing that you are making
some have circular, spiral, in out all depends on your drawing
now select Color of background and apply some cool and creative backgrounds for your bootanimation
after that write your name on them with different styles or different colors made minium of 25 jpgs or pngs.. with different colors combination
after that save them with extension jpg or png
now create a folder named part0 and place all your pics that you created
You can also use batch image convertor to resize them
Now again we need our default bootanimation that we extracted there are also same folder named part0
open the folder and copy the name of pics it must be as X00000
Go back to your working folder and rename all you pics with default name that is in your default bootanimation
now save them after that create a new file desc.txt in your working folder and edit it with es note editor
Tricky Part started here all the things that you written in desc.txt will affect your bootanimation
First write Resolution of device xxx X xxx
after that write frames (easy say speed of bootanimation) it should be like this xxx X xxx xx without any spaces
on next line write p 1 0 part0
to under stand what is p 1 0 please consider to this po Post
now if you want your animation will shows repeatedly write 10 times p 1 0 part0
the more you write the more it will repeated and may affect boottime
now save file as desc.txt ..
and the final flash after all done select your part0 folder and desc.txt and compressed it by using es file explore or easy unrar
NoTe : compression level should be STORE or No compression
All Done you jus created your first bootanimation without PC.....
To check your bootanimation open rom tool box and load your bootanimation file as preview it will shows up
To set as your created bootanimation as your default press install intead of preview
Hope its is the noob friendly and easiest guide on Xda
thanks all
TIP: You can also make any video as your bootanimation just use video to image converter for jpgs n repeat above steps
Here some random animation that i make
Batman vs Superman, civil war, minnions Here
ANY DOUBTS OR QUERIES FEEL FREE TO ASK ME PARAS GUGLANI
Click to expand...
Click to collapse
Bro the bootanimation.zip should be compressed in store format
The es file explorer compresses it in normal format
And hence the bootanimation doesnt work
Any way to compress that in store format without pc?
Got it
My fault
Nice tut

[MODULE] Boot Animation Installer

This is a simple module to replace your device's boot animation systemlessly.
Supports any device (probably)
Supports any boot animation (for your device)
Use with Magisk 20.3 or newer
Usage:
Place any boot animation.zip file on root of internal storage
( sdcard/ or storage/emulated/0/ )
Default install location is /system/media
(Most devices use this location)
If your device doesn't place boot animations there, you can create a txt file on the root of internal storage (This file is automatically generated after running the script once) to specify a different install location. It needs to be labeled
Code:
install-location.txt
Contents of it should be the location directory for your device
Example
Code:
/system/media
Or
Code:
/carrier/media
Thanks to @topjohnwu for Magisk
Thanks @Zackptg5 for MMT-Extended and debugging
Tested on OnePlus 7T - Android 10 - Magisk 20.3
Future plans are to add this module to the Magisk Official Repo, but for now downloads are attached here.
Also planned support for more than just bootanimation.zip such as Samsung phones
Script Error
During the installation, the script says "Install-location.txt not round!" In which folder should I place the install-location.txt file ?
LavaboSatanique said:
During the installation, the script says "Install-location.txt not round!" In which folder should I place the install-location.txt file ?
Click to expand...
Click to collapse
( sdcard/ or storage/emulated/0/ )
LavaboSatanique said:
During the installation, the script says "Install-location.txt not round!" In which folder should I place the install-location.txt file ?
Click to expand...
Click to collapse
After installing the first time, if it doesn't find it, it will make one that you can edit. Or you can place it in the root of your internal storage. Usually /sdcard
Thanks! Was going nuts trying to find something that worked for my Oneplus 7T Pro Mclaren.
Will it work with MSM Xtended ROM for oneplus 7T?
vikram. vikie said:
Will it work with MSM Xtended ROM for oneplus 7T?
Click to expand...
Click to collapse
Yes if you set the location to system/product/media
Cm4nXD said:
Yes if you set the location to system/product/media
Click to expand...
Click to collapse
Tried but no luck.
Working fine on Mi 9T. Thanks!
cant seem to get this to work on my pixel 3 running the last Dirty Unicorns.
Got this working. Thanks.
Neither working for me. Only longens the boot. My Device is an FP3 on Andoid 10 and location /system/product/media. Just to give you an short feedback.
I had to unzip the replacer zip file and edit the customize.sh file. Also put everything including your new bootanimation in root of internal storage.
You need to modify these lines:
# Construct your own list here
REPLACE="
$LOCATION/bootanimation.zip
to something like this :
# Construct your own list here
REPLACE="system/media/bootanimation.zip"
after REPLACE= this is the location of your original bootanimation.zip which us usually in system/media but may also be in locations like prism/media/carriers/single/ATT/media/
on newer Samsung phones. The ATT would be replaced with whatever network name your phone is on like VZ, TMOB etc or whatever you find in that folder if your aren't on ATT.
droidzer1 said:
I had to unzip the replacer zip file and edit the customize.sh file. Also put everything including your new bootanimation in root of internal storage.
You need to modify these lines:
# Construct your own list here
REPLACE="
$LOCATION/bootanimation.zip
to something like this :
# Construct your own list here
REPLACE="system/media/bootanimation.zip"
after REPLACE= this is the location of your original bootanimation.zip which us usually in system/media but may also be in locations like prism/media/carriers/single/ATT/media/
on newer Samsung phones. The ATT would be replaced with whatever network name your phone is on like VZ, TMOB etc or whatever you find in that folder if your aren't on ATT.
Click to expand...
Click to collapse
The $LOCATION variable is read from the install location txt file.
I have a rooted OP8T running DerpFest... I got this to work making the following 2 changes:
1. If you edit "customize.sh" file, there is no need for the "install-location.txt" file...
- here is what mine looks like (notice I left all lines in place)
Code:
# Construct your own list here
REPLACE="
system/product/media/bootanimation.zip
"
2. If you unzip the file, you'll see a "system" folder... I basically created the same folder structure from above and then added the "bootanimation.zip" file I want to use. For example, the files and folders within "system" should match ur phones directories. This idea came from a similar Mod I used on the same phone, but with the stock OS.
So once everything was in place, I zipped that along with the edited "customize.sh" file into a new "bootanimationreplacer" file.
If anyone has an OP8T, my modified version should work for you... I also created my own boot animation if you wanna check it out.

Categories

Resources