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

Android 11 can't read files #1167

Open
nageslan opened this issue Jun 8, 2023 · 10 comments
Open

Android 11 can't read files #1167

nageslan opened this issue Jun 8, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@nageslan
Copy link
Contributor

nageslan commented Jun 8, 2023

Android (SDK29) can not read the path other than this application, it is recommended to use the system api to obtain

@nageslan nageslan added the bug Something isn't working label Jun 8, 2023
@TSaltedfishKing
Copy link
Member

TSaltedfishKing commented Jun 8, 2023 via email

@nageslan
Copy link
Contributor Author

nageslan commented Jun 9, 2023

我现在有2个解决方案,:
1.抛弃原来的文件选择窗口, 直接用系统提供的文档选择器
2.申请文件的临时权限, 这个好像只能获得到应用直接的文件夹下的临时权限, 我尝试过没整明白
3.退回到28SDK , 你的发行版好像也是这个版本, 发行版就没这个问题

@TSaltedfishKing
Copy link
Member

Related Issue #1156 #1155

@TSaltedfishKing
Copy link
Member

如果方案1能够向下兼容到28就采用28

@nageslan
Copy link
Contributor Author

nageslan commented Jun 9, 2023

经过我的测试依然有2种方案:

  1. 内置运行库, 因为现在Boat只提供一种运行库, 我认为还不如直接内置, 在第一次启动的时候直接点安装
  2. 因为权限的问题, 可以让文档选择器选择文档, 然后拷贝到应用目录在进行操作

@TSaltedfishKing
Copy link
Member

TSaltedfishKing commented Jun 9, 2023 via email

@nageslan
Copy link
Contributor Author

nageslan commented Jun 9, 2023

重构是最好的, 你不用担心我的感受, 我只是一个大专生

@nageslan
Copy link
Contributor Author

能加个联系方式吗不太好方便交流

@nageslan
Copy link
Contributor Author

图片
通过debug我走到了这一步,但是不知道为什么下载到一定程度就会闪退

@TSaltedfishKing
Copy link
Member

TSaltedfishKing commented Jun 10, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants