[TUTORIAL] [WITHOUT PC] [PORT/USE Any CyanogenMod Theme Bootanimation on any Android] - Android Software Development

Hey Guys, Chahat here!
This time with a Tutorial on how to port and use ANY CyanogenMod Theme's Bootanimation for and on any Android device.
Well, the Detailed Video Tutorial is also available, and i guess it'll help you better
[url]http://forum.xda-developers.com/android/software/tutorial-t3438058/post68157966#post68157966[/URL]
We'll port BOTH THE TYPE of bootanimations supported by the CMTE (CyanogenMod Theme Engine)
The ones containing portrait type frames (or .png files), and
The ones containing Square or Landscape type frames.
TOOLS REQUIRED:
ES file explorer
Batch image converter
Easy unrar
APKs of some CM themes having Bootanimation (Obviously -_- )
Calculator
1. The Bootanimations containing portrait frames:
Extract the theme apk by renaming it to .zip
Go to assets/bootanimation/bootanimation.zip, extract it
Go to batch image converter, select part0 folder
Convert the images in .png format, your screen size and don't forget to tick "replace existing files".
Do the same for the rest following folders (part1 and/or part2)
Move to ES file explorer, open the desc.txt file
There you'll find some values, the first and second values represent the resolution of images
Change the first and second values according to your screen size, save the file
Go to easy unrar, find part0, part1 and desc.txt
Select all part folders and desc.txt file, compress them to "STORE" level, named bootanimation.
After compression, cut the bootanimation.zip from there, extract the CM porting zip, place the bootanimation.zip in system/media folder and repack the zip
Reboot to recovery and flash
DONE!!!
2. Bootanimations containing Landscape or Square Frames:
Follow Steps 1-3 same as previous one
In the batch image converter, select conversion in png format, tick "Replace existing files" and move to Calculator
Now here's the tricky part, Note down the resolution of any image in the bootanimation zip
Suppose the resolution of the images of the bootanimation is 1080x720
And your screen resolution is 480x800
Divide the first value of the resolution of the image of bootanimation with that of your screen
1080/480=2.25
Now divide the second value of the image reslution with the number we obtained
720/2.25=320
So the resolution in which we have to convert the images with batch image converter will be 480x320.
Convert all the images in all the folders in the resolution you obtain
Rest all the steps same
DONE!!!
ATTACHMENTS:
CM Bootanimation Port.zip
The Flashing zip, How to use manual and the Calculator step Re:explained in text document, all packed in one zip
Tools.zip
Tools needed
:good:LIKE, SUBSCRIBE, SHARE!
:good:HIT THANKS

Related

How to edit splash images?

When I extract a splash screen file from the ExtROM cab, say for example Splash1.nb, how do I convert that .nb file into an image file which I can then edit in PhotoShop, and then how do I convert that edited image back into a .nb?
I'm not looking to create a splash file from an existing image I've made, I'm looking to modify an existing .nb file because it's already the image I want to use but I want to change a tiny aspect of it in PhotoShop.
Thanks!
Alex

What png images supported by Titanium

My png image files won't show up on a panel I made. If I use a png file already in windows from another plugin, it shows up on my panel. If I try to use mine, I get the red X all the time. Does this mean the png file is not the right type? What does the .png image have to be like to be supported by Titanium? Mine is 32x32.

Custom bootsplash screen

hey there, this post's for anyone out there who's really into messing with their phone and wants to set up a personalized bootsplash screen (i.e. the first image on the screen when you boot the phone)
you'll probably be familiar with the start-up images that you see on powering on your phone...from what i've found, there are 3 different screens that are displayed before you reach you today screen-
1-the manufacturer's boot image (the one with the htc logo)
2-the operator's splash screen (if present, i've found some phones do not necessarily include this or leave it empty r black)
3-the gif animation
images 2 and 3 can be changed from the advanced config tool or adding files in '/windows' folder
but for those who really want their phone to be unique the boot splash image, no. 1 above, is really hard to get on (took me three days of searching trial and error to finally get it done)
so here's a simple walkthrough for anyone else like me who want to do it too...
first you need to get the right tools...
a) go to forum.xda-developers.com/showthread.php?t=351136 and get the flashbootsplash.zip
b) next go to forum.xda-developers.com/showthread.php?t=375980 and download the splashtool.zip
both threads have given their own methods but i couldn't get them to work on my (old) gene even after numerous tries and my poor gene was down with the horrid green bars of failed attempts
now to get our hands dirty...
0. extract the contents of the zips into their respective folders
1. find an image file that you want as your boot screen and get it into .bmp format with resolution of 240X320 and bit depth of 24 (you can open your .jpeg in paint and use the 'save as' function to do this)
2. now run nb_image_converter.exe from the flashbootsplash folder extracted from zip file from first link (link a) and load your edited .bmp file, and then save it as splash.nb
3. now run GeneBootSplash.exe, then open your splash.nb that was created in the previous step, a gene_splash.nb will be created in the folder
4. copy this gene_splash.nb file into the splashtool folder which was extracted from the zip file from the second link (link b)
5. now run htcrt.exe, click on build, select your device from device list, in the firmware section go to splash option (click on the '...' next to 'Splash') and select the gene_splash.nb file copied in step 4 and then click on build
save file as RUU_signed.nbh
6. lastly, copy this .nbh file into your ROMUpdateUtility folder and run ROMUpdateUtility.exe to flash the .nbh file and you're done!!
that's all there is to it...
special mentions to- Vukile and M-Amine whose threads helped me get the job done and to the site for being as amazing as it is!!
*this is my first thread here so pardon it if it sounded too tacky*

Customize the Rom Update Utility (RUU)

Recently, I played with the HTC Rom Update Utility and collected some knowledge about it that I thought was worthwhile to share. Maybe you can use it as some guidelines & tips to customize the RUU for your own roms.
------------------------------------------
As you all know the HTC Rom Update Utility contains the following files:
Code:
EnterBootloader.exe ErrorBattery.fig ErrorUSB.fig ModelID.fig rapitool.exe ROMUpdateUtility.exe RUUGetInfo.exe RUUResource.dll
Modifying the dialog boxes
The dialogs that are displayed when launching the ruu are part of the RUUResource.dll. These dialog windows are fairly easy to modify with a resource editor, like for example Resource Tuner.
With a resource editor you can modify the text of the dialog windows. This can be very handy when you want to provide some extra info about your roms. Besides this you can change some controls like buttons, checkboxes etc. For example, for your own sake you can change the user interface to speed up the update proces by hiding the checkboxes and enable the next buttons by default. (see the attached RUUResource.dll)
Modifying the image displayed on the dialogs
The picture of the device showed on the lefthand side of the dialogs is contained in the file ModelID.fig . This picture has a height of 332 pixels and a width of 214 pixels.
To create your own image use your favorite image-editor. Save the created 332 x 214 image as a gif, bmp, jpg or png file and convert it to the "fig" format using the attached img2img tool (or download it from here) To convert for example the file x.bmp to x.fig run the following comand at the comand prompt:
Code:
img2img x.bmp x.fig
Creating a self-extracting CustomRUU.exe
All the RUU files can be packed together in a self-extracting exe using the SFX scripting facilities of WinRar. To do so: select the files that have to be packed together (see the listing at the top of this post). Right click and select "add to archive". Select "Create SFX archive" and go to the Advanced tap. Select "SFX Options..." and set the following parameters:
Code:
Tab general
Path to extract: current folder
Setup program: "setup.vbs" (explained later)
Tab modes
Silent mode: Hide all
Tab Text and Icon
Load SFX icon from file: enter your favorite icon (I attached a HD2 icon to this post to experiment with - [B]HD2_ico.zip[/B])
Because you want the self-extracting exe to clean up the files after the RomUpdateUtility has run, an extra batch file has to be created in which all files are deleted after the ruu is called. (I attached this batchfile as setup_bat.zip) Because Windows opens a comand window when a batch file is run, i've created a vb script for the Windows Scripting Host (part of the OS of Windows 98 and later) in which the batch file is called in a "hidden" window. (script attached as setup_vbs.zip). It is this script that is called by the SFX script.
Of course the setup files have to be deleted also (this is done in setup.bat)
Great tut.... nice!
Thanx!!
oh, this is what i was looking for! thanks for sharing
Good job man !
Thanks alot Now rom customization can go even further
Checkout 7-ZIP SFX Maker, perfect if your looking for a free / smaller option to WinRAR

Creating your own Bootscreen (EASY WAY)

Works in any Android ROM
This will teach you how to make a custom boot screen. (Usually replaces the default HTC quietly brilliant screen)
I HAVE NOW INCLUDED MY FIRST BOOTSCREEN. (It is katy perry wearing an elmo shirt) Download both items, and extract the one that says "EXTRACT THIS.rar" and make sure "Just download this.rar" is in the same file location. (I had to do this because the upload limit was 8mb and I had to split the file)
Then skip to Step 12
I sorted them into steps so you can easily follow what you must do.
1. Download "Root Explorer" from the Android Market. and allow SuperUser access
2. Open the application and go to system->customize->resource->and locate the file that says "bootanimation.zip"
3. on the top of the screen, there should read a toggle that says "Mount R/W". Click it, to where it says "Mount R/O". (Turns on the option to write to your Root)
4. Copy this file to your computer
5. Now put this aside for a while. Download the file attached to this post, extract it, and add it to your it to C:\Program Files\Adobe\Adobe Photoshop CS5\Presets\Scripts
6. Get a .gif or .avi file and open it with Adobe Photoshop. (Make sure it is already edited and must have a frame size of 480X800)
7. Now in Photoshop, go to, File->Scripts->Export Layers to Files(Fast PNG)
8. Locate the file you downloaded earlier to your computer from your phone. Extract it and go into the "android" folder.
9. Go to wherever you saved the exported layers, and rename every frame with accordance the frames in the "android" folder. So it matches.
10. Put all the renamed frames in the "android" folder and delete the old ones.
11. Use WinRar to zip them up again. BUT DO NOT COMPRESS THE .ZIP FILE, OTHERWISE THE PHONE WILL NOT RECOGNIZE IT.
12. Go back to your phone and locate the old "bootanimation.zip" and rename it to "bootanimation.bak".
13. Copy the the new "bootanimation.zip" into the same location and reboot phone.
14. Enjoy!!
Thanks for this very interesting tutorial.
Does anyone know a way without using Photoshop?
thank you very much
thankx a lot buddy this is first working and no problem tutorial...thankx

Categories

Resources