| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # | 2 # |
| 3 # android_kill_skia: kills any skia processes on the device. | 3 # android_kill_skia: kills any skia processes on the device. |
| 4 | 4 |
| 5 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | 5 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
| 6 | 6 |
| 7 SKIP_TOOLCHAIN_SETUP="true" |
| 7 source $SCRIPT_DIR/android_setup.sh | 8 source $SCRIPT_DIR/android_setup.sh |
| 8 source $SCRIPT_DIR/utils/setup_adb.sh | 9 source $SCRIPT_DIR/utils/setup_adb.sh |
| 9 | 10 |
| 10 if [ $(uname) == "Linux" ]; then | 11 if [ $(uname) == "Linux" ]; then |
| 11 $ADB $DEVICE_SERIAL shell ps | grep skia | awk '{print $2}' | xargs -r $ADB
$DEVICE_SERIAL shell kill | 12 $ADB $DEVICE_SERIAL shell ps | grep skia | awk '{print $2}' | xargs -r $ADB
$DEVICE_SERIAL shell kill |
| 12 elif [ $(uname) == "Darwin" ]; then | 13 elif [ $(uname) == "Darwin" ]; then |
| 13 $ADB $DEVICE_SERIAL shell ps | grep skia | awk '{print $2}' | xargs $ADB $DE
VICE_SERIAL shell kill | 14 $ADB $DEVICE_SERIAL shell ps | grep skia | awk '{print $2}' | xargs $ADB $DE
VICE_SERIAL shell kill |
| 14 else | 15 else |
| 15 echo "Could not automatically determine OS!" | 16 echo "Could not automatically determine OS!" |
| 16 exit 1; | 17 exit 1; |
| 17 fi | 18 fi |
| OLD | NEW |