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

下载的apk和服务器上的不一样 #365

Closed
Reginer opened this Issue Feb 14, 2019 · 4 comments

Comments

Projects
None yet
2 participants
@Reginer
Copy link

Reginer commented Feb 14, 2019

版本号

3.5.4

什么问题

下载的apk和服务器上的不一样

如何复现此问题

我在这个nexus系统的这个apk上每次都能复现,其他手机偶尔有这种情况

手机型号

所有手机

控制台日志(越完整越好)

‘’‘
2019-02-14 16:17:52.607 991-1161/? D/AudioTrack: stop(): 0x7bce2e4800, mState = 0
2019-02-14 16:17:52.607 991-1161/? D/AudioTrack: audiotrack 0x7bce2e4800 stop done
2019-02-14 16:17:52.612 3065-3399/? D/StateConstance: fail_num=0; start_thread_num=1; complete_num=0
2019-02-14 16:17:52.612 3065-3398/? D/HttpThreadTask: 任务【应用管理.apk】线程__0__开始下载【开始位置 : 0,结束位置:9845002】
‘’‘

@Reginer

This comment has been minimized.

Copy link
Author

Reginer commented Feb 14, 2019

这个结束位置就不对,文件大小是 9851044。
是9.39m,下载下来是9.38m

@Reginer

This comment has been minimized.

Copy link
Author

Reginer commented Feb 14, 2019

我从1版本更新到2版本可以,从2版本更新到3版本就出现了这个问题。apk下载地址一样。
刚才我尝试清除app数据,再重新下载就能安装了,大小也对了 。

@Reginer

This comment has been minimized.

Copy link
Author

Reginer commented Feb 25, 2019

发现原因了,看起来是网址没变的话,大小直接用的数据库里的文件大小。
应用下载之后调用下这个就好了。
Aria.download(this).load(task.key).cancel(false)

@AriaLyy

This comment has been minimized.

Copy link
Owner

AriaLyy commented Feb 26, 2019

在SimpleDownloadUtil这个文件的110行,我做了判断,如果任务已经获取过信息了,就不会重新获取文件大小,后面把这个判断去掉吧,感觉这玩意作用不大

AriaLyy added a commit that referenced this issue Mar 4, 2019

@AriaLyy AriaLyy closed this Mar 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.