[Q] Relocking Nexus S bootloader - Nexus S Q&A, Help & Troubleshooting

Hello guys, I'm not a super noob but I can certainly use some advise and suggestions. I was trying to be all smart and try to put CM7 on my phone by rooting the nexus S without having to unlock the bootloader. I've read around and realized that I could do so if my phone is on 2.3.2 or 2.3.1.
So I search around and the following thread:
http://forum.xda-developers.com/showthread.php?t=947950
suggested using Odin to downgrade from 2.3.4 to 2.3.1. After doing the steps I realized that it also unlocked my bootloader. Now does anyone know if there is a way to relock my bootloader if I used the Odin?
I've done some reading and as far as I can tell you can relock your phone using the "fastboot oem relock". but this method only works if you originally used the "fastboot oem unlock" in the first place.
Any suggests?

hamidsani said:
Hello guys, I'm not a super noob but I can certainly use some advise and suggestions. I was trying to be all smart and try to put CM7 on my phone by rooting the nexus S without having to unlock the bootloader. I've read around and realized that I could do so if my phone is on 2.3.2 or 2.3.1.
So I search around and the following thread:
http://forum.xda-developers.com/showthread.php?t=947950
suggested using Odin to downgrade from 2.3.4 to 2.3.1. After doing the steps I realized that it also unlocked my bootloader. Now does anyone know if there is a way to relock my bootloader if I used the Odin?
I've done some reading and as far as I can tell you can relock your phone using the "fastboot oem relock". but this method only works if you originally used the "fastboot oem unlock" in the first place.
Any suggests?
Click to expand...
Click to collapse
The command is actually "fastbook oem lock" and I would think it would work now matter how the bootloader was unlocked. You should at least try it. You just have to make sure you have Android SDK installed and your device drivers installed.

fastboot oem unlock to unlock and wipe your phone, flash cwm recovery, flash cm7.
turn off phone, turn it back on to bootloader and do fastboot oem lock.
Done.

Other than removing the unlock icon from showing what is/are the added benefit(s) of relocking the phone? I am just curious as I unlocked my Nexus S by ADB using the fastboot oem unlock command. Thanks.

Sent from my Nexus S using Tapatalk

Related

What does the unlocking of the bootloader do?

As the topic says, what does the unlocking of the bootloader do and why do you have to do it? Also does unlocking the bootloader void the warranty?
Sent from my Nexus S using Tapatalk 2
All your answers are here:
http://www.addictivetips.com/mobile...-bootloader-on-android-phones-complete-guide/
And yes, unlocking the bootloader voids your warranty. But on Nexus is really easy to relock it with fastboot oem lock command.
DeuXGod said:
All your answers are here:
http://www.addictivetips.com/mobile...-bootloader-on-android-phones-complete-guide/
And yes, unlocking the bootloader voids your warranty. But on Nexus is really easy to relock it with fastboot oem lock command.
Click to expand...
Click to collapse
Personally, this confuses me more than before. I understand the concept of a bootloader, but not that a customer rom cannot be loaded without it being unlocked. I'm using an ATT Galaxy S5, which as I understand cannot be unlocked. However, my device is rooted and has a custom rom loaded (Dynamic KAT 4.0 NI2 build).
So what exactly does unlocking the bootloading gain over simply rooting and loading a custom rom such as I have done?
Thanks!
Edit: Crap, just realized this is a really old thread. I'll search further...
Different devices have different methods of rooting, the nexus s is one that you need to unlock the bootloader first, then you can root and/or flash a custom ROM, recovery, kernel, etc
Yes some phone don't need you to unlock bootloader and yes some bootloaders can't be unlocked so you're question is device specific in the sense that every device is different

How to relock bootloader

I've looked and found some instructions on how to relock the xoom so I thought it might be possible. Can someone clear this up for me?
fastboot oem lock
ninjatarian said:
I've looked and found some instructions on how to relock the xoom so I thought it might be possible. Can someone clear this up for me?
Click to expand...
Click to collapse
have you tried "fastboot oem lock" to relock ?
If you have flashed anything else that original software on your phone, it might not boot. e.g the bootloader
will only boot to a signed image after you relock it...

[Q] Phone relocked with custom recovery, stuck in bootloader

I need some urgent help and I havent found any help in the existing threads. I flashed the boot.img for the CM10.2 rom thinking it would allow me to flash the cyanogen rom with no problems. However I still couldnt flash it and could not boot into my phone after that. So I followed some advice and relocked my phone.
Unfortunately, now I cant even get past the bootloader to do anything. Also everytime I plug in the USB to the phone, the bootloader constantly reboots so I cant even do any fastboot commands. Does anybody have any advice?
What are you bootloader details? Who told you to relock your bootloader? That doesn't sound right at all.
Sent from my Evita
Are you SuperCID? If you can get into bootloader just unlock again with htcdev. Reflash recovery. Not that complex of a task. Locking bootloader is just making you start over again
Sent from my HTC One XL using XDA Premium 4 mobile app

bootloader relock

hello guys, im new here.
anybody tried relocking their bootloader by using this command?
fastboot oem lock
and does it work and restores warranty conditions?
That command has been tried since the original Moto G and no, contrary to what some people think you can't reset the internal unlock counter. They will always know you unlocked it. If nothing else, they know because you got the unlock code from them. I'm not sure why people overlook this clearly posted sentence when they request the unlock code from Motorola.
"Unless you have a Developer Edition device, once you get the unlock code, your device is no longer covered by the Motorola warranty; in other words, please don't blame us if things go wrong, even if they appear unrelated to unlocking the bootloader."
Sent from my SM-T530NU using Tapatalk
creative21 said:
hello guys, im new here.
anybody tried relocking their bootloader by using this command?
fastboot oem lock
and does it work and restores warranty conditions?
Click to expand...
Click to collapse
That command will lock your bootloader again. However, locking and unlocking will wipe your device.
Upon receiving your unlock code from Motorola, your warranty is void; regardless if you unlock it or not. The sheer act of asking for and receiving the code voids your warranty.
Of course, if there is a true hardware issue that is not caused by software tinkering, you can still use that piece of the warranty.
Sent from my MotoG3 using Tapatalk
nikon120 said:
That command will lock your bootloader again. However, locking and unlocking will wipe your device.
Upon receiving your unlock code from Motorola, your warranty is void; regardless if you unlock it or not. The sheer act of asking for and receiving the code voids your warranty.
Of course, if there is a true hardware issue that is not caused by software tinkering, you can still use that piece of the warranty.
Sent from my MotoG3 using Tapatalk
Click to expand...
Click to collapse
after relocking, warning bootlogo is removed or can be replaced?
creative21 said:
after relocking, warning bootlogo is removed or can be replaced?
Click to expand...
Click to collapse
I think I can be replaced !, I'm not sure!
I will test and send feedback!
Jeconias Santos said:
I think I can be replaced !, I'm not sure!
I will test and send feedback!
Click to expand...
Click to collapse
but I think after reflashing stock, boot logo will be return to normal.
I tried that command and relock the bootloader several times as i didnt got the same battery backup as stock... So my question is after relocking and flahing stock rom... Do i get the OTA? and will it get flashed sucessfully?
sagar27691 said:
I tried that command and relock the bootloader several times as i didnt got the same battery backup as stock... So my question is after relocking and flahing stock rom... Do i get the OTA? and will it get flashed sucessfully?
Click to expand...
Click to collapse
Yes you will be able to get over the air updates after relocking bootloader if necessary system apps and files are not modified.
If you are not able to get ota you could also flash stick firmware images.
Thanks man... I flashed the whole stock rom from xda here only...
Even though I've run the commands to re-lock, going into the fastboot (bootloader) mode shows it's unlocked.
Anyone figure out a way to actually re-lock it?
JWhipple said:
Even though I've run the commands to re-lock, going into the fastboot (bootloader) mode shows it's unlocked.
Anyone figure out a way to actually re-lock it?
Click to expand...
Click to collapse
No, once it's unlocked, the counter will always show an unlocked bootloader. Best you can do is hide the opening unlocked bootloader screen.
In the 1st Moto G i have sucessfully relocked the bootloader.
You can use the command 'fastboot oem lock begin', then flash all files from fastboot firmware changing the logo file to logo-mod.bin (File that have removed the unlocked warning image, because flashing custom logo.bin doesn't check crc or hash when relocking the bootloader), then finish with 'fastboot oem lock' command.
Example:
fastboot oem lock begin
fastboot flash partition gpt.bin
- - - rest of commands
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem lock
I don't have tested because i don't have unlocked my g3 bootloader yet.
Just try
jmadotme said:
In the 1st Moto G i have sucessfully relocked the bootloader.
You can use the command 'fastboot oem lock begin', then flash all files from fastboot firmware changing the logo file to logo-mod.bin (File that have removed the unlocked warning image, because flashing custom logo.bin doesn't check crc or hash when relocking the bootloader), then finish with 'fastboot oem lock' command.
Example:
fastboot oem lock begin
fastboot flash partition gpt.bin
- - - rest of commands
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem lock
I don't have tested because i don't have unlocked my g3 bootloader yet.
Just try
Click to expand...
Click to collapse
Been there, done that, got the T-Shirt, doesn't stop the banner from saying the bootloader is unlocked.
JWhipple said:
Been there, done that, got the T-Shirt, doesn't stop the banner from saying the bootloader is unlocked.
Click to expand...
Click to collapse
Have you flashed moded logo.bin?
I still don't understand the point of all this... why are people trying to go through all the work of relocking the bootloader?!?! There is ZERO benefit to it... your warranty is still void (you don't even have to unlock, just agree to the terms and get the unlock token), it doesn't enhance resale value, it doesn't change the performance, so why all the effort to try to do it?!?!
acejavelin said:
I still don't understand the point of all this... why are people trying to go through all the work of relocking the bootloader?!?! There is ZERO benefit to it... your warranty is still void (you don't even have to unlock, just agree to the terms and get the unlock token), it doesn't enhance resale value, it doesn't change the performance, so why all the effort to try to do it?!?!
Click to expand...
Click to collapse
to get the new official OTA... if bootloader is locked and have stock rom we are able to get the OTA and can flash successfully with it... though it shows bootloader unlocked warning.
sagar27691 said:
to get the new official OTA... if bootloader is locked and have stock rom we are able to get the OTA and can flash successfully with it... though it shows bootloader unlocked warning.[emoji14]
Click to expand...
Click to collapse
Hmm... Are you sure? If you are unlocked but otherwise pure stock, you should still get OTAs, if your not then they are most likely blocked server-side not client-side. In other words just accepting the T&C of a Motorola bootloader unlock could not only void your warranty, but also blacklist your IMEI from OTAs as well.
I could be wrong, but I think your "barking up the wrong tree" here... I can tell you for sure that Huawei does it this way since Lollipop, if you unlock the bootloader your IMEI is blacklisted server-side... They are very straightforward about it.
Sent from my MotoG3 using Tapatalk
acejavelin said:
Hmm... Are you sure? If you are unlocked but otherwise pure stock, you should still get OTAs, if your not then they are most likely blocked server-side not client-side. In other words just accepting the T&C of a Motorola bootloader unlock could not only void your warranty, but also blacklist your IMEI from OTAs as well.
I could be wrong, but I think your "barking up the wrong tree" here... I can tell you for sure that Huawei does it this way since Lollipop, if you unlock the bootloader your IMEI is blacklisted server-side... They are very straightforward about it.
Sent from my MotoG3 using Tapatalk
Click to expand...
Click to collapse
not at all... already flashed official firmware 3 times after experiencing the less battery backup on custom roms. in this 3 times i flashed the modified bootlogo so didnt got the warning of bootloader unstlocked and not able to get the OTA but then again i flashed the official firmware 4th time and without that modified bootlogo in hope to get the latest OTA build no. LPI23.72-65 and it worked i got that update next day... and still its show bootloader unlocked warning... so that warnling doesn't affect the OTA is you have everything stock with locked bootloder.
Can anyone post a modified logo without the unlocked warning? My bootlock is relocked but i wanna get rid of this message. Thanks!
Just to clear up any confusion. There is no need to relock the bootloader. In fact it seems like a waste of time to me...
https://motorola-global-portal.custhelp.com/app/answers/prod_answer_detail/a_id/91999/p/1449,8620
After I unlock my device bootloader, am I still eligible to receive software upgrades from Motorola?
Unlocking your bootloader does not affect your eligibility to receive over-the-air (OTA) upgrades from Motorola. Upgrade packages to new versions of Android will be pushed to all eligible devices, regardless of their bootloader locking status.
Click to expand...
Click to collapse

Can someone give direction on Re locking my bootloader?

So I have not really been on here since last spring when the g5 was rooted, and once more in the early winter, to do Prime's upgrade to the h83020a.
When I did that upgrade, the 20a, I was just trying to bring the device back to a semi stock state, with locked bootloader, and no root.
It took away root, but the bootloader is still unlocked.
If I just wanted to relock the bootloader, what would I have to do if I am on 20a, no root? In the past I would just dive into the dev section, but I do not have a urge to become an 'expert' on the device, if I am giving it back to Tmob this week.
Can anyone point me to the thread, that would help me with the process of relocking the bootloader, without pooching the phone?
Thanks in advance
Tmobilesucksass said:
So I have not really been on here since last spring when the g5 was rooted, and once more in the early winter, to do Prime's upgrade to the h83020a.
When I did that upgrade, the 20a, I was just trying to bring the device back to a semi stock state, with locked bootloader, and no root.
It took away root, but the bootloader is still unlocked.
If I just wanted to relock the bootloader, what would I have to do if I am on 20a, no root? In the past I would just dive into the dev section, but I do not have a urge to become an 'expert' on the device, if I am giving it back to Tmob this week.
Can anyone point me to the thread, that would help me with the process of relocking the bootloader, without pooching the phone?
Thanks in advance
Click to expand...
Click to collapse
If you're running stock, unrooted Ron and haven't made any system changes, all you need to do is use ADB to boot to Fastboot mode:
Code:
ADB reboot bootloader
Once in Fastboot mode type:
Code:
Fastboot OEM lock
Then you will have a locked bootloader again. Just make sure you're running 100% stock first, because if not and you relock the bootloader it could brick it.
jeffsga88 said:
If you're running stock, unrooted Ron and haven't made any system changes, all you need to do is use ADB to boot to Fastboot mode:
Code:
ADB reboot bootloader
Once in Fastboot mode type:
Code:
Fastboot OEM lock
Then you will have a locked bootloader again. Just make sure you're running 100% stock first, because if not and you relock the bootloader it could brick it.
Click to expand...
Click to collapse
Thanks, man. 'Prime said the same thing. I had TWRP before 20a, so just to be sure, I'm going to reflash with LGUP, and than do the adb as he suggested, also.

Categories

Resources