How do I relock my bootloader. - Xperia Z2 Q&A, Help & Troubleshooting

I've been trying to get drm funcions back and it requires me to relock my bootloader. Even in windows 7 flashtool won't relock it, even if it say that ir does.
Which commands do i have to use to do it thru ADB?

Admin please lock this thread. Seems like somebody can't use search option.

Related

[Q] relocking the bootloader? (need the stock kernel for sk17i)

Hello,
I have a used sk17i and the previous owner unlocked the bootloader.
Not sure what method was used to unlock it.
The problem I'm having is I want to restore the phone via SEUS, but when it asks to turn phone on holding down, SEUS does not see the phone in flash mode (flashtool does).
I presume I need to relock the bootloader for SEUS to start working again?
What are the steps to figure out what method was used to unlock it, and to relock it? (if it's the patched thing, how do I reverse it, if I need to flash the stock sk17i kernel (currently it's not a stock one), where do I get the boot.img?)
relock bootloader
I'm still find a way to get oem bootloader back..
seriously, no-one saved the original one ?
If you just want to restore to original SE's OS you can use Wotan Server for that. Its totally free, you just need to register at WotanServer.com which is also free. The Wotan Server client will download the firmware once you select the CDA. You can have any custom kernel os rom before using Wotan . You dont need to relock bootloader for this . I did this on my Xperia Mini . But if you want to relock bootloader for other reasons then the available method is for Xperia arc. This method is only if the bootloader is unlocked in normal method. If the bootloader was unlocked using setool,omnius,patch,etc. then this relocking method wont work, Which is risky . It worked on my Xperia Mini but I dont suggest it because it was posted for Xperia arc. And even though you relock bootloader you wont get the DRM rights back which means you cannot use apps like trackId, appextra,etc. All the best.

Will we get DRM after re-lock bootloader?

I just read a thread from DooMLord about unlock and relock bootloader. I just keep wonder that after i relock bootloader via this guild line: http://forum.xda-developers.com/showthread.php?t=1527159, will i get DRM back to device (be able to update via SEUS or PC Companion?
No way to get DRM back (for now)

[Q][XU] BootLoader Unlock

Hey Guys, I heard it is possible to unlock the BL via the Flashtool itself instead of the tedious cmd line executions and stuff, Is it really possible to unlock the BL with the flashtool itself?
If yes, Can I you guys give me the instructions? I already have rooted, just need to unlock the BL.
Read this:
http://forum.xda-developers.com/showthread.php?p=28366277
kushalsv said:
Hey Guys, I heard it is possible to unlock the BL via the Flashtool itself instead of the tedious cmd line executions and stuff, Is it really possible to unlock the BL with the flashtool itself?
If yes, Can I you guys give me the instructions? I already have rooted, just need to unlock the BL.
Click to expand...
Click to collapse
I know you don't want to do the stuff but there is nothing difficult, you only need to execute 2 commands in the procedure. Its quite easy IMO

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.

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