Showing results for 
Search instead for 
Do you mean 
Reply
Fanfold Paper
Posts: 17
Registered: ‎12-30-2015
Location: United States
Message 1 of 3 (11,170 Views)

Solved: Can't re-lock bootloader! "Please fully flash the signed build before locking phone"

[ Edited ]

I'm trying to follow this: https://motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images

 

But it fails at the first command "astboot flash partition gpt.bin". I get

 

target reported max download size of 268435456 bytes
sending 'partition' (32 KB)...
OKAY [  0.005s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.142s

Searching around the Web, XDA and this forum, I found this: https://forums.lenovo.com/t5/MOTOROLA-Android-Developer/GUIDE-Osprey-BOOTLOADER-LOCK/td-p/3374644

 

But again, when I write "fastboot oem lock begin" I get:

 

...
(bootloader) Please fully flash the signed build before locking phone!
OKAY [  0.022s]
finished. total time: 0.022s

So I tried putting the ROM back but again I get the same errors.

 

I just want to lock it again. Can anyone help me?

 

Thanks!

Fanfold Paper
Posts: 17
Registered: ‎12-30-2015
Location: United States
Message 2 of 3 (11,153 Views)

Re: Can't re-lock bootloader! "Please fully flash the signed build before locking phone"

[ Edited ]

Oh! Now I got it!

 

So, just in case someone is confused like I was, here's how to do it. First, find the right ROM. Then, go into fastboot.

 

 

fastboot oem lock begin

You'll get the message that's in the title "Please fully flash the signed build before locking phone" (which should have been obvious I know but I thought it was an error message). Nevertheless, after that message appears you flash the ROM like you would. For me it was:

 

fastboot flash partition gpt.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.99
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1 
fastboot erase modemst2 
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata

To finish the locking I did

fastboot oem lock

And that was it!!

 

What's DOS?
Posts: 1
Registered: ‎10-29-2017
Location: IN
Message 3 of 3 (2,120 Views)

Re: Solved: Can't re-lock bootloader! "Please fully flash the signed build before locking phone

i'm getting the same problem "Can't re-lock bootloader! "Please fully flash the signed build before locking phone" while unrooting my moto g turbo.

and after this in following commands "error can not load  gpt.bin/bootloader.img and so on for each command"

 

fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash modem NON-HLOS.bin

 

help me with this

Top kudoed Authors
User Kudos Count
1