Here is the CASUALcore with a command-line UI attached. The CASUAL core is a 15meg file, and it's responsible for running several CASUAL Projects like JOdin3, the PIT Analyzer, and of course all of the publicly available CASUAL applications found on these forums, http://goo.im/devs/AdamOutler and http://builds.casual-dev.com.
Today, I'm releasing the CASUAL Command-Line user interface. What's this mean? It means this single 15 meg file can access ADB, Fastboot,
Heimdall, and all the CASUAL commands. It's powerful and worth keeping in your toolbox.
You just need to use the -e parameter and you can enter any of the commands. CASUAL is designed to be scripted in a text document, but you can make one-liners using the ";;;" delimeter. I encourage you to read the CASUAL Script documentation here and let your mind go wild. http://casual-dev.com/casual-commands-and-variables/
Here are some basic examples of what you can do with CASUAL script.
here is an example of using
CASUAL on a Windows, Linux or Mac system to flash boot.img from adb mode.
casual.jar -e "adb reboot bootloader;;;fastboot flash boot.img"
casual.jar -e "$WINDOWSMAC $ECHO this computer isn't Linux;;; $LINUX $ECHO this computer is Linux!"
casual-jar -e "$IFCONTAINS i747 $INCOMMAND $BUILDPROP $DO $ECHO this is an i747 device!"
Keep this tool handy, it contains command-line accessible Linux, Windows, Mac, and Raspberry Pi versions of ADB, Fastboot, Heimdall and CASUAL commands.
The CASUAL command-line UI has the advantage of being about as small as possible while retaining the functional properties of the CASUAL Core. This minimal CASUAL library can be integrated into applications. It costs 15megs of space and provides all the power of CASUAL, which is practically limitless when working with devices.
You can find full documentation on CASUALcore here: http://javadoc.casual-dev.com/
The CASUAL Core is written in Java 1.6 for compatibility and can be recompiled into .NET without any issues. CASUAL is GPLv3 so use it as you will and include it in your projects, but as per GPLv3 compliance, all major parts of the application must contain a user notice, including the UI.
Source Code: https://code.google.com/p/android-casual/