blob: 5560efc746b3c6881be79371d5135260587f98f1 [file] [log] [blame]
#!/bin/bash
#
# android_kill_skia: kills any skia processes on the device.
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $SCRIPT_DIR/utils/setup_adb.sh
if [ $(uname) == "Linux" ]; then
$ADB shell ps | grep skia | awk '{print $2}' | xargs -r $ADB shell kill
elif [ $(uname) == "Darwin" ]; then
$ADB shell ps | grep skia | awk '{print $2}' | xargs $ADB shell kill
else
echo "Could not automatically determine OS!"
exit 1;
fi