I'm trying to go back to stock from CM12.
I tried flashtool to flash a stock image, and after I selected relock bootloader.
it says it's gone OK, but stock doesn't boot after.
If I go back to flashtool, and I select BLU, it gives me the option to relock the bootloader! I thought it was locked already.
what can i do?
thanks
xd4d3v said:
I'm trying to go back to stock from CM12.
I tried flashtool to flash a stock image, and after I selected relock bootloader.
it says it's gone OK, but stock doesn't boot after.
If I go back to flashtool, and I select BLU, it gives me the option to relock the bootloader! I thought it was locked already.
what can i do?
thanks
Click to expand...
Click to collapse
This only works if you unlocked the bootloader using the official method of unlocking the bootloader.
If you did not do that and perhaps unlocked bootloader using flashtool the only choice you have is to restore the TA partition.
That said if you made a backup of the TA partition before unlocking the bootloader.
edit: What is the status of the phone when you say "stock doesn't boot after."?
Does the kernel not boot? = vibrates three times when power button being pressed.
Does the phone boot but get stuck in a bootloop?
SÜPERUSER said:
This only works if you unlocked the bootloader using the official method of unlocking the bootloader.
If you did not do that and perhaps unlocked bootloader using flashtool the only choice you have is to restore the TA partition.
That said if you made a backup of the TA partition before unlocking the bootloader.
edit: What is the status of the phone when you say "stock doesn't boot after."?
Does the kernel not boot? = vibrates three times when power button being pressed.
Does the phone boot but get stuck in a bootloop?
Click to expand...
Click to collapse
Somehow, after a second flash of the stock ROM, and selecting to wipe data, the phone booted in stock, and works fine.
I still had an unlocked bootloader, and flashtool relock or fastboot oem lock wouldn't work.
I managed to find out what the problem with Backup TA tool was, I replaced the adb previously, but I didn't need to, once I went back to the standard adb, the TA restore worked, and with it, the bootloader locked!
this is now solved. thanks for the help.
one question now.
Is this now the same as stock stock? will i be receiving OTAs or should I do a repair with PCcompanion just to be sure?
rather not if not necessary as I already rooted
Related
hi all
i tested if SEUS restore the lock to our bootloader and rechecked my bootloader after restoring my phone to stock it seems that the bootloader stayed unlocked so unlocking bootloader is proved to be permanent unless you locked it again via flash tool and stock kernel for U20i
Minachvim
You are so wrong, neither seus pcc or flashtool relock the bootloader, you can reflash the firmware all the times you want and your bootloader stays UNlocked . The only tool that RElocks the bootloader again is S1TOOL.
ChavitoArg said:
You are so wrong, neither seus pcc or flashtool relock the bootloader, you can reflash the firmware all the times you want and your bootloader stays UNlocked . The only tool that RElocks the bootloader again is S1TOOL.
Click to expand...
Click to collapse
i didn't mean to lock the bootloader via flashtool it was only to say that the kernel itself didn't change when used SEUS to restore stock firmware and noticed as side seeing that the bootloader is still intact and unlocked
i already know that only the steps mentioned in Spyder post with s1tool and flashtool can relock the bootloader but i tried to test SEUS if it does anything in that case.
Accidentally, I found a way to relock bootloader (sk17i) after unlocking by testpoint.
This is what I did (I'm just a little more than a noob):
1) connected my phone in fastboot mode
2) used fastboot toolbox of flashtool and select 'flash system'. I tried flashing the 'system.yaffs.img' made from
a CWM nandroid backup of stock rom (any rom would probably work).
3) flashing completed but my phione will not switch on anymore(screen won't even light up, just a quick LED light).
However, it can still be connected in fastboot and flashmode. Flashing custom kernels didn't work though, it showed some error that root is needed.
I thought I had screwed my phone for good. Luckily I opened s1tool and saw my bootloader still locked (capital 'R' instead of 'r')
I unlocked again by testpoint method and was able to flash kernels again and restored my phone.
The point is, when the bootloader was locked again, one could have used SEUS and everything will be back to factory state with DRM :good:
(If anyone wants to risk, please try it out. I'm poor :crying: This is my only phone)
Testpoint method patches the bootloader(not unlocks), so that unsigned custom stuff can be installed.
If you want to relock, open S1Tool and use Restore option.
You don't have to relock in order to use PCC or SUS.
Sent from my Xperia Arc S using xda premium
I'm attempting to reset my Mate 10 Pro completely to stock and I successfully unrooted the phone but then when I attempt to relock the phone using "fastboot oem relock [unlock code]" it sends me to the relock screen, and I select relock. From there it goes through the factory reset and relocking process and when it's done, it says that it successfully relocked the device. Then it reboots me back to the stock recovery and that's where I'm now stuck. If I hit reboot it reboots back to recovery, and shutting down and using the power button to turn on does the same. Any ideas? I unlocked it AGAIN after this happened and it boots up normally. I tried to use the HWOTA8_Mate10 tool to relock it, and it resulted in the same way as the manual method. Any ideas?
achaussa said:
I'm attempting to reset my Mate 10 Pro completely to stock and I successfully unrooted the phone but then when I attempt to relock the phone using "fastboot oem relock [unlock code]" it sends me to the relock screen, and I select relock. From there it goes through the factory reset and relocking process and when it's done, it says that it successfully relocked the device. Then it reboots me back to the stock recovery and that's where I'm now stuck. If I hit reboot it reboots back to recovery, and shutting down and using the power button to turn on does the same. Any ideas? I unlocked it AGAIN after this happened and it boots up normally. I tried to use the HWOTA8_Mate10 tool to relock it, and it resulted in the same way as the manual method. Any ideas?
Click to expand...
Click to collapse
Do you have any modified partitions, twrp?
I would try the repack script in HWOTA8 and select Lock. This will update and then Lock phone rather than Relock.
If the repack script works that is.
You can take a look at the script and see what it does. I think it just adds the lock function to updater-script.
Else I guess you could just do a full update, then relock.
ante0 said:
Do you have any modified partitions, twrp?
I would try the repack script in HWOTA8 and select Lock. This will update and then Lock phone rather than Relock.
If the repack script works that is.
You can take a look at the script and see what it does. I think it just adds the lock function to updater-script.
Else I guess you could just do a full update, then relock.
Click to expand...
Click to collapse
I do have twrp, I tried to flash stock recovery but I'm getting "partition length get error". I'm trying to use the repack script but it says I need update_data_public.zip, which I can't seem to find. I do have update.zip though.
Edit: I should probably also add that the model I'm using is BLA-A09
Edit 2: Dug deeper and found how to get the remaining 2 zips. I tried to use the tool to update and lock but it gives me "Unable to patch file or file already patched! Code: 1"
achaussa said:
I do have twrp, I tried to flash stock recovery but I'm getting "partition length get error". I'm trying to use the repack script but it says I need update_data_public.zip, which I can't seem to find. I do have update.zip though.
Edit: I should probably also add that the model I'm using is BLA-A09
Edit 2: Dug deeper and found how to get the remaining 2 zips. I tried to use the tool to update and lock but it gives me "Unable to patch file or file already patched! Code: 1"
Click to expand...
Click to collapse
Well, are you flashing stock recovery to recovery_ramdisk?
E.g. fastboot flash recovery_ramdisk recovery_ramdisk.img
HWOTA is outdated, while it shouldn't need to patch it will fail because the things it tries to patch have changed.
But try just flashing back stock recovery and then relock.
ante0 said:
Well, are you flashing stock recovery to recovery_ramdisk?
E.g. fastboot flash recovery_ramdisk recovery_ramdisk.img
HWOTA is outdated, while it shouldn't need to patch it will fail because the things it tries to patch have changed.
But try just flashing back stock recovery and then relock.
Click to expand...
Click to collapse
I tried flashing that file to recovery_ramdisk and relocked and got the same issue again
I messed around some more and still unsuccessful. I can successfully flash the stock recovery (when I used adb reboot recovery it takes me to the stock recovery instead of TWRP) but I'm still unable to get out of the recovery screen when I relock the phone. I tried to use the tool (even thought you said it was outdated I gave it a shot) and use "replace_recovery" but that still didn't work. Also I should note that on my fastboot screen it says my FRP is unlocked, not sure if that has any effect though.
achaussa said:
I messed around some more and still unsuccessful. I can successfully flash the stock recovery (when I used adb reboot recovery it takes me to the stock recovery instead of TWRP) but I'm still unable to get out of the recovery screen when I relock the phone. I tried to use the tool (even thought you said it was outdated I gave it a shot) and use "replace_recovery" but that still didn't work. Also I should note that on my fastboot screen it says my FRP is unlocked, not sure if that has any effect though.
Click to expand...
Click to collapse
Flash FullOTA to your current firmware using either HWOTA or HuRUpdater (from TWRP, do not keep twrp after).
Then try relock after that.
ante0 said:
Flash FullOTA to your current firmware using either HWOTA or HuRUpdater (from TWRP, do not keep twrp after).
Then try relock after that.
Click to expand...
Click to collapse
Actually I finally fixed it last night. I flashed all 3 recovery files, kernel, ramdisk, and system and relocked and it finally cooperated. Thanks for your help!
Hi guys,
I got a bootloader unlocked ANE-LX2J and I want to lock it again but I dont know the next step.
I still have the bootloader unlock code and already flashed FULL OTA using TWRP and did factory reset.
So now, my P20 Lite is running pure stock again and ready to be locked right? or still not lol :silly:
Based on what I read here, after relocking bootloader using fastboot oem relock command, the warning/alert that shows when the device is booting is still there and I want to get rid of it.
Thanks :highfive:
RalphXVIII said:
Hi guys,
I got a bootloader unlocked ANE-LX2J and I want to lock it again but I dont know the next step.
I still have the bootloader unlock code and already flashed FULL OTA using TWRP and did factory reset.
So now, my P20 Lite is running pure stock again and ready to be locked right? or still not lol :silly:
Based on what I read here, after relocking bootloader using fastboot oem relock command, the warning/alert that shows when the device is booting is still there and I want to get rid of it.
Thanks :highfive:
Click to expand...
Click to collapse
Yes, you're ok to relock your bootloader if all partition and recovery are stock and your device is working without issues. After relock the recovery will do Factory Data Reset and no more warnings "your device has been unlocked and can't be trusted"
Boot into Fastboot&Rescue Mode and use this command:
Code:
fastboot oem relock [I][B]yourcode[/B][/I]
Then you enter into Lock Bootloader menu and just follow the instructions.
YES -
NO -
kilroystyx said:
Yes, you're ok to relock your bootloader if all partition and recovery are stock and your device is working without issues. After relock the recovery will do Factory Data Reset and no more warnings "your device has been unlocked and can't be trusted"
Boot into Fastboot&Rescue Mode and use this command:
Code:
fastboot oem relock [I][B]yourcode[/B][/I]
Then you enter into Lock Bootloader menu and just follow the instructions.
YES -
NO -
Click to expand...
Click to collapse
Does the Lock Bootloader menu will automatically show after relock command? I'll give it a shot later. Thanks :highfive:
RalphXVIII said:
Does the Lock Bootloader menu will automatically show after relock command? I'll give it a shot later. Thanks :highfive:
Click to expand...
Click to collapse
Yes, if your code is correct.
If my phone was rooted, will relocking the bootloader unroot it?
GJonas said:
If my phone was rooted, will relocking the bootloader unroot it?
Click to expand...
Click to collapse
it will show a red text saying your system has been tampered with and turn off..
you will need to restore a completly stock rom with sdcard before you can boot the phone.
I unlocked my mate20 pro, but problem is now i can't relock it , even I use "fastboot oem relock +unlock code"
anybody can help ?
have you tried fastboot oem lock?
you don't have to specify the code
i just tried also and cannot lock
Daniehabazin said:
have you tried fastboot oem lock?
you don't have to specify the code
Click to expand...
Click to collapse
still can't relock..................wait for solution
richard_li said:
still can't relock..................wait for solution
Click to expand...
Click to collapse
Refer to my post here ?
https://forum.xda-developers.com/ma...ocking-bootloader-magisk-root-t3885422/page22
I accidentally relocked the phone by using the hstool method of flashing a full firmware.
it does relock the phone and required me to unlock it again using the fastboot oem unlock code
xeroxide said:
I accidentally relocked the phone by using the hstool method of flashing a full firmware.
it does relock the phone and required me to unlock it again using the fastboot oem unlock code
Click to expand...
Click to collapse
That's interesting. So all your data was wiped when you used the hstool?
Someone else said flashing firmware via dload method also relocks the bootloader.
hmm i'm not sure.
I'll explain the whole situation.
I had just unlocked the bootloader and installed magisk.
after installing magisk, I installed a few modules, one of which made my phone bootloop.
I managed to get back into fastboot mode, use hstool to select my firmware (224) along with the patched hisuite from funkyhuawei.
after my phone recovered, it seems to have been completely reset and locked.
*edit*
I guess I should also add, I've never installed TWRP on this phone, only patched the recovery_ramdis.img for Magisk
xeroxide said:
hmm i'm not sure.
I'll explain the whole situation.
I had just unlocked the bootloader and installed magisk.
after installing magisk, I installed a few modules, one of which made my phone bootloop.
I managed to get back into fastboot mode, use hstool to select my firmware (224) along with the patched hisuite from funkyhuawei.
after my phone recovered, it seems to have been completely reset and locked.
*edit*
I guess I should also add, I've never installed TWRP on this phone, only patched the recovery_ramdis.img for Magisk
Click to expand...
Click to collapse
After locking, can you use the same code to unlock it again ?
EagleEye92 said:
After locking, can you use the same code to unlock it again ?
Click to expand...
Click to collapse
Yes sure
EagleEye92 said:
After locking, can you use the same code to unlock it again ?
Click to expand...
Click to collapse
Yes
ok just an update, while mucking around I accidentally softbricked my phone.
I used the external usb method (where you update using the code *#*#2846579#*#*) and it 100% relock the phone.
*edit*
and yes, the same code works to unlock it again. KEEP THE CODE SAFE!
xeroxide said:
ok just an update, while mucking around I accidentally softbricked my phone.
I used the external usb method (where you update using the code *#*#2846579#*#*) and it 100% relock the phone.
*edit*
and yes, the same code works to unlock it again. KEEP THE CODE SAFE!
Click to expand...
Click to collapse
Can you say me something about the usb method? dont know, what this is. :silly:
ClintP said:
Can you say me something about the usb method? dont know, what this is. :silly:
Click to expand...
Click to collapse
You need an external usb-c drive with some firmware on it.
I initially used v187 from this thread
https://forum.xda-developers.com/mate-20-pro/how-to/firmware-update-187-brings-oem-unlock-t3897301
Since then I downloaded a v206 which works over USB but I cannot recall where I got it from.
Note that you will loose all user data since the phone will be fully wiped.
Also this method requires a phone that is working, as in able to boot and access the dialer and menus.
If I find out where I got the v206 I will post it here as well.
I should also add, maybe it might work with a memory card as well... But this method requires an external source for the firmware since it formats the entire phone
@ xeroxide Thx for your help.
I Try this at the weekend.
If you need to relock your bootloader, this is the process:
Using eRecovery, restore your phone to stock
Once done, boot into recovery and RESET your phone (if you dont, it will not allow you to lock the bootloader)
Boot into fastboot mode (Holding Vol-DOWN, plug in usb cable) , and run the command
fastboot oem relock < bootloader unlock code>
the phone should now ask you that it will wipe your device, confirm,
Enjoy locked phone!
deepsrd said:
If you need to relock your bootloader, this is the process:
Using eRecovery, restore your phone to stock
Once done, boot into recovery and RESET your phone (if you dont, it will not allow you to lock the bootloader)
Boot into fastboot mode (Holding Vol-DOWN, plug in usb cable) , and run the command
fastboot oem relock < bootloader unlock code>
the phone should now ask you that it will wipe your device, confirm,
Enjoy locked phone!
Click to expand...
Click to collapse
Now it works well... i relocked my phone..........but i don't know why i failed last time because i followed exactly the steps...
deepsrd said:
If you need to relock your bootloader, this is the process:
Using eRecovery, restore your phone to stock
Once done, boot into recovery and RESET your phone (if you dont, it will not allow you to lock the bootloader)
Boot into fastboot mode (Holding Vol-DOWN, plug in usb cable) , and run the command
fastboot oem relock < bootloader unlock code>
the phone should now ask you that it will wipe your device, confirm,
Enjoy locked phone!
Click to expand...
Click to collapse
richard_li said:
Now it works well... i relocked my phone..........but i don't know why i failed last time because i followed exactly the steps...
Click to expand...
Click to collapse
it means now relocked and problem solved.........
deepsrd said:
If you need to relock your bootloader, this is the process:
Using eRecovery, restore your phone to stock
Once done, boot into recovery and RESET your phone (if you dont, it will not allow you to lock the bootloader)
Boot into fastboot mode (Holding Vol-DOWN, plug in usb cable) , and run the command
fastboot oem relock < bootloader unlock code>
the phone should now ask you that it will wipe your device, confirm,
Enjoy locked phone!
Click to expand...
Click to collapse
this worked for me thanks loads!