Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello.
I have connected my galaxy s2 to the pc and installed ADT Bundle.
I am opening CMD and accessing the adb shell.
I am able to write commands like "top" "ps" "devices" "mkdir"
However "Kill" command not working.
I am running an android project from eclypse and I am able to see its process ID. But when I type
kill 14421 it says operation not permitted.
Is there a way to kill a process from adb shell?
I googled a lot but found nothing.
Posted

Try this :
adb shell kill <PID>
 
Share this answer
 
Comments
missak boyajian 19-Jan-14 9:59am    
I did but its writing operation not permitted
Marco Bertschi 20-Jan-14 3:23am    
This happens because you need adminstration rights to kill a process.
adb shell kill <pid>

will do the job for you.
If you don't have tha process name and only know the name of the package, you might want to try
adb shell am force-stop <packagename>


Comming to talk about the issue that a process kill is not permitted: This matter is discussed in this beautiful SO Thread[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900