-
-
Notifications
You must be signed in to change notification settings - Fork 859
fix: Fix cancelling installation by not prematurely deleting patched APK #2490
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
Conversation
#2332 ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run
# [1.25.0-dev.1](v1.24.1-dev.5...v1.25.0-dev.1) (2025-05-05) ### Bug Fixes * Fix installation being cancelled at installation by not prematurely deleting patched APK ([#2490](#2490)) ([dedcb3c](dedcb3c)) * Use device locale for app language (Default to English) ([#2488](#2488)) ([3074766](3074766)) ### Features * Add toggle to use pre-releases ([#2485](#2485)) ([89b48ce](89b48ce))
It doesn't seem to be fixed unfortunately. I was just able to reproduce it on v1.25.0-dev.1. |
Yes. This fix was accidentally rolled back while resolving conflict in another pull request. This accident is already fixed, but the new dev release is not released due to a build failure. |
Oh I see. Apologies and thanks a lot for the fix! |
# [1.25.0](v1.24.0...v1.25.0) (2025-06-27) ### Bug Fixes * "Save patched app" attempts to copy APK when patching fails ([#2565](#2565)) ([bdb0317](bdb0317)) * Correct supported required patch option types ([#2475](#2475)) ([cde3f8d](cde3f8d)) * Crash using when Integer type in Patch Options ([#2453](#2453)) ([05575cc](05575cc)) * Fix installation being cancelled at installation by not prematurely deleting patched APK ([#2490](#2490)) ([dedcb3c](dedcb3c)) * Log errors and warnings when compiling resources ([5c7d52c](5c7d52c)) * Nearly all rare cases of GPU renderer issues, and allow building on manager again ([#2602](#2602)) ([21ceada](21ceada)) * Obscure Flutter Impeller renderer bugs ([a5e909c](a5e909c)) * Unable to Share Logs due to missing ProGuard rules ([#2474](#2474)) ([915ec0e](915ec0e)) * Use device locale for app language (Default to English) ([#2488](#2488)) ([3074766](3074766)) * Use device locale when no preference is set ([#2483](#2483)) ([f79aa9e](f79aa9e)) ### Features * Add toggle to use pre-releases ([#2485](#2485)) ([89b48ce](89b48ce))
Thank you @kitadai31 Can #2224 be closed now? I don't have the ability to close it Edit: Ty oSum |
The issue had been caused by a race condition in asynchronous processing.
In
setLastPatchedApp()
method,await
keyword was needed beforedeleteLastPatchedApp();
A code to reproduce:
The code is executed in the order (1) → (2) → (3) → (4) → (5).
As a result,
lastPatchedApp.apk
is sometimes randomly deleted after copying is succeeded.Conclusion
The
deleteLastPatchedApp()
calling insetLastPatchedApp()
is unnecessary from the beginning, so this PR removed this.Because
lastPatchedApp.apk
and a pref will be overwritten without callingdeleteLastPatchedApp()
.The calling in
reAssessPatchedApps()
is also redundant because the file does not exist, so removed.