Relock the Bootloader

Search This thread

vijeshv

Member
Jan 3, 2013
7
1
this is just a quick howto am at work....
the files you need and will use are in moto g section of this forum.

firmware's here
http://forum.xda-developers.com/showthread.php?t=2546251


relock bootloader
=============
keep in mind this will remove any and all personal files and settings
like any self respecting android user you have made backups right....!!!! GOOD

download adb and fastboot extract or place into a directory.
now download the factory firmware image of your phone extract zip/rar and place into the same directory.

download "relock bootloader.txt" rename to "relock bootloader.bat" place this in the same directory as the files and double click it ,this would save you typing in all the commands from below in by hand and does it all for you.recap....if you did download and run relock bootloader.bat you dont need to type anything form below

open a command prompt as administrator ,navigate to the directory where you placed all the files we are working with and type as follows giving time for each command to finish.

fastboot oem lock begin
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot oem lock

NO this didnt help me.. Even bricked my device..:(
 

EduMonzter

Senior Member
Oct 11, 2011
186
48
you can brick your device if you flash the wrong firmware, from another device like moto g 2014
 

xarch15

Member
Oct 28, 2015
26
0
i have done the same procedure my fastboot is latest version the rom is XT1032_FALCON_RETFR_5.1_LPB23.13-56_cid7_CFC.xml yet it does not lock my bootloader

it says too many links!

what shall i do ? by the way i have boot loop too!
 

ronamit

Member
Jul 27, 2014
17
1
How i Moto G XT1033 Bootloader Relock

i am unlock my moto g xt1033 bootloader unlock.so pls tell me how i re lock my bootloader.my bootloader version 41.1A .pls help me.
 
May 6, 2015
6
1
Toronto
Unlocked bootloader?

Okay so I unlocked the bootloader on my phone, and was having some issues, so I relocked the bootloader, and now my phone is working well again. However, when I get the unlock data from the code (The ridiculous string of digits and letters motorola likes for some reason) The page tells me that my device "No longer qualifies to be unlocked." Is there a way to remedy this? Thanks in advance.
 

ManyPhones

Member
Jun 27, 2014
27
2
Hamburg Area
No, you can't change it back, now.

It is getting that because once the thing was unlocked, a flag in the phone is permanently set that cannot be changed back. If the phone is rooted you can reflash that message image file so the message goes away, but since part of the relock was to reflash the factory image (which is an unrooted image) you can't do that now.

All you can do is unlock it again with the phone's key, root it, then reflash the message file. But, once the phone is activated on a new account it will eventually do an OTA update that will replace that message image file and the message will start appearing again.

---------- Post added at 08:34 PM ---------- Previous post was at 08:20 PM ----------



Here's more info on the specific software flags used (qualcomm calls 'em fuses)

http://blog.azimuthsecurity.com/2013/04/unlocking-motorola-bootloader.html

Also, it's the logo file you would flash to make the message go away.

fastboot flash logo

I do not think it will stick during an OTA update, though.

After using CM13, i reverted to stock 5.0.2 by using this thread:
http://forum.xda-developers.com/showthread.php?t=2700502.
I used the option WITH re-locking and the "Unlocked Bootloader Warning" screen appeared during boot )-:

So i unlocked again and flashed the "nice" logo.bin: http://www.droidviews.com/remove-unlocked-bootloader-warning-on-moto-g-moto-x-purestyle-using-fastboot/

In that state I successfully received an OTA update to 5.1, followed by another OTA update with a small patch (10 MB size). The phone remained unlocked after the OTAs - and the "nice" logo is still there.

I will keep it this way. The phone is older than 2 years anyway.

P.S.: Later I found, I could also have updated to 5.1 with the PC per http://forum.xda-developers.com/moto-g/development/rom-stock-motorola-lollipop-rom-t3017510, applying the same procedure as for the 5.0.2, but re-locking seems to trigger the bad logo.
 

RBN_1

Member
Dec 11, 2016
8
2
Hey, I had the same problem...but when I tried the commands given by akaygee, in the end after "fastboot oem lock", the command prompt again asked for begin with "fastboot oem lock begin", afterwards it asked for signed images without which it cannot lock, so is there a way to get moto signed factory images
 

RussianIce

Member
Mar 16, 2015
18
0
Does work!!!

for me not working
v2rx.png


Worked 100%
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    this is just a quick howto am at work....
    the files you need and will use are in moto g section of this forum.

    firmware's here
    http://forum.xda-developers.com/showthread.php?t=2546251


    relock bootloader
    =============
    keep in mind this will remove any and all personal files and settings
    like any self respecting android user you have made backups right....!!!! GOOD

    download adb and fastboot extract or place into a directory.
    now download the factory firmware image of your phone extract zip/rar and place into the same directory.

    download "relock bootloader.txt" rename to "relock bootloader.bat" place this in the same directory as the files and double click it ,this would save you typing in all the commands from below in by hand and does it all for you.recap....if you did download and run relock bootloader.bat you dont need to type anything form below

    open a command prompt as administrator ,navigate to the directory where you placed all the files we are working with and type as follows giving time for each command to finish.

    fastboot oem lock begin
    fastboot flash partition gpt.bin
    fastboot flash motoboot motoboot.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 modem NON-HLOS.bin
    fastboot erase modemst1
    fastboot erase modemst2
    fastboot flash fsg fsg.mbn
    fastboot erase cache
    fastboot erase userdata
    fastboot oem lock
    7
    i done a relock last week and this works for me.use adb command "fastboot oem lock begin" go through the routine to flash factory firmware image and use "fastboot oem lock" command to finish after you flashed factory firmware.

    So, steps are these:

    1: fastboot oem lock begin
    2: flash stock firmware
    3: fastboot oem lock

    And BL will be locked again. Correct me if i'm wrong.

    Problem is that for "unlocked" we need always of a code by motorola atm.
    6
    Hi,
    I want to give my unlocked Moto G to a family member - and I'd like to relock the bootloader again, for security reasons.(I don't care about the warranty)

    is there a way to do that?

    1. open FAQ
    2. ctrl+f : "relock"
    4
    Given European Directive 1999/44/CE, just the fact that you modified or changed the software of your device, is not a sufficient reason to void your statutory warranty.

    https://fsfe.org/campaigns/android/liberate.en.html

    Does rooting your phone invalidate its warranty? (In EU)

    In short: No. Just the fact that you modified or changed the software of your device, is not a sufficient reason to void your statutory warranty. As long as you have bought the device as a consumer in the European Union.

    http://piana.eu/root
    3
    wth i just doing wrong???
    the firmware is Blur_Version.14.91.11.falcon_umts.Retail.en.DE

    he gives me this error and on the phone says failed to validate system image

    3dmb.png

    I think I solved this problem.....

    executing "fastboot flash system system.img" didn't work for me either (permission denied)
    But surprisingly it worked with the fastboot.exe included in the firmware-images zip-file....

    so just do a "cd" to the root-directory of the folder, and then:
    > Windows\fastboot.exe flash system system.img
    (since the fastboot.exe is in the 'windows' subfolder)
    this way, you won't be using your installed ADB/fastboot-versions, but the ones that are in the zip-file



    unfortunately the logo.bin was still said "bootloader unlocked". though the bootloader said "locked". so you just have to manually flash the logo.bin from here:
    http://forum.xda-developers.com/showthread.php?t=2548530