What is ADB?
Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device. It is a client-server program. It is necessary when we connect our Android devices to our PC for debugging or testing apps, mirroring screens etc.
Why this message appears?
Whenever we connect our Android device to the PC it is the adb.exe which maintains the communication between them. Now, even if we close the particular program for which the Android device was connected, the adb.exe holds resources of the device thus it warns not to unplug the device. Most of the time the user get confused that all the application programs are closed still it shows the warning.
How to eject the Android device safely?
Well, to safely eject the device you have to follow the steps described below.
- Start the Task Manager by pressing CTRL+Shift+ESC
- Click on the tab “Processes” and Select “adb.exe”
- A dialog box will open asking “Do you want to ‘adb.exe*32’?“
- Click on “End Process”
- That’s it, now you can safely eject the device. Simply go to the System tray and eject the device.
This tutorial is applicable to any android devices that are connected through adb tool. To know whether the device is connected through adb or not, simply open the task manager and if you see the adb.exe under Processes tab, it implies the device is connected based on adb tool.
If you face the same problem with any other devices just find out the application/process by which the resources of the device is kept hold. Then end that particular process and you can safely remove the USB device.
Note: When you open task manager, be careful. Never end a process which you don’t recognize.