8ce5912fe3
This is an attempt to avoid downloading the android toolchain when not required. I went through all binaries listed in https://code.google.com/p/chromium/codesearch#chromium/build/scripts/slave/recipe_modules/skia/android_flavor.py except for android_ninja. BUG=skia:5119 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1832883002 Review URL: https://codereview.chromium.org/1832883002
19 lines
590 B
Bash
Executable File
19 lines
590 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# android_kill_skia: kills any skia processes on the device.
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
SKIP_TOOLCHAIN_SETUP="true"
|
|
source $SCRIPT_DIR/android_setup.sh
|
|
source $SCRIPT_DIR/utils/setup_adb.sh
|
|
|
|
if [ $(uname) == "Linux" ]; then
|
|
$ADB $DEVICE_SERIAL shell ps | grep skia | awk '{print $2}' | xargs -r $ADB $DEVICE_SERIAL shell kill
|
|
elif [ $(uname) == "Darwin" ]; then
|
|
$ADB $DEVICE_SERIAL shell ps | grep skia | awk '{print $2}' | xargs $ADB $DEVICE_SERIAL shell kill
|
|
else
|
|
echo "Could not automatically determine OS!"
|
|
exit 1;
|
|
fi
|