3 # Copyright 2015 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
7 # Kill a running instance of ChromePublic.
9 # Assumes you have sourced the build/android/envsetup.sh script.
11 SHELL_PID_LINES
=$
(adb shell ps |
grep -w 'org.chromium.chrome')
12 VAL
=$
(echo "$SHELL_PID_LINES" |
wc -l)
13 if [ $VAL -lt 1 ] ; then
14 echo "Not running ChromePublic."
16 SHELL_PID
=$
(echo $SHELL_PID_LINES |
awk '{print $2}')
17 if [ "$SHELL_PID" != "" ] ; then
19 adb shell
kill $SHELL_PID
22 echo "ChromePublic does not appear to be running."