

Apps belonging to secondary as well as primary user have isolated mount namespaces. It's achieved through mount namespaces and different VIEWs of /data/media mounted in /mnt/runtime/. The whole story is about Android's filesystem emulation in order to have a permission-less directory ( /sdcard) which makes file sharing among multiple UNIX users (apps) possible. The default_normal option causes mounts with the gid set to AID_SDCARD_RW to have user specific gids, as in the normal case. What the mount option default_normal does in sdcardfs is explained here: This new flag isolates each user on a multi-user device for security reasons. To me it seems like it would be a problem if you were writing data to the phone at the time of disconnect.WHY IS ADB DENIED ACCESS TO MULTI-USER STORAGE?Īccess to /storage/emulated/10 is denied from adb shell due to this change in Android 9:

If this is true, that is an acceptable response if you can explain why. It seems that if it can automatically connect to the adb there should be an option to disconnect it?ĮDIT: This answer suggests closing the adb is not even necessary before removing your phone. 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). I know how to close the adb in the terminal using adb kill-server ( as stated here).

This, of course, does not work because the adb is still in use. When I want to remove my phone, I try to eject the device using "Safely Remove Hardware" feature on Windows. 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. I'm using Android Studio connected to my phone through usb using the adb (Android Debug Bridge).
