The Moto G64 5G device users are experiencing an issue when flashing Magisk-patched boot images created using version 28 or higher of Magisk. The flashing process fails with the error 'Preflash validation failed'. This problem appears to be specific to Magisk v28 and its subsequent versions, as flashing the same boot image patched with Magisk v27 succeeds without any errors.
This incompatibility suggests a potential issue within the Magisk patching process for v28 and above, causing the device's bootloader to reject the patched boot image during the flashing procedure.
**Device Details**
* Device Model: Moto G64 5G India
* Android Version: 14
* Bootloader Status: Unlocked
* Firmware Version: CANCUNF_G_SYS_U1TDS34.100_46_7_2 (Latest)
* Magisk Version: v28.0, v28.1 (fails), v27.0 (works)
* Fastboot Version: fastboot version 35.0.2-12147458
**Steps to Reproduce:**
1. Extract the stock `boot.img` from the firmware.
2. Patch the `boot.img` using Magisk v28.0 or v28.1.
3. Flash the patched boot image via fastboot: `fastboot flash boot magisk_patched.img`
4. Observe the error: `Preflash validation failed`
5. Repeat the process using Magisk v27.0 to patch the `boot.img`.
6. Flashing will succeed without errors.
**Expected Behavior:**
The Magisk-patched boot image created with v28+ should flash successfully, as it does with v27.
**Observed Behavior:**
* Magisk v28+ patched boot image results in 'Preflash validation failed'.
* Magisk v27 patched boot image flashes successfully.
Further investigation is needed to pinpoint the root cause of this issue.
**References:**
Magisk patched images (v27, v28, and v28.1) have been attached to a Google Drive folder for review and testing: [https://drive.google.com/drive/folders/1APqxn3Df2ZrBojolnOmm-0CVN6hnteMF?usp=sharing](https://drive.google.com/drive/folders/1APqxn3Df2ZrBojolnOmm-0CVN6hnteMF?usp=sharing)
Screenshots of the fastboot errors are also provided.
This article is created by nurl and is licensed under the Creative Commons Attribution 4.0 International License.
All articles on this site, unless otherwise specified as reprints or sources, are either original works or translations by this site. Please ensure proper attribution before reprinting.