mihonapp / mihon

Free and open source manga reader for Android
Apache License 2.0
9.6k stars 428 forks source link

Mihon sometimes stops detecting installed extensions #145

Open lord-ne opened 8 months ago

lord-ne commented 8 months ago

Steps to reproduce

Not sure yet. This just happens occasionally, and persists until app restart.

Expected behavior

When opening the app, installed extensions should be shown in the "extensions" tab.

Actual behavior

Installed extensions are not shown in the "extensions" tab (all extensions from repo show a download button instead of a gear icon), and "sources" tab only shows local source. "Migrate" tab shows "extension not installed" for every extension. Downloaded chapters are still readable, but non-downloaded chapters cannot be read.

Fixed by restarting app, but this has happened to me multiple times in the last few days.

Crash logs

No response

Mihon version

Observed in stable 0.16.0 through 0.16.3

Android version

Android 13 (EDIT: Specifically, MIUI 14, Xiaomi.eu build, rooted with Magisk, Shizuku installed)

Device

Poco F5

Other details

I know this isn't a lot of details, I'm mainly posting so someone can tell me which logs to pull next time this happens so we can actually diagnose this.

Acknowledgements

lord-ne commented 8 months ago

Still experiencing in 0.16.3

AntsyLich commented 5 months ago

Are you still facing this? Can you check preview build?

lord-ne commented 5 months ago

I'm still facing this (0.16.5). I'll check preview.

lord-ne commented 5 months ago

Confirmed this is still happening on the latest preview (r6674)

Smol-Ame commented 5 months ago

Have you tried turning MIUI Optimization off in your Phone Settings > Developer Options, if you're on HyperOS, it might be hidden & you can search online for guide to find it.

Also, some versions of HyperOS in certain regions might have an additional OS change, where you need to go to Mihon app info (not in-app) and give it permission to view all apps on your device.

lord-ne commented 5 months ago

I'm on MIUI, not HyperOS. The battery optimizations were already disabled. I went into the permissions section and enabled Mihon to get info about installed apps "always" (the default was "only when running").

I'll update if I continue to see the issue, and if I don't see it within a few days I'll close this bug.

Smol-Ame commented 5 months ago

Battery Optimization isn't the same as MIUI Optimization, while you should have battery optimization disabled for things to run, MIUI Optimization is a different thing that causes different issues (such as extension-related ones).

If the "info about installed apps" change to always doesn't work, then try turning off MIUI Optimization to see if it helps

gogito commented 4 months ago

I also have the same issue on HyperOS

Smol-Ame commented 4 months ago

I also have the same issue on HyperOS

Mihon 0.16.4 should've made extension installation/updating stable, and the issue usually comes down to Xiaomi devices & their "optimizations"

For anyone having issues on HyperOS, either:

lord-ne commented 4 months ago

On MIUI 14 (at least on my build), the way to turn on "always allow" for accessing the app list is actually Settings -> Apps -> Permissions -> Permissions -> (Permissions tab) -> Get info about installed apps -> Mihon -> (Select "always allow"). That is, it doesn't show up under the app info permission settings, you have to go find the list of all the permissions instead.

After doing those steps the issue hasn't occured for me (it's been a few weeks), so I assume that fixed it.