Giter Club home page Giter Club logo

amandroid-build's Introduction

amandroid-build

Build Amandroid using the Simple Build Tool (SBT)

Setup

Requirement: Java 8 or above

a. Execute following command to prepare the codebase:

setup.sh

b. To resolve sireum-amandroid-build Eclipse project dependency, run:

tools/bin/sbt-init

See http://www.scala-sbt.org/release/docs/index.html for more documentation on SBT. And check issue 1 if you face sbt downloading issues.

Hints: If you want to build Amandroid with your forked reporitory, you should modify setup.sh to have your reporitory's URL.

Build Amandroid

Execute following command to build Amandroid:

tools/bin/sbt clean compile package-bin "build-amandroid [/path/of/Amandroid] [isDeletePlatform] "

Hints: /path/of/Amandroid is the place you want to have Amandroid generated, and the path should not have any space. For Windows user it's should be X:\path\of\Amandroid and path length don't go beyond 1024. isDeletePlatform is a boolean value, which tells the build to keep platform folder or not. Platform folder contains java and scala library, which downloaded when you first time execute amandroid command. If you don't want to download such library repeatedly, just give a false.

Run Amandroid

For MacOS and Linux user

Requirement: wget, tar and unzip.

a. Go to /path/of/Amandroid, or set /path/of/Amandroid in your PATH.

b. [Optional] If you want to set the Java heap size (most of the time you do need).

export JAVA_OPTS=-Xms512m-Xmx8g

c. Setup java and scala:

setup

d. Run:

amandroid your.class.name arg1 arg2 ...

Examples commands, which will invoke object org.sireum.amandroid.cli.TaintAnalysis's main method with four arguments:

amandroid org.sireum.amandroid.cli.TaintAnalysis DATA_LEAKAGE false /amandroid/sources/icc-bench /output/icc-bench

For Windows user

Requirement: wget, unzip (Those two software can be downloaded from http://gnuwin32.sourceforge.net)

a. Go to X:\path\of\Amandroid, or set X:\path\of\Amandroid in your PATH.

b. [Optional] If you want to set the Java heap size (most of the time you do need).

SET JAVA_OPTS=-Xms512m-Xmx8g

c. Setup java and scala:

setup.bat

d. Run:

amandroid.bat your.class.name arg1 arg2 ...

Examples commands, which will invoke object org.sireum.amandroid.cli.TaintAnalysis's main method with four arguments:

amandroid.bat org.sireum.amandroid.cli.TaintAnalysis DATA_LEAKAGE false /amandroid/sources/icc-bench /output/icc-bench

amandroid-build's People

Contributors

fgwei avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

amandroid-build's Issues

Problem again

Im sorry,but I ran into another problem again, I am extremely sorry to bother you again.
The problem is when i try to run amandroid in linux .
for example - amandroid org.sireum.amandroid.csm.HideAPI_run
it gives me a command not found
then if i run - ./amandroid org.sireum.amandroid.csm.HideAPI_run
it give me a failed to download Java error, to which i have manually downloaded from ZULU and placed in the platform folder , but when I run the above command again it gives me the same error and also removes all the files in the platform folder. I am attaching a screen shot of the error I received.
I apologize for the inconvenience caused by me.
Thank you,
Kaushik Nimmala.
error2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.