kill a process inside an Android device

suggest change

Sometimes Android’s logcat is running infinitely with errors coming from some process not own by you, draining battery or just making it hard to debug your code.

A convenient way to fix the problem without restarting the device is to locate and kill the process causing the problem.

From Logcat

03-10 11:41:40.010 1550-1627/? E/SomeProcess: ....

notice the process number: 1550

Now we can open a shell and kill the process. Note that we cannot kill root process.

adb shell

inside the shell we can check more about the process using

ps -x | grep 1550

and kill it if we want:

kill -9 1550

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents