Retrieve Bootloader Unlock Code from a rooted phone? - Huawei P10 Questions & Answers

Hi,
I have an bootloader-unlocked P10, that I unlocked a long time ago. But I didn't save the unlock code. Is there any way to retrieve the code from a rooted phone? Using TWRP?
Bonus question - what actions will cause my phone to be accidentally re-locked? How to avoid this in case I can't get my code again?

It's not possible to get the unlock code without Huawei, even with a rooted phone.
Since Huawei won't send you the code anymore, the only way to get the code is DC Phoenix (it costs around US$ 4, I think).
A re-lock can caused by many factors:
Failed firmware installation
Failed update
Failed root / unroot
Failed factory reset
Corrupt file partition
Factory reset with disabled "OEM Unlock" option in settings
If you just update the phone via OTA or methods like my script the bootloader should stay unlocked. But there's no real warranty, every device is different and even if you did everything right the software can mess something up.
A re-lock mostly causes a factory reset.
So, if you want to be safe, get your unlock code with DC Phoenix (I never used this tool) and write your code down for the future.
DC Phoenix should also work if your phone is bricked.

Related

P10 Oreo - Boot problem

Hi
I have a BIG problem with my P10 (L29C432) on Oreo 365.
Tried downgrade to nougat through Firmware Finder but update failed. Now i have this warning at every reboot.
I have LOCKED bootloader (never rooted phone). And i cant get bootloader unlock code (website not working).
Also cant enter fastboot mode because of that error.
Is there anyway to RESTORE phone with locked bootloader? I have tried to flash previous firmware with sdcard method (hold power,+,- keys) but update fails everytime.
Is there other way to flash new firmware?
I can use phone but at every reboot i get this message?
If there is no other way to flash new firmware than with unlocked bootloader... Where to get code for unlocking bootloader?
Thanks.
Edit:
I can enter fastboot mode but my bootloader is locked.
you have to unlock bootloader by sending all the needed info per email.
you need to send them IMEI, model version, S/N number, and product id and request for bootloader unlocking code this email: [email protected]
next time read about how to rollback to nougat...
Thank you. So I need to unlock bootloader.
Will try to get code.
tomzzi said:
Thank you. So I need to unlock bootloader.
Will try to get code.
Click to expand...
Click to collapse
If you don't have your "product id", you can't have the code for unlock the bootloader :/
The "Product ID" is a code into the system info on android :s
I am waiting for code from Huawei. They will send me code in next days...
you can get product id on imei24. com by typing your imei.
Now i have another problem. I think phone is "dead" now. Unuseable.
Tried to root phone and now nothing works.
Phone does not recognize SIM card at all.
If I go into settings and system information there is no IMEI number?
Can i restore this?
Or need to take it to service center? Or dead phone?
send the device against wall. Buy another one and forget averything about rooting and unlocking bootloader. Its for your safety, trust me.
I have experience with rooting and flashing phones (Sony). Never had problem.
So there is no way to restore phone?
maybe in repair store. Never heard about bricked device without imei. You can still try to flash original firmware.

RE: Huawei's bootloader codes

RE: Huawei's bootloader codes
Currently I have a stock non-rooted EVA-L19 which is currently out of warranty.
I'm planning on rooting it soon (I'm unable to download required files due to bad internet) and with the recent changes in Huawei's bootloader code requests, is it possible to generate the unlock bootloader code now then hold unto it till the day I decided to root the phone?
3m2vinatohr04 said:
Currently I have a stock non-rooted EVA-L19 which is currently out of warranty.
I'm planning on rooting it soon (I'm unable to download required files due to bad internet) and with the recent changes in Huawei's bootloader code requests, is it possible to generate the unlock bootloader code now then hold unto it till the day I decided to root the phone?
Click to expand...
Click to collapse
There is one and single bootloader code for unlocking and relocking. It is bound to your device ID, it has no timestamp or expiration day. Keep it on the safe place, once you get it, you can reuse it for unlocking/relocking/unlockung as many times as you want, whenever you want - for your particular phone.
Be aware, unlocking or relocking triggers hard reset with wiping Internal memory. For hard reset you must be on stock TOM, unrooted, with stock eRecovery - that is, if you ever want to relock (or want to initiate hard reset), you will have to unroot before that, return from custom ROM to stock, and re-flash stock eRecovery before relocking/hard resetting (otherwise you risk to brick the phone).
^ thanks for the reply. I thought unlock codes were generated randomly similar to keygens
I went ahead and generated the code.
I'm aware that unlocking the bootloader triggers the hard reset, learnt it the hard way on my nexus 7 2012 yrs ago -_-
Thanks!

Bootloader re-locked after OTA update

Hey, for a reasons I needed to do ota update (reflashed stock recovery[extracted from matching update] before doing so), now when im trying to reinstall TWRP i've noticed that my bootloader re-locked on its own.
Was this supposed to happen? iirc people keep telling you that you can't relock bootloader without it's backup from locked state.
It's quite annoying that it happen since I did pay for unlock via DC unlocker and now huawei stopped distributing unlock codes so I'll probably need to pay DC again.
Cheers!
edit: DC unlocker did not even allow me to Unlock bootloader, only thing i saw was Lock bootloader, but there was option to "Read bootloader code" (no credits needed) and I managed to unlock bootloader again using fastboot and this code
TheRadziu said:
Hey, for a reasons I needed to do ota update (reflashed stock recovery[extracted from matching update] before doing so), now when im trying to reinstall TWRP i've noticed that my bootloader re-locked on its own.
Was this supposed to happen? iirc people keep telling you that you can't relock bootloader without it's backup from locked state.
It's quite annoying that it happen since I did pay for unlock via DC unlocker and now huawei stopped distributing unlock codes so I'll probably need to pay DC again.
Cheers!
edit: DC unlocker did not even allow me to Unlock bootloader, only thing i saw was Lock bootloader, but there was option to "Read bootloader code" (no credits needed) and I managed to unlock bootloader again using fastboot and this code
Click to expand...
Click to collapse
This is a flag in OTA update, it may be present or not (now seems to be always enforced, new Huawei policy) that OTA locks Bootloader
You cannot disable this flag in OTA package
Bootloader is not relocked but really locked (better for those who go to service under warranty)
Bootloader code is unique for your device.
No matter did you obtain it from Huawei or DC, you have TO KEEP it, you don't need to pay, read or ask again, just use the same bootloader code for the same phone for the lifetime of your phone
zgfg said:
This is a flag in OTA update, it may be present or not (now seems to be always enforced, new Huawei policy) that OTA locks Bootloader
You cannot disable this flag in OTA package
Bootloader is not relocked but really locked (better for those who go to service under warranty)
Bootloader code is unique for your device.
No matter did you obtain it from Huawei or DC, you have TO KEEP it, you don't need to pay, read or ask again, just use the same bootloader code for the same phone for the lifetime of your phone
Click to expand...
Click to collapse
thanks for the answer, didnt know about flag nor that bootloader unlock code can be used multiple times(and that its paired with HW)
nevertheless, as I said in my edit I managed to get my unlock code for free with dc unlocker
TheRadziu said:
thanks for the answer, didnt know about flag nor that bootloader unlock code can be used multiple times(and that its paired with HW)
nevertheless, as I said in my edit I managed to get my unlock code for free with dc unlocker
Click to expand...
Click to collapse
Did you compare it, is it the same like previous time
zgfg said:
Did you compare it, is it the same like previous time
Click to expand...
Click to collapse
that's what I suspect, but sadly can't confirm or deny. I think I didn't even see the code itself when I used it for the first time due to the fact that unlock process was automatized within DC unlocker's client app, so all I had to do was to prepare the phone and press Unlock Bootloader within the client
TheRadziu said:
that's what I suspect, but sadly can't confirm or deny. I think I didn't even see the code itself when I used it for the first time due to the fact that unlock process was automatized within DC unlocker's client app, so all I had to do was to prepare the phone and press Unlock Bootloader within the client
Click to expand...
Click to collapse
I used DC client once (4 Euros), I obtained the code (saved it for future) and used in Fastboot to unlock Bootloader just like previously for the other Huawei phone whose code I obtained for free from Huawei (before they closed this service)

[SOLVED] Your device is Currupt, it can't be trusted and will not boot.

Yesterday, I was going to lock my bootloader to cell my Nokia 8 cuz' I needed money. Being the noobie that I'm I didn't have my unlock key saved anywhere. and couldn't get a new one because the stupid Bootloader unlock app doesn't work on Pie. I did know that locking the bootloader doesn't require a key. So I just went with it without remembering that I still had TWRP instead of stock boot img installed. So when I locked the bootloader the phone booted into a screen similar to the unlocked Bootloader warning screen. But it said "Your Device is corrupt. It can't be Trusted and will not boot." Instead. So now I have locked bootloader with TWRP that I can't boot into. I still can boot into fastboot mode but I can't do much Because LoCkEd BooTlOaDeR. The only sulotion is to unlock the bootloader with an unlock key Which I don't have and flash stock boot. So please help. You'll be literally saving my life. This is my first thread ever on the internet so forgive me If I made any mistakes:laugh:
EDIT: I took my phone to the service centre near me and they were able to fix it
CommieTurtle said:
Yesterday, I was going to lock my bootloader to cell my Nokia 8 cuz' I needed money. Being the noobie that I'm I didn't have my unlock key saved anywhere. and couldn't get a new one because the stupid Bootloader unlock app doesn't work on Pie. I did know that locking the bootloader doesn't require a key. So I just went with it without remembering that I still had TWRP instead of stock boot img installed. So when I locked the bootloader the phone booted into a screen similar to the unlocked Bootloader warning screen. But it said "Your Device is corrupt. It can't be Trusted and will not boot." Instead. So now I have locked bootloader with TWRP that I can't boot into. I still can boot into fastboot mode but I can't do much Because LoCkEd BooTlOaDeR. The only sulotion is to unlock the bootloader with an unlock key Which I don't have and flash stock boot. So please help. You'll be literally saving my life. This is my first thread ever on the internet so forgive me If I made any mistakes:laugh:
EDIT: I took my phone to the service centre near me and they were able to fix it
Click to expand...
Click to collapse
Hello! I have the same problem! (((You were not interested in what exactly or how you should do to correct the error? And how much money did you get for repair?
Well you can use original OST not NOST and flash signed images (.NB1) without unlocking bootloader.
KonikoO said:
Well you can use original OST not NOST and flash signed images (.NB1) without unlocking bootloader.
Click to expand...
Click to collapse
Only with service point authorization as far as I know. OST (and NOST by extension) usually show you a login prompt when you launch them. Service Points login to a server that generates a temporary unlock key, which allows OST to reflash the partitions. With the proper authorization, even NOST could flash .qlz files (as long as the images inside are official and signed) with a locked bootloader.
Since we don't have service point permission we have to patch the tool to ignore it (both NOST and the hacked OST). It will still try to request the temporary key, fail, and pass an empty value to the bootloader. To get the bootloader to accept the following flashing commands, you have to unlock it.

FRP locked after factory reset - can it be unlocked again?

I was trying to rebrand and convert my phone to dual sim, only this can't be done on Pie and FunkyHuawei didn't make this known. And since I hit this issue out they are not responding to my emails anymore. Which sounds par for course with them from what others are saying. Anyway, I needed to downgrade to oreo to continue with the rebrand but oem unlock feature in developer mode was greyed out. So I did a factory reset but the oem unlock was still greyed out afterwards. And now when I go into fastboot, it is showing the phone as unlocked but FRP as locked. And I can't do anything in fastboot now as a result. Is there any way to unlock FRP again?
mickrick said:
I was trying to rebrand and convert my phone to dual sim, only this can't be done on Pie and FunkyHuawei didn't make this known. And since I hit this issue out they are not responding to my emails anymore. Which sounds par for course with them from what others are saying. Anyway, I needed to downgrade to oreo to continue with the rebrand but oem unlock feature in developer mode was greyed out. So I did a factory reset but the oem unlock was still greyed out afterwards. And now when I go into fastboot, it is showing the phone as unlocked but FRP as locked. And I can't do anything in fastboot now as a result. Is there any way to unlock FRP again?
Click to expand...
Click to collapse
roolback to single sim, restore factory os version, and login last google account to unlock frp
spityu85hun said:
roolback to single sim, restore factory os version, and login last google account to unlock frp
Click to expand...
Click to collapse
Well it seems firmware finder was my friend on this occasion. I found a load of folders and files with weird names on the internal storage and removed them. It seems these were were placed there by Funky as erecovery started working again, instead of twrp. And I wasn't getting the message to continue rebranding either. The internal storage was still read only, so I had a look at FF as a last resort. It recommended a higher version of the original so I went with that. It took around 3 hours for it to download and install but everything was back to normal afterwards. Including frp and oem unlock.
As for rebranding, well I'm no further on but I shant be trying it again until I can downgrade to oreo. If I could only figure out how to do that.
mickrick said:
Well it seems firmware finder was my friend on this occasion. I found a load of folders and files with weird names on the internal storage and removed them. It seems these were were placed there by Funky as erecovery started working again, instead of twrp. And I wasn't getting the message to continue rebranding either. The internal storage was still read only, so I had a look at FF as a last resort. It recommended a higher version of the original so I went with that. It took around 3 hours for it to download and install but everything was back to normal afterwards. Including frp and oem unlock.
As for rebranding, well I'm no further on but I shant be trying it again until I can downgrade to oreo. If I could only figure out how to do that.
Click to expand...
Click to collapse
Honestly unless you really really need it. I wouldn't bother mate. Massive ballache
This is such a lame phone, can't wait to be rid of it.
Downgrading should be achievable by either hisuite or by a flash script. Literally just like installing a new os. I used the latter as hisuite bugged out after fiddling with host files thanks to fh. Search this forum for pats with the word numpty in title. I wrote an exact step by step on the process I followed
When you do the rebrand if you don't need dual sim, just use the standard debrand P20 tool and key the model and regions manually to ensure no **** ups.
Sent from my CLT-L09 using Tapatalk
mickrick said:
I was trying to rebrand and convert my phone to dual sim, only this can't be done on Pie and FunkyHuawei didn't make this known. And since I hit this issue out they are not responding to my emails anymore. Which sounds par for course with them from what others are saying. Anyway, I needed to downgrade to oreo to continue with the rebrand but oem unlock feature in developer mode was greyed out. So I did a factory reset but the oem unlock was still greyed out afterwards. And now when I go into fastboot, it is showing the phone as unlocked but FRP as locked. And I can't do anything in fastboot now as a result. Is there any way to unlock FRP again?
Click to expand...
Click to collapse
If there's any dload firmware available for your device (search on androidhost.ru for your exact model and region), then you might have a chance to fix this issue, by downgrading/updating with the dload method.

Categories

Resources