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

下载路径错误:/storage/C33C-1BF6/Download #26

Closed
NewBrandSTONE opened this issue Aug 24, 2017 · 2 comments
Closed

下载路径错误:/storage/C33C-1BF6/Download #26

NewBrandSTONE opened this issue Aug 24, 2017 · 2 comments

Comments

@NewBrandSTONE
Copy link

NewBrandSTONE commented Aug 24, 2017

千匍,您好

最近在使用您开发的升级库遇到一点小问题,在测试的时候,我使用的是

华为Che1-CL10的手机

  • 系统EMUI4.0
  • Android版本6.0.1

点击更新APP(默认),就是最简单的更新按钮,控制台提示

  • 下载路径错误:/storage/C33C-1BF6/Download

我看了一下您的代码,在UpdateAppManager.java中,第140行的verify()函数

有一个preSuffix验证,限定了下载路径必须是要以"/storage/emulated"开头的

这里修改一下会不会好一些,

通过判断是否装载了SD卡会不会好一些,否则有些手机就没法下载了。

@WVector
Copy link
Owner

WVector commented Aug 24, 2017

不好意思,没考虑全,3.3.6 我去掉对前缀的校验。

@NewBrandSTONE
Copy link
Author

谢谢,期待ing~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants