Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import subprocess
import sys
pslist = subprocess.check_output("adb shell ps " + sys.argv[1]).decode("utf-8").split()
if len(pslist) > 8:
pid = pslist[9]
print("killing " + pid)
subprocess.check_call("adb shell kill " + pid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment