Whatever device is accessing the storage needs exclusive access to it.
There were problems with the way this worked. The drive makes itself completely available to the computer, just as if it were an internal drive. USB mass storage is the standard protocol used by flash drives, external hard drives, SD cards, and other USB storage devices. When disconnecting it from the computer, you'd have to tap a 'Turn off USB storage' button. When you connected your Android device to your computer, you'd have to specifically tap a 'Connect storage to PC' button to make the Android device's storage accessible to the computer over USB mass storage. USB mass storage - also known as 'USB mass storage device class,' USB MSC, or UMS - was the way older versions of Android exposed their storage to a computer. Why Modern Android Devices Don't Support USB Mass Storage You'll also see the protocol your device is using as a notification when it's connected to a computer via USB. To select a USB connection protocol, open the Settings app, tap Storage, tap the menu button, and tap USB computer connection.