huawei P9 bootloader relock fail - Huawei P9 Questions & Answers

Hi, I would like to relock the bootloader but I am getting the following message:
FAILED (remote: stat not match)
I use command line and the following command:
fastboot oem relock *******(unlock code)
Any idea?
Thanks

Goldak said:
Hi, I would like to relock the bootloader but I am getting the following message:
FAILED (remote: stat not match)
I use command line and the following command:
fastboot oem relock *******(unlock code)
Any idea?
Thanks
Click to expand...
Click to collapse
Do you see in the Fastboot that Phone (Bootloader) and FRP are unlocked.
If Phone unlocked but FRP locked, you have to enable OEM Unlocking
Do not attempt unlocking Bootloader with TWRP or custom ROM - it triggers Factory resetting and it can brick the phone
Btw, for OTA updates it doesn't matter if Bootloader is locked or not

I am on stock Nougat. I unlocked the bootloader some time ago, then some OTA update came. Right now, what I see in Fastboot is "Phone locked, FRP unlocked"... So it seems that the bootloader was actually locked by the OTA. However the Safetynet test fails and I cannot use NFC payments now. I suppose its the unlocked FRP that causes this. How could I fix it?
Thanks

Goldak said:
I am on stock Nougat. I unlocked the bootloader some time ago, then some OTA update came. Right now, what I see in Fastboot is "Phone locked, FRP unlocked"... So it seems that the bootloader was actually locked by the OTA. However the Safetynet test fails and I cannot use NFC payments now. I suppose its the unlocked FRP that causes this. How could I fix it?
Thanks
Click to expand...
Click to collapse
Some OTA updates do lock the Bootloader.
FRP should not affect SafetyNet.
Btw, which stock ROM you have and do you have Magisk/root (why are you concerned about SafetyNet)?
I'm not using NFC (pay)... but due to certain Google API changes some apps fail to verify SafetyNet

I am on stock EVA-L09C150B388, no root or other modification. So I think the only reason for NFC payment not working/ Safetynet failure might be the unlocked FRP...

Goldak said:
I am on stock EVA-L09C150B388, no root or other modification. So I think the only reason for NFC payment not working/ Safetynet failure might be the unlocked FRP...
Click to expand...
Click to collapse
You can easily uncheck OEM Unlocking and reboot

zgfg said:
You can easily uncheck OEM Unlocking and reboot
Click to expand...
Click to collapse
Unfortunatelly, that did not help...?

Goldak said:
Unfortunatelly, that did not help...
Click to expand...
Click to collapse
Test if your SafetyNet is really (not) ok with the apps attached to
https://forum.xda-developers.com/showpost.php?p=77339761&postcount=566

zgfg said:
Test if your SafetyNet is really (not) ok with the apps attached to
https://forum.xda-developers.com/showpost.php?p=77339761&postcount=566
Click to expand...
Click to collapse
Those two apps show no fails... However SafetyNet Test app from Google play says 'Failed'

Goldak said:
Those two apps show no fails... However SafetyNet Test app from Google play says 'Failed'
Click to expand...
Click to collapse
There is a link in that post - there was some change in SafetyNet/API or key causing not updated apps to fail

The command is "fastboot oem lock", not "relock"

zgfg said:
There is a link in that post - there was some change in SafetyNet/API or key causing not updated apps to fail
Click to expand...
Click to collapse
Thats probably the problem, thanks!

Related

[Q] Strange thing happened ! (Dev- XT1068 Indian)

I relocked the bootloader but when i did , I got an error saying 'too many strings' or something
However, I restarted phone in bootloader and saw the status code (It was 2-bootloader status:Locked)
However i gave a 'oem lock' command again.
I get status 2-bootloader status:Locked, after relocking. (well thats ok) but i still see the bootloader unlocked warning.
I could Still flash the warning remover 'logo.bin' file
Now Im confused about whats happening! If my bootloader was locked then how could I get that warning? Rather , How could I ever flash a logo.bin file on my device?
ANy Help AppReciated!
tbiwalkar said:
I relocked the bootloader but when i did , I got an error saying 'too many strings' or something
However, I restarted phone in bootloader and saw the status code (It was 2-bootloader status:Locked)
However i gave a 'oem lock' command again.
I get status 2-bootloader status:Locked, after relocking. (well thats ok) but i still see the bootloader unlocked warning.
I could Still flash the warning remover 'logo.bin' file
Now Im confused about whats happening! If my bootloader was locked then how could I get that warning? Rather , How could I ever flash a logo.bin file on my device?
ANy Help AppReciated!
Click to expand...
Click to collapse
It's no problem to unlock the device again. Just use the same code you received via email.
The bootloader-warning stays because even a relock does not restore warranty.
There's absolutely no reason to relock the device. As long as you are fully unrooted you will be able to install OTA even with unlocked bootloader.
doppelhelix said:
It's no problem to unlock the device again. Just use the same code you received via email.
The bootloader-warning stays because even a relock does not restore warranty.
There's absolutely no reason to relock the device. As long as you are fully unrooted you will be able to install OTA even with unlocked bootloader.
Click to expand...
Click to collapse
I understand but then how am i able to flash logo.bin?
tbiwalkar said:
I understand but then how am i able to flash logo.bin?
Click to expand...
Click to collapse
You have to be unlocked for this. And just keep it unlocked. As I said, there's no point in relocking.
doppelhelix said:
You have to be unlocked for this. And just keep it unlocked. As I said, there's no point in relocking.
Click to expand...
Click to collapse
I am locked and still i am able to flash various logo.bin files using mfastboot
tbiwalkar said:
I am locked and still i am able to flash various logo.bin files using mfastboot
Click to expand...
Click to collapse
Interesting. Thanks for the input. learned somthing new..[emoji4]

Relock bootloader

Hello,
Some way how to relock bootloader please?
Thank you so much.
In Fastboot the command:
fastboot oem relock UNLOCKCODE
Replace UNLOCKCODE with your unlock code you got from Huawei.
Does this result in a low-level-reset similar to the unlock-procedure?
I'm really not sure but I mean my P10 didn't format when I did the relock, but I really don't know anymore.
If I try this method to relock it again, will I be able to unlock it again?
I want to tray this, because my OEM unlock option is now greyed out and I can´t flash anything, not even the custom recovery.
Does relock wipe the data and factory resets the phone? I just unbricked mine today from soft-bricked and never want to experience that again, back on stock and want to relock the bootloader just to get the android pay and bank apps working but would like to avoid wipe if possible
Yes, relocking the bootloader will end up with a low-level factory reset (same as unlocking).
smashedup said:
Yes, relocking the bootloader will end up with a low-level factory reset (same as unlocking).
Click to expand...
Click to collapse
HWOTA update method final locked your bootloader and status "locked" not relocked, and no low level format, your data pic, video, download, music no delete!
Ok, good to know.
I just tried the oem relock.
Hey all, i did the "fastboot oem relock" followed by my unlock code i got from the Huawei website but after i hit enter it gave me:
FAILED (remote: root type is risk)
finished. total time: 0.016s
could anyone tell me why this has happened?
I have a vtr-l09. Thanks
glehel said:
HWOTA update method final locked your bootloader and status "locked" not relocked, and no low level format, your data pic, video, download, music no delete!
Click to expand...
Click to collapse
Can I use HWOTA method to locked back my bootloader? Also my device is rooted. Is it possible?

How to Re-Lock Bootloader on Moto E4+ XT1770???

MOTO All-In-one Tool
https://forum.xda-developers.com/moto-g-2014/general/motorola-moto-one-tool-v1-0-t3397159
Try the steps listed here: https://www.theandroidsoul.com/relock-bootloader-fastboot-android/
NOTE: You may lose all data. It also may be disabled once you have unlocked. You may not be able to get your warranty back.
Error
I have used your fastboot adb trick for relock my device but unfortunately it shows
Lock failed - Err:0x fffffffffe
Er.chetanssoni said:
I have used your fastboot adb trick for relock my device but unfortunately it shows
Lock failed - Err:0x fffffffffe
Click to expand...
Click to collapse
That is unfortunately about what I expected. When you unlock your bootloader, you void your warranty. That is why I wrote "It also may be disabled once you have unlocked. You may not be able to get your warranty back."
I'm ussing XT1771 and still can't relock the boot loader i tried a lot of things gamn xD

Unlocking bootloader: definitive bye-bye to automatic updates?

With the Moto Z, after I returned the phone to stock (flashed stock firmware and locked the bootloader), I'd be able to flash stock firmware with the flashing locked.
Not so with the Motorola One Zoom. In other words, flashing stock and re-locking didn't return the phone to its pristine state. Even when flashing stock firmware over stock firmware, I have to unlock the bootloader.
Differences I observed: on the bootloader screen, when re-locked the Z would show "oem_locked" again. On the One Zoom, it shows "flashing_locked" instead. I'm pretty sure it showed "oem_locked" before unlocking.
WIth the Z, every time I wanted to unlock the bootloader, I had to issue "fastboot oem unlock" followed by the unlock code. The code isn't necessary with the re-locked One Zoom.
In other words, maybe it was a one-way trip. It seems that the phone won't return to its original state, it looks it's modified for good. And I'm afraid this means bye-bye to automatic updates.
Am I missing something here?
My bootloader is also unlocked and I dont have any problems with receiving and installing OTAs I also have Magisk and EdExposed installed - no problems at all.
rafikowy said:
My bootloader is also unlocked and I dont have any problems with receiving and installing OTAs I also have Magisk and EdExposed installed - no problems at all.
Click to expand...
Click to collapse
Phew! I'm glad I'll be able to install OTAs. Have you tried flashing it manually or via RSD Lite? Here it won't flash.
Whammamoosha said:
Phew! I'm glad I'll be able to install OTAs. Have you tried flashing it manually or via RSD Lite? Here it won't flash.
Click to expand...
Click to collapse
Hey, yes, flashing manually. I will provide you flashing scripts tomorrow.
rafikowy said:
Hey, yes, flashing manually. I will provide you flashing scripts tomorrow.
Click to expand...
Click to collapse
Don't bother, I have mine. Thanks.
I would like the flash script if someone would share it
Help with unlocking bootloader
I tried to unlock the bootloader and i am now in a menu with an android with his chest open. In the cmd on my pc i try to type fastboot flashing unlock but it just gives me an error.
I dont know if this is the correct place to post this but i have no idea where to post it and i dont want my phone get bricked.
Bodeman12345 said:
I tried to unlock the bootloader and i am now in a menu with an android with his chest open. In the cmd on my pc i try to type fastboot flashing unlock but it just gives me an error.
I dont know if this is the correct place to post this but i have no idea where to post it and i dont want my phone get bricked.
Click to expand...
Click to collapse
In the settings for developers you gave permission for Factory Unlock?
ilia3367 said:
In the settings for developers you gave permission for Factory Unlock?
Click to expand...
Click to collapse
I enabled the setting to unlock oem bootloader is that the same?
Bodeman12345 said:
I enabled the setting to unlock oem bootloader is that the same?
Click to expand...
Click to collapse
yes.
What instruction did you use to unlock the bootloader?
What region is your device manufactured for?
Does your PC see your device connected to the fastboot mod?
What does this command give you:
Code:
fastboot devices
If the device is detected, enter the command:
Code:
fastboot getvar all
And copy the result here.
ilia3367 said:
yes.
Click to expand...
Click to collapse
Yes I did that
Bodeman12345 said:
Yes I did that
Click to expand...
Click to collapse
Answer the other questions, please!
diculpe por que mi pc no ve el fastboot de mi one zoom?
ilia3367 said:
yes.
What instruction did you use to unlock the bootloader?
What region is your device manufactured for?
Does your PC see your device connected to the fastboot mod?
What does this command give you:
If the device is detected, enter the command:
And copy the result here.
Click to expand...
Click to collapse
I used this youtube video
I dont know where it is manifactured but I live in the netherlands.
I dont get the 3th question
I will do the commands in a couple minutes
Hey all,
I have the Moto One Zoom running on Android 9.
Also, It's Rooted with Magisk and have Riru EdXposed installed, can I install my OTA updates without bootloop or do I have to Uninstall Magisk, relock bootloader and factory reset/flash stock firmware to get latest OTA updates?
Any feedback is appreciated.
Thanks

Question Relock Zenfone8

Hi, i need to relock my Zenfone 8. Right now it's running newest Beta, but everything is fully operational. Do you have any idea, how to relock?
fastboot oem lock is not working
fastboot oem asus-csc_lk also nothing
Both are giving:
FAILED (remote: Command not supported in default implementation)
Thanks.
Fatso said:
Hi, i need to relock my Zenfone 8. Right now it's running newest Beta, but everything is fully operational. Do you have any idea, how to relock?
fastboot oem lock is not working
fastboot oem asus-csc_lk also nothing
Both are giving:
FAILED (remote: Command not supported in default implementation)
Thanks.
Click to expand...
Click to collapse
As far as I know, once unlocked, it is not possible no relock again.
Asus says it's can't be relocked. At least it was reply to me from their support.
I relocked mine but you cannot restore OTAs since your IMEI is permanently blacklisted with Asus.
thatguy222 said:
I relocked mine but you cannot restore OTAs since your IMEI is permanently blacklisted with Asus.
Click to expand...
Click to collapse
How did you relock it?
SoulMachina said:
How did you relock it?
Click to expand...
Click to collapse
I don't recall but definitely not either of the commands used in th first post.
thatguy222 said:
I don't recall but definitely not either of the commands used in th first post.
Click to expand...
Click to collapse
That would´ve been useful
thatguy222 said:
I relocked mine but you cannot restore OTAs since your IMEI is permanently blacklisted with Asus.
Click to expand...
Click to collapse
I'm bot after OTA, i need this to work with VMware workspace. Also google pay is crucial for me.
SoulMachina said:
That would´ve been useful
Click to expand...
Click to collapse
Found it (just had to relock to return due to flashing ramdump issue):
fastboot oem asus-csc_lk
thatguy222 said:
Found it (just had to relock to return due to flashing ramdump issue):
fastboot oem asus-csc_lk
Click to expand...
Click to collapse
I don't think that it'll help you to fool ASUS service center. imei is blacklisted for OTA updates and i'm pretty sure that S/N too.
See no reason for that...
thatguy222 said:
Found it (just had to relock to return due to flashing ramdump issue):
fastboot oem asus-csc_lk
Click to expand...
Click to collapse
Hi again. One guy tried this and locked his BL (with followed factory reset).
He has Android 12 (beta 2 I think) and experienced some problems with phone auto-reboot when interent/sim card is active. If SIM is removed then he can use his ZF8.
Do you have same behavior or everything is ok for you?
dron39 said:
Hi again. One guy tried this and locked his BL (with followed factory reset).
He has Android 12 (beta 2 I think) and experienced some problems with phone auto-reboot when interent/sim card is active. If SIM is removed then he can use his ZF8.
Do you have same behavior or everything is ok for you?
Click to expand...
Click to collapse
After re-locking I also went back to Android 12 beta 2. I have not had any SIM or reboot issues AND my ramdump error has not re-appeared.
thatguy222 said:
After re-locking I also went back to Android 12 beta 2. I have not had any SIM or reboot issues AND my ramdump error has not re-appeared.
Click to expand...
Click to collapse
That person replied that those reboots were fixed by re-enabling some previously disabled apps through ADB command. It looks like too many apps were disabled.
It's interesting, will you have any OTA-updates in future or your S/N / IMEI still in blacklist for OTA's ?
dron39 said:
That person replied that those reboots were fixed by re-enabling some previously disabled apps through ADB command. It looks like too many apps were disabled.
It's interesting, will you have any OTA-updates in future or your S/N / IMEI still in blacklist for OTA's ?
Click to expand...
Click to collapse
No OTA; S/N is blacklisted :-( It's fine. You just download the update to storage and the phone will see it and do the update.

Categories

Resources