Need help with OEM unlocking and relocking the bootloader - Android Q&A, Help & Troubleshooting

I made a huge mistake and I have no idea how to fix it. Google turned up nothing, so I made this thread.
Previously, I had rooted my Honor 6X. After a week or so I wanted to unroot, so I did. Unfortunately, I messed up. I do not know when, but I did.
I want to flash the stock images to their partitions. The problem is that fastboot can't flash any partitions because OEM unlocking is not allowed. As I understand, the bootloader needs to be relocked to allow OEM unlocking. There the issue begins: to allow OEM unlocking, I need to relock the bootloader and to relock the bootloader, I need to allow OEM unlocking. Until I'm able to fix this, I can't flash the stock images.
For reference, when I'm in fastboot&rescue mode, under the Android it says "PHONE Unlocked" in red text and "FRP Lock" in green text.
Thanks in advance for any advice.

Related

Is it possible to relock the bootloader ?

Well, it's all in the title : can I relock the bootloader and make the "unlock" icon dissapear from the boot screen ?
Thanks !
Yes, it's possible, following the unlock instructions, except "fastboot OEM lock" Instead of unlock.
Just be aware that this will cause the tablet to do a full format, so you will lose everything.

How do I re-unlock my bootloader?

Hi everyone.
I'm S-off, SuperCID, 4.16.401.9 firmware, and I re-locked my bootloader while troubleshooting an adb problem.
Is there a simple fastboot command that'll unlock my bootloader again?
I can flash recoveries via the Flashify app, but I can't do much via adb anymore.
Thanks!
How did you unlock it the first time? HTC Dev Im assuming,should still have the unlock token bin file...thats run from bootloader via fastbootusb command...This should be in Questions and Answer forum...??
BBEgo said:
Hi everyone.
I'm S-off, SuperCID, 4.16.401.9 firmware, and I re-locked my bootloader while troubleshooting an adb problem.
Is there a simple fastboot command that'll unlock my bootloader again?
I can flash recoveries via the Flashify app, but I can't do much via adb anymore.
Thanks!
Click to expand...
Click to collapse
Wonders_Never_Cease said:
How did you unlock it the first time? HTC Dev Im assuming,should still have the unlock token bin file...thats run from bootloader via fastbootusb command...This should be in Questions and Answer forum...
Click to expand...
Click to collapse
That's weird.... I thought I posted this in the Q&A forum. I was just in there looking for it and I thought it'd gotten deleted or something. Oh well.
Mods, please feel free to correct my goof.
I didn't use HTCDev to unlock. I just did Sunshine and it handled everything. S-off, unlock, and root - Talk about painless! After that I installed a custom recovery (Philz) and I was off to the races.
So I decided to SuperCID my phone so I can install whatever I want. No problem.
Then I tried to install 5.0.1 firmware (4.16.1540.8) so I could run SkyDragon, but the firmware posted on page 1 in the thread would not install- 4.16.1540.8
Kept giving me "FAILED (REMOTE:24 parsing android-info fail)"
I was able to install 4.16.401.9 with no major headaches, once I found a sensible upgrade path. That one is working fine, but I don't understand why 4.16.1540.8 would not install.
After googling the error, I found a post from Scotty a while back that said the phone wanted to see a stock recovery, locked. So I thought I'd throw the old recovery back on and do the 'fastboot oem lock' command . I didn't think it would impact the phone's operation since it is S-off. Well, the command worked, but I still wasn't able to flash the dang firmware I wanted to my phone.
So now I'm S-off, locked bootloader, PhilZ recovery (put it back on with Flashify), SuperCID, on Lollipop, and I guess everything is ok. But I still don't understand why the phone wouldn't take the firmware.
Any ideas? Thanks in advance.
If you ran sunshine on it,you can run it again i believe on that same device. It should unlock it again,if not then can try htcdev as it also uses fastboot to unlock as long as you can get adb to show needed code.
BBEgo said:
After googling the error, I found a post from Scotty a while back that said the phone wanted to see a stock recovery, locked. So I thought I'd throw the old recovery back on and do the 'fastboot oem lock' command . I didn't think it would impact the phone's operation since it is S-off. Well, the command worked, but I still wasn't able to flash the dang firmware I wanted to my phone.
Click to expand...
Click to collapse
In the past (at least on my One X EVITA) my understanding was that s-off meant that all security was bypassed. Meaning that bootloader check was effectively bypassed.
This isn't the case for the M8. From what I can tell a LOCKED bootloader still prevents you from flashing anything that isn't signed (anything "unofficial") even if s-off.
However, having an UNLOCKED bootloader doesn't seem to affect anything while s-off. Meaning you can do things like RUU when UNLOCKED (which normally needs to be LOCKED or RELOCKED if s-on).
In short, I don't ever recommend relocking the bootloader if s-off on this device. There isn't any reason to, as far as I can tell. Meaning, having an UNLOCKED bootloader doesn't prevent you from doing anything. However, a RELOCKED bootloader does (even when s-on) prevent some things.

[Q] Tamper flag?

I need to return my Nexus 9 to stock to get a warranty return from HTC. I know exactly what to flash, and how to relock the bootloader, my question is does it leave any evidence of being relocked? Does the text at the top of Hboot say Locked, or relocked. How about the "this is a development device" red text? Will flashing the stock bootloader, recovery, system, etc fix that? Finally, will there be any evidence if they run "fastboot oem device-info " on hboot?
I just want to be 100% clear that there wont be any evidence of bootloader unlock when I'm done.
Thanks!
thekalby said:
I need to return my Nexus 9 to stock to get a warranty return from HTC. I know exactly what to flash, and how to relock the bootloader, my question is does it leave any evidence of being relocked? Does the text at the top of Hboot say Locked, or relocked. How about the "this is a development device" red text? Will flashing the stock bootloader, recovery, system, etc fix that? Finally, will there be any evidence if they run "fastboot oem device-info " on hboot?
I just want to be 100% clear that there wont be any evidence of bootloader unlock when I'm done.
Thanks!
Click to expand...
Click to collapse
Did you get any answer? I just bricked mine (still locked) by trying to wipe /cache. Thinking about unlocking it, but I want wo return it next month because the Back is dissolving

can't OEM unlock!

hey everyone. trying to OEM unlock the TWRP bootloader. When I type "fastboot OEM unlock" it will reboot into TWRP bootloader, and nothing unlocks. I know this because when I type "fastboot oem device-info" it says "unlocked FALSE".
I have OEM unlock and USB debugging enabled.
This is a phone with previously successfully installed CM13, and now I'm trying to revert to stock/unrooted. I can't seem to flash the recovery at all here because I can't get the damn thing to unlock.
Any ideas?
Did you lock the bootloader ? If your flashing Roms and custom recoverys imagine its already unlocked. Bootloader won't lock itself. If you want full stock just flash any OS2 firmware with twrp. You can worry about stock recovery after. I would just leave the bootloader unlocked won't hurt anything.
I had the same issue not long ago. Finally, i used the mega unbrick guide, but warning, all the data is lost
Ps: Sorry for bad english
hey, thanks for the response. I have been following the following tutorial (and others similar for installing CM13):
(great, website won't let me post it here... it's the unlockr oneplus x guide)
so yes, I originally flashed the stock recovery and replaced it with the one from the tutorial. There were a few hiccups during setup, which may have affected why I can't easily update nightly now, so now I'm trying to revert to the unrooted stock state so I can try from scratch, hopefully fixing the issues I'm seeing now. The problem is that I can't flash the recovery using the stock recovery... I can't even update the damn recovery because it's locked. Is this what is meant by a 'soft brick' ?

My bootloader is unlocked, how does one retrieve the code back?

When I went into fastboot mode it says its unlocked.
(I don't remember unlocking it, but I might have and just forgotten)
I still can't flash TWRP because it'll give me FAILED: remote command not allowed.
The internet says that it may be because of FRP still being locked??
So I have to restore it back to factory settings.
I'm afraid it'll relock my bootloader too.
Since the phone is already unlocked, is it possible to retrieve the unlock code?
PS. Phone is still in stock condition. I don't have root, nor a custom recovery.
Sorry if this is a stupid question but what do you mean by FRP?

Categories

Resources