Essentially, I have finished developing and debugging my android application and I would like to disconnect my android device. However I cannot safely disconnected since the adb process is still running!

How to systematically stop the adb process that Eclipse started?
Simply killing the process is dirty and inelegant!

Note: I am aware of keeping my device charging mode, however it does not solve the fact that the adb process is running when I disconnect my device (whether I keep it in charging mode or not)

有帮助吗?

解决方案

You can't kill the adb server from Eclipse, simply because that feature has not been implemented in Eclipse ADT plugin.

This is from Android Official documentation on Eclipse ADT plugin:

adb: Provides access to a device from your development system. Some features of adb are integrated into ADT such as project installation (Eclipse run menu), file transfer, device enumeration, and logcat (DDMS). You must access the more advanced features of adb, such as shell commands, from the command line.

其他提示

You can use adb kill-server

Visit this link for further details..

To stop the adb process you might want to kill the adb server through the following command on your command line,

/android-sdk/platform-tools/> adb kill-server

To start the adb Server you'll need to do the following,

adb start-server

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top