Background
I'm using Android Studio connected to my phone through usb using the adb (Android Debug Bridge).
The Android Studio seems to recognize that I have connected my phone to the computer, starts the adb, and the device automatically becomes usable through Android Studio.
Issue
When I want to remove my phone, I try to eject the device using "Safely Remove Hardware" feature on Windows.
This, of course, does not work because the adb is still in use. I know how to close the adb in the terminal using adb kill-server
(as stated here). However, I'm wondering if there is a way to disconnect it from Android Studio (again, without having to use the terminal view to type adb kill-server
).
It seems that if it can automatically connect to the adb there should be an option to disconnect it?
EDIT: This answer suggests closing the adb is not even necessary before removing your phone. If this is true, that is an acceptable response if you can explain why. To me it seems like it would be a problem if you were writing data to the phone at the time of disconnect.