OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # android_install_app: installs the Skia development apps on the device. | 3 # android_install_app: installs the Skia development apps on the device. |
4 | 4 |
5 function print_usage { | 5 function print_usage { |
6 echo "USAGE: android_install_app [options] AppName" | 6 echo "USAGE: android_install_app [options] AppName" |
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 echo " AppName Can be either SampleApp or VisualBench" | 12 echo " AppName Can be either SampleApp or Viewer" |
13 } | 13 } |
14 | 14 |
15 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | 15 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
16 | 16 |
17 source $SCRIPT_DIR/android_setup.sh | 17 source $SCRIPT_DIR/android_setup.sh |
18 source $SCRIPT_DIR/utils/setup_adb.sh | 18 source $SCRIPT_DIR/utils/setup_adb.sh |
19 | 19 |
20 forceRemoval="false" | 20 forceRemoval="false" |
21 app="" | 21 app="" |
22 | 22 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 if [[ ${app} == 'SampleApp' ]]; then | 64 if [[ ${app} == 'SampleApp' ]]; then |
65 app="sample_app" | 65 app="sample_app" |
66 fi | 66 fi |
67 | 67 |
68 APP_LC=$(echo $app | tr "[:upper:]" "[:lower:]") | 68 APP_LC=$(echo $app | tr "[:upper:]" "[:lower:]") |
69 | 69 |
70 echo "Installing ${APP_LC} from ${APP_LC}/build/outputs/apk/${APP_LC}-${ANDROID_
ARCH}-${apk_suffix}" | 70 echo "Installing ${APP_LC} from ${APP_LC}/build/outputs/apk/${APP_LC}-${ANDROID_
ARCH}-${apk_suffix}" |
71 $ADB ${DEVICE_SERIAL} install -r ${SCRIPT_DIR}/../apps/${APP_LC}/build/outputs/a
pk/${APP_LC}-${ANDROID_ARCH}-${apk_suffix} | 71 $ADB ${DEVICE_SERIAL} install -r ${SCRIPT_DIR}/../apps/${APP_LC}/build/outputs/a
pk/${APP_LC}-${ANDROID_ARCH}-${apk_suffix} |
72 | 72 |
OLD | NEW |