#!/bin/bash # You should have adb installed in your machine adb shell ps -A # show all process details ps -A | grep com.example.app # show the App(com.example.app) process details am kill com.example.app # used to kill the process # https://www.youtube.com/watch?v=l4uD0swZVsM&t=316s