yashsingh1/xdaforums huggingface dataset:
[Nook Color Q&A, Help & Troubleshooting] PharmD208:
Great! Thanks. I'll give it a shot.:good:

*EDIT* I am having a lot of trouble trying to find those threads. Could you be so kind as to help guid me to them? Thanks a million.
[Nook Color Q&A, Help & Troubleshooting] leapinlar:
Here for SD install:

http://xdaforums.com/showthread.php?p=32921666

Here for EMMC install:

http://xdaforums.com/showthread.php?t=1030227
[Nook Color Q&A, Help & Troubleshooting] PharmD208:
Oh wow! I thought this was gonna be easy. Thanks a bunch for the links. I'm going with the SD Card option. I'll see if I can do it. Thanks again:good:

*EDIT*

TADA! Did it! come to find out, the reason I was having such a hard time is that the zip file I was trying to flash was corrupt. Thanks for all your help.
[Sprint Samsung Galaxy Note II] emotiva:
I'm fairly new to custom roms, but I'm fairly comfortable using Odin and CWM. I think I got stuck in a bad spot and would like some help.

I had a stock 4.1.2 L900 (with root access) last night. Decided to install the 4.3 OTA update via stock recovery, and everything booted into 4.3 just fine. Had an issue where my wifi wouldn't turn on at all. I decided to reroot on 4.3 via Odin, which did not fix the issue.

Then I installed CWM 6.0.1.4 using Odin and tried a few roms to see if they would fix the wifi. I installed the Illusion Rom (http://xdaforums.com/showthread.php?t=2361476) and got stuck at boot animation. I then tried a few other ROMs, and even the 4.3 OTA update again, and get stuck at "Error 7", which from my understanding means I'm trying to install on the wrong device.

So, now I have CWM, a ROM that gets stuck at boot animation, and I can't install another ROM. Can anyone help me on where to go from here?
[Sprint Samsung Galaxy Note II] ecs87:
Use Odin to return to MK4 stock with the MD5 file.
[Sprint Samsung Galaxy Note II] emotiva:
Thanks for the help! Used Odin after a little playing around to get the .md5 extension.
[Moto G Q&A, Help & Troubleshooting] RazorHail:
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?
[Moto G Q&A, Help & Troubleshooting] matmutant:
open FAQ

ctrl+f : "relock"
[Moto G Q&A, Help & Troubleshooting] RazorHail:
thanks,

I've already tried that.

But when I enter "fastboot oem lock", I get:

when I enter the suggested "fastboot oem lock begin", I get:

I'm not sure what that's suppose to mean.....I already downloaded the official firmware images and flashed those immediately after I get this message........but it still says that the bootloader is unlocked.

And immediately returning back to the bootloader and typing in "fastboot oem lock" still won't work - same message as before...

am I missing something?
[Moto G Q&A, Help & Troubleshooting] denzel09:
Yup, this "unlock-relock" is WIP yet ..
[Moto G Q&A, Help & Troubleshooting] akaygee:
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.
[Moto G Q&A, Help & Troubleshooting] denzel09:
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.
[Moto G Q&A, Help & Troubleshooting] akaygee:
thats how it works on most motorola android phones i have used ,it works fine on my moto g so yes that is right.

like so

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
[Moto G Q&A, Help & Troubleshooting] danger2u:
for me not working
[Moto G Q&A, Help & Troubleshooting] akaygee:
you didn't flash factory firmware in between
[Moto G Q&A, Help & Troubleshooting] danger2u:
i have some problem when i try to flash the system img
[Moto G Q&A, Help & Troubleshooting] akaygee:
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://xdaforums.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
[Moto G Q&A, Help & Troubleshooting] denzel09:
When we ask the motorola unlock code, this does not imply that we actually unlock the bootloader.

I mean, i can ask to motorola to unlock code but i can decide to unlock also after sometimes, who stops me.

So, i think that when we relock bootloader, also if previously we asked an unlock code, we are ok, for what i writed above. How can they to be sure that bootloader has been really unlocked in case of brick or hardware failure ?
[Moto G Q&A, Help & Troubleshooting] akaygee:
the boot loader has a status indicator.phone shops/retailers probably won't check it but motorola will.
[Moto G Q&A, Help & Troubleshooting] denzel09:
Understood, i had read something in an other post, so to complete the "opera" we need to 'something' to reset that count/status? Like on samsung device, s2 et similia?
[Moto G Q&A, Help & Troubleshooting] akaygee:
yes that is right we would need to find out what file is responsible for storing the count or status of the boot loader as its not the boot loader its self that holds this information.even if you flash the whole system after relocking the bootloader the count is still there.
[Moto G Q&A, Help & Troubleshooting] danger2u:
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
[Moto G Q&A, Help & Troubleshooting] matmutant:
Motorola talked about a fuse that is "burned" when unlocking, that's why they know, even after relocking :)

_________________________

i need to update FAQ about relocking (i never ever needed to relock a bootloader myself :p )

So for relocking, i would like to directly link your post [MENTION=5086340]akaygee[/MENTION], please duplicate it in FAQ thread :) . then, i'll ask the current thread to be moved to Q&A.
[Moto G Q&A, Help & Troubleshooting] akaygee:
[MENTION=2311660]danger2u[/MENTION]

interesting ,are you using a carrier branded phone.? that or the bootloader is locked

i used this method on a uk retail moto g and never run into any problems
[Moto G Q&A, Help & Troubleshooting] danger2u:
no is not branded

i bought from italian retail store

now i will try to flash with uk firmware
[Moto G Q&A, Help & Troubleshooting] denzel09:
So it will be impossible to reset that status ?
[Moto G Q&A, Help & Troubleshooting] coloxim:
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
[Moto G Q&A, Help & Troubleshooting] flibblesan:
Use the code you already have. It's unique to your device.
[Moto G Q&A, Help & Troubleshooting] danger2u:
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
[Moto G Q&A, Help & Troubleshooting] akaygee:
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.
[Moto G Q&A, Help & Troubleshooting] danger2u:
when i try to flash system image i got error can t open file imagine

whats wrong?
[Moto G Q&A, Help & Troubleshooting] RazorHail:
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://xdaforums.com/showthread.php?t=2548530
[Moto G Q&A, Help & Troubleshooting] coloxim:
thanks....you are right!!!

good news...thank you soooo much....

<(
[Moto G Q&A, Help & Troubleshooting] szymko1995:
So there is no way to get the warranty back, yet?

Wytapane z sgs2 napędzanego przez cm11
[Moto G Q&A, Help & Troubleshooting] krypto16:
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://xdaforums.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).
[Moto G Q&A, Help & Troubleshooting] rockknee:
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
[Moto G Q&A, Help & Troubleshooting] szymko1995:
I'm living in EU area, so there is a way to get the warranty back, when I relock bl?

Wytapane z sgs2 napędzanego przez cm11
[Moto G Q&A, Help & Troubleshooting] denzel09:
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.
[Moto G Q&A, Help & Troubleshooting] bobcat913:
If you have root, go into cache folder, then recovery. You can read the files. Maybe something in there will help with the resetting
[Moto G Q&A, Help & Troubleshooting] audit13:
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
[Moto G Q&A, Help & Troubleshooting] spiritflare:
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
[Moto G Q&A, Help & Troubleshooting] mokkami:
No. You have even lost your warranty once you generate the unlock code.
[Moto G Q&A, Help & Troubleshooting] lost101:
https://fsfe.org/campaigns/android/liberate.en.html

http://piana.eu/root
[Moto G Q&A, Help & Troubleshooting] mokkami:
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.
[Moto G Q&A, Help & Troubleshooting] mackb44:
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?
[Moto G Q&A, Help & Troubleshooting] mackb44:
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!
[Moto G Q&A, Help & Troubleshooting] weckart:
In the EU unlocking your bootloader WILL void your warranty with Motorola but not necessarily affect your statutory rights, which are limited to a guarantee - not a warranty. Guarantees and warranties are different from each other. The post above talking about statutory warranties is mistaken as there is no such thing. The EU directive only talks about guarantees; the word 'warranty' is never mentioned even once in that directive.
[Moto G Q&A, Help & Troubleshooting] Ganapatya:
What's the difference between a guarantee and a warranty?

Learn about the differences and what you should look out for when purchasing items

Guarantee

A guarantee is usually free and is a promise about an item by the manufacturer or companyIt's a promise to sort out any problems with a product or service within a specific, fixed period of timeWhether you paid for a guarantee or not, it is legally bindingThe guarantee must explain how you would make a claim in a way that is easy to understandIt adds to your rights under consumer lawIt will take effect whether or not you have a warranty

Warranty

A warranty acts like an insurance policy for which you must pay a premium - Sometimes a warranty is called an 'extended guarantee'May last longer than a guarantee and cover a wider range of problemsA warranty is a legal contractThe terms of the contract should be clear and fairDoes not reduce your rights under consumer lawA warranty can be in place with a guarantee

The EU position

There has been some confusion of the impact of European law with regards to warranties. A common misunderstanding is that a business must give a two year warranty. This is not the case. The confusion has arisen over the translation and the use of the word 'warranty'.

The EU law actually entitles people to have a 'right of action' against a business for two years. English law protects consumers more than this and allows a person to bring a claim within six years, some four years longer than required by EU law.

English law

There are many acts and regulations, most notably, the Sale of Goods Act, which protect someone when buying something or using a service. These acts and regulations can always be relied upon whether or not you have a warranty or guarantee. They also apply to everyone, from a huge dealership to a guy selling his bike on eBay.

As you would expect, a buyer has no real grounds for complaint if they were told about the fault before they bought the item or caused the damage themselves. What may surprise some people however is that generally that if you are buying something you have limited grounds for complaint if you examined the item, or had the opportunity to examine the item, when you bought it and should have spotted the defect. Once you have accepted an item it is very difficult to try and reject it or allege a fault later.

In saying this, the item should be of satisfactory quality. This is based on what a reasonable person would regard as satisfactory taking into account description, price and other relevant factors. It must also match any description given in a brochure, or given to you by a sales representative. In addition, it should also be fit for its purpose. This includes any purpose specifically indicated to the seller, even if it is not usually used for that purpose!

Read more:*http://www.access-legal.co.uk/free-...arantee-and-a-warranty-1314.htm#ixzz2sq5rsSxa

Read more:*http://www.access-legal.co.uk/free-...arantee-and-a-warranty-1314.htm#ixzz2sq4rgwF1
[Moto G Q&A, Help & Troubleshooting] Tomsgt:
Here is a video I made that I think will help anyone looking to relock there device or just restore it. VIdeo please add to the OP if you think it will help
[Moto G Q&A, Help & Troubleshooting] lolwatpear:
I cannot get this to work even using that. I don't understand what the problem is.

edit: follow Tomsgt's video to get it working if you had trouble like me. The tool worked well.
[Moto G Q&A, Help & Troubleshooting] MikeMurphy:
Hi guys, nothing on here actually helped me get rid of the warning screen even after I relocked the bootloader. I did flash the logo.bin but it didn't work.

For those of you looking in to restoring your device to stock I suggest you save yourself time and headache and just download the big zip file on this thread: http://xdaforums.com/showthread.php?t=2646415 . The zip file actually will download despite it saying file not found, give it a few seconds and it'll pop up.

It contains EVERYTHING you need, the stock 4.4.2 USA retail rom for XT1032, fastboot, script files etc.

Interestingly, the .zip file from my link above contains a file moto-logo.bin that once flashed actually got rid of the warning screen. I didn't find that file in the stock ROM.

Best of luck guys.
[Moto G Q&A, Help & Troubleshooting] Czechnolog:
I tried your great tutorial but it still shows this: "(bootloader) sst lock failure!"

I used this command "Restore & Relock Bootloader full wipe" from your package "Firmware restore lock and more 4.4.2".

Any advice?

Many thanks.
[Moto G Q&A, Help & Troubleshooting] shmotog:
i followed this guide and now my root is gone and im back to square one. i thought the root would stay! now lets hope titanium works.
[Moto G Q&A, Help & Troubleshooting] morganmf:
The same here. After flashing stock I am unable to lock bootloader. It says "sst lock failure" and thats it...
[Moto G Q&A, Help & Troubleshooting] abhishekk89:
I'm on stock ROM (rooted with unlocked bootloader) and have the latest update 4.4.3. I had a small hardware issue and I need to get the phone serviced. I hence have to relock the bootloader (consequently flash the stock ROM). Can it be done using this tutorial ? Are there any issues flashing the older 4.4.2 ROM ?
[Moto G Q&A, Help & Troubleshooting] thumper300zx:
...and LOCKED! Thanks. Needed this -- my mobile radio died before 1 year was up and I need to send the device back in for exchange. This looks better :) Already got the replacement phone (they upgraded me to a white MotoX 16GB because they messed up on my first attempt to RMA and then MotoG was out of stock).
[Moto G Q&A, Help & Troubleshooting] drmdsadiq:
check your system image name.. sparsechunk.0/.1/.2 or sparsechunk1/2/3 if so just replace it with the right name in the command and it will work. it worked for me.

also make sure both your adb /fastboot and the firmware are extracted to the same directory.

it will work!
[Moto G Q&A, Help & Troubleshooting] njofra13:
Hello,

I've managed to relock my bootloader but I still on boot up get message 'unlocked bootloader' so is there a way to remove that warning since my device is locked or I'm doing something wrong?

Thanks
[Moto G Q&A, Help & Troubleshooting] tmittelstaedt:
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.
[Moto G Q&A, Help & Troubleshooting] gowrish1026:
showing unlocked in bootloader screen

Hello.

Today I have relocked my moto g 1st gen successfully.

But showing unlocked in boot loader screen why...?

Pls help.
[Moto G Q&A, Help & Troubleshooting] klaymaniaf:
after lollipop soaktest lock bootloader

How can I lock the bootloader if I am on asian soak test build?

I,ve tried with fastboot comand fastboot oem lock flashed 4.4.4 and I get sst error.

Is there another way?