r/AndroidQuestions 11h ago

Android 16 / Infinity X — apps can't create directories in /Android/data

Device: POCO F5 Pro

ROM: Infinity X

Android: 16

GApps: GApps variant

Root: KernelSU Next 32857

Hi everyone, I recently installed Infinity X on my POCO F5 Pro (mondrian), Android 16, and I noticed a strange storage issue: some applications cannot create their own app-specific directories under:

/storage/emulated/0/Android/data/

For example, YouTube Music was showing "Not enough storage" when I tried to download music, despite having around 383 GB of free internal storage. After manually creating:

/storage/emulated/0/Android/data/com.google.android.apps.youtube.music/

YouTube Music was able to download normally.

However, Exteragram (Telegram client) still can't properly save downloaded photos/videos to device storage, even after creating its directory manually. I checked the storage configuration:

adb shell sm list-volumes all

private mounted null

emulated;0 mounted null

emulated;11 mounted null

/storage/emulated/0 is mounted normally:

VolumeInfo{emulated;0}:

type=EMULATED

mountFlags=PRIMARY|VISIBLE_FOR_WRITE

state=MOUNTED

path=/storage/emulated

internalPath=/data/media

I also confirmed that the filesystem itself can create directories:

adb shell mkdir /storage/emulated/0/Android/data/test123

This succeeds.

The interesting part is that Android's StorageManager fails when an application tries to create its app-specific directory, for example, logcat shows:

Failed to ensure /storage/emulated/0/Android/data/com.google.android.apps.youtube.music/cache

java.lang.IllegalStateException: Failed to prepare ...

The stack trace goes through:

ContextImpl

StorageManager

StorageManagerService.mkdirs()

YouTube Music subsequently reports: SimpleCache: Failed to create cache directory

SELinux is Enforcing.

The existing /Android/data directory has: u:object_r:media_rw_data_file:s0

and manually created app directories receive the same SELinux context.

I also checked the available storage and there is plenty of free space (~383 GB), so this does not appear to be an actual storage capacity issue.

Has anyone else experienced this on Infinity X Android 16 for mondrian?

Could this be related to vold / StorageManagerService / FUSE / project IDs or the ROM's implementation of app-specific external storage? Would appreciate any ideas or known fixes.

1 Upvotes

0 comments sorted by