Take the 2-minute tour ×

I am unable to stop the emulator from command prompt gracefully.

I am using Linux Ubuntu 10.04 version (64-bit) and Android SDK Version is 2.3.

I started emulator using its snapshot. Now my concern is to shut down the running instance of Emulator gracefully. I have tried with kill -9 (process Id for emulator running) which shut downs the emulator but next time it does not start as its snapshot got corrupted. Please help me to avoid forceful shutdown of the an emulator.

Any idea how to fix it?

share|improve this question
Why do you need t shut it down via command line? –  Mike dg May 6 '11 at 14:02
for auto testing purposes? –  Xi Zhang Apr 24 '12 at 20:55

2 Answers 2

The correct command is

 $ adb emu kill

Please don't use kill -9 indiscriminately, it's a very bad habit.

share|improve this answer
Thanks Dtmilano. It worked!!! –  Sam May 6 '11 at 14:41
This works find on linux, but doesn't work on Windows 7. There is a bug opened for this: code.google.com/p/android/issues/detail?id=21021 –  inazaruk Dec 4 '11 at 12:20
doesn't works on OS X 10.10 –  mirancon Dec 8 at 10:09

Try this on the command line:

adb shell stop && kill -9 <pid>

If you don't need to do it via command line you can just close it via your window manager with no trouble.

share|improve this answer

Your Answer


