NeoApplications / Neo-Store

An F-Droid client with modern UI and an arsenal of extra features.
GNU General Public License v3.0
2.73k stars 84 forks source link

Uable to install or update apps on v.1.0.0-1.0.2 #616

Open NikMAX2077 opened 1 month ago

NikMAX2077 commented 1 month ago

On new versions, after I click on Download or Update button on app screen I have download progress notification that disappears after few seconds and nothing else. Apps not installs and not updates. I tried to wipe Neo Store data and grant all permissions, but it's not solving the problem. On old versions (0.9.x) everything works fine.

https://github.com/NeoApplications/Neo-Store/assets/95967773/60b1ddea-3d5b-47cf-8a98-11f672446ed9

me00001 commented 1 month ago

https://github.com/NeoApplications/Neo-Store/issues/593

machiav3lli commented 1 month ago

Here's some helpful info to debug this:

NikMAX2077 commented 1 month ago
  • What is you Android version?

14, LineageOS

  • What is your selected installer?

Root and Session both not working

  • Did you disable battery optimization for NS?

Yes, of course

  • Is the auto-update enabled?

After I updated Neo Store it was disabled. After I wiped up Neo Store - seems that it was enabled by default, but result was the same

  • Does this apply to all install actions, only manuals or to certain apps only?

To all install actions I think. I have tried to update and install several apps - same

  • Why does the WIFI connection seems to have an issue?

The warning is displaying all the time due to specific network configuration of my Internet service provider, but while I was recording the video Internet was working normally

machiav3lli commented 1 month ago

From the video, it seems that the work gets started (and killed?) but the download not… did you try using the system download manager (option under updates settings)?

thornySoap commented 1 month ago

I am also on Android 14 LineageOS and the issue only occurs with System's Download Manager enabled to me. Without it is working fine.

NikMAX2077 commented 1 month ago

It looks like I found out the cause of the problem! I noticed that I had the Custom download folder option enabled whose path led to the SD card whose name changed after formatting. So app has tried to start download by path that not exist anymore. My bad that I forgot that the path had changed, and since the app didn't show any error notification, I didn't notice the cause of the problem for a long time. It looks like on 0.9.15 app used default path in case of this error, but in 1.0.x it's not. Please add error toast or notification for similar cases

machiav3lli commented 1 month ago

I'll reopen it in order to remember adding a fallback option.

thornySoap commented 1 month ago

I am also on Android 14 LineageOS and the issue only occurs with System's Download Manager enabled to me. Without it is working fine.

I get this even though I have no custom path specified. This screenrecord is taken from a fresh 1.0.2 install with only Auto Update and System Download Manager options modified:

https://github.com/NeoApplications/Neo-Store/assets/115401023/ce79e4f6-f30b-4327-a640-03dad860e5c9

machiav3lli commented 1 month ago

@thornySoap the video seems to be corrupted/removed here too… do you have any system-level customizations? de-bloating or modifications?

thornySoap commented 1 month ago

@machiav3lli I'm on LineageOS and at least the System Download Manager only stopped working after I switched to it from my previous ROM. I think these logcat lines are related to my attempt of installing an app:

[06-01 08:04:22.230 19896:19943 W/ContextImpl]
Failed to ensure /storage/emulated/0/Android/data/com.machiav3lli.fdroid/cache: android.os.ServiceSpecificException:  (code -1)

[06-01 08:04:22.240 19896:19943 W/ContextImpl]
Failed to ensure /storage/emulated/0/Android/data/com.machiav3lli.fdroid/cache: android.os.ServiceSpecificException:  (code -1)

[06-01 08:04:22.483 19896:19943 I/javaClass]
Unsupported path /data/data/com.machiav3lli.fdroid/cache/partial/org.kirkezz.rttt_5ec602827afa85abd6faf76fbaa0758fe1be2b9ab62d0cb951ecd082cf26d69e.apk

[06-01 08:04:22.486 19896:19944 I/WM-WorkerWrapper]
Worker result FAILURE for Work [ id=01eb8441-410a-4c5c-b4e7-a3abc3d6abc3, tags={ com.machiav3lli.fdroid.service.worker.DownloadWorker, download_org.kirkezz.rttt } ]
machiav3lli commented 1 month ago

Unsupported path /data/data/com.machiav3lli.fdroid/cache/partial/org.kirkezz.rttt_5ec602827afa85abd6faf76fbaa0758fe1be2b9ab62d0cb951ecd082cf26d69e.apk

This seems pretty fishy… it's the app's cache storage, so it shouldn't be blocked. Does your device have sdcard slot or sorta "real" external storage?

thornySoap commented 1 month ago

This seems pretty fishy… it's the app's cache storage, so it shouldn't be blocked. Does your device have sdcard slot or sorta "real" external storage?

No right now there is no external sd card, etc. inserted or connected. But with the app's downloader it works, as said above, and those should be the same cache locations, shouldn't they? Furthermore download also failes with custom download location set. So it's probably related to the ROM and its download manager.

I have not much time right now but in a week or so I will further try some things out.

NikMAX2077 commented 1 month ago

I seem to fix the bug by wiping the app storage, but after some time it comes back. Maybe the problem is somewhere in the configuration files of the app, because cache wipe is not helpful. I don't know, very strange situation