mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 23:14:03 -05:00
Sign ChromeOS boot images with magiskboot
Port the `futility vbutil_kernel --pack` code path used to sign ChromeOS boot images into magiskboot as a new `sign-chromeos` action. The kernel keyblock and data key are embedded into the executable, and all signing parameters previously passed in sign_chromeos are hardcoded. The output is bit-for-bit identical to the reference tool. Rename the existing `sign` action to `sign-avb1` to disambiguate. Remove the prebuilt futility binary and stop shipping the chromeos assets folder; scripts now call magiskboot directly. Assisted-by: Claude Opus 5.5
This commit is contained in:
@@ -178,12 +178,6 @@ fun Project.setupCoreLib() {
|
||||
include("util_functions.sh", "boot_patch.sh", "addon.d.sh",
|
||||
"app_functions.sh", "uninstaller.sh", "module_installer.sh")
|
||||
}
|
||||
into("chromeos") {
|
||||
from(rootFile("tools/futility"))
|
||||
from(rootFile("tools/keys")) {
|
||||
include("kernel_data_key.vbprivk", "kernel.keyblock")
|
||||
}
|
||||
}
|
||||
from(stubTask) {
|
||||
include { it.name.endsWith(".apk") }
|
||||
rename { "stub.apk" }
|
||||
|
||||
Reference in New Issue
Block a user