Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法读取内部存储 #65

Closed
tasm07 opened this issue Sep 5, 2020 · 5 comments
Closed

无法读取内部存储 #65

tasm07 opened this issue Sep 5, 2020 · 5 comments
Assignees
Labels

Comments

@tasm07
Copy link

tasm07 commented Sep 5, 2020

设置—侧栏壁纸—选择自定义的图片,获取的根目录为空
Android 版本 :10
App 版本 :1.11
已授予存储权限
格式化了存储卡做为内部存储
(以及,新版本是不是修改了存储逻辑?似乎不需要 wneku8 文件夹也可以正常运行)
最后,感谢您的辛勤付出🙏

@MewX
Copy link
Owner

MewX commented Sep 6, 2020

oh!可能是三方库的bug,我明天在测试机上看下,谢谢反馈!

存储逻辑没改,主要就是新的Android系统做了很多workaround自动兼容之类的操作

@MewX MewX self-assigned this Sep 6, 2020
@MewX MewX added the bug label Sep 6, 2020
@tasm07
Copy link
Author

tasm07 commented Sep 6, 2020

还有一点不知道是不是玄学问题,就是内部存储中有 wenku8 数据目录的时候无法加载图片,然后重启 App 后登录失效;但是删掉这个目录就正常了
(我用 Root 看了下 /data 分区,里面有和原先目录中一样的文件,似乎数据目录被迁移到了应用数据里)
与之相对的,“下载”的文件也被一同迁移进了数据里,我个人认为这个做法不妥;如果可能的话,还是烦请您修改一下

@MewX
Copy link
Owner

MewX commented Sep 7, 2020

这个bug应该是Android 10 特有的 (下图Android 6/10/11):
image

wenku8目录消失应该是因为这个改动 https://developer.android.com/preview/privacy/storage

加上这个flag倒是可以正常生成wenku8目录和浏览文件了.

浏览文件还有个bug, 返回上级目录就回不到storage目录下面了... 三方库的bug

@MewX
Copy link
Owner

MewX commented Sep 7, 2020

看了下umeng统计数据, 4.4- 的用户还有5%左右, 还是得保留兼容性.

估计有空的时候把4.4+部分改成系统FilePicker.

@MewX
Copy link
Owner

MewX commented Sep 7, 2020

v1.12 修复了图片选择这部分. 剩下的交给 #67 处理, 先关了哈. 有其他comment可以继续留言

@MewX MewX closed this as completed Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants