Unable to boot images via Fastboot - Huawei P9 Plus Questions & Answers

Hi,
Recently I updated my EMUI firmware via the official OTA system.
I had the bootloader unlocked prior to installing the update however afterwards the bootloader was locked. I have verified this in Fastboot.
I wish to flash Magisk on my P9 Plus, however, I have a bootloader unlock code (back when Huawei gave them out freely) however I don't want to unlock the bootloader as it will factory reset (I spent a long time setting everything up).
I tried flashing a TWRP image however the bootloader prevents it as it is not unlocked.
The only other method would to boot the custom recovery image however when executing fastboot boot recovery TWRP twrp-3.1.1-1-vie.img it gives FAILED (remote: Command not allowed). I had noticed this inability to boot images even when I had the bootloader unlocked (I did not want to overwrite the stock recovery or eRecovery for easier OTA updates).
I have the Chinese variant of the P9 Plus : VIE-AL10 Full Netcom Edition.
Is anyone else having this problem? Please let me know if or how to fix this.
Thanks

It's been a while since I last used fastboot boot but if i remember correctly the command is "fastboot boot recovey.img, without that" recovery" in between

if the bootloader is locked you cant flash magisk or any other, also you cant boot with any images

Related

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

Issues with flashing TWRP and rooting VIE-AL10

Firstly I need to say that I've read the forums from top to bottom before posting this, so I'm pretty sure no one here experienced this particular issue here on a P9 Plus at least.
I've tried tried to flash TWRP in order to be able to root my P9 Plus.
To do this I did the following steps:
1. Enable Developer Options in settings
2. Enable USB debugging
3. Successfully unlocked my bootloader using a code from Huawei
4. Entered fastboot mode and flashed the latest TWRP 3.1.1 recovery from their website
5. After Huawei's eRecovery kept opening I (after a suggestion in another post in the forums) flashed TWRP on recovery2 as well.
6. Phone stuck in "Your device is booting now..." screen and only booting in fastboot mode is working.
Any ideas what I've broken and how I could possibly fix it?
EDIT: At this point I'm willing to flash everything back to stock, however I'm not sure if I've got the VIE-AL10C00 or VIE-AL10BC00. I'm using the 64GB Dual SIM Chinese version of the phone with Android N and got both firmwares downloaded (updatebc183 for BC00 and 198 for C00 which are the latest for both versions) and ready.
EDIT2: I downloaded the correct latest full update 198 for my VIE-AL10C00 (as it turns out) and extracted the recovery and recovery2 images, then flashed them along with boot.img. Still having the same issue. (I need to say that in fastboot I can't flash anything other than recovery, recovery2 and boot images)

twrp on p9 problem

Hello everyone, I wanted to revert to stock from bluewei, i flashed stock rom via dload method, but now it just bootloops. so i wanted to install twrp again so i can flash stock through twrp or atleast flash bluewei again but every time i try to flash with fastboot flash recovery command it says "remote: command not allowed", even tho i have my bootloader unlocked (everytime i turn on my phone it shows the warning that it is unlocked).
now i cant install twrp, cant flash through hisuite (it says that my device is not supported, tried the trick with changing ip address and port, nothing) and i dont have a idea how to make my phone useful again
Please can someone help me? THANKS!
p.s. device is p9 L09

Bootable custom recovery after Pie update?

I downloaded and installed the official Pie update today, then procedeed to unlock the bootloader which was a success. However now I found that the phone wont boot (not flash) a custom recovery (latest TWRP).
I'm only interested into booting a custom recovery so I can root, otherwise I'd prefer the phone to remain as close to stock as possible.
When trying to boot into TWRP using "fastboot boot twrp.img", I get a success message, phone reboots and then gets stuck at the Android Logo (fastboot commands still work, it doesnt say 'download mode' tho).
Any solutions?

Question Can't find valid os??

I was locking my bootloader to try to reroot and pass safetynet. So, I factory reset it, set it up, and then went into the bootloader and typed "fastboot flashing lock". I selected yes to confirm the locking of my bootloader and then my phone rebooted. But now my phone says "Can't find valid operating system" and I can't boot into Android. i was able to unlock the bootloader again but now i don't have magisk installed and I can't even boot into Android to install anything. Is there anything i can do to fix this?
Yes, if you're bootloader is unlocked then you can fastboot flash (or use Chrome web based Android Flash Tool) factory images from https://developers.google.com/android/images
If you want to root extract the boot.img from the zip and patch with Magisk, then fastboot flash boot magisk_patched.img after you boot the phone once on stock unrooted kernel.
Thank you. I did it with the flash tool. Then later, it happened again and I realized I could use the boot.img. I'm glad these Google pixels are noob friendly.
Never lock your bootloader unless you know for a fact that you are on bone stock OEM firmware.

Categories

Resources