how to flash intercepted Pie OTA with unlocked bootloader? - Moto X4 Questions & Answers

My bootloader unlocked RETEU 1900-7 is running 8.0 November 2018 update on slot B and received the OTA today. But no matter what I tried, it failed to install.
This is strange. I have received one OTA (8.0 security patch) once and could install it.
I tried
removing Magisk
fastboot oem lock
but still no luck.
So I have picked the OTA payload.bin and have converted it to several fastboot flashable images.
But I get more images than I have previously seen, e.g. cmnlib64.img. And flashing those images fail all the same way:
Code:
C:\Users\Olaf\Downloads\ROM9\flashable>mfastboot flash xbl_a xbl.img
target max-sparse-size: 256MB
sending 'xbl_a' (2247 KB)...
OKAY [ 0.062s]
writing 'xbl_a'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.078s
The usual stuff like system.img installs just fine, even with a 3 GB system.img. But when I say "fastboot set_active a" and reboot, booting fails. "fastboot set_active b", and I am back at 8.0.
What can I try next?

oz42 said:
My bootloader unlocked RETEU 1900-7 is running 8.0 November 2018 update on slot B and received the OTA today. But no matter what I tried, it failed to install.
This is strange. I have received one OTA (8.0 security patch) once and could install it.
I tried
removing Magisk
fastboot oem lock
but still no luck.
So I have picked the OTA payload.bin and have converted it to several fastboot flashable images.
But I get more images than I have previously seen, e.g. cmnlib64.img. And flashing those images fail all the same way:
Code:
C:\Users\Olaf\Downloads\ROM9\flashable>mfastboot flash xbl_a xbl.img
target max-sparse-size: 256MB
sending 'xbl_a' (2247 KB)...
OKAY [ 0.062s]
writing 'xbl_a'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.078s
The usual stuff like system.img installs just fine, even with a 3 GB system.img. But when I say "fastboot set_active a" and reboot, booting fails. "fastboot set_active b", and I am back at 8.0.
What can I try next?
Click to expand...
Click to collapse
1) Keep bootloader unlocked.
2) Flash stock 9 retail firmware. Download it here. Make sure the flash script leaves 'userdata' alone.

It has worked well. Thanks!

Related

Will I be forever stuck at 4.2.2 if I cant flash recovery?

I have tried everything I have read on here and I cant seem to flash recovery. I used pwnmymoto to gain root when I first received my moto x. When the camera update came I thought I unrooted and flashed back to stock becasue I was able to get the OTA. Yesterday I could not install the OTA 4.4 because it gave me a error sign. I tried to flash recovery using fastboot but everytime now matter what I do this shows up:
colins-air:Android Tools colinj22$ ./fastboot flash recovery recovery.img
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (10240 KB)...
OKAY [ 0.798s]
writing 'recovery'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.848s
colins-air:Android Tools colinj22$
Can someone please help me. I am fairly new to fastboot and I am on a Mac and I have read everything in these threads and nothing seems to help. Can I erase everything and somehow start from scratch?
Thank you all!
colinj22 said:
I have tried everything I have read on here and I cant seem to flash recovery. I used pwnmymoto to gain root when I first received my moto x. When the camera update came I thought I unrooted and flashed back to stock becasue I was able to get the OTA. Yesterday I could not install the OTA 4.4 because it gave me a error sign. I tried to flash recovery using fastboot but everytime now matter what I do this shows up:
colins-air:Android Tools colinj22$ ./fastboot flash recovery recovery.img
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (10240 KB)...
OKAY [ 0.798s]
writing 'recovery'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.848s
colins-air:Android Tools colinj22$
Can someone please help me. I am fairly new to fastboot and I am on a Mac and I have read everything in these threads and nothing seems to help. Can I erase everything and somehow start from scratch?
Thank you all!
Click to expand...
Click to collapse
try using a different fastboot besides the one you are using. also make sure you are trying to flash the right FW version. you can't downgrade FW so it needs to be the FW version that is currently on the device.
try the second link in the OP of this thread for a different fastboot
http://forum.xda-developers.com/showthread.php?t=2489249
Flashing recovery requires a unlocked boot loader, you're obviously on Verizon and unless you have a DE moto you can't flash recovery due to your boot loader being locked
Sent on my Moto X
Incorrect^
Sent from my XT1060 using Tapatalk

Need help ASAP! (fastboot preflash validation failed)

EDIT 3: Okay, just flashed a new kernel and the WiFi is working now. Must have been the stock kernel for some reason.
So all problems solved now
EDIT 2: Succesfully flashed the ROM, but unable to connect to Wifi. When I press the on button, it switches on for a second and then switches off again. Any idea guys why?
I've been trying to flash the stock ROM, but can't because as soon as I begin with the first step i.e fastboot flash partition gpt.bin, the following error is displayed- fastboot preflash validation failed.
Now I've been reading up on the forums here and a some have said that this error occurs when someone tries to downgrade. But I'm on the latest build and I don't know why this is happening?
Just so everyone knows, I'm unlocked and rooted.
Please, I need help since the ROM I'm on, which by itself is stock, is pretty much not working.
EDIT: The full message on fastboot is as follows
PHP:
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.036s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.397s
And on the bootloader
PHP:
version downgraded for primary_gpt
mahendru1992 said:
I've been trying to flash the stock ROM, but can't because as soon as I begin with the first step i.e fastboot flash partition gpt.bin, the following error is displayed- fastboot preflash validation failed.
Now I've been reading up on the forums here and a some have said that this error occurs when someone tries to downgrade. But I'm on the latest build and I don't know why this is happening?
Just so everyone knows, I'm unlocked and rooted.
Please, I need help since the ROM I'm on, which by itself is stock, is pretty much not working.
EDIT: The full message on fastboot is as follows
PHP:
target reported max download size of 536870912 bytessending 'partition' (32 KB)...OKAY [ 0.036s]writing 'partition'...(bootloader) Preflash validation failedFAILED (remote failure)finished. total time: 0.397s
And on the bootloader
PHP:
version downgraded for primary_gpt
Click to expand...
Click to collapse
You can ignore gpt.bin and motoboot.bin. They won't flash if the same or lower version. Not a problem. Just continue flashing the other files.
doppelhelix said:
You can ignore gpt.bin and motoboot.bin. They won't flash if the same or lower version. Not a problem. Just continue flashing the other files.
Click to expand...
Click to collapse
Okay, thanks man, I successfully flashed the ROM. But now I have another problem. I'm not able to switch on my Wifi. When press the on button, it switches on for a micro sec and then switches off. Any idea why?
Don't know. Maybe a reboot. After that I would wipe dalvic, cache and data?
doppelhelix said:
Don't know. Maybe a reboot. After that I would wipe dalvic, cache and data?
Click to expand...
Click to collapse
I did better, a factory reset. Nada.
Would flashing a different kernel help?
Did you do a
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
This is a wififix for the kernel
doppelhelix said:
Did you do a
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
This is a wififix for the kernel
Click to expand...
Click to collapse
Oh I didn't know that this was a wifi fix, but yes I did perform the above steps as well.
But anyhow, I flashed a new kernel and it did solve the problem.
Thanks
doppelhelix said:
You can ignore gpt.bin and motoboot.bin. They won't flash if the same or lower version. Not a problem. Just continue flashing the other files.
Click to expand...
Click to collapse
Thanks 4 Your Help i been stuck whit that errors all night and now i have back on 4.4.4.
C:\Users\Raghavendra\Documents\RETAIL-BR-DS_4.4.4_KXB21.14-L1.40_38_cid12_CFC_1F
F_SVC.xml>mfastboot flash motoboot motoboot.img
target max-sparse-size: 256MB
sending 'motoboot' (1953 KB)...
OKAY [ 0.133s]
writing 'motoboot'...
(bootloader) Motoboot: Unknown partition name
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.192s
pl help me i have the same problem..... but idk how to fix it...... plz help me asap... i have just unbricked my phone and tried to flash the brazillian 4.4.4....... i was already on this firmware before but when i tried to update to brazilian ota 5.0 my phone was bricked... now i have successfully unbricked it but i cant flash it to any rom cause of this problem...... if it the files prob?? should i get another rom?? pl help asap:crying::crying::crying::crying::crying::crying:
Raghavendra2k14 said:
C:\Users\Raghavendra\Documents\RETAIL-BR-DS_4.4.4_KXB21.14-L1.40_38_cid12_CFC_1F
F_SVC.xml>mfastboot flash motoboot motoboot.img
target max-sparse-size: 256MB
sending 'motoboot' (1953 KB)...
OKAY [ 0.133s]
writing 'motoboot'...
(bootloader) Motoboot: Unknown partition name
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.192s
Click to expand...
Click to collapse
As you pointed out here: http://forum.xda-developers.com/showpost.php?p=57483947&postcount=115, your bootloader is locked. Please don't double-post. Forum Rules
pl help
doppelhelix said:
As you pointed out here: http://forum.xda-developers.com/showpost.php?p=57483947&postcount=115, your bootloader is locked. Please don't double-post. Forum Rules
Click to expand...
Click to collapse
when i try unlocking bootloader again it gives me me a error
C:\Users\Raghavendra\Desktop\platform-tools>fastboot oem get_unlock_data
...
(bootloader) Could not get unlock data!
OKAY [ 0.016s]
finished. total time: 0.016s
even if i put my old code it doesnt work... pl help..... but in this forum it tells us to flash the two files gpt.bin and motoboot.img but when i try to flash these they give me preflash validation error <remote failure> and display "version downgraded for primary_gpt" on the moto g
my bootloader is locked because it got hard bricked and i recently unbricked it.... the next step was to flash these two files but i get this preflash validation error <remote failure> and display "version downgraded for primary_gpt" on the moto g
pl help me
Raghavendra2k14 said:
when i try unlocking bootloader again it gives me me a error
C:\Users\Raghavendra\Desktop\platform-tools>fastboot oem get_unlock_data
...
(bootloader) Could not get unlock data!
OKAY [ 0.016s]
finished. total time: 0.016s
even if i put my old code it doesnt work... pl help..... but in this forum it tells us to flash the two files gpt.bin and motoboot.img but when i try to flash these they give me preflash validation error <remote failure> and display "version downgraded for primary_gpt" on the moto g
my bootloader is locked because it got hard bricked and i recently unbricked it.... the next step was to flash these two files but i get this preflash validation error <remote failure> and display "version downgraded for primary_gpt" on the moto g
pl help me
Click to expand...
Click to collapse
Didn't you read anything of the previous posts?
If you've unlocked your bootloader, and getting these errors, you can safely ignore them. Just carry on flashing the other files.
Carried on
I did carried on with the fastboot steps but I get this "UTAG "flashfail" is configured as fastboot" and I'm still stuck in Bootloader.
How do I change the Kernel?
Oh yeah, I updated to Lollipop about 20 days ago, worked fine until a few days back and suddenly I get these strange errors. What could be the cause though?

Can't flash stock ROM

Hello guys, so yesterday I got into a bootloop on my Moto G 2014... Then I tried to flash the stock ROM to solve the problem, but every time I execute the command line:
mfastboot.exe flash partition got.bin
I got a message saying:
C:\Users\Magda\Desktop\JV>mfastboot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.062s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.375s
Does anybody know how to fix it? I've been searching for a solution but I couldn't find...
If anybody could help me I will be very thankful...
Nynsu said:
fastboot flash partition gpt.bin
Click to expand...
Click to collapse
If you already updated the ROM, there are two images that can't be downgraded. The first is gpt.bin and the second is motoboot.img
Just ignore these two and continue flashing.
Thanks
doppelhelix said:
If you already updated the ROM, there are two images that can't be downgraded. The first is gpt.bin and the second is motoboot.img
Just ignore these two and continue flashing.
Click to expand...
Click to collapse
Thanks, Thanks! I just ignored these two and it worked. I never thought it would be that simple lol . Thanks,mate

[HELP] Moto X2 Problem after wrong root file

Good evening guys...
I have a Moto X 2nd gen (XT1097) with Stock Retail BR Rom and it was working like a charm till this morning.
I received a notification of an OTA Update (security patch) and I wanted to patch the phone...
I know a rooted phone (like mine) could not receive OTA Updates, so I flashed stock rom again with RDSLite like I always do.
The problem occured when I try to root it... I picked a wrong file to flash with the TWRP and cel got stucked in the boot logo.
When I try to flash the Firmware stock 6.0 in the RDSLite, It returns a error like that:
Code:
fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.004s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.083s
I asked a friend of mine that have the same device and the version of his bootloader is 60.18 (sha-3b3b501 ... )
my bootloader, after I fuc*ed the device is 60.00 (sha-130760b ... )...
I can still turn on device, can flash the firmware if I erase gpt and motoboot lines from flashfile.xml but I cannot OTA and root, got some errors!
Anyone knows something about that? Can I try to downgrade to solve? Anyone knows this bootloader version???
Sorry about english...
I tried every ROM (4.4.4, 5.0, 5.1 and 6.0) and all of them returns the message "version downgraded for primary_gpt"... FU*K this SH*T!!!!
My bootloader is at 60.00 version and I really need to put the 60.18 version... How to do that?

Relock bootloader on Moto G6

Every time I try to lock my bootloader again on my Moto G6 XT1925-3 through the rom stock I get this error:
C:\Minimal ADB and Fastboot (Stock Rom)>fastboot flash partition gpt.bin
target reported max download size of 534773760 bytes
sending 'partition' (45 KB)...
OKAY [ 0.005s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote failure)
finished. total time: 0.075s
C:\Minimal ADB and Fastboot (Stock Rom)>fastboot flash bootloader bootloader.img
target reported max download size of 534773760 bytes
sending 'bootloader' (7419 KB)...
OKAY [ 0.244s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Security version downgrade
(bootloader) Image aboot failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'bootloader.default.xml'
FAILED (remote failure)
finished. total time: 0.456s
Would anyone help me?
MacaldS said:
Every time I try to lock my bootloader again on my Moto G6 XT1925-3 through the rom stock I get this error:
C:\Minimal ADB and Fastboot (Stock Rom)>fastboot flash partition gpt.bin
target reported max download size of 534773760 bytes
sending 'partition' (45 KB)...
OKAY [ 0.005s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote failure)
finished. total time: 0.075s
C:\Minimal ADB and Fastboot (Stock Rom)>fastboot flash bootloader bootloader.img
target reported max download size of 534773760 bytes
sending 'bootloader' (7419 KB)...
OKAY [ 0.244s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Security version downgrade
(bootloader) Image aboot failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'bootloader.default.xml'
FAILED (remote failure)
finished. total time: 0.456s
Would anyone help me?
Click to expand...
Click to collapse
You're trying to flash an older firmware than the one you're on now. It's going to fail and if it succeeds it will brick your device. you'll need to find a firmware package the same or newer than the one you're on now.
Relocking the bootloader may not be possible many have tried and failed
madbat99 said:
You're trying to flash an older firmware than the one you're on now. It's going to fail and if it succeeds it will brick your device. you'll need to find a firmware package the same or newer than the one you're on now.
Relocking the bootloader may not be possible many have tried and failed
Click to expand...
Click to collapse
Could you tell me where I can find firmwares that are the same or newer than mine?
MacaldS said:
Could you tell me where I can find firmwares that are the same or newer than mine?
Click to expand...
Click to collapse
Flashing stock will not re lock bootloader. But you can find some stock firmwares here
You'll have to see which one you need. I don't know what region your phone is or what firmware is on it.
madbat99 said:
Flashing stock will not re lock bootloader. But you can find some stock firmwares here
You'll have to see which one you need. I don't know what region your phone is or what firmware is on it.
Click to expand...
Click to collapse
Can I make these updates through TWRP or should they be made by fastboot?
MacaldS said:
Can I make these updates through TWRP or should they be made by fastboot?
Click to expand...
Click to collapse
Not TWRP. These are stock firmware, so fastboot or RSDlite.
I Bricked Moto g6 Xt 1925-6
madbat99 said:
You're trying to flash an older firmware than the one you're on now. It's going to fail and if it succeeds it will brick your device. you'll need to find a firmware package the same or newer than the one you're on now.
Relocking the bootloader may not be possible many have tried and failed
Click to expand...
Click to collapse
This happened to me i Need to unbrick it but the bootloader is locked by the Android Device Manager as well as seen here https://forum.xda-developers.com/mo...android-aosp-9-0-pie-android-9-0-0r1-t3847354 Someone Please Tell me how I Can unlock my BootLoader Now?
It's almost inpossible to relock your bootloader because you need to have signed that not bad boot.img and ect. As long that you don't have those files you will be unable to relock the bootloader. I have noticed the same thing when i was trying to relock mine bootloader on my moto g6.
I Bricked Moto g6 Xt 1925-6
outsideracer said:
It's almost inpossible to relock your bootloader because you need to have signed that not bad boot.img and ect. As long that you don't have those files you will be unable to relock the bootloader. I have noticed the same thing when i was trying to relock mine bootloader on my moto g6.
Click to expand...
Click to collapse
no i did relock no i cant unlock again and phone is bricked its like 2 bootloaders weird I Need all the help i can get. it is a moto g6 xt-1925-6
2 boorloaders ?? Are they both locked than? And can you get in your recovery mode?
outsideracer said:
2 boorloaders ?? Are they both locked than? And can you get in your recovery mode?
Click to expand...
Click to collapse
yrs one has a red warning at boot up the other is yellow i get in revcovery mode on yellow loader but get code 21 error when trying to adb sideload
chrisp68 said:
yrs one has a red warning at boot up the other is yellow i get in revcovery mode on yellow loader but get code 21 error when trying to adb sideload
Click to expand...
Click to collapse
Did you try flashing twrp and doing a full format on twrp?

Categories

Resources