Need help to lock bootloader - Moto E Q&A, Help & Troubleshooting

guys i want to lock bootloader but i dont want to flash all the partitions , when i directly type "fastboot oem lock" it says run oem lock begin... how to lock without flashing the firmwares? and does OTA have something to do with a unlocked bootloader? i have installed stock recovery and stock rom(flashable zip )
thanks in advance

You don't have to relock it. You just need to be in stock ROM, recovery and unrooted in order to get OTA updates

lokesh.3440 said:
You don't have to relock it. You just need to be in stock ROM, recovery and unrooted in order to get OTA updates
Click to expand...
Click to collapse
Yeah I have done it,actually I am selling this phone so want everything to be as it was out of box,so now only locking the bootloader is left over
Sent from my Nexus 4 using XDA Free mobile app

'oem lock' doesn't work with E. You need to reflash the stock ROM.
Specially as you're selling it. Thats what is recommended.

Related

no way of keeping the phone rooted and locking the bootloader?

After flashing this file 'Xperia_U_ST25i_Relock_Bootloader.ftf' to my Xperia_U, the phone won't boot again
I had to flash again with 'ST25i_6.0.B.3.184_O2-CZ.ftf' in order to get the phone working gain
This also made me lose Root, so I had to reflash again with 'Xperia_U_ST25i-ROOT-ROM.img'
(and unlocking again with fastboot.exe -i 0x0fce oem unlock 0xkey)
so, it seems there's no way of keeping the phone rooted and locking the bootloader
(I want to lock the bootloader locked in order to get updated to 184 though PC-Companion)
ssuper2k said:
After flashing this file 'Xperia_U_ST25i_Relock_Bootloader.ftf' to my Xperia_U, the phone won't boot again
I had to flash again with 'ST25i_6.0.B.3.184_O2-CZ.ftf' in order to get the phone working gain
This also made me lose Root, so I had to reflash again with 'Xperia_U_ST25i-ROOT-ROM.img'
(and unlocking again with fastboot.exe -i 0x0fce oem unlock 0xkey)
so, it seems there's no way of keeping the phone rooted and locking the bootloader
(I want to lock the bootloader locked in order to get updated to 184 though PC-Companion)
Click to expand...
Click to collapse
I own an Xperia S, I flashed a custom kernel to root then flashed back the stock kernel and locked the bootloader again, the phone works perfect and kept the root!
ssuper2k said:
After flashing this file 'Xperia_U_ST25i_Relock_Bootloader.ftf' to my Xperia_U, the phone won't boot again
I had to flash again with 'ST25i_6.0.B.3.184_O2-CZ.ftf' in order to get the phone working gain
This also made me lose Root, so I had to reflash again with 'Xperia_U_ST25i-ROOT-ROM.img'
(and unlocking again with fastboot.exe -i 0x0fce oem unlock 0xkey)
so, it seems there's no way of keeping the phone rooted and locking the bootloader
(I want to lock the bootloader locked in order to get updated to 184 though PC-Companion)
Click to expand...
Click to collapse
Too keep your phone rooted you need to keep its bootloader unlocked and if you try locking it again you might brick it!!
So if you want to keep your root and bootloader locked then here's what you should do
1)Unlock bootloader
2)Flash a custom kernel which roots your phone
3)Flash with stock rom
Note : if still not rooted then untick the option in flastool to skip flashing kernel when flashing with stock rom!!
Pls correct me if m wrong!!
Sent from my Sony Xperia Sola White using xda app
reptile64 said:
I own an Xperia S, I flashed a custom kernel to root then flashed back the stock kernel and locked the bootloader again, the phone works perfect and kept the root!
Click to expand...
Click to collapse
Thanks, so now I need confirmation from an Xperia_U owner..
Anyone flashed Xperia_U_ST25i_Relock_Bootloader.ftf' and the phone kept working?
.
What I want to keep is:
---------------------------------
Kernel: Xperia_SSpeed_kernel_v6.1.zip
ROM: KA03_Xperia_SSpeed.zip
Then, lock bootloader again, withOUT losing ROOT
and then update to 1.84 (via Companion)
ssuper2k said:
Thanks, so now I need confirmation from an Xperia_U owner..
Anyone flashed Xperia_U_ST25i_Relock_Bootloader.ftf' and the phone kept working?
.
What I want to keep is:
---------------------------------
Kernel: Xperia_SSpeed_kernel_v6.1.zip
ROM: KA03_Xperia_SSpeed.zip
Then, lock bootloader again, withOUT losing ROOT
and then update to 1.84 (via Companion)
Click to expand...
Click to collapse
You cannot update via pcc even with Locked BL if you have custom rom or kernel.
Sent from my LT26i using Tapatalk 2
gm007 said:
You cannot update via pcc even with Locked BL if you have custom rom or kernel.
Sent from my LT26i using Tapatalk 2
Click to expand...
Click to collapse
So what the best way/order to update the phone to 1.84 and also get Root?
Thanks

re-lock bootloader without root access

Hi
I managed to get back to stock rom (restored from a backup), flashed the stock recovery and now i'm unable to relock the bootloader (no more root/superuser)
is there a way to lock it back without htcdev?
fostazz said:
Hi
I managed to get back to stock rom (restored from a backup), flashed the stock recovery and now i'm unable to relock the bootloader (no more root/superuser)
is there a way to lock it back without htcdev?
Click to expand...
Click to collapse
run fastboot comand:
fastboot oem lock
it will give your bootloader status to "re-lock"
I got relocked status, I want locked status if possible
abusalza said:
run fastboot comand:
fastboot oem lock
it will give your bootloader status to "re-lock"
Click to expand...
Click to collapse
fostazz said:
I got relocked status, I want locked status if possible
Click to expand...
Click to collapse
unlock again using htc dev, then lock using scotty123's method posted here, http://forum.xda-developers.com/showthread.php?t=2540004
on scottys page, look at page 7, at bottom, download link for his lock/unlock tool.

[Q] Rooting Xperia JB - Will this work?

Hi,
As we all know unless we downgrade and stuff, or install custom recoveries (which require some hackeries) we can't root the latest firmware.
I came across this method: http://whiteboard.ping.se/Android/Rooting
It uses the original boot.img and edits it then using fastboot it flashes it with the su binaries and security turned off.
Would this work on our Xperia?
Thanks
Probably, but you'd need to unlock your bootloader...
That kind of defeats the purpose. I'm trying to not do that
I want to be able to install OTA updates and support.
You can alway relock back once rooted. By that, you can OTA update safely and keep rooting
Sent from my little big badass boy!
worf_1977 said:
You can alway relock back once rooted. By that, you can OTA update safely and keep rooting
Sent from my little big badass boy!
Click to expand...
Click to collapse
Ok so if I follow that guide to get root, unlock bootloader, flash the new boot, and relock bootloader, I will be able to install OTA?
Won't that brick my device since I have a modified boot.img?
In order to relock the bootloader you must firdt change back to a stock kernel, otherwise you will brick the phone, wich luckily is recoverable...
Even if yo relock on custom kernel, you will also can enter in fastboot mode to flash stock one
Sent from my little big badass boy!

[ADVICE] Unlock before N update!

Cleaning this up and clarifying as my original post was vague:
It is recommended that you unlock your bootloader before the 7.0 Nougat update. Although it will still be possible the process will be more difficult and risky afterwards.as you will need to use one of the edl mode tools (axon7backup, axom7tool).
The easiest way is to download this kit f you have the A2017U: (I can't speak to other models) (This kit and instructions are thanks to @jcadduono)
https://build.nethunter.com/misc/axon7/AXON7-A2017U-BL-UNLOCK-KIT.zip
https://build.nethunter.com/misc/axon7/INSTRUCTIONS.txt
The basic steps, which the above zip with take you through in detail are:
1. Flash Official B20 , enable OEM UNLOCKING after flashing.
2. Flash BLFastboot zip provided by ZTE when they had unlock method.
3. Enable OEM UNLOCKING in Developers Option
4. Boot to Bootloader
5. type : fastboot oem unlock
6. Done
Note: If you do not have the OEM UNLOCKING flag set in developer options you will get a soft brick. Also bear in mid this will wipe data.
All that being said I've heard Nougat to is going to be great from those in the know. In their words ”Well worth the wait! Hang in there!” from a HIGHLY credible source.
Why would anyone relock before update? I do agree anyone who wants to unlock should do it now.
lokissmile said:
For anyone looking to bootloader unlock, I've heard that the methods might change when the N update rolls out. It's a major update and although I personally don't have N and can't get a direct answer because those who know for sure are under NDA. I can tell you that the advice given to me is to not re-lock. So if you are thinking of unlocking your bootloader I'd do it soon while the methods are stable. Google confirmed that daydream is certified in an upcoming update so the daydream version of the stock ROM has been through googles QA. Might as well get ready now, we will probably have another surge of custom ROMS shortly after. I'm just sharing what I think is a best practice.
Click to expand...
Click to collapse
OK, so just to make it quick, for everyone, unlock your bootloader sooner than later. It is safe since you can revert it to a locked state at any time later.
lafester said:
Why would anyone relock before update? I do agree anyone who wants to unlock should do it now.
Click to expand...
Click to collapse
I do it on occasion to test things I'm working on. Better to warn people who might do it to get PoGo or SafetyNet working I figured.
lokissmile said:
I do it on occasion to test things I'm working on. Better to warn people who might do it to get PoGo or SafetyNet working I figured.
Click to expand...
Click to collapse
No need to bootloader lock an Axon 7 to get SafetyNet (Android Pay, PoGo, etc). Just do it the XDA way. But never relock!!!!
Could one of you guys explain whats so dangerous about relocking bootloader since u seem to know something I don't.
I have unlocked and relocked my bootloader several times by fastboot oem lock and restoring my stock fbop partition.
Have I done something wrong?
Regards,
mischa_martin
mischa_martin said:
Could one of you guys explain whats so dangerous about relocking bootloader since u seem to know something I don't.
I have unlocked and relocked my bootloader several times by fastboot oem lock and restoring my stock fbop partition.
Have I done something wrong? [emoji14]
Regards,
mischa_martin
Click to expand...
Click to collapse
Read the OP.
I think what the op is trying to say is that by unlocking the bootloader you won't get ota updates. You would need to wait until a twrp flashable update is out or a rom running Android 7.
stevecaboose said:
I think what the op is trying to say is that by unlocking the bootloader you won't get ota updates. You would need to wait until a twrp flashable update is out or a rom running Android 7.
Click to expand...
Click to collapse
That's how it's been since modifying the bootloader was a thing. Unlocked bootloader = no OTA.
tzbigworm said:
That's how it's been since modifying the bootloader was a thing. Unlocked bootloader = no OTA.
Click to expand...
Click to collapse
@stevecaboose
Unlocking Bootloader = Yes to OTA's.
Modding System and Boot = NO OTA's
hope that clear things up.
Close enough lol!
To be clear, it would be best to unlock before N is pushed out. I have it on good authority that unlocking your bootloader after you update to N will be more difficult and risky. Relocking would put you in the same situation. It's trivial to return to stock system+boot with an unlocked bootloader and TWRP and then the OTA will come through just fine. Or you can just wait for the TWRP flashable N stock ROM.
So to be clear, since I'm not 100% sure what affects the "system" and "boot" areas: I can unlock my BL using only guide 2 in this link ( https://forum.xda-developers.com/axon-7/how-to/guide-install-twrp-unlock-bl-flash-t3517379 ) and still get OTAs? If I install TWRP does that make me OTA-ineligible?
ScaryBugThing said:
So to be clear, since I'm not 100% sure what affects the "system" and "boot" areas: I can unlock my BL using only guide 2 in this link ( https://forum.xda-developers.com/axon-7/how-to/guide-install-twrp-unlock-bl-flash-t3517379 ) and still get OTAs? If I install TWRP does that make me OTA-ineligible?
Click to expand...
Click to collapse
TWRP/BL unlock doesn't affect OTA, ROOT does.
raystef66 said:
TWRP/BL unlock doesn't affect OTA, ROOT does.
Click to expand...
Click to collapse
You're totally wrong there,
TWRP will affect OTA's if the OTA need to check/patch recovery, BUT been Bootloader Unlock will NOT effect OTA.
To manage a clean/successful OTA's installation, you need to be FULL STOCK. (System, boot, Recovery, aboot if the OTA need to patched).
I think the OP was trying to say that it's possible current tools will not work to unlock the bootloader after the 7.x ota is installed.
DrakenFX said:
You're totally wrong there,
TWRP will affect OTA's if the OTA need to check/patch recovery, BUT been Bootloader Unlock will NOT effect OTA.
To manage a clean/successful OTA's installation, you need to be FULL STOCK. (System, boot, Recovery, aboot if the OTA need to patched).
Click to expand...
Click to collapse
I'm not fully agreed with that. You can install OTA's when you receive it, download it, install it when first booted into twrp cache. Only if you're not rooted. When you're rooted first unroot and in principle this should work.
There are several cases on internet about that. Even I did it with an unrooted but TWRP-ed Zopo C2. Received an OTA and installed it.
Im always glad to learn but IMO there are some possibilities to do the ota after all. But I am willing to accept it's a general fact that twrp could affect the normal OTA.
Edit : let's wait and see when B10 is rolling out and if I get a notification about that and if I can install it as a normal OTA(not with SD) with TWRP. Keep you updated:cyclops:
Noob here, forgive me ...
So what is the best way to only unlock bootloader without flash twrp?
A2017U, B29.
Thanks
eladmitz said:
Noob here, forgive me ...
So what is the best way to only unlock bootloader without flash twrp?
A2017U, B29.
Thanks
Click to expand...
Click to collapse
I`m on the same boat. What should be the safer procedure to unlock BL an still get the N OTA?
eladmitz said:
Noob here, forgive me ...
So what is the best way to only unlock bootloader without flash twrp?
A2017U, B29.
Thanks
Click to expand...
Click to collapse
felipe.vella said:
I`m on the same boat. What should be the safer procedure to unlock BL an still get the N OTA?
Click to expand...
Click to collapse
1- Download Official B20 from ZTE SITE (look Software Updates for the 6gb variant)
2- look in the forum for the B20fastboot zip file
3- Move both files to your SDCARD.
4- Enable OEM Unlocking under Developers Option
5- boot to stock recovery.
6- Install B20 official update via SDCARD (this will wipe Data)
7- boot and re-enable OEM Unlocking
8- boot to recovery and install B20fastboot zip
9- boot to Bootloader and Unlock bootloader using this command.
Code:
fastboot oem unlock
If I remember correctly will reboot and factory reset the device , you'll need to re-enable OEM UNLOCKING and boot to Bootloader to flash TWRP 3.0.3 USING fastboot commands

[Q]How to lock bootloader on Xperia 10 plus ?

Hi there . Recently i just rooted my phone and unlocked the bootloader but i want to roll it back to stock status.
I read a lot and i can not understand ,
Is it possible to lock the bootloader on that phone or not ? If yes ,how ?
EDIT : I tried with fastboot commands oem relock but it didn't work .I removed the root but still need to lock the bootlodaer
Hey, you can flash official firmware into your device and get back to the stock firmware without root. But you can't re-lock the bootloader. I have tried so many command in fastboot and any of em doesn't work.
XOBOT.V2 said:
Hey, you can flash official firmware into your device and get back to the stock firmware without root. But you can't re-lock the bootloader. I have tried so many command in fastboot and any of em doesn't work.
Click to expand...
Click to collapse
I was able to remove the root manually so no need to reflash stock frimware,but about bootloader still not successed to lock it even via flash tool BLU option. There should be warning that you can't lock it once its unlocked damn..
diw4k said:
I was able to remove the root manually so no need to reflash stock frimware,but about bootloader still not successed to lock it even via flash tool BLU option. There should be warning that you can't lock it once its unlocked damn..
Click to expand...
Click to collapse
Yes indeed. I've tried that too. apparently you can't relock the bootloader in newer devices. Only thing to do right now is, hope that Sony will release some kind of commands to relock the bootloader. Unless there's no other way.

Categories

Resources