New Obb folder error (Redmi 4 Prime)


podtalje

Members
Dec 25, 2018
1
13
Hi.

I am currently using MIUI 10 - 8.12.13 on Redmi 4 Prime.

I noticed a problem that every time I try to install a larger application from Google Play Store that uses obb folder, the install fails and I get an error 492.

I checked the logcat and an example of error is below:

Code:
12-25 00:57:47.764  1750  1750 W sdcard  : type=1400 audit(0.0:17814): avc: denied { read } for name="obb" dev="dm-0" ino=794627 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=0
12-25 00:57:47.764  1750  1750 W sdcard  : type=1400 audit(0.0:17815): avc: denied { write } for name="obb" dev="dm-0" ino=794627 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=0
12-25 00:57:47.774  1750  1750 W sdcard  : type=1400 audit(0.0:17816): avc: denied { read } for name="obb" dev="dm-0" ino=794627 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=0
12-25 00:57:47.893  1753  8972 D DownloadThread:  runInternal catch StopRequestException:118 fileName= url=https://play.googleapis.com/download/by-token/download?token=AOTCm0RV5ZyytBRYheidTAG3U6_sgtvXn83QzdbFOQwUt7CHE2fTpy04Z1Guhct734dU0AHsOeoygzWHoGy8S2tVKOIzk2unAUFcPQ-yM89_k6TsFPY3RXTNyvysgZrD9-o5CEyx4Q4a2RB69sMjYXTb3ORscCO-Un1rGi5mxFEMsbbtDT5lHmg4XpEMaal7YE6Fd1wtXpp5ZEhMvxw0uk-x--434m-Eu4Oi6-AVGxmsndZ-wJ9acuKaeKT6j4LHVigdc-d0sFmj8cuhVX_KUuzG1Aop_nPOqXcILpG2qgqm0OVq9HEw_CMottdBCypGfmRtmZOIi6N5mRfcKQat0sDOzyvir40Ow5eXgIrj9tWPu6U&cpn=_igDct9PkHLpDbMI&isid=BqYNwuNdSu-GD16nb3WxJA statusInfo=FILE_ERROR(492), errorMsg=Failed to create target dir /storage/emulated/0/Android/obb/com.vectorunit.cobalt.googleplay

So it seems that selinux is preventing access to the obb folder.

The problem was most probably also on previous MIUI 10 version, I just did not noticed it because I never downloaded apps that use obb files.

I also tried formatting the system partition and reinstalling MIUI but the problem is still present.

I searched the internet and only found similar problem on MIUI 9 where it was suggested that disabling "emluated sdcard optimization" under Developer options should fix similar problem. Unfortunately I cannot find this option under MIUI 10.

Not sure if this is indeed a MIUI bug or just specific to my device, but if anyone can give me any help or advice on how to resolve this problem, it would be really appreciated.
 
I have this problem too. I can't copy anything into the OBB folder whether with twrp, windows or es file explorer. I have found no solution