cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
prosis
Punch Card
Posts: 37
Registered: ‎12-30-2015
Location: US
Views: 26,463
Message 1 of 7

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

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!

prosis
Punch Card
Posts: 37
Registered: ‎12-30-2015
Location: US
Views: 26,446
Message 2 of 7

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

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!!

 

abhaydhodria
Paper Tape
Posts: 3
Registered: ‎10-29-2017
Location: IN
Views: 17,413
Message 3 of 7

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

abhaydhodria
Paper Tape
Posts: 3
Registered: ‎10-29-2017
Location: IN
Views: 9,322
Message 4 of 7

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

i did the same, my phone is now unrooted. but when i switch on phone there is some waring on the screen that bootloader is unlocked. so my warranty is still void. provide me a solution.


@prosis wrote:

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!!

 


 

Chirubhai38
Fanfold Paper
Posts: 10
Registered: ‎11-19-2016
Location: IN
Views: 8,637
Message 5 of 7

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

I m having same problem help me out
Chirubhai38
Fanfold Paper
Posts: 10
Registered: ‎11-19-2016
Location: IN
Views: 8,635
Message 6 of 7

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

Can't relock bootloader
abhaydhodria
Paper Tape
Posts: 3
Registered: ‎10-29-2017
Location: IN
Views: 4,897
Message 7 of 7

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

I did the same. but after the final command "fastboot oem lock". there was the following message  "Please run fastboot oem lock begin first!".

and when I tried this command initially there was a message to fully flash signed build before locking bootloader.

help me out with locking my bootloader.

MY phone is Moto G Turbo Edition XT1557(India)

Top Kudoed Authors