Skip to content

1ef073f

Choose a tag to compare

@github-actions github-actions released this 07 Apr 18:00

feat(app): add init_boot detection to bail on incorrect boot images

ksud will silently create a ramdisk when boot-patching a regular boot
image on a device that uses init_boot. Since this behaviour cannot be
fixed from within the app, runPatch() now detects the condition and
aborts early with a clear message.

Detection is done by running getprop as an unprivileged process
and inspecting ro.boot.* properties for any reference to init_boot.
As a fallback, the running kernel version is obtained from
android.system.Os.uname().release and any kernel >= 5.15 is treated as an init_boot device.

Signed-off-by: sidharthify wednisegit@gmail.com

(Automated release for commit 1ef073f)