Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: platform_tools/android/bin/android_install_app

Issue 1589883002: SampleApp: Make android_install_app and android_launch_app work consistently (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | platform_tools/android/bin/android_launch_app » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 01a792e9f9742953b6953b5fd7c3f12b1925adb0..4b29b098642795b774cd506dbe3ecba5e0368893 100755
--- a/platform_tools/android/bin/android_install_app
+++ b/platform_tools/android/bin/android_install_app
@@ -1,15 +1,15 @@
#!/bin/bash
#
-# android_install_app: installs the skia sampleApp on the device.
+# android_install_app: installs the Skia development apps on the device.
function print_usage {
- echo "USAGE: android_install_app [options]"
+ echo "USAGE: android_install_app [options] AppName"
echo " Options: -f Forces the package to be installed by removing any"
echo " previously installed packages"
echo " -h Prints this help message"
echo " --release Install the release build of Skia"
echo " -s [device_s/n] Serial number of the device to be used"
- echo " AppName Can be either sample_app or VisualBench"
+ echo " AppName Can be either SampleApp or VisualBench"
}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@@ -43,8 +43,8 @@ for arg in ${APP_ARGS[@]}; do
done
if [[ ${app} == "" ]]; then
- echo "defaulting to installing sample_app."
- app="sample_app"
+ echo "Defaulting to installing SampleApp."
+ app="SampleApp"
fi
@@ -61,6 +61,9 @@ else
apk_suffix="debug.apk"
fi
+if [[ ${app} == 'SampleApp' ]]; then
+ app="sample_app"
+fi
APP_LC=$(echo $app | tr "[:upper:]" "[:lower:]")
« no previous file with comments | « no previous file | platform_tools/android/bin/android_launch_app » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698