Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot update any apks #583

Closed
arft1kwerg opened this issue May 19, 2023 · 16 comments
Closed

Cannot update any apks #583

arft1kwerg opened this issue May 19, 2023 · 16 comments
Labels
bug Something isn't working

Comments

@arft1kwerg
Copy link

arft1kwerg commented May 19, 2023

Attempting to update any of the apps gives some empty(?) error message. On version 0.13.4.

Screenshot_2023-05-19-22-34-51-711_com.google.android.packageinstaller.jpg

Screenshot_2023-05-19-22-35-01-915_dev.imranr.obtainium.jpg

Screenshot_2023-05-19-22-37-02-780_dev.imranr.obtainium.jpg
)

@arft1kwerg arft1kwerg changed the title Cannot install any apks Cannot update any apks May 19, 2023
@ImranR98
Copy link
Owner

What Phone/OS? Does this happen with Apps at random or some specific ones?

@ImranR98 ImranR98 added the bug Something isn't working label May 19, 2023
@arft1kwerg
Copy link
Author

arft1kwerg commented May 19, 2023

Among the apps where I can test to update the following throw similar errors:
IMG_20230520_002835.jpg

As for phone specifications:
Android 11 RKQ1.200826.002
Since it is a Rednote (Mi 9t pro), it runs MIUI global 12.5.1

Edit: I can confirm attempting to install Eduroamcat or VCMI also throws errors, preventing installation.

@CryptMaverick
Copy link

Have you tried force stop in app settings, clear cache and perform update process again? In my case it did, if that solves the problem, let us know here.

@arft1kwerg
Copy link
Author

Have you tried force stop in app settings, clear cache and perform update process again? In my case it did, if that solves the problem, let us know here.

Sadly it does nothing. Still get the same error when trying to update a variety of apps after clearing cache.

@ImranR98
Copy link
Owner

ImranR98 commented May 20, 2023

Haven't been able to figure this out given the info. Do you think you could install Flutter on your PC and try running the app on your phone in debug mode?

@arft1kwerg
Copy link
Author

arft1kwerg commented May 22, 2023

Sorry. After spending several weeks getting nowhere. I can set up the basic environment and enable usb-debugging, but I get stuck. I don't have the tech know-how or experience to properly run and debug android apps using Flutter. Only got a little experience with VSCodium.

@kawaiier
Copy link

I also have a problem updating any app. I'm getting these errors with different IDs Conflict: [com.github.muellerma.coffee]

Tried clearing app cache of both apps and restarting the phone but no luck. Clean installing of apps works without problems.

Pixel 6, Android 13

@ImranR98
Copy link
Owner

@kawaiier could read #103 and see if the solution there works for you. If not, you should create another issue (the error is different from this issue).

@rsedxcftvgyhbujnkiqwe
Copy link

rsedxcftvgyhbujnkiqwe commented Jul 6, 2023

I am having this same issue, might be able to give some more background. All of the apps in my case were already installed, with f-droid originally. I added the links to the source for each app into obtainium and uninstalled f-droid, and this error happens when attempting to update those apps. I can also confirm that clean installing the apps by first uninstalling and reinstalling does work - however this deletes app data which is a problem. I can also confirm that cache clearing, restarting, etc. do not solve the problem.
I'm guessing this has something to do with the app being already installed from somewhere else. The actual install source for each app also doesn't seem to matter, I have added both direct github links as well as f-droid links and they both generate the error. The only thing in common is that they were originally installed in f-droid.

@ImranR98
Copy link
Owner

ImranR98 commented Jul 6, 2023

@rsedxcftvgyhbujnkiqwe by "same issue" do you mean you're getting "empty" error messages like in arft1kwerg's screenshots? It sounds like your problem is just due to mixing f-droid and non f-droid apps. If that's the case then this is not an issue in Obtainium - Android just doesn't let you update an app with an APK signed using a different key. F-droid signs apps with their own key so trying to update an f-droid app with a github apk usually fails.

@rsedxcftvgyhbujnkiqwe
Copy link

@ImranR98
No I was getting "Conflict" in the error message. That makes sense, thanks I will just have to go ahead and reinstall the apps.

@EinderJam
Copy link

@ImranR98 I also have experienced this kind of error trying to update or straight up install apps from a GitHub source.
Phone and OS are the exact same as @arft1kwerg

Remembering that MIUI optimization was often linked with issues installing apks, I went on to disable it in developer settings, and sure enough, Obtainium was able to update my apps afterwards.

@ImranR98

This comment was marked as outdated.

@ImranR98
Copy link
Owner

@arft1kwerg could you confirm if disabling MIUI's optimizations fixes this issue?

@ImranR98 ImranR98 added the needs follow up Further information is requested label Oct 14, 2023
@arft1kwerg
Copy link
Author

@arft1kwerg could you confirm if disabling MIUI's optimizations fixes this issue?

Disabling MIUI optimization fixes the empty error messages and allows it to download/update some apps. Image with some apps that throw an error on update: Screenshot_2023-10-14-20-20-07-900_dev.imranr.obtainium.jpg

@ImranR98
Copy link
Owner

Great. These errors are unrelated. The first one means you're trying to update an app with an APK that has a different signing key, and the second one means the version code of the new APK is lower than the currently installed one.

@ImranR98 ImranR98 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2023
@ImranR98 ImranR98 removed the needs follow up Further information is requested label Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants