It took me about two days to figure out how to unroot and relock my Moto X. Figured I'd create a total noob guide for those who are also looking to do the same. This is for the Verizon Wireless Developer Edition Moto X ONLY! I have no clue if this will work for other variants like Sprint, AT&T, T-Mobile, etc. So just play it safe and don't...
I've unrooted and relocked my VZW Dev Edition Moto X twice using this method, so as long as you follow the steps below you should be fine. Also please note that I'm not at all responsible for anything that happens to your beloved phone.
Btw, this process wipes your phone completely clean, so back your sh** up.
So here goes.
1. You need a Windows PC.
2. Download and install the Motorola Device Manager (USB Drivers) to your PC. This will allow your Moto X to be recognized by your computer.
3. Plug your Moto X into your PC and let the drivers install automatically.
4. Download and unzip the VZW Developer Edition Factory Image for the Moto X to your desktop.
5. Download both the fastboot.exe and AdbWinApi.dll files and place them in the folder you just unzipped in step step 4.
6. Now grab your Moto X, unplug it from your PC and power it off. Once powered off, press and hold both the Power and Volume Down buttons for about 10 seconds or so to access Fastboot mode.
7. Now, back on your PC, open the folder you extracted on Step 4. Hold down the Shift key on your keyboard and Right Click on an empty space within that folder. From the menu that pops up, click on Open command window here. A command prompt window should open. Plug your phone back into your PC.
8. In the command prompt type fastboot devices to make sure your X is being detected. You should see something similar T0620059GA. If you don't see it, then you may have to reinstall the USB Drivers from Step 2.
9. Once your X has been detected by your computer, and while still in Fastboot mode, type the following commands (in the order shown) into the command prompt on your PC:
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
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase cache
fastboot oem lock
fastboot reboot
...
That's it! You should now be locked and unrooted; back to the out of the box factory state. Don't forget to hit thanks and share!
Did re-locking ur bootloader get rid of the Bootloader Unlocked Warning Message?
tonyf7 said:
7. Now, back on your PC, open the folder you extracted on Step 4. Hold down the Shift key on your keyboard and Left Click on an empty space within that folder. From the menu that pops up, click on Open command window here. A command prompt window should open. Plug your phone back into your PC.
Click to expand...
Click to collapse
Right click sir.
mschumacher69 said:
Did re-locking ur bootloader get rid of the Bootloader Unlocked Warning Message?
Click to expand...
Click to collapse
Yes.
tonyf7 said:
Yes.
Click to expand...
Click to collapse
Just to make sure we're on the same page here, after re-locking ur bootloader, when u boot the phone, u get the Moto logo instead of the message that says Warning Bootloader Unlocked?
Because many other users said that u would still get this message even if u re-lock ur bootloader.
When I relocked the bootloader and rebooted the phone I didn't get the warning message. Went straight to the Moto logo. But then I immediately rooted and unlocked again. Only reason I unrooted and relocked in the first place was because I flashed a zip file that corrupted and broke Google Voice Search on my phone.
The second time I did this process I stopped right before locking the bootloader since I was going to root again anyways.
So maybe those other people are right. I've only rebooted my phone once since relocking the bootloader.
Sent from my XT1060 using xda app-developers app
If you want to get rid of the warning on startup, just flash the logo.bin. You can do this and remain unlocked. The instructions provided should have your phone looking and acting the same as it did out of the box. However, fastboot may note that it's been unlocked, to the OP, do you recall what status fastboot was reporting?
you need to reflash to stock in order to lock your bootloader? If not, I would appreciate if you separate the steps to just lock your boot loader.
I have my boot loader unlocked and the only reason I am considering to lock it again is so that if the phone is stolen, someone can't reimage it easily. I'm not sure that gives me any sort of protection though. But its just a thought.
In other words, I see unlocking and locking as a switch that stops you from flashing firmware. The OP makes it sound like the switch is tied to the firmware, ie only stock can have bootloader locked. I am not sure which is right.
esidnD Selim
I did it and keep receiving the warning unlock bootloader screen.
lopescesar304 said:
I did it and keep receiving the warning unlock bootloader screen.
Click to expand...
Click to collapse
Did u re-lock on your phone's ROM or after flashing another carrier's ROM?
mschumacher69 said:
Did u re-lock on your phone's ROM or after flashing another carrier's ROM?
Click to expand...
Click to collapse
My phone is Retail, I used the retail ROM to flash.
My device won't lock. I've run your commands listed, as well as the fastboot oem lock on it's own, and I can't seem to lock the device. Any help?
flavinator said:
My device won't lock. I've run your commands listed, as well as the fastboot oem lock on it's own, and I can't seem to lock the device. Any help?
Click to expand...
Click to collapse
Welcome to the "Relock" party..
The OP does not mention (that I can see) what OS version..are you on KK 4.4 and is there a "Factory Image" for KK 4.4 available for your device.?
sent by my 4.3_14.14.14
XT1028 (aka) Moto-G
NWKENT said:
Welcome to the "Relock" party..
The OP does not mention (that I can see) what OS version..are you on KK 4.4 and is there a "Factory Image" for KK 4.4 available for your device.?
sent by my 4.3_14.14.14
XT1028 (aka) Moto-G
Click to expand...
Click to collapse
Yes, there is, flashed it, ran commands, and the relock command, multiple times and get:
(bootloader) FAIL: Please run fastboot oem lock begin first!
OKAY [ 0.120s]
finished. total time: 0.122s
Not sure what I am doing wrong.
flavinator said:
Yes, there is, flashed it, ran commands, and the relock command, multiple times and get:
(bootloader) FAIL: Please run fastboot oem lock begin first!
OKAY [ 0.120s]
finished. total time: 0.122s
Not sure what I am doing wrong.
Click to expand...
Click to collapse
I'd think you ran this as the first flash >> fastboot oem lock begin first!
Then all the OS files and then this for the last command >> fastboot oem lock > as the last command.?
sent by my 4.3_14.14.14
XT1028 (aka) Moto-G
http://forum.xda-developers.com/showthread.php?t=2575586
NWKENT said:
I'd think you ran this as the first flash >> fastboot oem lock begin first!
Then all the OS files and then this for the last command >> fastboot oem lock > as the last command.?
sent by my 4.3_14.14.14
XT1028 (aka) Moto-G
Click to expand...
Click to collapse
I have no clue. At first I just flashed back using RSD Lite. Then I ran the lock command and got that error. Afterwards, I searched online, trying a bunch of different fastboots. That's when I stumbled on this list of commands, figured I'd run it from scratch, see if it makes a difference. Once it got to the relock command though, I got the same issue. And now I'm just frustrated...
---------- Post added at 06:41 PM ---------- Previous post was at 06:36 PM ----------
shane1 said:
http://forum.xda-developers.com/showthread.php?t=2575586
Click to expand...
Click to collapse
I think this might work, thanks shane1
@NWKENT have u managed to re-lock your bootloader yet?
mschumacher69 said:
@NWKENT have u managed to re-lock your bootloader yet?
Click to expand...
Click to collapse
Yes Sir..with Kit Kat 4.4..I have successfully"Unlocked", "Relocked" and "Unlocked" again..my XT1080MDEV (Droid Maxx)..No one could tell me exactly how to do it..Motorola Tech Line was absolutely NO HELP either..SO..after hours upon hours..I did figure it out..Now I'm working on "Relock" on JB 4.2.2
Sounds easy..and many have probably "Unlocked and "Relocked" on JB 4.2.2..BUT..The difficult part is once the XT1080 has been on KK 4.4..is when alot more firey hoops must be jumped thru..
ANYONE can chime in with help on this..NOT ADVICE..but proven procedures..
sent by my 4.3_14.14.14
XT1028 (aka) Moto-G
Yes, thanks guys.
First, let me say this because i've used xda for a while and i know im going to get these responses:
I know this wont reinstate my warranty...
Why? Because I want to. I understand you think it's useless but it's not your phone...
I have tried "fastboot oem lock" and it doesnt work...
I've searched Motorola's site, got on a chat with them which was useless, and searched xda...
So I booted into AP fastboot and connected to my computer. Opened CMD and typed "fastboot oem lock begin"
That seemed to start the process so then ran RSD lite (as admin) and flashed a signed xml of 4.1.2
Yes, I edited the XML first and removed the 2 lines with "getvar" in them
RSD finished and the phone rebooted (which was great because before it was hung up on the unlocked bootloader warning)
Unfortunately after turning the phone off and then back on, the unlocked bootloader warning screen still came up.
And after booting back into AP fastboot it still said UNLOCKED.
did i miss a step?
I need to relock the phone. if anyone has useful information it would be extremely helpful. in the event it just cant be done thats fine. but i feel like it can, because after fastboot oem lock begin the command prompted told me that now i can flashed the signed images.
well crap. i may have just answered my own question. do i have to flash manually through CMD (ie fastboot flash system system.img) AND THEN run fastboot oem lock at the bottom? i'll try it tomorrow.
before i started this the phone was stuck on the bootloader warning screen so if anyone is stuck at that point this will allow you to boot up your phone. and if my results are typical, it did not relock the bootloader (obviously). hope I helped someone. hope someone can help me. thanks.
most likely not feasible
unlocking razr m involves phisically blowing a q-fuse, so you can't go back to locked
even if you could, it would be traced forever that you've unlocked the BL
You can relock the boot loader on the Dev edition, but once unlocked you can never go back to original status 0 of the boot loader and the boot logo will always display the warning even if you relock the boot loader. You have to flash that partition with another logo image to avoid that.
You also need to wipe the user data partition in fastboot first for the fastboot oem lock begin command to complete successfully.
Once that is done, when it reboots you will see that in fastboot it will display status 2 locked instead of status 3 unlocked.
This is a physical change that happens to the hardware when you unlock the boot loader an efuse on the board is blown and that memory location is permanently programmed. Its not even a question of them knowing, even though they do of course, the device itself is altered.
From my goodies
http://forum.xda-developers.com/attachment.php?attachmentid=2201206&d=1376991889
Flash from cwm or twrp.
Trade a locked one for your unlocked one? Lol I'm stuck locked on the newest ota
Sent from my XT907 using Tapatalk
I made a proper logo.bin to remove the unlocked message. This is from the 5.1 stock firmware, so it's the correct Motorola logo. Flash using fastboot:
Code:
fastboot flash logo logo.bin
Thanks! He had tried others and this has just like the stock bootloader
Enviado desde mi MotoE2(4G-LTE) mediante Tapatalk
ronasimi said:
I made a proper logo.bin to remove the unlocked message. This is from the 5.1 stock firmware, so it's the correct Motorola logo. Flash using fastboot:
Code:
fastboot flash logo logo.bin
Click to expand...
Click to collapse
How did you make the logo.bin? I'd like to create my own custom one, but haven't had much luck finding (or maybe understanding?) any info.
Some one have the original bootloader? after flashing this my devices restart some times and when i put it to charge, bootloader turns on
Can someone make a black background on the logo so it doesn't burn my eyes out everytime I start the phone in the dark?
Seems to work great, I flashed it when I had already flashed one of the other logo.bins.
It has a really clean smooth look to it, it seems to effect more then the boot logo, the bootloader theme seems to be stored in the logo.bin
Or the bootloader menu stores its graphics in logo.bin too and flashing a older logo.bin breaks the button graphics, I'm not sure.
I have a XT1527 that was updated with the 5.1 update (though I'm running CM now), and flashing one of the other logo.bins changed my bootloader menu graphics in a minor cosmetic way,
flashing this didn't just mod the bootloader logo, it also restored the bootloader menu (volume down + power) button graphics to how I remember them.
_ck_ said:
Can someone make a black background on the logo so it doesn't burn my eyes out everytime I start the phone in the dark?
Click to expand...
Click to collapse
Hey i made one and flashed my Moto E rev2 (XT1527) and it seems ok.
I don't know how i can share it here though i am a new user,
what i did was i extracted the images with a white background (3x)
then i inverted the colors but replaced the Moto logo with the exact original color
then put back the original color red lines on the battery images.
then i used fastboot to flash it and i tested.
Starting from the recovery menu and on a reboot and also plugged in charging.
hooray stock logo but black
i was thinking the same thing lol
I used MotoBootLogoMaker (Custom option) with the logo posted by the OP.
The forum download link for it came up as nginx 404.
but i found the dev's github page and downloaded a compiled build v2.3.1020.0513
And i used Adobe Fireworks to make (flattened) PNG's
let me know how i am suppose to share it and i will post it.
Oh.. i don't know how to change the animated Boot Logo part though sorry..
thanks for sharing OP !
Can I flash this on Boost XT 1526 with stock 5.0.2
drshreenivaas said:
Can I flash this on Boost XT 1526 with stock 5.0.2
Click to expand...
Click to collapse
Yes, probably. There is a tool to make any logo with any Moto resolution, and after that can be flashed via fastboot.
I wanted to relock the bootloader of my Moto G4 Plus as now I'm in no need of root now. And even want to remove the logo which says my bootloader is unlocked.. I used the code but it is not working still pls help me out
i think you are in the wrong section but nvm. for removing the annoying boot logo you can flash the logo bin
Code:
fastboot flash logo logo.bin
in fastboot mode where "logo.bin" is the filename.bin. you can find the logos at this link
https://forum.xda-developers.com/moto-g4-plus/themes/customized-logo-t3451349
or if you want some more cooler ones just search around.
Now comes to relocking bootloader, you must give more info(what phone you are using) and from where you got the link and what commands you pressed. you can follow this link which uses dec update or (if you check last messages even the feb update though i would recommend dec)
https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
and then use the commands given in the code OR the
Code:
OEM Lock file
abhishikth reddy said:
I wanted to relock the bootloader of my Moto G4 Plus as now I'm in no need of root now. And even want to remove the logo which says my bootloader is unlocked.. I used the code but it is not working still pls help me out
Click to expand...
Click to collapse
You may falsh stock rom again in starting write command
fastboot oem lock begain
And at last
fastboot oem lock
it will work
someone knows how to have the factory logo.bin after unlocking the bootloader
..
sun75 said:
In /product/etc/media there is a file called "bootanimation.zip" that contains the boot animation (System part, not the Boot one).
Click to expand...
Click to collapse
but when you unlock the bootloader it changes the logo.bin and I want the stock to that I mean
..
sun75 said:
Ok, so you refer to the "bootloader" logo. From what I've read on other threads every tries to change that logo or parts of the Bootloader code to do anything else, ends up with a bricked device! So the actual situation is: you have to see that ugly BL screen remembering you that your phone is "insecure". You know! But better that screen but unlocked, that a beautiful logo but locked and a dumb device!
At least, for now!
Click to expand...
Click to collapse
You can do the logo.bin factory, as do the Motorola