2013-04-29 12:09:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# android_kill_skia: kills any skia processes on the device.
|
|
|
|
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
2016-03-28 16:35:41 +00:00
|
|
|
SKIP_TOOLCHAIN_SETUP="true"
|
2015-05-14 13:37:23 +00:00
|
|
|
source $SCRIPT_DIR/android_setup.sh
|
2013-04-29 12:09:31 +00:00
|
|
|
source $SCRIPT_DIR/utils/setup_adb.sh
|
|
|
|
|
|
|
|
if [ $(uname) == "Linux" ]; then
|
2015-02-03 23:07:30 +00:00
|
|
|
$ADB $DEVICE_SERIAL shell ps | grep skia | awk '{print $2}' | xargs -r $ADB $DEVICE_SERIAL shell kill
|
2013-04-29 12:09:31 +00:00
|
|
|
elif [ $(uname) == "Darwin" ]; then
|
2015-02-03 23:07:30 +00:00
|
|
|
$ADB $DEVICE_SERIAL shell ps | grep skia | awk '{print $2}' | xargs $ADB $DEVICE_SERIAL shell kill
|
2013-04-29 12:09:31 +00:00
|
|
|
else
|
|
|
|
echo "Could not automatically determine OS!"
|
|
|
|
exit 1;
|
2016-03-28 16:35:41 +00:00
|
|
|
fi
|