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

Side by Side Diff: platform_tools/android/bin/android_install_apk

Issue 22929006: default to device type of last build if no device type is given (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: addressing comments Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # android_install_skia: installs the skia apk on the device. 3 # android_install_skia: installs the skia apk on the device.
4 4
5 function print_usage { 5 function print_usage {
6 echo "USAGE: android_install_skia [options]" 6 echo "USAGE: android_install_skia [options]"
7 echo " Options: -f Forces the package to be installed by removing any " 7 echo " Options: -f Forces the package to be installed by removing any "
8 echo " previously installed packages" 8 echo " previously installed packages"
9 echo " -h Prints this help message" 9 echo " -h Prints this help message"
10 echo " --release Install the release build of Skia" 10 echo " --release Install the release build of Skia"
11 echo " -s [device_s/n] Serial number of the device to be used" 11 echo " -s [device_s/n] Serial number of the device to be used"
12 } 12 }
13 13
14 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 14 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
15 15
16 source $SCRIPT_DIR/android_setup.sh
16 source $SCRIPT_DIR/utils/setup_adb.sh 17 source $SCRIPT_DIR/utils/setup_adb.sh
17 source $SCRIPT_DIR/utils/setup_skia_out.sh
18 18
19 forceRemoval="false" 19 forceRemoval="false"
20 installLauncher="false" 20 installLauncher="false"
21 installOptions="-r" 21 installOptions="-r"
22 configuration="Debug" 22 configuration="Debug"
23 23
24 while (( "$#" )); do 24 while (( "$#" )); do
25 25
26 if [[ "$1" == "-f" ]]; 26 if [[ "$1" == "-f" ]];
27 then 27 then
(...skipping 18 matching lines...) Expand all
46 done 46 done
47 47
48 if [[ "$forceRemoval" == "true" ]]; 48 if [[ "$forceRemoval" == "true" ]];
49 then 49 then
50 echo "Forcing removal of previously installed packages" 50 echo "Forcing removal of previously installed packages"
51 $ADB ${DEVICE_SERIAL} uninstall com.skia > /dev/null 51 $ADB ${DEVICE_SERIAL} uninstall com.skia > /dev/null
52 fi 52 fi
53 53
54 echo "Installing Skia App from ${SKIA_OUT}/${configuration}" 54 echo "Installing Skia App from ${SKIA_OUT}/${configuration}"
55 $ADB ${DEVICE_SERIAL} install ${installOptions} ${SKIA_OUT}/${configuration}/and roid/bin/SkiaAndroid.apk 55 $ADB ${DEVICE_SERIAL} install ${installOptions} ${SKIA_OUT}/${configuration}/and roid/bin/SkiaAndroid.apk
OLDNEW
« no previous file with comments | « no previous file | platform_tools/android/bin/android_make » ('j') | platform_tools/android/bin/android_make » ('J')

Powered by Google App Engine
This is Rietveld 408576698