Index: platform_tools/android/bin/android_install_app |
diff --git a/platform_tools/android/bin/android_install_app b/platform_tools/android/bin/android_install_app |
index f61987d4abd3f33da5523cc0def67ea357ca72c4..83b879f444d6f489eb92ab39047a274435eef883 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" ]]; |
borenet
2015/07/31 16:57:43
Do we care about configs like "Release_Developer"?
|
+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} |