#!/bin/bash

function die { echo $*; exit 42; }

ant debug || die "Unable to compile."

adb uninstall io.magnum.antimalware
adb install bin/Profiler-debug.apk || die "Unable to install."
adb shell am start -a android.intent.action.MAIN \
  -n io.magnum.antimalware/.MalwareActivity || die "Unable to start."

Add script to build and sync to the device.
Add script to build and sync to the device.
