Stop android adb service from command prompt or terminal

Android adb is the process that is related to the emulator, many times it so happens that it gets stuck and or you are not able to start it. In such a case we need to either kill or restart the adb server manually by running some commands.

For Mac OS X :

Go to Spotlight Search and open Terminal.

Now move to the location where adb is located :

$ cd /Users/code2care/Android/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/

Now type below command to kill the adb server process :

$ ./adb kill-server

In order to start the process again execute the below command :

$ ./adb start-server

For Windows OS :

Go to run and type cmd to open command prompt.

Now move to the location where adb is located.

C:/> cd /Android/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/

To stop adb run :

C:/Android/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/> adb kill-server

To start adb :