Neo-Store icon indicating copy to clipboard operation
Neo-Store copied to clipboard

[Bug] Some apps can't update, keeps showing "New versions available" for months

Open WofWca opened this issue 1 year ago • 12 comments

Guidelines

  • [X] I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success.
  • [X] I'm on the latest version.
  • [X] I'm not using a test build (alpha/beta/release-candidate).
  • [X] This issue contains only one bug.

Describe the bug

IDK if this is actually reliably reproduces the problem though

  1. Install NeoStore.
  2. Install OONI Probe using NeoStore.
  3. Wait until OONI Probe gets an update in the repository.

NeoStore will update other apps just fine, but for OONI Probe it just keeps showing "New versions available". If I go to "downloads" I see it try to download it, but tapping "Update" on the app's page appears to do nothing.

I observe the same behavior for one other app.

I have tried clearing the download and doing it again.

This has happened for at least 2 versions of OONI probe: 3.9.0 and 4.0.0. I'm stuck on 3.8.9.

Expected Behavior

I am able to update the app

Neo Store's Version

1.0.5

Installation Source

Other…

Last Known Working Version

No response

Relevant information

  • Device: Google Pixel, one of the later ones
  • Android Version: 14
  • ROM: (AOSP, CalyxOS, MIUI, GOS...) GrapheneOS
  • Disabled battery optimization for Neo Store? "Allow background usage" is on. Not sure if that's it
  • What is your selected installer? "Default session installer"

WofWca avatar Oct 26 '24 10:10 WofWca

Update: Updating the affected apps with F-Droid worked fine.

WofWca avatar Oct 27 '24 21:10 WofWca

Update: another app got an update, and now it's stuck in this state.

WofWca avatar Nov 11 '24 10:11 WofWca

What does "Other…" in installation source means? Did you try cleaning up the cache? Can you please check if the signatures are the same (it could be similar to #659)?

I tested ooni probe (installing 3.8.9 and letting auto-update to 4.0.0 worked just fine.

machiav3lli avatar Nov 17 '24 13:11 machiav3lli

What does "Other…" in installation source means?

It means I don't remember and I'm not sure how to check 😅 It was probably F-Droid.

Did you try cleaning up the cache?

Yes, I just tried it. I also removed the download. After a tap to "Download" it downloads the app, but tapping "Update" does nothing.

Can you please check if the signatures are the same (it could be similar to https://github.com/NeoApplications/Neo-Store/issues/659)?

I tried disabling signature checking, but the behavior is still the same. Would this suffice?

WofWca avatar Nov 17 '24 14:11 WofWca

I've captured some logs, can I send them to you in a personal message? My email is specified in my GitHub profile.

WofWca avatar Nov 17 '24 14:11 WofWca

What I noticed in the logs is, it prints:

11-17 18:07:26.634 11821 11844 W ziparchive: Unable to open '/storage/emulated/0/Android/data/com.machiav3lli.fdroid/cache/releases/<app_id>_app_<hash>.apk': No such file or directory

But if I open the file explorer, there is only one file in that directory, for that specific app, but the <hash> part is different. So, is it trying to open the file with a wrong file name?

Update: another thing is that this log message is also printed even for the two apps that do not have updates pending, the ones that I already updates with F-Droid recently (see https://github.com/NeoApplications/Neo-Store/issues/673#issuecomment-2440180395). .apks for those files are not in the releases directory.

WofWca avatar Nov 17 '24 14:11 WofWca

Update: one of the apps that was in this state and that I later updated with F-Droid before (see https://github.com/NeoApplications/Neo-Store/issues/673#issuecomment-2440180395) got another update, and now it's stuck in the "Updates available" state again. Another update: This happened for another such app.

WofWca avatar Nov 19 '24 12:11 WofWca

This is a recurring issue. Paired with frequent crashes and slow installed app list loading, it's getting really hard to use NeoStore. I came to GitHub to check if it was abandonware...

juxuanu avatar Dec 19 '24 08:12 juxuanu

getting the same issue with root installer. In previous versions it was a bit finnicky at would happen that apps got stuck never installing, especially when i there were a lot of apps updating at the same time. Now with the latest version it's everytime and every app, it downloads no problem and then never installs, niether with session installer or root installer

chrostino avatar Jan 28 '25 14:01 chrostino

An update from me: on the new version 1.0.6, the stuck apps remained in their stuck state, until I set "ignore this version" for one of such stuck apps. After a minute it installed the update for several such stuck apps, and, after a couple of attempts, finished updating all the apps.

So maybe this is a work around?

WofWca avatar Jan 28 '25 14:01 WofWca

Tried it out, I had 3 stuck apps, set one to "ignore this version" and one of the remaining 2 got installed, but then the last two are still stuck. Anyway even if it was a workaround it's tedious and somenthing needs to be solved here

chrostino avatar Jan 28 '25 14:01 chrostino

Unfortunately I still can't reproduce this in any way. Furthermore 1.0.6 has already improved on installs handling as possible for now. I'll consider further improvements in the following releases, as I can't make sure to solve an issue I can't reproduce.

machiav3lli avatar Jan 29 '25 20:01 machiav3lli