Skip to content
christofferqa edited this page Apr 9, 2015 · 36 revisions

Install instructions

Step 1 on Ubuntu 14 LTS Steps (prerequisites and emulator)

  • Install the following:

    sudo apt-get update
    sudo apt-get install openjdk-7-jdk git gnupg flex bison gperf build-essential \
    zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
    libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
    libgl1-mesa-dev g++-multilib mingw32 tofrodos \
    python-markdown libxml2-utils xsltproc zlib1g-dev:i386 \
    gradle curl redis-server dpkg-dev nodejs-legacy npm lib32z1 \
    ack-grep
    
  • Prepare the repository folder (the paths are fixed to the following)

    sudo mkdir -p /Volumes/Android4.4.3/
    sudo chown -R USERNAME /Volumes
    git clone https://github.com/cs-au-dk/thor.git /Volumes/Android4.4.3/thor
    
  • Download the Android images

    curl www.brics.dk/thor/files/android-images.zip -o instrumented.zip
    mkdir -p /Volumes/Android4.4.3/thor/Android/out/target/product/generic_x86
    unzip instrumented.zip -d /Volumes/Android4.4.3/thor/Android/out/target/product/generic_x86
    
  • Final setup

    • Change ANDROID_IMAGES_DEST_PATH in /Volumes/Android4.4.3/thor/Android/emulator1 to /home/USERNAME/android_images

    • In your .bashrc add ANDROID_HOME=/Volumes/Android4.4.3/thor/Android

    • Run the script init.sh in the Android folder:

      cd /Volumes/Android4.4.3/thor/Android
      sudo ./init.sh
      

Step 1 on Mac OS X

Step 2 (building)

  • Build the gradle plugin

    cd GradlePlugin
    gradle install
    
  • Build the instrumentation folder

    cd Instrumentation/SootAndroidInstrumentation
    gradle install
    
  • Build the Espresso wrapper

    cd Robotium2Espresso
    ./gradlew install
    
  • Build every app in the Applications folder

    • AnyMemo

      ./gradlew assembleFreeDebug assembleProDebugTest
      
    • Car-Cast, Numix Calculator (com.numix.calculator), Pocket Paint (Paintroid), and Pocket Code (Catroid-latest)

      ./gradlew assembleDebug assembleDebugTest
      
  • Download the needed Node.js modules

    cd BacklogRunner
    npm install
    
Clone this wiki locally