client icon indicating copy to clipboard operation
client copied to clipboard

[BUG] Downloads stop too easily (after 0.6.2?)

Open LFd3v opened this issue 1 year ago • 14 comments

Describe the bug First of all, thank you a lot for Droid-ify, I have been using it for quite a while, and it has been a pleasant experience.

But since a few versions (I think it started from version 0.6.2 at least) any long downloads on a slow connection fails when the app is not in the foreground. It happens mostly when there are queued update downloads, even if there is a download notification going on and I have removed the app from the battery optimization list.

To Reproduce Steps to reproduce the behavior:

  1. Go to Updates
  2. Start the update for some apps
  3. Go to home screen, or another app
  4. Wait for a while (or lock the screen)
  5. Most of the times the download will stop if the connection is slow (from Divest repo, for instance)

Expected behavior Even if the download is slow or it disconnects, the app should retry it a few times before failing, even when the app is not in the foreground.

Screenshots N/A

Smartphone (please complete the following information):

  • Device: MotoG8 (RAV/Sofiar)
  • OS: Android 11
  • Version: 0.6.3

Additional context Again, it does not happen all the time. It seems to happen a lot with slow connections and big apps, like the Mulch Webview from DivestOS, in my case. Right now I have a slow connection, but the main problem is that it seems that it does not happen if I keep the app open in the foreground.

Thanks again. Please feel free to ask for more info.

Regards

LFd3v avatar May 13 '24 14:05 LFd3v

Have you allowed "Ignore Battery Optimization"?

Iamlooker avatar May 13 '24 15:05 Iamlooker

Thank you for your quick reply. I am not sure if I have granted the permission when I first installed the app or in the app settings, but I think the final result would be the same, right? Is there a way to make it request the permission again after it was configured?

Screenshot_20240513-134544_Settings

LFd3v avatar May 13 '24 16:05 LFd3v

Yes, this is perfectly set up

I will try this on my own device and revert back

Iamlooker avatar May 13 '24 16:05 Iamlooker

I have the same issue, sometimes my wifi is only 400kbs or less and it falls to download even a 5mb file. I can't say it it's the app, repository or Android itself. But some days i have multiple files that i just cannot up date because the download fails. Usually with an error something like"unable to complete action" (i forget right now) Or i get a "failed to verify download" quite often. Or no error at all

Happens sporadically on most of my devices Pixel 6 a12 Pixel 8pro a14 Black view a9

nutpantz avatar May 14 '24 18:05 nutpantz

@nutpantz @LFd3v still present?

Iamlooker avatar Nov 15 '25 20:11 Iamlooker

Marking this issue as stale. It will be closed if there is no reply within 48h0m0s.

Testing my script

Iamlooker avatar Nov 15 '25 21:11 Iamlooker

Still happens with .66 for me.

nutpantz avatar Nov 15 '25 21:11 nutpantz

Any patterns you may have noticed which can help me narrow down the issue?

Iamlooker avatar Nov 15 '25 21:11 Iamlooker

I have tried 100kbps for 20mb apps and it worked fine on my device, but maybe done me findings

Iamlooker avatar Nov 15 '25 21:11 Iamlooker

Honestly no. It could be any package on any server at any time for unknown reasons. It happens on Wi-Fi and 5g. Sometimes happens to the same upgrade for over 10 minutes. Happens on all my devices. I wish i could be more helpful.

nutpantz avatar Nov 15 '25 21:11 nutpantz

Seems like I need to add logs in the app and ask users to share them when needed. But I don't like the idea of it, might alarm done users

Iamlooker avatar Nov 15 '25 21:11 Iamlooker

As someone who likes to help out the open source community i always like to see log options in apps.

nutpantz avatar Nov 15 '25 23:11 nutpantz

I will look into this

Iamlooker avatar Nov 16 '25 07:11 Iamlooker

Hi, there. I still experience this on the latest version of Droid-ify (v.0.6.6) on Android 11. It is a device with a custom ROM (Havoc-OS), Snapdragon 665 and 4GB of RAM. Some remarks:

  1. It happens when there are many updates going on, you leave the app (but do not close it) while there is a download;
  2. It seems that the download breaks when the current app being downloaded is installed, but not always, sometimes I get the notification about the update being unsuccessful (download stopped) for long downloads, like Joplin, Jami or Fennec;
  3. It seems that it is related somehow to how Android manages background downloads, because it happens even with small downloads while Droid-ify is in the background.

Regards

LFd3v avatar Nov 16 '25 14:11 LFd3v