Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

CASUAL Command Line / Library

OP AdamOutler

25th September 2014, 03:24 AM   |  #1  
Hi guys,

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.


For end-users:
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/

Examples
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.
Code:
casual.jar -e  "adb reboot bootloader;;;fastboot flash boot.img"
Host Operating System specific branch operations using echo command:
Code:
casual.jar -e "$WINDOWSMAC $ECHO this computer isn't Linux;;; $LINUX $ECHO this computer is Linux!"
Device Operating System specific branch operations checking for i747 in the build.prop:
Code:
casual-jar -e "$IFCONTAINS i747 $INCOMMAND $BUILDPROP $DO $ECHO this is an i747 device!"
Bottom Line
Keep this tool handy, it contains command-line accessible Linux, Windows, Mac, and Raspberry Pi versions of ADB, Fastboot, Heimdall and CASUAL commands.



For Developers:
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/

Bottom line
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.

Download
http://goo.gl/4PsDfr

Sources
Source Code: https://code.google.com/p/android-casual/
Information: http://casual-dev.com
Javadocs: http://javadoc.casual-dev.com
Builds: http://builds.casual-dev.com/CASUAL
Attached Thumbnails
Click image for larger version

Name:	CASUAL Commandline.png
Views:	77
Size:	119.7 KB
ID:	2949391  
Last edited by AdamOutler; 25th September 2014 at 04:42 AM.
The Following 4 Users Say Thank You to AdamOutler For This Useful Post: [ View ]
25th September 2014, 03:25 AM   |  #2  
Meet the team
CASUAL Developers

adamoutler LeadDeveloper
+ Owner
Design new features, write code and unit tests
Lead by providing a project vision and roadmap
Plan the scope of release and track progress
Triage new issues and support requests from end-users


@jrloper Owner
Component owner for CADI
Design core libraries, write code and unit tests
Test the system before each release
Triage and assign new issues


@Loglud Owner
Component owner for CASCADE
Create graphic artwork, audio, and other data assets
Design new features, write code and unit tests
Lead the UI design and incorporate feedback


@trevd1234 Committer
Component owner for ADBX
Design new features, write code and unit tests
Share expert knowledge of ADB


@Ralekdev Committer
Component owner for exploit code contained within Verizon Galaxy Note II Jailbreak
Decompile, Review, Modify and Exploit critical Operating System components
Reverse Engineer and Modify Assembly Code


@Benjamin Dobell Committer
Component owner for Heimdall
Design core libraries, write code and unit tests
Specify and write code for APIs and plug-in interfaces


@kuronosan Artist
+ Committer
Component Owner for ZodUI in-app graphic artwork
Lead the UI design and incorporate feedback
Provide creative vision in graphic artwork design


@sixstringsg Contributor
Measure performance and find bottlenecks
Review changes and provide constructive feedback


@Juless Commit
+ Contributor
+ Translator
Component owner for French Translation
Have fun hacking and learn new stuff!


karlovranjes53 Commit
+ Contributor
+ Translator
Have fun hacking and learn new stuff!
Translator for Croatian Language


@TheLinkin Commit
+ Contributor
+ Translator
Component owner for espaņol Translation
Have fun hacking and learn new stuff!


Klaas.madison2389 Commit
+ Contributor
+ Translator
Component owner for Italiano Translation
Have fun hacking and learn new stuff!


Omacranger Commit
+ Contributor
+ WebDeveloper
Component Owner for JOdin3 web-page
Lead the WebUI design and incorporate feedback


Looking for mentoring or guidance? CASUAL can provide it in the form of coding tasks.
Last edited by AdamOutler; 25th September 2014 at 04:38 AM.
The Following 4 Users Say Thank You to AdamOutler For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes