lingochamp / lingochamp/FileDownloader

1.7.7版本在9.0和10.0系统下载无进度回调

Open
#1,336 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
11.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

如题:使用的1.7.7的库,在低版本手机使用正常,在9.0和10.0手机调用下载时无任何回调,日志如下:
2020-05-08 11:31:30.269 3200-3200/com.yt.driver D/FileDownloader.c: setPath /storage/emulated/0/Android/data/com.yt.driver/cache/倚天司机端.apk
2020-05-08 11:31:30.270 3200-3200/com.yt.driver D/FileDownloader.c: setListener com.yt.driver.app.view.UpdateDialog$4@596b098
2020-05-08 11:31:30.270 3200-3200/com.yt.driver V/FileDownloader.d: call start Url[https://www.bus365.com/public/phoneClient/BUS365.apk], Path[/storage/emulated/0/Android/data/com.yt.driver/cache/倚天司机端.apk] Listener[com.yt.driver.app.view.UpdateDialog$4@596b098], Tag[null]
2020-05-08 11:31:30.275 3200-11753/com.yt.driver V/FileDownloader.f: setListener event.service.connect.changed
2020-05-08 11:31:30.275 3200-3200/com.yt.driver V/FileDownloader.d: the task[887050704] has been into the launch pool.
2020-05-08 11:31:30.277 3200-11753/com.yt.driver D/FileDownloader.e: not found filedownloader.properties
2020-05-08 11:31:30.278 3200-11753/com.yt.driver I/FileDownloader.e: init properties 1
load properties: http.lenient=FALSE; process.non-separate=FALSE; download.min-progress-step=65536; download.min-progress-time=2000; download.max-network-thread-count=3; file.non-pre-allocation=FALSE; broadcast.completed=FALSE; download.trial-connection-head-method=FALSE
2020-05-08 11:31:30.280 3200-11753/com.yt.driver D/FileDownloader.z: Waiting for connecting with the downloader service... 887050704
2020-05-08 11:31:30.281 3200-11753/com.yt.driver D/FileDownloader.o: bindStartByContext MyApplication
2020-05-08 11:31:30.293 3200-11753/com.yt.driver D/FileDownloader.d: free the task 887050704, when the status is 10

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the download with FileDownloader 1.7.7 on Android 9 and 10, using the service-binding and task-status messages shown in the report. Trace the path from the logged launch pool and downloader-service connection to the listener, and consider the issue resolved when progress or completion callbacks are delivered on those systems.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.