How to go back to stock and relock the Bootloader? - Huawei P20 Pro Questions & Answers

Hello
i have to sell my device so i want to get it to stock again.
My current Setup:
Bootloader Unlocked, Stock Recovery, Rooted with Magisk, Stock ROM 9.0.0.283
What are the Steps to go Back to Stock and wipe everything?
Ive read that if the bootloader relock again it is not able to unlock the second time? Is this correct? I want to get the Unlock Code to the person who buy it but if its real, he cant use the code anymore..
anyway is it possible to do the job with the Stock E-Recovery in the current state of my phone? Without bootloader Relocked? Or is it necessary to relock the bootloader again?
Thank you very much

blackst225 said:
Hello
i have to sell my device so i want to get it to stock again.
My current Setup:
Bootloader Unlocked, Stock Recovery, Rooted with Magisk, Stock ROM 9.0.0.283
What are the Steps to go Back to Stock and wipe everything?
Ive read that if the bootloader relock again it is not able to unlock the second time? Is this correct? I want to get the Unlock Code to the person who buy it but if its real, he cant use the code anymore..
anyway is it possible to do the job with the Stock E-Recovery in the current state of my phone? Without bootloader Relocked? Or is it necessary to relock the bootloader again?
Thank you very much
Click to expand...
Click to collapse
Ask the buyer if they want it locked. Personally it wouldn't be worth my time if it couldn't be unlocked again. Better to check first..

If you want to lock (not relock) bl justdownload your adequate firmware from androidhost.ru and flash fw using Usb-otg method.
You can unlock/lock your bl using unlock code anytime you want (provided you haven't changed your mainboard in the meantime).

forever_lol said:
If you want to lock (not relock) bl justdownload your adequate firmware from androidhost.ru and flash fw using Usb-otg method.
You can unlock/lock your bl using unlock code anytime you want (provided you haven't changed your mainboard in the meantime).
Click to expand...
Click to collapse
Hi is it possible to do the following..
Adb relock bootloader in my current state?
In my opinion the relock of the bootloader restore system to default over the erecovery or is this wrong?
Many thanks

blackst225 said:
Hi is it possible to do the following..
Adb relock bootloader in my current state?
In my opinion the relock of the bootloader restore system to default over the erecovery or is this wrong?
Many thanks
Click to expand...
Click to collapse
I thought you wanted to go back to stock. I've already gave you solution to bring back all the way stock.
I m not sure if it's even possible to re-lock bootloader using fastboot when you're on pie.
Bootloader status re-locked still means your warranty is void.

forever_lol said:
I thought you wanted to go back to stock. I've already gave you solution to bring back all the way stock.
I m not sure if it's even possible to re-lock bootloader using fastboot when you're on pie.
Bootloader status re-locked still means your warranty is void.
Click to expand...
Click to collapse
Hey I've tried this otg method but without success
If I try it with the dload folder option and try to force flash the emui updater throws an error.
Even with the dialer code method.. same..
I'm not able to get it to stock.
I've tried the Huawei suite on PC and phone in fastboot mode..same..massage this phone can't be reset or so..
What can I do next?
Current state, halfway working phone that's boot into os 2 times from 10 reboots.

Related

[Q] Can I get my guarantee back after i unlocked bootloader?

My X8 was rooted and unlocked bootloader. I know that I will lost my guarantee.
But I have problem with my LCD touchscreen. It's the hardware problem, not software. So, I think I can get my guarantee.
how SEC identify the rooted and unlocked phone?? Can I get my guarantee back??
Re-lock bootloader, flash stock firmware and send your phone to Sony
eagleeyetom said:
Re-lock bootloader, flash stock firmware and send your phone to Sony
Click to expand...
Click to collapse
I read that re-locking a bootloader with a custom kernel installed would brick your phone, is that not correct? I belive the correct way would to be to reflash your phone to stock using SEUS and then lock the bootloader?
I'm not saying that eagleeyetom is wrong, I'm fairly new to this type of thing but I do remember the unlockbootloader guide stating not to relock bootloader with a custom Kernel installed as you'd brick the phone. Just trying to help
thanks for help.
my touchscreen is broken. I wanna change it to the new one.
I should relock my phone, right??
Are they check the software?? I think i've got the hardware problem..
Yeah, you're right. You should first flash stock kernel and then re-lock.
thanks.. i'll try it..

[Help][Q] Keep getting bootloop after UB

okaay so i rooted my phone again and decided to unlock my bootloader, i have verified that i am able to unlock my bootloader and follow all the instructions on the official sony website on how to unlock the bootloader. i get no errors during the cmd process either, i turn my phone on and it gets to the purple boot animation screen and then freezes. Is there anyway around this ?
EDIT: Also i used DooMlords thread and get the same problem? /: - I also use Flashtool but when i press 'blu' i only have the option to RELOCK my bootloader? :S
Anyone ? /: been looking for the solution all day
Cynicaal said:
Anyone ? /: been looking for the solution all day
Click to expand...
Click to collapse
Just flash any desired custom form via fastboot and that's all, it should work.
When I unlocked my bootloader with stock firmware it doesn't boot anymore either, so I had to flash any other or reflash it again
LaurynasVP said:
Just flash any desired custom form via fastboot and that's all, it should work.
When I unlocked my bootloader with stock firmware it doesn't boot anymore either, so I had to flash any other or reflash it again
Click to expand...
Click to collapse
i currently have a custom ROM on my phone but i want to unlock my bootloader to have the ability to use custom kernals iv'e tried doing it with flash tool but it only says 'RELOCK' and ive also tried the official sony way and DooMlords
Cynicaal said:
i currently have a custom ROM on my phone but i want to unlock my bootloader to have the ability to use custom kernals iv'e tried doing it with flash tool but it only says 'RELOCK' and ive also tried the official sony way and DooMlords
Click to expand...
Click to collapse
Just flash a official FTF, then go to service menu, tests -> configuration and if your bootloader status is:
Unlock allowed: Yes - you can unlock your bootloader
Unlock allowed: No - your bootloader is hard bricked and there's no way to solve this (permanently)
Unlocked - congratulations.
I suppose your bootloader is hardlocked. check for yourself and if anything changes - quote
LaurynasVP said:
Just flash a official FTF, then go to service menu, tests -> configuration and if your bootloader status is:
Unlock allowed: Yes - you can unlock your bootloader
Unlock allowed: No - your bootloader is hard bricked and there's no way to solve this (permanently)
Unlocked - congratulations.
I suppose your bootloader is hardlocked. check for yourself and if anything changes - quote
Click to expand...
Click to collapse
it says ---> Bootloader Unlocked: Yes. But iv'e tried to multiple times and still get stuck at the animation screen on boot up
If you are on a custom rom you just have to flash the custom kernel over it putting the phone in fastboot . No need to unlock bootloader again. Please ensure that the rom supports the custom kernel or there can be bootloops .
Sent from my One Plus One
androidtweaker1 said:
If you are on a custom rom you just have to flash the custom kernel over it putting the phone in fastboot . No need to unlock bootloader again. Please ensure that the rom supports the custom kernel or there can be bootloops .
Sent from my One Plus One
Click to expand...
Click to collapse
I have tried unlocking it with and without a custom ROM on my phone, it says 'Bootloader Unlocked: Yes' on the service info and i also only have the option to RELOCK my bootloader when i try it on the flash tool. Does this mean that it may actually be unlocked already?
EDIT: im also using This custom ROM which has custom kernals to select from
-Thanks
Cynicaal said:
I have tried unlocking it with and without a custom ROM on my phone, it says 'Bootloader Unlocked: Yes' on the service info and i also only have the option to RELOCK my bootloader when i try it on the flash tool. Does this mean that it may actually be unlocked already?
EDIT: im also using This custom ROM which has custom kernals to select from
-Thanks
Click to expand...
Click to collapse
The rom that you gave link to is a stock firmware based custom rom, so it will have stock kernel.
I think it must be written Bootloader unlock allowed: Yes, on your phone
You will need to unlock the bootloader, PM me I will guide you how to do it.
androidtweaker1 said:
The rom that you gave link to is a stock firmware based custom rom, so it will have stock kernel.
I think it must be written Bootloader unlock allowed: Yes, on your phone
You will need to unlock the bootloader, PM me I will guide you how to do it.
Click to expand...
Click to collapse
Messaged you mate ☺
Issue fixed thanks to androidtweaker1 - even put me on DU lollipop!

[Q] Unlocked & rooted, should bootloader remain unlocked?

So I unlocked(htcdev) and rooted(twrp) and now I wounder if I should re-lock for security? I read that the boot-loader could have an authorized os list. Since both the system and recovery are os's would a re-lock put twrp out of control?
Thanks
I'd like to know this also. Fortunately relocking seems to be easy.
micnolmad said:
So I unlocked(htcdev) and rooted(twrp) and now I wounder if I should re-lock for security? I read that the boot-loader could have an authorized os list. Since both the system and recovery are os's would a re-lock put twrp out of control?
Thanks
Click to expand...
Click to collapse
Musicbee said:
I'd like to know this also. Fortunately relocking seems to be easy.
Click to expand...
Click to collapse
Never relock with custom roms or custom recovery still installed on your phone, this will result in bootloop.
Only way to stop this bootloop will be to unlock again but unlocking the bootloader require the stock recovery to be installed.
So with custom recovery installed and bootloader relocked = bootloop = can't unlock again. You'll have to reflash the whole firmware in ruu mode to get back the stock recovery over the custom one and then you'll be able to re-unlock to stop the bootloop.
So short answer, don't relock when not 100% stock
Ich, thanks! Glad I asked first instead of taking the chance..
Sent from my HTC One using XDA Free mobile app

Get unlock code on already unlocked (and rooted) device

Hi,
I have a VIE-AL10, firmware B183. I am trying to update to B195 but I believe I cannot do it because I unlocked the phone.
I don't need the unlocked bootloader anymore (for now) and my idea was to relock it and unlock it again in the future but unfortunely I have lost the code I got using DCUnlocker.
There is a way to recover the code in this unlocked and rooted phone?
Blindstealer said:
Hi,
I have a VIE-AL10, firmware B183. I am trying to update to B195 but I believe I cannot do it because I unlocked the phone.
I don't need the unlocked bootloader anymore (for now) and my idea was to relock it and unlock it again in the future but unfortunely I have lost the code I got using DCUnlocker.
There is a way to recover the code in this unlocked and rooted phone?
Click to expand...
Click to collapse
U can update with unlocked bootloader but not if u have TWRP and root. If u have it i need to unroot and install stock recovery.
Mostar088 said:
U can update with unlocked bootloader but not if u have TWRP and root. If u have it i need to unroot and install stock recovery.
Click to expand...
Click to collapse
Thank you, I imagined that. Any way to recover the unlock code so that I can redo the unlock procedure after I upgraded the phone?

Frp locked

I cant unlock frp as It is grayed out the option of oem unlocking in the dev options
pls I need help
Model : LLD-L21
OS : KangVIP Rom (EMUI 8.0.0)
Bootloader Status : Unlocked
In fastboot it says
Phone Unlocked
FRP Locked
did u try dload method?
yes I tried dload
It did not work
I can't upload zipI will send u the file to unlock frp or you can find that file in telegram group of our device
That wont work...
Go to terminal in root mode and do
Code:
Setprop sys.oem_unlock_allowed 1
Than you can change the value and its not longer greyed out.
Darkest-Dark said:
That wont work...
Go to terminal in root mode and do
Code:
Setprop sys.oem_unlock_allowed 1
Than you can change the value and its not longer greyed out.
Click to expand...
Click to collapse
If that dosent work you can also follow the below procedure.
Relock your bootloader. Your phone will factory reset and boot. Then head to developer options and you will see oem unlock is not greyed out. Then just enable oem unlocking and unlock the bootloader. When you boot up again you will see that oem is greyed out but it'll be enabled. So you'll have unlocked fastboot and unlocked frp now.
Fredin_ said:
That wont work...
Go to terminal in root mode and do
If that dosent work you can also follow the below procedure.
Relock your bootloader. Your phone will factory reset and boot. Then head to developer options and you will see oem unlock is not greyed out. Then just enable oem unlocking and unlock the bootloader. When you boot up again you will see that oem is greyed out but it'll be enabled. So you'll have unlocked fastboot and unlocked frp now.
Click to expand...
Click to collapse
This will just brick the device.
Fredin_ said:
If that dosent work you can also follow the below procedure.
Relock your bootloader. Your phone will factory reset and boot. .....<snip>.
Click to expand...
Click to collapse
Never Ever a good idea to try and relock the bootloader.
viratbansal001 said:
This will just brick the device.
Click to expand...
Click to collapse
Sparkrite said:
Never Ever a good idea to try and relock the bootloader.
Click to expand...
Click to collapse
Umm why? Its working pretty fine for me. ?
Fredin_ said:
Umm why? Its working pretty fine for me.
Click to expand...
Click to collapse
Have you Unlocked, Relocked and then Unlocked again ?
[/COLOR]
Sparkrite said:
Have you Unlocked, Relocked and then Unlocked again ?
Click to expand...
Click to collapse
I haven't gone that far. I've unlocked and then relocked.
Everything fine. I believe it's completely safe if you have complete stock firmware installed ie, stock rom, stock recovery, stock Kernal and all that stuff. Otherwise you'll end up in a loop. Guess I forgot that part sorry.
So I know this is someone else's thread but can you tell me if I relocked bootloader will the service center be able to know I'd unlocked before? I don't have the phone unlocked warning at boot. Just curious.
Fredin_ said:
[/COLOR]
I haven't gone that far. I've unlocked and then relocked.
Everything fine. I believe it's completely safe if you have complete stock firmware installed ie, stock rom, stock recovery, stock Kernal and all that stuff. Otherwise you'll end up in a loop. Guess I forgot that part sorry.
So I know this is someone else's thread but can you tell me if I relocked bootloader will the service center be able to know I'd unlocked before? I don't have the phone unlocked warning at boot. Just curious.
Click to expand...
Click to collapse
Hey will it work if I have complete stock firmware like you said? I want to take my device to service centre but my bootloader is unlocked and I have L OS installed. Will relockeing bootloader get me back my waranty?
PS. I have already asked in question and answers section but no reply yet. ?I
Fredin_ said:
[/COLOR]
I haven't gone that far. I've unlocked and then relocked.
Everything fine. I believe it's completely safe if you have complete stock firmware installed ie, stock rom, stock recovery, stock Kernal and all that stuff. Otherwise you'll end up in a loop. Guess I forgot that part sorry.
So I know this is someone else's thread but can you tell me if I relocked bootloader will the service center be able to know I'd unlocked before? I don't have the phone unlocked warning at boot. Just curious.
Click to expand...
Click to collapse
Some if not all bootloaders nowadays are not "locked" by the manufacturer using a code but are usually "locked" by employing a digital signature and/or a CID (carrier Id) hard coded into the OS. When we "unlock" a bootloader with a code we are simply using a routine written into the loader by the manufacturer to now ignore signatures and/or CIDs of the OS and this allows us to flash whatever we wish.
Sometimes upon unlocking using a code the DS/CID is erased/altered and cannot be retrieved, so not a good idea to relock an altered bootloader.
At least, that is my understanding of it.
Krazydon said:
Hey will it work if I have complete stock firmware like you said? I want to take my device to service centre but my bootloader is unlocked and I have L OS installed. Will relockeing bootloader get me back my waranty?
PS. I have already asked in question and answers section but no reply yet. I
Click to expand...
Click to collapse
Sparkrite said:
Some if not all bootloaders nowadays are not "locked" by the manufacturer using a code but are usually "locked" by employing a digital signature and/or a CID (carrier Id) hard coded into the OS. When we "unlock" a bootloader with a code we are simply using a routine written into the loader by the manufacturer to now ignore signatures and/or CIDs of the OS and this allows us to flash whatever we wish.
Sometimes upon unlocking using a code the DS/CID is erased/altered and cannot be retrieved, so not a good idea to relock an altered bootloader.
At least, that is my understanding of it.
Click to expand...
Click to collapse
That's too bad. Means we won't get back our waranty if we relock it ?. So thanks for the heads up . I'll be careful while unlocking it again (if ever).?
Fredin_ said:
That's too bad. Means we won't get back our waranty if we relock it . So thanks for the heads up . I'll be careful while unlocking it again (if ever).
Click to expand...
Click to collapse
Not necessarily, I doubt if most service centres would bother delving that deep, but maybe some would.
I don't know...........
Sparkrite said:
Not necessarily, I doubt if most service centres would bother delving that deep, but maybe some would.
I don't know...........
Click to expand...
Click to collapse
Thanks for your quick reply but do you know any way to get back CID/DS
No, but I haven't delved that deeply into Huaweis bootloaders, but I NEVER attempt to re-lock them.
Sparkrite said:
No, but I haven't delved that deeply into Huaweis bootloaders, but I NEVER attempt to re-lock them.
Click to expand...
Click to collapse
Anyways thanks for your replies. Means a lot ?

Categories

Resources