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

fix(android): use install -r to try and replace existing apk #283

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

TylerJMcLean
Copy link
Contributor

Fixes tauri-apps/tauri#9067

Adds the -r flag to ADB install commands which allows replacing applications if they are already installed.
This fixes INSTALL_FAILED_ALREADY_EXISTS errors that appear when programs are redeployed.

Copy link
Member

@amrbashir amrbashir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@TylerJMcLean
Copy link
Contributor Author

No problem! Had some time to look at it and it was simpler than I expected to find the install portion. Tested on physical and emulator to make sure there wasn't any unintended behaviour between the two

@amrbashir amrbashir changed the title Fix(Android): Adds replace flag to ADB install command fix(android): use install -r to try and replace existing apk Mar 7, 2024
@amrbashir amrbashir merged commit 7a1066c into tauri-apps:dev Mar 7, 2024
12 checks passed
@github-actions github-actions bot mentioned this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants