Stop android adb service from command prompt or terminal

Posted on : Thu, 7th May 15 12:13 pm UTC
100+ votes

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.

  1. 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

  2. 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 :

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

Code2care's mission is to share varied knowledge in technical and non-technical areas gathered during day-to-day learnings and development activities so that our visitors can leverage this portal to find solutions to their queries without re-inventing the wheel. Technical posts include Learnings, Tutorials, Video Tutorials, Code Snippets, Tips-n-tricks.

Follow us : Facebook - Twitter - Google +