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 )"
|
|
|
|
|
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;
|
2013-05-16 18:12:34 +00:00
|
|
|
fi
|