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

[cli] Automaticaly handle INSTALL_FAILED_UPDATE_INCOMPATIBLE when trying to install an app #187

Merged

Conversation

gabrieldonadel
Copy link
Member

@gabrieldonadel gabrieldonadel commented Mar 1, 2024

Why

When trying to install an APK signed with a different certificate than the one used to sign the existing installed version or
attempting to install a version of the APK that has a lower version code than the one already installed users get the following error

How

Check if the thrown error is INSTALL_FAILED_UPDATE_INCOMPATIBLE and uninstall the existing app before retrying to install the new app version

Test Plan

  1. Install a release variant of an app on Android
  2. Change the signingConfigs (e.g. build for debug mode)
  3. Reinstall the app

@gabrieldonadel gabrieldonadel marked this pull request as ready for review March 1, 2024 13:21
@gabrieldonadel gabrieldonadel merged commit 672dc72 into main Mar 1, 2024
2 checks passed
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/android-failed-update-incompatible branch March 1, 2024 15:34
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

Successfully merging this pull request may close these issues.

2 participants