how can I lock my bootloader? - Verizon HTC One (M8)

running latest vzw firmware
i am returning a device and would like to get back close to stock as possible. mainly i would like to get my bootloader locked and if possible s-on
is there some kind of command i can run to reset a flag that will achieve this?
also how do i get my bootloader to say 'official' and not 'modified'

-4ndr01d- said:
running latest vzw firmware
i am returning a device and would like to get back close to stock as possible. mainly i would like to get my bootloader locked and if possible s-on
is there some kind of command i can run to reset a flag that will achieve this?
also how do i get my bootloader to say 'official' and not 'modified'
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2708571

Related

fastboot said unlocked before rooting

If I want to take the phone back to stock, what do I have to do to get the OTA? The phone said unlocked even before we started rooting it. Do these phones come unlocked (sprint 4g)?
loveubuntu said:
If I want to take the phone back to stock, what do I have to do to get the OTA? The phone said unlocked even before we started rooting it. Do these phones come unlocked (sprint 4g)?
Click to expand...
Click to collapse
What I did was install a stock nandroid through recovery, then relocked my bootloader. Your phone must have been previously rooted, because the phone's do not ship in that state. To re lock your boot loader just boot your phone into the bootloader, start the command prompt on your pc, and then type fastboot oem lock.
Thanks. to go factory condition though, I have to unroot first and then fastboot oem unlock, correct?
You maybe right, if that is how easy to unlock-lock, I may have unlocked it by fastboot oem locked and not remembered (it was late). This is a friends phone and I'm not used to having phones unlocked this easily.
You can leave the boot loader unlocked and still receive ota updates.
Sent from my Galaxy Nexus using XDA App
loveubuntu said:
If I want to take the phone back to stock, what do I have to do to get the OTA? The phone said unlocked even before we started rooting it. Do these phones come unlocked (sprint 4g)?
Click to expand...
Click to collapse
Yeah, OTA updating should have nothing do with whether your bootloader is locked or not
Rooting and unlocking the bootloader will not affect the ota, what will is custom system apps like non stock gmail, or a changed build prop (common from market enabler)
Sent from my Nexus S

Please help: How make unroot and lock bootloader again?

Please:
I need lock my bootloader again and unroot my HTC.
If I click on disable Super SU, he disappears from the device?
And to lock my HBOOT again, Which method for this?
To unlock the bootloader and install the Super Su, I used the method of the prompt comand (execute/cmd...).
'cmd: fastboot .....'
Thanks for help.
to remove root flash an ruu
to relock the bootloader, follow the steps on HTCdev.
azzledazzle said:
to remove root flash an ruu
to relock the bootloader, follow the steps on HTCdev.
Click to expand...
Click to collapse
Thanks, but, in htcdev dont have relock, only unlock boot.
to relock,youll simply use the fastboot command fastboot oem lock
at this point your bootloader will say **relocked** instead of **unlocked** and it will remain so until you run an RUU that overwrites it.
Forgive me refreshing the old threads. I just wanna make sure, cos last time I unlocked bootloader I had to use xtc-clip and it was an irreversible process....so I'm kinda old school here.
If I understood correctly, unlocked bootloader is no longer a warranty issue since it can be re-locked, isn't it? As long as your possible HW-problem doesn't make adb, ruu-installation proces an impassable nightmare, u can easily re-lock bootloader, restore stock ruu (using other words: u can erase corpus delicti and send your handset to service centre, without being caught, am I right?
m.kochan10 said:
[...] u can easily re-lock bootloader, restore stock ruu (using other words: u can erase corpus delicti and send your handset to service centre, without being caught, am I right?
Click to expand...
Click to collapse
Sorry buddy, you're wrong!
Once you have unlocked your bootloader (its state would change from "Locked" to "Unlocked") it can be locked again but its state will be set to "Relocked".
You can't restore the original state of "Locked" neither by launching any stock RUU nor by flashing a new version of the bootloader.
Corpus delicti is rather hard to hide, I'm afraid... Your hands are stained with blood and HTC has tons of luminol in its warehouses...
Thank you for clarification! I was hoping that RUU would overwrite "re-locked" to "locked", but I guess that'd be too good to be true
That's the reason for some people to wait for s-off and avoiding unlocked bootloader via htc-dev. But to be honest, Android without root is like a Porsche with max. 100 mph.. not nearly satisfying..
Sent from my HTC One S using XDA
kyuubi_ac said:
That's the reason for some people to wait for s-off and avoiding unlocked bootloader via htc-dev. But to be honest, Android without root is like a Porsche with max. 100 mph.. not nearly satisfying..
Sent from my HTC One S using XDA
Click to expand...
Click to collapse
Indeed, so true !!
slvrbllt said:
Sorry buddy, you're wrong!
Once you have unlocked your bootloader (its state would change from "Locked" to "Unlocked") it can be locked again but its state will be set to "Relocked".
You can't restore the original state of "Locked" neither by launching any stock RUU nor by flashing a new version of the bootloader.
Corpus delicti is rather hard to hide, I'm afraid... Your hands are stained with blood and HTC has tons of luminol in its warehouses...
Click to expand...
Click to collapse
Lol. Love your description.
link to RUU????? DINC2

[Q] Tampered, Locked. Unable to RUU.

I rooted my 1.85 device via the one click method.
I want to stay with a stock ROM, but need to get to 2.20 because the multi tasking on 1.85 is so bad. 2.20 update OTA fails. I tried to RUU to 2.20 but continually receive a low battery error (error 120 I believe) even with 100% battery level
My device currently shows Tampered & Locked.
Any advice?
**EDIT**
When I run Root Checker it shows that my device is rooted.
Trust me, you don't want to update to 2.20. Stay on 1.85, flashing roms is much easier on it. If you really do not like the multitasking I'm sure there are some roms that can fix/make it better
utkaar099 said:
Trust me, you don't want to update to 2.20. Stay on 1.85, flashing roms is much easier on it. If you really do not like the multitasking I'm sure there are some roms that can fix/make it better
Click to expand...
Click to collapse
I'm okay with installing a new ROM, but I'm concerned that the status of my phone (showing locked/tampered) will create issues when I go to unlock the bootloader.
When you unlock the bootloader you lose all your data, it sounds bad at first but in the end it's worth it
utkaar099 said:
When you unlock the bootloader you lose all your data, it sounds bad at first but in the end it's worth it
Click to expand...
Click to collapse
I'm comfortable losing all my data, as I'm a long time rooter of devices (since the G1 in fact). What I'm worried about is the state my phone is in (showing locked/tampered) and how that might impact my attempt to unlock the bootloader.
Thoughts?
pfaudere said:
What I'm worried about is the state my phone is in (showing locked/tampered) and how that might impact my attempt to unlock the bootloader.
Click to expand...
Click to collapse
Ignore it. "Tampered" just means you're rooted; "Locked" means your bootloader is locked. When you unlock it, it will read "Unlocked." It has no effect on anything; it's just a flag for the service people to know what they've got, not that they appear to care about it based on the number of people who have returned unlocked phones without any trouble.

How to restore status code to 0 from status code 2

Plzzz help!!!!!!!!!!!!!!!!!!!!!!
you can't
K.V.K said:
Plzzz help!!!!!!!!!!!!!!!!!!!!!!
Click to expand...
Click to collapse
well my friend sry but you can't restore this code
most of devices like samsung,motorola etc they have.... lets say a key for the bootloader(is the door) and this key if you root your device
breaks and the half key stays inside the door hole to reminds you that the key is broken(the devicesis root/unlockbootloader).
so if you root any motorola device the code state goes
automatically 2 and stays like this,you can flash again the stock rom and relock the bootloader sure
but the code stays 2 for ever.
i hope to help you
moto g XT1541 stock rom 6.0.1 lockbootloader
bromoxitos said:
well my friend sry but you can't restore this code
most of devices like samsung,motorola etc they have.... lets say a key for the bootloader(is the door) and this key if you root your device
breaks and the half key stays inside the door hole to reminds you that the key is broken(the devicesis root/unlockbootloader).
so if you root any motorola device the code state goes
automatically 2 and stays like this,you can flash again the stock rom and relock the bootloader sure
but the code stays 2 for ever.
i hope to help you
moto g XT1541 stock rom 6.0.1 lockbootloader
Click to expand...
Click to collapse
I'm not exactly sure what you are saying, but I think the jist of it is how do you relock the bootloader... the answer is you cannot, once it is unlocked it will always report as unlocked, even if you reflash stock and find a way to relock the device.
When you unlocked your device, it was plainly stated in the disclosure on the website that once the bootloader is unlocked, it is irreversible.
yeap
acejavelin said:
I'm not exactly sure what you are saying, but I think the jist of it is how do you relock the bootloader... the answer is you cannot, once it is unlocked it will always report as unlocked, even if you reflash stock and find a way to relock the device.
When you unlocked your device, it was plainly stated in the disclosure on the website that once the bootloader is unlocked, it is irreversible.
Click to expand...
Click to collapse
YEAAA we say the same think,but i use an othey way to say it.
i say in the end you can relock the bootloader (more or less) when i say this i mean that you put some partitions back in boot loader
so when you flash the stock rom you can take any ota update,but the main bootloader is unlock always.
i know that form my old moto g2gen, moto x2013!!!
bromoxitos said:
YEAAA we say the same think,but i use an othey way to say it.
i say in the end you can relock the bootloader (more or less) when i say this i mean that you put some partitions back in boot loader
so when you flash the stock rom you can take any ota update,but the main bootloader is unlock always.
i know that form my old moto g2gen, moto x2013!!!
Click to expand...
Click to collapse
You could relock the bootloader on older Motos, but not anymore... Actually, it can be relocked but it will never report as locked or relocked, it will always be reported as unlocked. I don't how to be more plain in describing this.
And yes, you can take an OTA when unlocked, as long as you have a stock ROM and recovery and your bootloader is the correct version for your ROM. If your bootload and ROM are out of sync (ie. you have a Marshmallow bootloader and a Lollipop ROM), if your bootloader and ROM are out of sync, you could potentially get into a hard bricked situation.
ohh!!
acejavelin said:
You could relock the bootloader on older Motos, but not anymore... Actually, it can be relocked but it will never report as locked or relocked, it will always be reported as unlocked. I don't how to be more plain in describing this.
And yes, you can take an OTA when unlocked, as long as you have a stock ROM and recovery and your bootloader is the correct version for your ROM. If your bootload and ROM are out of sync (ie. you have a Marshmallow bootloader and a Lollipop ROM), if your bootloader and ROM are out of sync, you could potentially get into a hard bricked situation.
Click to expand...
Click to collapse
not any more? damn....yea we say the same think,sry for my english,yea i khow what you talking about i brick my moto x like this!!! any way.
ty for the new info about bootloader.
you was 100%
were you a clear,thanks a lot,and i hope to help him
Once I sent my hard bricked phone to Motorola. I had unlocked the bootloader and done the stupid mistake of sideloading an older version and upgrading to a newer, but still older version. When it came back, it said it was Status Code 0.
Wonder how they did it.
yagyaxt1068 said:
Once I sent my hard bricked phone to Motorola. I had unlocked the bootloader and done the stupid mistake of sideloading an older version and upgrading to a newer, but still older version. When it came back, it said it was Status Code 0.
Wonder how they did it.
Click to expand...
Click to collapse
They flash the eMMC chip (internal storage chip) directly... If you could get the right image you could possibly do it yourself with a few hundred to thousand dollar investment in a proper JTAG flashing unit.
Key would be getting the right Image, this would be far more than just a normal stock fastboot image, and is probably generated on the fly per device due to differences in serial number, IMEI, etc. These types of images don't get leaked out.
acejavelin said:
I'm not exactly sure what you are saying, but I think the jist of it is how do you relock the bootloader... the answer is you cannot, once it is unlocked it will always report as unlocked, even if you reflash stock and find a way to relock the device.
When you unlocked your device, it was plainly stated in the disclosure on the website that once the bootloader is unlocked, it is irreversible.
Click to expand...
Click to collapse
ok so what if you have never root unlocked, did nothing but use as intended to be.. never trying to do anything to it. wtf would i have a code 2 status then? care to sum that up for me.. cause 100% my situation.
wiytboi said:
ok so what if you have never root unlocked, did nothing but use as intended to be.. never trying to do anything to it. wtf would i have a code 2 status then? care to sum that up for me.. cause 100% my situation.
Click to expand...
Click to collapse
You unlocked the bootloader... It doesn't matter if you actually changed anything else or not. Once it's been done, this status code can never go back to 0. If the status code is 2 and you didn't unlock the bootloader, then someone else did.
acejavelin said:
You unlocked the bootloader... It doesn't matter if you actually changed anything else or not. Once it's been done, this status code can never go back to 0. If the status code is 2 and you didn't unlock the bootloader, then someone else did.
Click to expand...
Click to collapse
No I didn't.. I don't even know how to.. I just found out about recovery mode.. Wait wait before i say that.. How do you unlock boot loader? Turning developer mode on? Going to recovery menu? I've never hard reset it.. Just soft or doing new device. You said it could work fine for a while then shirt out? Like guy I bought from did and then I bought used for couple years and then went tits up?
wiytboi said:
No I didn't.. I don't even know how to.. I just found out about recovery mode.. Wait wait before i say that.. How do you unlock boot loader? Turning developer mode on? Going to recovery menu? I've never hard reset it.. Just soft or doing new device. You said it could work fine for a while then shirt out? Like guy I bought from did and then I bought used for couple years and then went tits up?
Click to expand...
Click to collapse
You unlock the bootloader with a series of steps that includes submitting a code to Motorola and getting an unlock code back... Performing it forces a factory reset as well. It's not something you can do by accident.
The issue with Status Code 2 was that an official update could have detected that and refused to update properly or done something worse... That never happened.
If everything is working fine, the status being 2 isn't important, it just means the previous owners had unlocked the bootloader and likely rooted or otherwise modified the phone.

Will anyone see that the bootloader is relocked?

Hey everyone,
I got my new Honor 8 and as with my previous OnePlus One I just need root.
It's not that complicated to find descriptions how to unlock the bootloader (and loose the warranty), relock it and even get the "locked" status again without (https://forum.xda-developers.com/showpost.php?p=70177996&postcount=7) and with DC Unlocker (https://www.dc-unlocker.com/how-to-lock-bootloader-from-relocked-to-locked) in case I understood everything right.
But the important qustion of course is if one (for example Huawei) can see that its relocked. So first, what does it say if you get the status over the command prompt? And even if it's "locked" there is there any other way you can see?
I don't expect a warranted answer but maybe someone who is firm with android coding or what ever can at least say what he thinks?
Thanks a lot!
If you relock it with a fastboot command then yeah. But if you use a rollback package to return to emui 4.1, everything gets wiped in a way that makes the bootloader status "locked"
Could please someone at least check the first question with his unlocked phone?
Edit: Didn't see your reply and don't now how to delete mine... Thanks anyway!
sysak said:
If you relock it with a fastboot command then yeah. But if you use a rollback package to return to emui 4.1, everything gets wiped in a way that makes the bootloader status "locked"
Click to expand...
Click to collapse
That means after unlocking bootloader and relock bootloader with these steps, i have back my warranty?
Sorry for my bad english..
Silencer3007 said:
That means after unlocking bootloader and relock bootloader with these steps, i have back my warranty?
Sorry for my bad english..
Click to expand...
Click to collapse
As far as i know yeah, unless there is some secret way for them to know it. If you unlock the bootloader with a code and then lock it again it will show the bootloader status as "relocked" in fastboot mode, indicating that the device was tampered with in the past. But the "locked" status you get in the rollback process is the same as on a phone that was never modified. I found this "trick" accidentally when restoring a bricked phone using the rollback package and think it's pretty handy.
sysak said:
As far as i know yeah, unless there is some secret way for them to know it. If you unlock the bootloader with a code and then lock it again it will show the bootloader status as "relocked" in fastboot mode, indicating that the device was tampered with in the past. But the "locked" status you get in the rollback process is the same as on a phone that was never modified. I found this "trick" accidentally when restoring a bricked phone using the rollback package and think it's pretty handy.
Click to expand...
Click to collapse
Not sure if u'll read this. When I was stuck in the same issue somewhere around July 2017 I was devastated and thought if I were to relock my bootloader how to do so without it saying relocked (If you do it by fastboot it will 100% say so). I tried the rollback method on seeing this and u sure r right. It says LOCKED and looks as though my phone was never tampered with ?.
I came across this thread researching abt something and though I'd thank you!
Sent from my Honor 8 using XDA Labs

Categories

Resources