Relock the Bootloader

Search This thread

coloxim

Senior Member
Feb 17, 2011
1,546
52
Pavia
Stupid question...if I relock for unlock again, I've to use the old unique code or I've to ask anotherone on Motorola site?

Inviato dal mio XT1032 utilizzando Tapatalk
 

danger2u

Senior Member
Jan 24, 2010
1,085
239
i flashed the german retail version with flashall.bat
nothing to do same error like in previous post
i flash then the logo for removing the warning bootloader unlocked
now i ll let the phone in this way untill another solution comes out
 

akaygee

Member
Jan 24, 2013
30
24
Scotland
i flashed the german retail version with flashall.bat
nothing to do same error like in previous post
i flash then the logo for removing the warning bootloader unlocked
now i ll let the phone in this way untill another solution comes out

don't know if this will make any difference but it might ,my phone was also rooted with super-boot when i done the re-locking.
 

danger2u

Senior Member
Jan 24, 2010
1,085
239
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

when i try to flash system image i got error can t open file imagine
whats wrong?
 
Last edited:

RazorHail

Senior Member
Jul 24, 2010
63
9
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
 

coloxim

Senior Member
Feb 17, 2011
1,546
52
Pavia
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

thanks....you are right!!!
good news...thank you soooo much....
<(
 

krypto16

Senior Member
May 19, 2010
173
21
Katy
Google Pixel 3
When flashing the system image sparse bundles as part of restoring stock firmeware, you have to use the supplied Moto Fastboot which is part of the zip file you downloaded with the stock images (I think). Using the stock android fastboot.exe will fail flashing moto system images for some reason even on unlocked bootloader.

This thread http://forum.xda-developers.com/show....php?t=1953948 has the Motorola version of fastboot to download (if it is ever not in the zip of stock firmeware). Just download this and use as fastboot. It allowed me to flash the system images (all three sparsechunck sections).
 
  • Like
Reactions: tom0079

rockknee

Senior Member
Apr 13, 2013
462
125
Masku
So there is no way to get the warranty back, yet?

Wytapane z sgs2 napędzanego przez cm11

Motorola knows always if you have once unlocked bootloader. So if you are not living in EU area and have unlocked bootloader your warranty is gone. I don't think there is any way to get one's hands to motorola's database :D

Sent from my GT-I8190 using Tapatalk
 

denzel09

Senior Member
Jun 28, 2009
4,321
891
Teheran
I also live in EU, Italy, and i never had problem with warranty and unlcked bootloader.
Unless they proves that the damage was actually caused by the unlocked bootloader then you're in a barrel of iron, at least here.
EU is not United States, luckly. It's a your right the warranty, locked or unlocked bootloader it makes no difference. They must always prove that damage is caused by unlocked bootloader, so which "real damges" are caused by unlocked bootloader? So...
Here, in Italy but in all EU the consumer is protected, i think also in your country.
 

bobcat913

Member
Dec 23, 2013
49
13
If you have root, go into cache folder, then recovery. You can read the files. Maybe something in there will help with the resetting

Sent from my XT1032 using xda app-developers app
 

Attachments

  • uploadfromtaptalk1388690526528.jpg
    uploadfromtaptalk1388690526528.jpg
    62.9 KB · Views: 1,133

audit13

Inactive Recognized Contributor
Jun 4, 2012
12,915
5,052
Toronto
I'm not sure about the Moto G but there are some phones where the bootloader can't be re-locked (e.g. Motorola Atrix HD) to restore the warranty because unlocking will blow certain Qfuses.

QFuses and Trusted Boot

Much of Qualcomm's security architecture is implemented using QFuses, which are software-programmable fuses that allow one-time configuration of device settings and cryptographic materials such as hashes or keys. Because of their physical nature, once a QFuse has been blown, it is impossible to "unblow" it to revert its original value.

If the FORCE_TRUSTED_BOOT QFuse is blown, as is the case on all production Motorola devices, each stage of the boot chain is cryptographically verified to ensure only authorized bootloader stages may be run. In particular, the PBL ("Primary Bootloader"), which resides in mask ROM, verifies the integrity of the SBL1 ("Secondary Bootloader") via a SHA1 hash. Each stage of the boot chain verifies the next stage using RSA signatures, until finally Motorola's APPSBL ("Application Secondary Bootloader"), "MBM", is loaded and run.


Full article is here: http://blog.azimuthsecurity.com/2013/04/unlocking-motorola-bootloader.html
 
  • Like
Reactions: Rhyn

spiritflare

Senior Member
Oct 10, 2010
94
6
Toronto
re: Unlock Bootloader

Just remember that unless you download the Motorola version of FASTBOOT, you won't be able to flash the Sparsechunk files...

You will get:
C:\sdk-tools>fastboot flash system system.img_sparsechunk.1
target reported max download size of 536870912 bytes
erasing 'system'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 0.016s


Once I downloaded the Motorola version of fastboot from here: http://theunlockr.com/2013/12/06/unroot-motorola-moto-g/ (see link in this article) - - - (or just google for Motorola g fastboot)

Also, the final step here, it says:
C:\sdk-tools>fastboot oem lock
... FAILED (status read failed (Too many links))
finished. total time: 17.659s


it will still lock the bootloader - you can verify by reboot the device and you will see bootloader status "Locked"


Hope this helps
 
  • Like
Reactions: Fabinzin

lost101

Inactive Recognized Contributor
May 30, 2008
7,420
9,303
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
 

mokkami

Senior Member
Dec 28, 2009
458
148
Düsseldorf (DE)

Not everybody lives in the EU.

I know these links and i also had a discussion about that here at XDA because i know that it is not that easy for Motorola with this policy in the EU. Anyway it is important to know, that even requesting the Unlock code voids your warranty, at least for other users. Cause i read somewhere that somebody only wanted to request this code but not use it.

Okay, maybe i have quoted the wrong person......but anyway. I think it is important to know.
 
Last edited:

mackb44

Member
Dec 1, 2011
32
2
halifax
trying this method to relock the system sparsechunk 0 1 and 2 failed said bootloader permission denied. now i cant get into recover, is there a way to reflash from the desktop without getting into recovery?
 

mackb44

Member
Dec 1, 2011
32
2
halifax
Also, the final step here, it says:
C:\sdk-tools>fastboot oem lock
... FAILED (status read failed (Too many links))
finished. total time: 17.659s


it will still lock the bootloader - you can verify by reboot the device and you will see bootloader status "Locked"


Hope this helps[/QUOTE]
I went through all this and got the same failed to lock message. When i restart the phone i still get the bootloader unlocked message before it starts up but in fastboot it is relocked status code 2

Edit: used the logo.bin to remove the warning!
 
Last edited:

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