mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
The patch dialog restores its state after process death, including a pending file pick, but the selected install method only lived in InstallViewModel. If the app was killed while the file picker was open, the new ViewModel had no method, so picking the image closed the dialog and silently did nothing. On Pixel and Googlebook devices, the dialog also keyed its source choice on the downloadable firmware image. That is only found after the firmware search, which runs again after process death, so a file chosen before was reset to the downloadable image. Set the patch method when an image is selected, and save the user's source choice without keying it on the firmware image. Assisted-by: Claude Opus 5.5