Android Gallery3d没有cache目录

我现在是用android 12,aosp编完之后,升级完,打开相册,提示No Storage(no external storage),无法打开。
如果手动在/sdcard/Android/data/com.android.gallery3d目录下mkdir cache;chmod 777 cache,就可以打开
这是哪里还有什么权限没有配置吗? 尝试过插入sd卡,没有解决问题 

尝试下看看: requestLegacyExternalStorage =“true”
同时建议看一下这个链接的文章【Android外部存储无法访问问题解决方法】,链接:https://www.jb51.net/article/236278.htm

参考链接

https://www.iteye.com/blog/quanminchaoren-1329213
很详细,希望对你有所帮助

vold : Failed to set project id on /data/media/0/Android/data/com.android.gallery3d/: Operation not supported on transport endpoint
ContextImpl: Failed to ensure /storage/emulated/0/Android/data/com.android.gallery3d/cache: android.os.ServiceSpecificException: (code -1)
有这个报错

aosp源码中,找到system / core/rootdir/init.rc,然后在其中,添加一条命令chmod 0777 /cache

img

参考一下呢