aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/android/bin/android_install_app
diff options
context:
space:
mode:
authorGravatar djsollen <djsollen@google.com>2015-07-31 10:25:17 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-31 10:25:17 -0700
commit5119ac069e6cf70175b5581eedee7d07347b216a (patch)
treed378fb94f4872bd57780bddd41fd9208bdde93bc /platform_tools/android/bin/android_install_app
parentb411b3b87dcdfc124f7eec5581d510a5282a8563 (diff)
Update Android Testing apps to support release mode
Diffstat (limited to 'platform_tools/android/bin/android_install_app')
-rwxr-xr-xplatform_tools/android/bin/android_install_app13
1 files changed, 10 insertions, 3 deletions
diff --git a/platform_tools/android/bin/android_install_app b/platform_tools/android/bin/android_install_app
index f61987d4ab..83b879f444 100755
--- a/platform_tools/android/bin/android_install_app
+++ b/platform_tools/android/bin/android_install_app
@@ -54,9 +54,16 @@ then
$ADB ${DEVICE_SERIAL} uninstall com.skia > /dev/null
fi
-BUILD_TYPE_LC=$(echo $BUILDTYPE | tr "[:upper:]" "[:lower:]")
+if [[ "$BUILDTYPE" == "Release" ]];
+then
+ apk_suffix="release-unsigned.apk"
+else
+ apk_suffix="debug.apk"
+fi
+
+
APP_LC=$(echo $app | tr "[:upper:]" "[:lower:]")
-echo "Installing ${APP_LC} from ${APP_LC}/build/outputs/apk/${APP_LC}-${ANDROID_ARCH}-${BUILD_TYPE_LC}.apk"
-$ADB ${DEVICE_SERIAL} install -r ${SCRIPT_DIR}/../apps/${APP_LC}/build/outputs/apk/${APP_LC}-${ANDROID_ARCH}-${BUILD_TYPE_LC}.apk
+echo "Installing ${APP_LC} from ${APP_LC}/build/outputs/apk/${APP_LC}-${ANDROID_ARCH}-${apk_suffix}"
+$ADB ${DEVICE_SERIAL} install -r ${SCRIPT_DIR}/../apps/${APP_LC}/build/outputs/apk/${APP_LC}-${ANDROID_ARCH}-${apk_suffix}