Skip to content

fix: stop the patch flow from crashing when new-boot.img is missing - #223

Merged
matsuzaka-yuki merged 1 commit into
LyraVoid:mainfrom
mvanhorn:fix/201-missing-new-boot
Oct 5, 2026
Merged

matsuzaka-yuki merged 1 commit into
LyraVoid:mainfrom
mvanhorn:fix/201-missing-new-boot

Conversation

@mvanhorn

@mvanhorn mvanhorn commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

boot_patch.sh now saves the kptools -i kernel -f output and status, prints a non-zero probe on stderr and exits with that status, and exits 1 when the probe succeeds without CONFIG_KALLSYMS=y. A patch-only run crashes in the manager with FileNotFoundException while opening new-boot.img when that file was never written.

The :app:testClasses Gradle run failed at configuration because computed versionCode 113232 is not greater than managerVersionFloor=115036.

Refs #201

boot_patch.sh now saves the `kptools -i kernel -f` output and status,
prints a non-zero probe on stderr and exits with that status, and exits
1 when the probe succeeds without CONFIG_KALLSYMS=y. The patch-only
branch exits 1 with "- new-boot.img missing" when the file is absent,
and the flash branch flashes only when the boot path is a block or
character device and new-boot.img is present, exiting 1 with "-
new-boot.img missing - refusing to flash" when the file is absent. In
PATCH_ONLY, PatchesViewModel logs " Patch failed." and returns if
new-boot.img is missing or the copy throws IOException.
scripts/test_boot_patch_output.py drives those script outcomes with a
stub kptools, and the contracts workflow's Boot patch output job runs
it.

Refs LyraVoid#201
@matsuzaka-yuki
matsuzaka-yuki merged commit 1da11e8 into LyraVoid:main Oct 5, 2026
@mvanhorn

mvanhorn commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

@matsuzaka-yuki thanks for taking this one. The patch flow shouldn't crash anymore when new-boot.img is missing.

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