Returning phone, return to stock and lock bootloader - Huawei P20 Pro Questions & Answers

I'm returning my phone to Three, so need to return to stock
I plan on:
- uninstall Magisk
- remove pin/fingerprint/face unlock
- factory reset
- boot to eRecovery and flash stock
- lock bootloader.
Is this the correct order to do things?
Will I still have adb access to lock the bootloader after flashing stock?
If not, will I still be able to get to eRecovery if I've locked the bootloader first?

Related

[Q] Help! Need Stock recovery

My father attempted to unlock my bootloader and in the process removed the recovery.Now,i have no way to even reset the phone or do OTA Updates.Is there anything i can do to get the phone completely OEM ,like an RUU ?? and is there any way to flash the stock recovery ??

[Q] Unlocking Bootloader

In the Xperia SP versions which don't allow bootloader unlocking (Bootloader unlock allowed: no) , does the phone not boot in fastboot mode? I can go to Flashtool mode but not to fastboot. Is this the reason why?
update:
I only got you question now.
It is true that fastboot doesn't work with locked bootloaders, and that Flashtool does work.
But that doesn't mean your custom rom or kernel you flash with flashboot will boot. It works for stock.
If you're at 4.1 there are ways to get root and CWM, I don't think there are easy ways to flashing custom rom or installing root or CWM from 4.3 unrooted without unblocking, getting back to 4.1 to get root on 4.3, or perfoming factory reset.
You may want this: http://forum.xda-developers.com/showthread.php?t=2649923
It's a very long way, but at least it works. You can get 4.3 rooted with recovery, but you must go back to 4.1.2 to run CWM once. That is for root; Recovery procedure includes factory resetting...
Hope you can get it working as you want... Locked bootloader really are nasty

Fastboot and oem unlock

Yesterday I thought I bricked my phone. I too also got stuck on the secure boot error 1003 boot loop. It happened when I tried to relock my bootloader with fastboot oem lock. Can anyone explain why that happened and if, after you obtain root, if it's possible to go back and relock the bootloader. I was attempting to get android pay working again, plus it flashes that message about having an unlocked bootloader. Is it possible to re-lock the bootloader after you have root, and if so, what did I do wrong. I finally restored back to factory using the lg bridge tool and download mode, which was a [email protected]#% to get into with a bootlooping phone.
Thanks in advance.
happimeal said:
Yesterday I thought I bricked my phone. I too also got stuck on the secure boot error 1003 boot loop. It happened when I tried to relock my bootloader with fastboot oem lock. Can anyone explain why that happened and if, after you obtain root, if it's possible to go back and relock the bootloader. I was attempting to get android pay working again, plus it flashes that message about having an unlocked bootloader. Is it possible to re-lock the bootloader after you have root, and if so, what did I do wrong. I finally restored back to factory using the lg bridge tool and download mode, which was a [email protected]#% to get into with a bootlooping phone.
Thanks in advance.
Click to expand...
Click to collapse
To answer your question, when you root the g4 on marshmallow using chainfire's systemless root, It on the fly flashes a different boot image, thus if you relock the bootloader after rooting the device on the 6.0 marshmallow firmware it will end up with the security error because the boot image has been "modified" and a modified image won't be allowed to boot if the bootloader is locked so the answer is unfortunately no you can't have a locked bootloader and have root at the same time, If you want to relock the bootloader on the 6.0 firmware to get rid of the boot image showing "unlocked bootloader" you should flash the KDZ for the 6.0 firmware in this case H81120i firmware and then go into developer settings and uncheck enable oem unlocking and also make sure you boot into fastboot mode, you can do this via the adb shell. another option to not have the "unlocked bootloader" show every boot would be to go back to the 5.1 firmware which did not have this. I hope this helps.
Thank you for a great explanation.
If you ask the people at xposed modules they may be able to do something maybe....
5.1 still displays bootloader unlocked message.
cschmid44 said:
To answer your question, when you root the g4 on marshmallow using chainfire's systemless root, It on the fly flashes a different boot image, thus if you relock the bootloader after rooting the device on the 6.0 marshmallow firmware it will end up with the security error because the boot image has been "modified" and a modified image won't be allowed to boot if the bootloader is locked so the answer is unfortunately no you can't have a locked bootloader and have root at the same time, If you want to relock the bootloader on the 6.0 firmware to get rid of the boot image showing "unlocked bootloader" you should flash the KDZ for the 6.0 firmware in this case H81120i firmware and then go into developer settings and uncheck enable oem unlocking and also make sure you boot into fastboot mode, you can do this via the adb shell. another option to not have the "unlocked bootloader" show every boot would be to go back to the 5.1 firmware which did not have this. I hope this helps.
Click to expand...
Click to collapse
I have installed h815 KDZ files using LGUP. When i reboot it still displays Bootloader unlocked message. I can not use bootloader unlock/lock guide as I have bootloader unlocked.
Any other means to get rid of the message.
bump for way to relock h815

Regarding relocking bootloader

suppose I unlock my bootloader, install custom recovery like TWRP and now, If I wish to RE LOCK my bootloader ( dont ask why), is it necessary to have the STOCK recovery installed before relocking or custom recovery will be fine?
Thanks.
Relocking the bootloader is NOT recommended. That said, you can and should keep TWRP if you choose to lock it.
Oh okay. I read somewhere that if you choose to re lock your bootloader you have to go FULL STOCK ( ROM + Recovery). I guess that might not be the case for nexus devices?
Relocking the bootloader will wipe your data, but it doesn't play cop and make sure everything is stock. All the bootloader does is pass off control of the device from the low level firmware that we cannot access to either the recovery or Android itself. Locking the bootloader only ensures that the possessor of the device cannot change the contents of the partitions from outside the device using ADB. A device with TWRP and a locked bootloader can still install custom ROMs, and possibly even root.
However, there is practically zero reason to ever lock the bootloader once unlocked, leaving people to wonder why you would want to.

Get back to stock an relock bootloader

Hi all,
I have a Mi 9 europe version and want to get back to stock.
The current status of my device is:
- Bootloader unlocked
- TWRP
- flashed GSI FlokoRom
Can I just put the phone into fastboot mode and flash (10.2.24.0 PFAEUXM from there) with MI flash tool as mentioned there? Is it possible to relock the bootloader after this or will it brick my device?
I recommend you to flash rom WITHOUT LOCKING at first time. Even if something is wrong you should be able to flash twrp and then flash any rom.
But if after flashing your ohone boot up normally, flash it again and tick LOCK BOOTLOADER. Simple and secure way to get stock phone.

Categories

Resources