Why are bind mounts not visible to other apps?

Why are bind mounts not visible to other apps?

I have been using bind mounts without disabling mount namespaces on Android for a while – Marshmallow (Android 6) and Nougat (Android 7.1, LineageOS 14.1). The bind mount is not visible to other apps because /storage/sdcard/ itself is also a layer of indirection.

Why are mounts not visible in storage / emulated / 0?

For example, when you run mount, you can see that the emulated “internal” SD card is not located at /storage/emulated, but at /data/media: Android 6.0 introduces a new runtime permissions model where apps request capabilities when needed at runtime.

Why are storage mounts not visible in Android 6.0?

Android 6.0 introduces a new runtime permissions model where apps request capabilities when needed at runtime. Because the new model includes the READ/WRITE_EXTERNAL_STORAGE permissions, the platform needs to dynamically grant storage access without killing or restarting already-running apps.

How to access / storage / emulated / 0 in Android?

Android recommends that you call Environment.getExternalStorageDirectory.getPath() instead of hardcoding /sdcard/ in path name. This returns the primary shared/external storage directory. So, if storage is emulated, this will return /storage/emulated/0.

What are the fields for bind mounts in Docker?

In the case of bind mounts, the first field is the path to the file or directory on the host machine. The second field is the path where the file or directory is mounted in the container. The third field is optional, and is a comma-separated list of options, such as ro, z, and Z.

What makes the files in a bind Mount the same?

The directories and files in the bind mount are the same as the original. Any modification on one side is immediately reflected on the other side, since the two views show the same data. the directories /some/where and /else/where have the same content, which is the content of /some/where.

How can I mount a network folder into an Android internal?

How Can I Mount A Network Folder Into An Android Internal Folder? I want to mount a network shared folder (Ex: \\10.0.0.240\\Folder) into an Android internal folder (Ex: /mnt/sdcard/MountedFolder), just like the MountManager App does.