Hello all!
I attempted to flash a ROM and failed miserably. Luckily, I managed to get the phone back to the stock ROM. However, the bootloader is still unlocked, and I would like to change that. Ideally, I would like to put the phone exactly how it was when I first bought it; eg. locked bootloader, no root, no custom recovery, etc. Or as close to it as possible.
Is this possible? If so, how can I achieve this?
The model number is : MHA-L29
The build number is : MHA-L29 C567 B190
fastboot oem lock? Or a similar command?
If you want locked bootloader, you have to reflash your phone using this link. Don't forget to make a backup, because it'll delete all your user data.
okey..
I used fastboot oem relock [password used for unlocking bootloader] and it worked without issue. Just be warned that on the Mate 9, locking the bootloader caused mine to factory reset.
aindow said:
I used fastboot oem relock [password used for unlocking bootloader] and it worked without issue. Just be warned that on the Mate 9, locking the bootloader caused mine to factory reset.
Click to expand...
Click to collapse
well done that man! exactly what i needed
Related
Is it possible to pull the 33R OTA package off the OnePlus One site (or anywhere else), and flash the package (via fastboot), on an "exploited" bootloader. In my case, I have an original OnePlus One with the old bootloader, which can be exploited, so that I can do stupid stuff, without unlocking the bootloader. Is it possible to extract the bootloader from a 33R edition (or greater) CM11s ROM, and only flash the /system and other partitions without overwriting my exploited bootloader. (I.e. flash the individual packages via fastboot)
You might ask me why I want to keep the old, unsecure bootloader on my OPO? Cause I don't want to constantly lock/unlock the bootloader after each OTA, and also because I like my OPO that way. (I'm on 25R at the moment)
Why do you think you need to lock/unlock the bootloader for an OTA? That isn't true at all. Just unlock it, leave it unlocked, and you never need to worry about it again.
Transmitted via Bacon
timmaaa said:
Why do you think you need to lock/unlock the bootloader for an OTA? That isn't true at all. Just unlock it, leave it unlocked, and you never need to worry about it again.
Transmitted via Bacon
Click to expand...
Click to collapse
The bootloader is there for a 2nd security measure, in case your phone falls into the wrong hands. After you're done rooting and messing about with the phone, you'd relock the bootloader, so if someone tries to hack your phone via root shell, they would have to wipe the phone. For whatever reason, I want to keep my exploitable bootloader, but also update at the same time. AFAIK, the bootloader has no effect on the Android OS, so I was asking whether I could flash every package, except the bootloader, via fastboot. I know keeping the exploitable bootloader is a stupid thing to do, but it's just as stupid as leaving the bootloader unlocked after rooting.
Desolutional said:
The bootloader is there for a 2nd security measure, in case your phone falls into the wrong hands. After you're done rooting and messing about with the phone, you'd relock the bootloader, so if someone tries to hack your phone via root shell, they would have to wipe the phone. For whatever reason, I want to keep my exploitable bootloader, but also update at the same time. AFAIK, the bootloader has no effect on the Android OS, so I was asking whether I could flash every package, except the bootloader, via fastboot. I know keeping the exploitable bootloader is a stupid thing to do, but it's just as stupid as leaving the bootloader unlocked after rooting.
Click to expand...
Click to collapse
The chances are if your phone was to be stolen, the thief wouldn't even know a thing about what a bootloader is. As what Tim said, there's no reason to leave your bootloader locked again unlocking.
Take a look into cerberus if you want recovery mode protection for anti theft if you're worried. And no it isn't "stupid" to leaving the bootloader unlocked after rooting, re unlocking would cause the phone to be wiped on your part.
Well I'll give it a shot, and see what happens,
Surely the OTA doesn't need to reflash the bootloader, it's just there as an exploit fix.
Is there any way to completely reset your Honor 8?
I unlocked bootloader with code from huawei, rooted, twrp etc.
Is there any way to completely restore it to factory default?
I tried unrooting it and locked the bootloader using the tool here on the forum. But the warning is still there when you booted, that its been tampered with and is unsafe etc.
Is there no way to completely factory reset it, like it was when it was new?
nivity said:
Is there any way to completely reset your Honor 8?
I unlocked bootloader with code from huawei, rooted, twrp etc.
Is there any way to completely restore it to factory default?
I tried unrooting it and locked the bootloader using the tool here on the forum. But the warning is still there when you booted, that its been tampered with and is unsafe etc.
Is there no way to completely factory reset it, like it was when it was new?
Click to expand...
Click to collapse
I would also like to know the answer. I flashed stock and am now unrooted with stock recovery but still have unlocked bootloader warning screen on start. Tried to relock bootloader with serveral different fastboot commands, no luck!
redeyss said:
I would also like to know the answer. I flashed stock and am now unrooted with stock recovery but still have unlocked bootloader warning screen on start. Tried to relock bootloader with serveral different fastboot commands, no luck!
Click to expand...
Click to collapse
If u have L09 u should flash stock recovery and then flash stock full firmware B101 and the bootloader should be locked and warning should be gone.
I guess there is an internal counter that is tripped when bootloader is unlocked. Like Samsung's Knox.
I have L04, after updating manually root was wiped and stock recovery installed but was still getting bootloader warning. I booted into stock "erecovery" by holding volume up while booting. From there i restored stock firmware and when rebooted warning was gone. So I am now stock without unlocked warning on boot, YAY!
I unlocked my bootloader and then installed the B131 full update. Afterwards my bootloader was locked again and i had it to unlock again.
-> If you want to completely reset, install a full update and do a factory reset
@whiper: after the bootloader was locked and you unlock again, did the phone a factory reset?
Palindrom87 said:
@whiper: after the bootloader was locked and you unlock again, did the phone a factory reset?
Click to expand...
Click to collapse
Yes. The unlocking process was the same after the update as before including factory reset.
I think the B131 update includes all partitions so that the unlock flag is overwritten.
After the update all was normal, no data wipe, but bootloader locked. I had to unlock it again and all data was wiped.
When i do the next update i will try an ota version.
(With my Honor 7 i did a full update which does not lock the bootloader, so i think it depends from the partitions the update contains)
Guys, just to make it clear. I have a L04 model. i am bootloader unlocked, rooted and have TWRP installed. Is it possible to relock and go back to stock, but simply flashing the stock L04 firmware? Does Honor 8 have some inbuilt trip to notify that the bootloader is unlocked?
SpidySun said:
Guys, just to make it clear. I have a L04 model. i am bootloader unlocked, rooted and have TWRP installed. Is it possible to relock and go back to stock, but simply flashing the stock L04 firmware? Does Honor 8 have some inbuilt trip to notify that the bootloader is unlocked?
Click to expand...
Click to collapse
Yes. Just flash the whole firmware using fastboot.
Sent from my honor 5X using XDA Labs
I just updated my Honor8 (FRD-L04) to OTA B389 by restoring stock Recovery and using the built-in system updater. But now when I try to flash TWRP back to recovery, I get that damned "FAILED (remote: Command not allowed)" error.
Bootloader is unlocked.
FRP is unlocked.
I can toggle FRP lock on/off in dev options, doesn't seem to make any difference. Did Huawei screw the pooch with their FRP implementation?
relock the BL and unlock it again,
Rommco05 said:
fastboot recognize phone?
Click to expand...
Click to collapse
Fastboot always shows correct phone/state info.
shashank1320 said:
relock the BL and unlock it again,
Click to expand...
Click to collapse
Which means the phone will wipe itself, which I was really hoping to avoid for an OTA update...
While I'm sure you're right, it really seems like something is wrong with the system if that is what's required. Is this a Huawei-specific issue, or are all phones with FRP like that now?
Florp said:
Which means the phone will wipe itself, which I was really hoping to avoid for an OTA update...
While I'm sure you're right, it really seems like something is wrong with the system if that is what's required. Is this a Huawei-specific issue, or are all phones with FRP like that now?
Click to expand...
Click to collapse
If FRP is locked, you can flash anything but in your case it is unlocked still you cant..hoping relocking and unlocking BL should give you access to OEM unlock option in developer settings and thus unlock your FRP as well.
Hi, is It possible to relock bootloader for to have warranty back?
Thanks
once you flash the stock img, it will be locked again.
Till Nougat, we had dload method which locks it fully (other method for unlocking it would just re-lock it)
shashank1320 said:
once you flash the stock img, it will be locked again.
Till Nougat, we had dload method which locks it fully (other method for unlocking it would just re-lock it)
Click to expand...
Click to collapse
Hey, i am in the same situation and after flashing the stock rom + stock recovery my bootloader is still unlocked, and i still get that "This device has been unlocked and can't be trusted" screen on boot.
Is there any way to manually lock the bootloader?
Edit: i found this SRKTool and i was able to easily relock the bootloader. You need the Unlock code though and it resets your phone, so backup your data.
https://forum.xda-developers.com/mate-8/development/tool-srk-tool-huawei-t3369797 @alboz83
Arrandale said:
Hey, i am in the same situation and after flashing the stock rom + stock recovery my bootloader is still unlocked, and i still get that "This device has been unlocked and can't be trusted" screen on boot.
Is there any way to manually lock the bootloader?
Edit: i found this SRKTool and i was able to easily relock the bootloader. You need the Unlock code though and it resets your phone, so backup your data.
https://forum.xda-developers.com/mate-8/development/[email protected]
Click to expand...
Click to collapse
Yes it will only relock the bootloader but not lock. Anyone experienced with this can get this that you had unlocked your bootloader earlier
Arrandale said:
Hey, i am in the same situation and after flashing the stock rom + stock recovery my bootloader is still unlocked, and i still get that "This device has been unlocked and can't be trusted" screen on boot.
Is there any way to manually lock the bootloader?
Edit: i found this SRKTool and i was able to easily relock the bootloader. You need the Unlock code though and it resets your phone, so backup your data.
https://forum.xda-developers.com/mate-8/development/tool-srk-tool-huawei-t3369797 @alboz83
Click to expand...
Click to collapse
I relocked yesterday bootloader and my relocated easily. I can not find the update of stock firmware. Once found update. I clicked on update, update failed. I have not got the update since then. So I did relock. Very easy to relock. But my mobile update is not happening. Please give me some help
Sent from my [device_name] using XDA-Developers Legacy app
shashank1320 said:
once you flash the stock img, it will be locked again.
Till Nougat, we had dload method which locks it fully (other method for unlocking it would just re-lock it)
Click to expand...
Click to collapse
Many people say that if we flash stock rom the bootloader stay unlock. Or i have to flash in a particular mode?
With the tool i can relock but not lock, right?
alboz83 said:
Many people say that if we flash stock rom the bootloader stay unlock. Or i have to flash in a particular mode?
With the tool i can relock but not lock, right?
Click to expand...
Click to collapse
Yup
i Read somewhere that if u flash the stock rom using dload after u have relocked the bootloader, the bootloader status will change from relock to locked. does this work? can anyone try and confirm this? i want to make sure of this before i unlock. I would be greatful forever.
Thanks
Anzee said:
i Read somewhere that if u flash the stock rom using dload after u have relocked the bootloader, the bootloader status will change from relock to locked. does this work? can anyone try and confirm this? i want to make sure of this before i unlock. I would be greatful forever.
Thanks
Click to expand...
Click to collapse
Have tried to this more than 100 times and it works fine. It will be locked BL rather than relock
shashank1320 said:
Have tried to this more than 100 times and it works fine. It will be locked BL rather than relock
Click to expand...
Click to collapse
If u flash stock?
Thank you thank you thank you you're a life saver ♥
Anzee said:
If u flash stock?
Thank you thank you thank you you're a life saver ♥
Click to expand...
Click to collapse
Yes. Did you solve the BL state?
shashank1320 said:
Yes. Did you solve the BL state?
Click to expand...
Click to collapse
No I haven't even unlocked the bl yet. I just wanted to make sure it the relock to lock state was possible before I unlock. I will do so soon when I get some time.
Anzee said:
No I haven't even unlocked the bl yet. I just wanted to make sure it the relock to lock state was possible before I unlock. I will do so soon when I get some time.
Click to expand...
Click to collapse
Yes you can always do via full ota or flashing the stock firmware via dload. Not hard to do to retain warranty:silly:
shashank1320 said:
Have tried to this more than 100 times and it works fine. It will be locked BL rather than relock
Click to expand...
Click to collapse
But dload method not work only for a single update.app file? With view 10 there are 3 files
alboz83 said:
But dload method not work only for a single update.app file? With view 10 there are 3 files
Click to expand...
Click to collapse
Use the first file, update.zip. it will contain a update.app file around 3 GB. Can use this single file.
shashank1320 said:
Use the first file, update.zip. it will contain a update.app file around 3 GB. Can use this single file.
Click to expand...
Click to collapse
Really? And I have to install over the same firmware, not an update? For example, now I'm on 162 build with unlock bootloader. If I install only update.zip of 162 build with dload method, I obtain the lock bootloader?
alboz83 said:
Really? And I have to install over the same firmware, not an update? For example, now I'm on 162 build with unlock bootloader. If I install only update.zip of 162 build with dload method, I obtain the lock bootloader?
Click to expand...
Click to collapse
Yes.
hello all guys!
i have honor 10 (now col-l29)
before rebranding (col-tl10)
may i relock the BL safety?? i have official rom
ecsalos said:
hello all guys!
i have honor 10 (now col-l29)
before rebranding (col-tl10)
may i relock the BL safety?? i have official rom
Click to expand...
Click to collapse
Why you want to relock, to gain warranty?
If so, better dload the current firmware and it will lock it safely.
because, i dont want to see everytime when i reboot my phone,this stupid message, who tells me that i have unlock bl...
i have 8.1.0.151 (c432)
i was downloaded this version when im trying to rebranding.. for official site..
if i relock with this version, the worse scenario it will be...??? brick???
if i dload the current firmware, i will install it with TWRP again? and after it will be locked safety?
and what firmware i must to dload?
So I've seen a few posts in the past, where someone has suggested rooting then locking the bootloader and other things like this. But now days do all phones delete data when they unlock the bootloader, if yes do some manufacturers not delete the data when you choose to relock the bootloader?
What i want is to know which brands if any would be possible for me to, unlock the bootloader flash twrp flash xposed other files root ect restore the stock recovery and then relock the bootloader keeping the changes i have made, for security reasons unlocked bootloaders are risky.
The next question is if this is possible if something messes up while it's locked, i won't have twrp to recover it, how would i fix this is this a issue for bricking the device? will fastboot always work to flash stock firmware files if the manufacturer provides them? i'm assuming that would be the only way to solve this? does fastboot need something like OEM unlock turned on in the system to be able to flash firmware to recover? if it does i wouldn't be able to fix that.
Samsung doesn't require OEM unlock to be turned on to flash through odin, but because of all samsung phones using dm-vertity even if the bootloader doesn't delete everything locking it, dm-verity would detect the changes and prevent using the phone in that state.
Appreciate all suggestions.
Thanks.