[Android Apps and Games] yashade2001:
[LANGUAGE][TOOL] AndroidCommandScript - A Scripting Language For ADB and Fastboot Commands !

​

Introduction

AndroidCommandScript ( Shortly ACS, known as AndCommandScript ) is a scripting language for writing ADB and Fastboot commands. ACS Scripting Language is very basic. It's just for main ADB and Fastboot commands. I wrote ACS Scripting Language for collecting and running ADB/Fastboot commands at a time. ACS Script files are in ".acss" format. You can write your own ACS script and share it. For example you can write an ACS script for rooting a device ( ACS is for all Android devices. ). Then people can run your script for rooting his/her device. So how to run an ACS script file ( .acss file ) ? Good question. I also wrote a program ( for Windows for now ) called "AndroidCommandScript Framework" for running ACS scripts. Don't worry! It has GUI :). And you can edit scripts before running the script with it. To writing a script you can create an .ACSS file and open it with notepad. Then write script with notepad and save that. Don't forget using Thanks button and donating to me ;). And you must run ACS Framework in ADB/Fastboot directory.

What is ACS Framework ?

It's just a Windows app for running .ACSS script files. Here is a screenshot :

.

It is very easy to use. Make sure you installed ADB/Fastboot drivers on your PC. You can edit .acss files as you see. You can run only .acss files.

ACS Scripting Language

ACS scripting language is very simple. It is only for ADB and Fastboot commands. It's not a big scripting language like shell etc. So let's learn ACS scripting language. In ACS Scripting Language, we type [ADB] or [FASTBOOT] first. Then we write the command like "reboot". So this is an ACS command:

[COLOR="Blue"][ADB][/COLOR] reboot

This command reboots our device. This command is for normal reboot. So we want to reboot to recovery. What can we do ? Add "r" to (). So this command reboots our device to recovery mode:

[COLOR="blue"][ADB][/COLOR] reboot[COLOR="DarkGreen"][B](recovery)[/B][/COLOR]

In ACS Language, we have abbreviations for "system","boot" and "recovery" words. ( This is NOT valid for reboot commands! ) We just use first letter of those words. For example:

[COLOR="blue"][FASTBOOT][/COLOR] flash[COLOR="DarkGreen"][B](b)[/B][/COLOR]

In this command, our command is "flash". Flash to which partition ? "B" is partition "boot". You can write "(r)" for flashing recovery.

For "Flash" commands, IMG file must be in the same folder with ACS Framework and you must rename it to "recovery.img" ( without ""s ). For example I want to flash a kernel ( sits to boot partition ) to my device with ACS command:

[COLOR="blue"][FASTBOOT][/COLOR] flash[COLOR="DarkGreen"][B](b)[/B][/COLOR]

This will flash "boot.img" to my device. For flashing an IMG, it must be in the same folder with ACS Framework and you must rename it to boot.img for Boot, recovery.img for Recovery, system.img for System. ACS Script developers should give script files with IMG files.

ACS Scripting Language Commands ( List )

[ADB] reboot : Normal reboot

[ADB] reboot(recovery) : Reboot into recovery mode

[ADB] reboot(bootloader) : Reboot into fastboot mode

[ADB] reboot(download) : Reboot into download mode

[FASTBOOT] flash(r) : Flash recovery

[FASTBOOT] flash(b) : Flash boot ( kernel )

[FASTBOOT] flash(s) : Flash system

[FASTBOOT] erase(b) : Erase boot partition

[FASTBOOT] erase(r) : Erase recovery partition

[FASTBOOT] erase(s) : Erase system partition

[FASTBOOT] format(s) : Format system

[FASTBOOT] format(r) : Format recovery

[FASTBOOT] format(b) : Format boot

[FASTBOOT] continue : Device will boot up normally

[FASTBOOT] reboot : Reboot into Android

[FASTBOOT] erase(cache-userdata) : Erase cache and userdata

Exceptional Commands :

[BEEP] : Beep sound

Msgbox.OkOnly=>Your Message : Message Box

And you can use // for comments.

*You have to have an unlocked bootloader to use Fastboot flash, erase and format commands.

How To Use ACS Framework ( How To Run An ACS Script File )

Just click to File->New Tab or press CTRL+N for opening a tab. Open a tab. Then click to "Select File" button. Select an .ACSS file. Then press F5 or click File->Execute to running selected script. It's very easy to use! You must put EXE file of ACS Framework to ADB/Fastboot directory. You can downoad ADB/Fastboot directory from here : http://www.mediafire.com/download/un5o60usn4ogbhs/fastboot+adb+mini.rar . Extract it to your desktop first. Then put exe file to desktop. Then you can use ACS Framework.

Make Your Own ACS Script

Do you want to be an ACS Developer ? Just make an .acss file and start to editing it. You can edit this one if you can't make a .acss file : http://www.mediafire.com/?azu161xy71ctmft . If you made an ACS script. Write it here and also give the XDA link of your ACS Script. I'll add that to "ACS Scripts ( List )" part ;) .

ACS Scripts ( List )

Check later!

ACS Script Samples

[ADB] reboot(bootloader)

[FASTBOOT] flash(b)

[BEEP]

Msgbox.OkOnly=>Kernel flashed. Rebooting now...

[FASTBOOT] reboot

This script is for kernel developers. Flashes your kernel automatically and reboots to Android. Wait for more commads like sideload and bootloader unlock ;)

Write your opinion :)

// This is not an Android app. Mods, please don't move it to apps section.

XDA:DevDB Information

AndroidCommandScript, a App for the No Device

Contributors

yashade2001

Version Information

Status: Beta

Current Stable Version: 1.0

Stable Release Date: 2013-10-31

Created 2013-10-31

Last Updated 2013-11-26