-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Flashing patched boot.img fails with (bootloader) Preflash validation failed
#8389
Comments
I experienced the same problem with a Motorola Edge 30 ultra (Android 14 Stock ROM, Firmware XT2241-2_EQS_RETEU_14_U1SQS34.52-21-1-13) Magisk 28 generated a corrupted boot file, but Magisk 27 worked as expected. original boot.img Extracted from the above ROM After installing via fastboot a boot.img generated with Magisk 27 i updated in the app to Magisk 28 and from there updated and everything works. |
I'm reopening this as requested by another dev |
FWIW I can report the same issue on the original Motorola Edge ( |
Same issue on Motorola Moto G Power 5G - 2023 ( On my TCL 20 XE (Boost) I don't experience this problem even on Magisk v28.1 |
wow! Thank you very much @wismos-0rg. Device: Motorola Razr 2022 (XT2251-1) |
just chiming in that I'm experience the same issue on a Motorola Razr 2023 I thought I messed something up by fiddling with Termux in root because I couldn't perform OTA update, but it turns out it was related to this issue with Magisk. |
In case new posters missed this: The published workaround (use Magisk v27.0) WORKS for Motorola Edge (racer), at least. I bet it works on the other phones, too. Try it if you're still having problems. Just uninstall Magisk completely, and install the Magisk v27.0 release from February 2024, then Please note the UNRELATED problem with modern Motorola devices--that fastboot mode cannot be used and bootloader mode must be used instead, which then bootloops while connected to USB and/or gives "No such device" errors in fastboot--can be resolved by using an ARM64 device, such as a RaspberryPi. The combination of these two issues was seriously THAT frustrating, so I'm posting both workarounds here. |
Had the exact same problem with Motorola One 5G Ace (Kiev). Workaround of utilizing Magisk v27.0 worked, thank you @SonyStinks . |
Wow! I thought I was the only one having this problem. For me the device isn't being seen in Fastboot. I haven't had boot loops. For the first issue, someone suggested here: (#8597 (comment)) upgrading to 28 after flashing the patched boot.img and everything is working again. But if you do that, won't you have the problem again the next time you flash a patched boot.img? I don't feel like finding out. |
Same on Motorola g 5g LOS21 December. |
#1856, fbb4f85 and #6676 give some hints. |
I've learned that Motorola does not like any Magisk version above 27.0... They still have not fixed the issue, |
But Lygisk works just fine. And you don't lose root after weekly updates with Lygisk😀. |
Because programmers love using the word depreciated.😛 And you spelled it wrong. |
Same problem with moto g9 play. But after following using v27.0 to flash boot.img, I was able to get magisk working. |
Hi, I need help, for a few days, I can't get root access what ways I didn't try (bootloader) kernel: uefi |
Use Lygisk . Motorola phones have a problem with Magisk 28. A good thing about using Lygisk is that your phone won't lose root after weekly updates😀. All you have to do is uninstall Magisk and boot into recovery to install Lygisk. If you have an SD card, you can put the Lygisk APK on it before you boot into recovery and install Lygisk without needing ADB. Make sure you change the file extension to zip when you put the Lygisk APK on the SD card. If you do it with ADB, you also need to change the file extension to ZIP. The first time you open Lygisk after installing it, it'll need to install a last part of the app. That's done in Android. You'll need to reboot after you do that. |
so as the title says, flashing from fastboot fails with
(bootloader) Preflash validation failed
but a different way of patching works for some reason, that is installing the latest 7 months old stable 27.0 build, patching and flashing boot.img with that build, updating the app to latest canary, do a direct install from magisk installation methods and the boot.img will be patched and flashed fine, i haven't uploaded recovery logs since i used fastboot but i have uploaded the patched boot.img that returns the error: https://file.io/EGEkNhXlsQJo
Device:Moto E7 Plus
Android version:14
Magisk version name:27.0
Magisk version code:27007
The text was updated successfully, but these errors were encountered: