#!/bin/bash pid=$(adb shell "ps | grep $1" | awk '{print $2}') adb shell "kill $pid"