android_terminal/tools/push-samples-debug

25 lines
773 B
Plaintext
Raw Normal View History

2015-02-14 11:28:52 -08:00
#!/bin/bash
# command line build script for installing and running terminal emulator.
set -e
if [ -z "${ANDROID_SDK_ROOT+xxx}" ]; then
echo "Please define ANDROID_SDK_ROOT to point to the Android SDK"
exit 1
fi
if [ ! -d "$ANDROID_SDK_ROOT" ]; then
echo "The directory $ANDROID_SDK_ROOT = ${ANDROID_SDK_ROOT} does not exist."
exit 1
fi
ADB="$ANDROID_SDK_ROOT/platform-tools/adb"
$ADB uninstall jackpal.androidterm.sample.intents
2015-02-14 11:46:31 -08:00
$ADB install -r samples/intents/build/outputs/apk/intents-debug.apk
2015-02-14 11:28:52 -08:00
$ADB uninstall jackpal.androidterm.sample.pathbroadcasts
2015-02-14 11:46:31 -08:00
$ADB install -r samples/pathbroadcasts/build/outputs/apk/pathbroadcasts-debug.apk
2015-02-14 11:28:52 -08:00
$ADB uninstall jackpal.androidterm.sample.telnet
2015-02-14 11:46:31 -08:00
$ADB install -r samples/telnet/build/outputs/apk/telnet-debug.apk