-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
"Preflash Validation Failed" when Flashing Magisk-Patched Boot Image (v28+) #8718
Comments
Having a similar issue with poco F5 pro, no error message on fastboot, but cellphone won't boot |
Same issue on Moto G Stylus 5g 2024 (boston) |
It seems like a regression introduced in Magisk v28 related to boot image padding is causing the "Preflash validation failed" error on some devices. The release notes for v28 mention a change in MagiskBoot: "Don't pad zeros if signed boot image is larger". It is highly likely that this change is the root cause of the problem. It's possible that some bootloaders are sensitive to the exact size and padding of the boot image, and the new padding behavior in v28 is not compatible with these bootloaders. |
Maybe flash empty vb-meta? |
Try the following? Lines 49 to 50 in c6c1a17
|
Device: Moto G64 5G India
Android version: 14
Magisk version name: 218327f
Magisk version code: 28101
When attempting to flash a Magisk-patched boot image created using Magisk v28 or v28.1 on a Moto G64 5G device, the process fails with the error:
However, when the boot image is patched using Magisk v27, the flashing process completes successfully without errors. This suggests a compatibility issue introduced in Magisk v28+ that prevents the bootloader from accepting the patched boot image.
Device Information:
Steps to Reproduce:
Extract the stock
boot.img
from the firmware.Patch the
boot.img
using Magisk v28.0 or v28.1.Flash the patched boot image via fastboot:
Observe the error:
Repeat the same process using Magisk v27.0 to patch the
boot.img
.Flashing succeeds without errors.
Expected Behavior:
The Magisk-patched boot image created with v28+ should flash successfully, as it does with v27.
Observed Behavior:
Attached Magisk patched images of v27, v28 and v28.1 uploaded in Google Drive and shared the link below:
Google Drive
Attached screenshots of fastboot error for 3 different boot images.
Thank you for your assistance in resolving this issue.
The text was updated successfully, but these errors were encountered: