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

INSTALL_FAILED_UPDATE_INCOMPATIBLE #38

Closed
iddq opened this issue Jul 26, 2022 · 3 comments
Closed

INSTALL_FAILED_UPDATE_INCOMPATIBLE #38

iddq opened this issue Jul 26, 2022 · 3 comments

Comments

@iddq
Copy link

iddq commented Jul 26, 2022

APK cannot be installed after resign.

java -jar uber-apk-signer-1.2.1.jar --allowResign -a

adb install -r
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

Android 6.0.1

for first look the original APK contains CERT.SF and CERT.RSA

@MarcMil
Copy link

MarcMil commented Apr 17, 2023

That's to be expected when the certificate is different from the original app. You cannot install an app with one package name on the device when an app with the same package name signed with a different certificate is already installed.

@patrickfav
Copy link
Owner

As @MarcMil already stated, uninstall the app first. Then install with the new certificate - this is by design and a security measure of Android.

@iddq
Copy link
Author

iddq commented Apr 20, 2023

On older android systems like 6.0.1, uninstalling the app from GUI is not enough. We have to uninstall it by adb uninstall command even that is uninstalled from GUI before because the certificate somehow remains on the system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants