aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/android/bin/android_install_app
diff options
context:
space:
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}