Q1. Why is below different behavior is occurring ?
Q2. How to gets photos visible in gallery in scenario 1 as well like scenario 2 ?
Scenario 1:
$ su -mm
# mount -o bind /mnt/runtime/write/emulated/0/mozo /mnt/runtime/write/emulated/0/X/Y
then photos of Y are not visible in gallery even after android media store refresh.
Scenario 2:
$ su -mm
# mount -o bind /mnt/runtime/write/emulated/0/mozo /mnt/runtime/write/emulated/0/X
then photos of X gets visible in Gallery after android media store refresh.
in both scenarios, photos of Y and X are visible in File Managers.
Note: by photos of X or Y means those photos which are stored in mozo folder but should also be reflecting in X or Y after Mounting mozo on X or Y. Here /mnt/runtime/write/emulated/0 is internal storage path.
Extra Info:
phone: Android 13
# mount | grep /mnt/runtime/write/emulated/0/X/Y
/data/media on /mnt/runtime/write/emulated/0/X/Y sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid,default_normal,unshared_obb)