[Oppo Find 7 and 7a] xdix:
Internal storage problems

Hello,

I changed from Nameless to Omnirom due to lvm issues.

For now everything is working great except of the internal storage ( internal sdcard, emulated or legacy or whatever it's called ). Everytime I or an app tries to use it it won't work. Logs don't say much except for

E/sdcard(365): opendir /data/media/0 failed: Permission denied

Since it says something about "Permissions" I tried to "Fix permissions" in TWRP and change the permissions manually to everything allowed for

storage/emulated/legacy

and

storage/emulated/0

but it didn't worked. I also tried the same procedere for /data/media/0

I added the lag excerpts below and hope that someone can figure out what's going on and how to fix that :fingers-crossed: .

08-25 18:38:25.832: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.832: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.832: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.833: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.833: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.833: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.833: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.822: W/sdcard(375): type=1400 audit(0.0:1351): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.834: E/cutils(251): Failed to openat(/mnt/shell/emulated/0): Permission denied
08-25 18:38:25.834: W/Vold(251): Returning OperationFailed - no handler for errno 13
08-25 18:38:25.835: W/ContextImpl(2789): Failed to ensure directory: /storage/emulated/0/Android/data/com.apalon.weatherlive/cache
08-25 18:38:25.822: W/sdcard(376): type=1400 audit(0.0:1352): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.822: W/sdcard(375): type=1400 audit(0.0:1353): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.822: W/sdcard(376): type=1400 audit(0.0:1354): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.822: W/sdcard(375): type=1400 audit(0.0:1355): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.822: W/sdcard(376): type=1400 audit(0.0:1356): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.822: W/sdcard(376): type=1400 audit(0.0:1357): avc: denied { write } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.822: W/sdcard(375): type=1400 audit(0.0:1358): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.822: W/sdcard(375): type=1400 audit(0.0:1359): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.882: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.883: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.872: W/sdcard(375): type=1400 audit(0.0:1360): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.884: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.885: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.885: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.885: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.885: E/sdcard(365): opendir /data/media/0 failed: Permission denied
08-25 18:38:25.872: W/sdcard(376): type=1400 audit(0.0:1361): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.887: E/cutils(251): Failed to openat(/mnt/shell/emulated/0): Permission denied
08-25 18:38:25.887: W/Vold(251): Returning OperationFailed - no handler for errno 13
08-25 18:38:25.872: W/sdcard(375): type=1400 audit(0.0:1362): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.872: W/sdcard(376): type=1400 audit(0.0:1363): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.882: W/sdcard(375): type=1400 audit(0.0:1364): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.882: W/sdcard(376): type=1400 audit(0.0:1365): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.882: W/sdcard(376): type=1400 audit(0.0:1366): avc: denied { write } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.887: W/ContextImpl(2789): Failed to ensure directory: /storage/emulated/0/Android/data/com.apalon.weatherlive/cache
08-25 18:38:25.882: W/sdcard(375): type=1400 audit(0.0:1367): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
08-25 18:38:25.882: W/sdcard(375): type=1400 audit(0.0:1368): avc: denied { read } for name="0" dev="dm-0" ino=1540097 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir

And similar logs like

Failed to openat (mnt/shell/emulated/0): Permission denied