[Android Software Development] eraste:
How to make a windows one click tool,

Featured on the XDA Portal! Check it out

[YOUTUBE]DEwGd1JyQng[/YOUTUBE]​

Hello all I use these one click tools for just about everything. They make things simple. Today I will demonstrate how to make a simple one click tool to change the boot animation on your phone.

More advanced users and after you have mastered the basics check out post 2 for creating a multi tool with menus etc!

Remember please this is just a tutorial and you will have to edit it and create one specific for your device!

XDA Senior Member mnishamk has expanded upon this tutorial even further and made it automated! Check out his thread HERE.

I will be making this tool compatible with my Samsung galaxy note 2 with custom bootanimation support.

You should also know that some phones need to have custom bootanimation support for this tool to work such as samsung.

Also your phone must be rooted.

Disclaimer you try this at your own risk!

To learn more about ADB/Fastboot you can check out the tutorials I learned from:

[TUTORIAL] Everything about ADB - A reference for everyone Great guide by: Droidzone

[GUIDE][ADB]Easiest How to use adb, logcat, etc for noobs and newbies This is a newer guide by: iamareebjamal he explains ADB, commands, uses, logcat and a few other goodies.

[GUIDE] ADB Workshop and Guide for everyoneAnother good guide to ADB by: Captainkrtek

Simple guide to ADB/FastbootEasy to follow adb/fastboot guide by: Andy

Files you will need are included in this zip:

Bootaniflasher.zip

It contains:

Adb.exe – file needed for adb to function

Adbwinapi.dll – needed for windows

Adbwinusbapi – needed for windows

Fastboot.exe – needed for some mods

Bootani.bat – the one click file that runs your script

Programs you will need:

Standard windows notepad

What is so great about this, the only thing you will need to create/edit is the bootani.bat file! Also it is so simple that after reading this tutorial a cave man could do it!

Creating the bootani.bat file:

1.	open a blank notepad page

2.	click file/save as then type in bootani.bat leave the type as a text

document and encoding to ansi.

3.	Now to write the script that will actually change the bootanimation

In the open notepad

Type the following information so that it looks like the screenshot:

ECHO is used to put text on the UI screen similar to the ui_print function in an updater script.

@ECHO OFF
COLOR 9b - this is the color of the UI - for a list of these click [URL="http://www.computerhope.com/color.htm"]here[/URL]
ECHO.
ECHO one click bootanimation flasher – title of the one click tool
ECHO. ends the text
ECHO By: XDA Eraste – you can put whatever you want here or leave it out..
ECHO.
ECHO.
ECHO. Adding space between text that appears by typing more ECHO. lines
ECHO Use this at your own risk! – simple disclaimer
ECHO.
ECHO By pressing enter you understand the risks – disclaimer
ECHO.
ECHO.
ECHO make sure your phone has usb debugging mode enabled! - information
ECHO.
ECHO.
ECHO make sure you put your custom bootanimation.zip file in this folder – info
ECHO.
PAUSE – this means nothing else will happen until user presses enter, any button
ECHO Loading files and preparing to send – simple information that displays
ECHO.
adb wait-for-device - this tells adb to wait until user has connected the phone
ECHO sending bootanimation - simple information that is displayed
ECHO.
adb push bootanimation.zip /system/media/bootanimation.zip - script that installs
the bootanimation!
ECHO Almost finished – more info
ECHO.
ECHO finished rebooting!
adb reboot – tells the phone to restart this allows you to make sure changes stuck
ECHO thanks for using this script
ECHO.
PAUSE
EXIT - closes the UI

4.	Now click file/save

5.	Put this bootani.bat file in your folder containing the above files also

6.	Now find a custom bootanimation that you would like use and place the

bootanimation.zip in this folder also.

7.	To test your new script plug up your phone make sure usb debugging is

enabled then double click the bootani.bat file and follow your on screen

directions!

If you did everything correct the above settings will create a crisp blue UI like this:

This tutorial and attached files will work on the Samsung galaxy note 2 with custom bootanimation support!

You can edit this bootani.bat to whatever you would like. For instance you can use a one click tool to reinstall all your apps after you flash a new rom!

There really are endless possibilities with one click tools and you can customize the UI, script, etc to your liking.

Those other processes are a little more in depth but virtually the same process in creating them.

You can name the bootani.bat file to whatever you like and customize the UI in whatever way you like by following the template above. The only things that will change in creating other types of one click tools are the scripts that you type into the notepad file.

Common places of bootanimation files:

Samsung: if custom bootanimation is supported by your rom usually in /system/media

HTC: /system/customize/resource

Note: On other devices such as HTC custom bootanimation support is not necessary as they use the standard .zip for the animation you can change them simply by typing the original name of the boot zip in your script. Example The ATT HTC one x stock boot zip file is named ATT_bootanimation.zip. So you can rename your custom one to this name stick it in your folder then change the one click script to reflect this name and voila!

Bootanimations can be changed on rooted phones only!

Hopefully this will help some of your newer people in gaining a bigger interest in creating cool programs that you can use on your own!

Hit thanks if this helped you learn something new!