(Q) Query about bootloader and re-packaging an OTA - Huawei P20 Pro Questions & Answers

hi all,
Just having a thought (might not work but thought i'd ask)
Some OTA's / Firmwares which you can install from the bootloader have the ability to re-lock the device, would the same be possible for the other way around?
I mean i'm on a locked bootloader now cos of the crap i installed which updated me to 9.1, it relocked the bootloader, I can turn on OEM unlocking (FRP) but obviously it remains unlocked.
Would there be a way to repackage a firmware package so that it does the opposite to re-locking?
I think everyone has pretty much given up on Huawei devices, I was just trying to disable zRAM and i can't.
Any thoughts ? Is this a possible avenue? or is this simply not going to work?
I'd guess the latter but thought i'd ask.

Which firmware version relocked your bootloader? I can perhaps take a look at it in my free time.

dladz said:
hi all,
Just having a thought (might not work but thought i'd ask)
Some OTA's / Firmwares which you can install from the bootloader have the ability to re-lock the device, would the same be possible for the other way around?
I mean i'm on a locked bootloader now cos of the crap i installed which updated me to 9.1, it relocked the bootloader, I can turn on OEM unlocking (FRP) but obviously it remains unlocked.
Would there be a way to repackage a firmware package so that it does the opposite to re-locking?
I think everyone has pretty much given up on Huawei devices, I was just trying to disable zRAM and i can't.
Any thoughts ? Is this a possible avenue? or is this simply not going to work?
I'd guess the latter but thought i'd ask.
Click to expand...
Click to collapse
Nope, that won't work!

Aodrulez said:
Which firmware version relocked your bootloader? I can perhaps take a look at it in my free time.
Click to expand...
Click to collapse
Oh god, will have to find the bugger, 318 I think.

Pretoriano80 said:
Nope, that won't work!
Click to expand...
Click to collapse
There's no service firmware we could flash they would unlock it?

dladz said:
There's no service firmware we could flash they would unlock it?
Click to expand...
Click to collapse
Nope! DLOAD re-lock bootloader to factory condition, but there's no way to unlock the bootloader with it.
I don't think Huawei will give you the unlock code a second time, but maybe you will be lucky, who knows.
Maybe you can retrieve it from an email from them!?
Edit: You can download your HuaweiID data from Settings - > HuaweiID - > Privacy Center but i doubt you will get the bootloader code from there

Pretoriano80 said:
Nope! DLOAD re-lock bootloader to factory condition, but there's no way to unlock the bootloader with it.
I don't think Huawei will give you the unlock code a second time, but maybe you will be lucky, who knows.
Maybe you can retrieve it from an email from them!?
Edit: You can download your HuaweiID data from Settings - > HuaweiID - > Privacy Center but i doubt you will get the bootloader code from there
Click to expand...
Click to collapse
I've spoke with them, they said they've not heard of a situation like this.
Bare in mind that this is information that has been passed to me before. Which is a correspondence, they are obligated to provide it regardless.
I don't believe it was in an email and I've checked all accounts

Thanks for sharing this topic
Thanks for sharing your experiences.

Related

Manual update P10?

Anyone succeed with manually updating P10? I have tried with no sucess.
Old method is not working.
Thanks
No but did you made the dload folder with the update.app file and then booted into the stock recovery mode?
I woudnt know any other way since they removed that from update settings : |
I tried that, does not work.
You can't manual update the P10 or P10 Plus, since it requires an online check.
They removed the ability to manual update via dload methode.
The only way at this moment is to use FunkyHuawei!
Forsaked said:
You can't manual update the P10 or P10 Plus, since it requires an online check.
They removed the ability to manual update via dload methode.
The only way at this moment is to use FunkyHuawei!
Click to expand...
Click to collapse
What about Firmware finder? I've tried this as well but I only get download failed, even everything is done as it should.
Hey,
I am working into this direction and got some promising results already. I am testing two more things during the next days (so that I can be sure my Stuff won't break your phones) and hope I can share my findings with you early next week.
Lukx said:
Hey,
I am working into this direction and got some promising results already. I am testing two more things during the next days (so that I can be sure my Stuff won't break your phones) and hope I can share my findings with you early next week.
Click to expand...
Click to collapse
Good to hear that. :good:
So, it is not possible to update, even the firmware matches your corrent model/brand?
I finally found the FW for VTR-L09C109, but when using dload method I get "Installation failed".
No, it is not possible. Huawei did something with emui 5.1.
ladodo said:
No, it is not possible. Huawei did something with emui 5.1.
Click to expand...
Click to collapse
Wrong you can now debrand for free and offline check this out https://forum.xda-developers.com/mate-9/how-to/guide-mate-9-flash-update-package-t3593108 can confirm it works
Does bootloader needs to be unlocked and twrp installed?
ladodo said:
Does bootloader needs to be unlocked and twrp installed?
Click to expand...
Click to collapse
Well, OP clearly says, that bootloader must be unlocked......
davebugyi said:
Well, OP clearly says, that bootloader must be unlocked......
Click to expand...
Click to collapse
It is not good since you loose warranty with bootloader unlocked.
ladodo said:
It is not good since you loose warranty with bootloader unlocked.
Click to expand...
Click to collapse
Not always correct. It depends on the local country laws you live in.
And also if you follow the instructions you end with LOCKED Bootloader so no warranty lost
crucky said:
And also if you follow the instructions you end with LOCKED Bootloader so no warranty lost
Click to expand...
Click to collapse
Is it same with P10 as it was with P9, tha it say relocked instead locked bootloader, when you lock it again?
nope : Phone LOCKED
FRP unlocked so they cant see the difference they can only find out if they check if you got the bootloader unlock code.but you also could request the code and dont use it.
Any progress here? The update has been out for months in other regions but I still haven't got anything here in Sweden :/

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 ?

Is it possible to re-lock bootloader after official unlock?

I'm doing some research before I commit to unlocking my bootloader, and I can't find anything definitive on whether or not it's possible to re-lock after unlocking with the official tool. I have experience unlocking and re-locking bootloaders, flashing custom recoveries/ROMs/kernels etc but only with Nexus and Samsung phones, so I just want to make sure I'm clear on how Nokia's setup differs (If at all). Would also be interested to find out if Nokia will still offer me OTA's with unlocked bootloader.
Thanks for any help, and feel free to move or close the thread if it matches another one that I've missed.
Bb
2WildFirE said:
I'm really sure you can relock bootloader. Why not?
And yes ota works fine with open bootloader if you are on stock
Click to expand...
Click to collapse
Awesome, cheers for the assist ?
2WildFirE said:
I'm really sure you can relock bootloader. Why not?
And yes ota works fine with open bootloader if you are on stock
Click to expand...
Click to collapse
Nokia says that relooking isn't possible. Is there anybody who tried the command 'fastboot oem relock'?
And why says this text please lock ? the bootloader, if it is not possible?
2WildFirE said:
And why says this text please lock ? the bootloader, if it is not possible?
Click to expand...
Click to collapse
Dude, crop out that serial number?
Go to download mode
Run adb:fastboot oem lock
Choose lock bootloader in your phone
namle98 said:
Go to download mode
Run adb:fastboot oem lock
Choose lock bootloader in your phone
Click to expand...
Click to collapse
confirmed, i did it today
Since I also unlocked critical, I ran: fastboot oem lock_critical and then fastboot oem lock
Phone will factory reset both times.
Has anyone tried the re-lock with a custom kernel/ROM?
dimitar10 said:
Has anyone tried the re-lock with a custom kernel/ROM?
Click to expand...
Click to collapse
No, and nobody should do it. It will brick your device.
The point of a locked bootloader is to prevent unofficial software from running, and the point of unlocking it is to make that possible. So relocking the bootloader with unofficial software installed will make the phone think that the software got corrupted and rightfully lock down the device.
THMSP said:
No, and nobody should do it. It will brick your device.
The point of a locked bootloader is to prevent unofficial software from running, and the point of unlocking it is to make that possible. So relocking the bootloader with unofficial software installed will make the phone think that the software got corrupted and rightfully lock down the device.
Click to expand...
Click to collapse
Basically anyone should be able to do it and it shouldn't brick your device, as per Google's bootloader recommendations. However, manufacturers decide to cripple bootloaders not to support it in the verified boot chain (where kernel verification can be explicitly made against a custom root of trust set after the device has left the factory i.e. set by the user, instead of the original root of trust). As far as I know, only Pixel devices implement this, and can be achieved by issuing the command:
Code:
fastboot flash avb_custom_key <key_blob>
I'm sure there are lots of advanced users/modders that can find this feature beneficial (if implemented by the device vendors).
dimitar10 said:
Basically anyone should be able to do it and it shouldn't brick your device, as per Google's bootloader recommendations. However, manufacturers decide to cripple bootloaders not to support it in the verified boot chain (where kernel verification can be explicitly made against a custom root of trust set after the device has left the factory i.e. set by the user, instead of the original root of trust). As far as I know, only Pixel devices implement this, and can be achieved by issuing the command:
Code:
fastboot flash avb_custom_key <key_blob>
I'm sure there are lots of advanced users/modders that can find this feature beneficial (if implemented by the device vendors).
Click to expand...
Click to collapse
I accidently locked the bootloader and without locking critical with custom recovery in system.
now it's saying data is corrupt and phone can't be trusted.
that unlock key url got expired and there is no way i can get that unlock key .
is there any other way to fix my phone??
Code:
fastboot flash avb_custom_key <key_blob>
how to use this code? any specific key_blob for nokia 8 or is it supported on this phone?
help me guys ;(
Edit:
After so many tries, I went to service centre and they fixed the phone in few mins :highfive::silly:
Crazy Tweaks said:
I accidently locked the bootloader and without locking critical with custom recovery in system.
now it's saying data is corrupt and phone can't be trusted.
that unlock key url got expired and there is no way i can get that unlock key .
is there any other way to fix my phone??
Code:
fastboot flash avb_custom_key <key_blob>
how to use this code? any specific key_blob for nokia 8 or is it supported on this phone?
help me guys ;(
Edit:
After so many tries, I went to service centre and they fixed the phone in few mins :highfive::silly:
Click to expand...
Click to collapse
I have the same problem right now. May i ask how they fixed it and what did you tell them ?
---------- Post added at 03:31 PM ---------- Previous post was at 03:27 PM ----------
CommieTurtle said:
I have the same problem right now. May i ask how they fixed it and what did you tell them ?
Click to expand...
Click to collapse
Did they fix it for free since bootloader is locked? I'm going to service centre in few hours
CommieTurtle said:
I accidently locked the bootloader and without locking critical with custom recovery in system.
now it's saying data is corrupt and phone can't be trusted.
that unlock key url got expired and there is no way i can get that unlock key .
is there any other way to fix my phone??
I have the same problem right now. May i ask how they fixed it and what did you tell them ?
---------- Post added at 03:31 PM ---------- Previous post was at 03:27 PM ----------
Did they fix it for free since bootloader is locked? I'm going to service centre in few hours
Click to expand...
Click to collapse
Well it wasn't in warranty xD so just asked me this and boom it was not free after that but well yeah it doesn't matter if it's locked or unlocked lol as long as they are getting paid, they'll do it hahahha
Crazy Tweaks said:
Well it wasn't in warranty xD so just asked me this and boom it was not free after that but well yeah it doesn't matter if it's locked or unlocked lol as long as they are getting paid, they'll do it hahahha
Click to expand...
Click to collapse
lol my device was under warranty so I got it fixed for free
I can assume that, in service centers, they are able to reflash the entire firmware including the (secondary) bootloader. They would probably boot the device into EDL mode, and flash it with stock firmware, with a properly signed Qualcomm EDL programmer, and use Qualcomm's QFIL tool to do this.
CommieTurtle said:
lol my device was under warranty so I got it fixed for free
Click to expand...
Click to collapse
Glad to hear that

need help to relock bootloader.

hi guys, I made a stupid thing earlier, I went using the bootloader unlock for Asus rog tencent which can be found on the guide how to convert CN to WW, now I always get message when I turn on the phone that the bootloader is unlock and it makes.me sick, what I done is I unlock the bootloader then I'm wondering why I can't flash any firmware on my phone, do you have any idea or tips how can I relock my bootloader again? I don't want this message popping up each time I turn on my device. Help please. My software information is WW_16.0622.1906.19_0
glenz0924 said:
hi guys, I made a stupid thing earlier, I went using the bootloader unlock for Asus rog tencent which can be found on the guide how to convert CN to WW, now I always get message when I turn on the phone that the bootloader is unlock and it makes.me sick, what I done is I unlock the bootloader then I'm wondering why I can't flash any firmware on my phone, do you have any idea or tips how can I relock my bootloader again? I don't want this message popping up each time I turn on my device. Help please. My software information is WW_16.0622.1906.19_0
Click to expand...
Click to collapse
Keep in mind relocking your bootloader won't get you any OTA updates anymore. You will have to manually flash your device from now on, since your IMEI is blacklisted by Asus OTA server.
Jake.S said:
Keep in mind relocking your bootloader won't get you any OTA updates anymore. You will have to manually flash your device from now on, since your IMEI is blacklisted by Asus OTA server.
Click to expand...
Click to collapse
Is there a way to lock it again with my current firmware sir? My God I done very stupid things today. I don't even know how to flash a firmware manually. I just follow things on YouTube. But I'm a bit techy so if there's a way sir, please share it.
Jake.S said:
Keep in mind relocking your bootloader won't get you any OTA updates anymore. You will have to manually flash your device from now on, since your IMEI is blacklisted by Asus OTA server.
Click to expand...
Click to collapse
I don't mind having manual flashing I just want to remove the notification that my bootloader is unlock sir
glenz0924 said:
I don't mind having manual flashing I just want to remove the notification that my bootloader is unlock sir
Click to expand...
Click to collapse
Search in the guides section, there's a guide for it somewhere

Question Flashing stock android or other OS to vivo x90 pro+

So i really want to go to stock Android. Is it possible to flash to stock android but keep a few apps? I want to keep the camera app since it was desigend for the camera, and maybe a few other things.
has anyoe else flashed a new OS to their pro+ yet and if you have what is your experience with it so far?
Wipples said:
So i really want to go to stock Android. Is it possible to flash to stock android but keep a few apps? I want to keep the camera app since it was desigend for the camera, and maybe a few other things.
has anyoe else flashed a new OS to their pro+ yet and if you have what is your experience with it so far?
Click to expand...
Click to collapse
There is no chance for that since the bootloader isn't unlockable.
P6P said:
There is no chance for that since the bootloader isn't unlockable.
Click to expand...
Click to collapse
Neither if Downgraded to another Origin OS version where the bootloader can be unlocked? Or is that not a possiblity either?
Wipples said:
Neither if Downgraded to another Origin OS version where the bootloader can be unlocked? Or is that not a possiblity either?
Click to expand...
Click to collapse
Not possible.
P6P said:
Not possible.
Click to expand...
Click to collapse
Maybe not yet, but probaly will be or someone will find a way to do it.
Is there a post i have misses where i can see which apps and files needed to be transfered to have accesess to specific features. Or is that a figure it out yourself thing?
A start would be to install the factory service software 1.5, but the common version doesn't work. Need Chinese phone number to register on a download website for the adapted one - may give some more insights but without exploit no bootloader unlock.
P6P said:
There is no chance for that since the bootloader isn't unlockable.
Click to expand...
Click to collapse
It may be because i haven't ventured further. But as far as i can see on my phone, the bootloader should be unlockable. Or at least i have allowed OEM unlocking which states "Allow bootloader to be unlocked".
So is it when i get further into the process it still won't allow the bootloader to eb unlocked?
Wipples said:
It may be because i haven't ventured further. But as far as i can see on my phone, the bootloader should be unlockable. Or at least i have allowed OEM unlocking which states "Allow bootloader to be unlocked".
So is it when i get further into the process it still won't allow the bootloader to eb unlocked?
Click to expand...
Click to collapse
You can tick the "allow unlock" button but that's all. None of the unlock commands work. I think @jericho246 tested that.

Categories

Resources