Hello everyone
I came to you because I root my p8 lite 2017, but impossible to put a code, deleted an app, etc .. so I looked for a solution to put my original phone back, and so I tried A back up by TRWP, then I tried to restore the original recovery to make a factory reset. I followed this tutorial
[How to unbrick]
The procedure of rescue is risky.
Without appropriate knowledge, I advise.
It is only successful if the instructions are executed exactly.
This TWRP backup rom is not suitable for normal use. It was created for the following purpose:
- Rescue of bricked phones.
- Force an OTA update.
Do not root this rom!
Unzip the download 2017-08-11-RESCUE.ROM.PRA.OTA.B164.to.170.rar (1.05 GB).
This creates the TWRP backup:
2017-08-11-RESCUE.ROM.PRA.OTA.B164.to.170
installation:
Copy my backup to the TWRP backup path to the Ext Sd.
Boot into the Bootloader.
Stock Recovery flash by adb.
In the recovery start
Perform a factory reset.
Boot into the Bootloader.
TWRP flash by adb.
To start TWRP.
There data wipe
And restore my backup.
In the Bootloader start and
Flash by adb the Stock Recovery.
There then again a factory reset.
reboot
When the boot process is finished,
Go to Settings> Update program> New version> Update.
Will not be offered, in the Stock Recovery again perform a factory reset.
The upgrade to the B170 succeeds only with sim-card.
You have a firmware update and a new firmware up-to-date.
Congratulation!
https://forum.xda-developers.com/p8...-to-root-huawei-p8-lite-2017-android-t3582179
Problem, now I am stuck on erecovery, or fastboot, but I do not know anything else, when I wanted to restore the original recovery, here is what it puts me:
Download free download size 471859200 bytes
Sending 'recovery' (35550 KB) ...
OKAY [0.961s]
Writing 'recovery' ...
FAILED (remote: Command not allowed)
finished. Total time: 0.968s
I do not know what to do .. When I try with update.app on the sd card, it puts me an error after 5%.
I have the impression that the bootloader is relock, how to recover the product id to get the unlock code?
Thank you very much to all those who will help me!
PS; Sorry for my bad english i use google translate
SEB
seboun13 said:
Hello everyone
I came to you because I root my p8 lite 2017...
Click to expand...
Click to collapse
Hi.
Sorry to hear about your problem. I still don't have much experience with Huawei phones and I have been following @ChinHon threads to learn also.
Since the unbrick method you described above is from one of ChinHon threads, I have made a mention to him already in this post hoping that he comes and reads this thread of yours.
I am very sure that when he sees it will give you the best advice to unbrick your beloved phone.
Sorry I couldn't help more than this but I am still unsure about Huawei procedures and I am also learning.
Hang tight a little while longer buddy and good luck!
seboun13 said:
Hello everyone
I came to you because I root my p8 lite 2017, but impossible to put a code, deleted an app, etc .. so I looked for a solution to put my original phone back, and so I tried A back up by TRWP, then I tried to restore the original recovery to make a factory reset. I followed this tutorial
[How to unbrick]
The procedure of rescue is risky.
Without appropriate knowledge, I advise.
It is only successful if the instructions are executed exactly.
This TWRP backup rom is not suitable for normal use. It was created for the following purpose:
- Rescue of bricked phones.
- Force an OTA update.
Do not root this rom!
Unzip the download 2017-08-11-RESCUE.ROM.PRA.OTA.B164.to.170.rar (1.05 GB).
This creates the TWRP backup:
2017-08-11-RESCUE.ROM.PRA.OTA.B164.to.170
installation:
Copy my backup to the TWRP backup path to the Ext Sd.
Boot into the Bootloader.
Stock Recovery flash by adb.
In the recovery start
Perform a factory reset.
Boot into the Bootloader.
TWRP flash by adb.
To start TWRP.
There data wipe
And restore my backup.
In the Bootloader start and
Flash by adb the Stock Recovery.
There then again a factory reset.
reboot
When the boot process is finished,
Go to Settings> Update program> New version> Update.
Will not be offered, in the Stock Recovery again perform a factory reset.
The upgrade to the B170 succeeds only with sim-card.
You have a firmware update and a new firmware up-to-date.
Congratulation!
https://forum.xda-developers.com/p8...-to-root-huawei-p8-lite-2017-android-t3582179
Problem, now I am stuck on erecovery, or fastboot, but I do not know anything else, when I wanted to restore the original recovery, here is what it puts me:
Download free download size 471859200 bytes
Sending 'recovery' (35550 KB) ...
OKAY [0.961s]
Writing 'recovery' ...
FAILED (remote: Command not allowed)
finished. Total time: 0.968s
I do not know what to do .. When I try with update.app on the sd card, it puts me an error after 5%.
I have the impression that the bootloader is relock, how to recover the product id to get the unlock code?
Thank you very much to all those who will help me!
PS; Sorry for my bad english i use google translate
SEB
Click to expand...
Click to collapse
Take the ID generator, enter IMEI 1 and select model "HUAWEI Y300-0000". The IMEI find you on the sim cards holder.
https://mega.nz/#!10lHVRTR!PA2tYf1QWsn_r9PC5T7CasxqYW3fgmR_ywFGHDR-Rws
OK thank you I will try this
problem solved, phone send to sav a week ago, received like new today!
Related
Hello guys
Need your help or ideas
So i Hard Bricked my P9 i can only enter fastboot.
Phone was on Android N first build,flashed it with TWRP,but i dint have stock app likes camera calculator e.t.c
Phone was working OK but i whanted to get original camera.
So there was made TWRP for android N, i flashed it TWRP worked system was booting, but TWRP not mounting /data, so there was tuto for fix that.
Need to flash zip -> repair /data -> resize ( thats was begining of problem )
zip was success, but format and repair was with error 4
system not booting anymore stuck on bootloop, with twrp.
Tried re-flash N with TWRP dint helped . Only lost TWRP
So i flashed L19C432B136 with dload. update was success, but I don't know why system wast booting, there was no orginal recovery i can't enter it or update with dload.
Stuck in screen "Phone is unlocked and can't be trusted"
Flashing TWRP for MM or N is success but phone don't enter IT
Flashing stock recovery from B136 dint helped ( i tried stock recovery from B322 ; no success)
Tried flashing SYSTEM.img BOOT.img RECOVERY.img from 322, all is sucess but phone not skipping screen ( Phone is unlocked and can't be trusted )
Any idea how to get phone back from dead?
I can only enter fastboot.
Is i possible to flash something true fastboot?
I have full updates of L19C432B182 and L19C432B161.
richish said:
Hello guys
Need your help or ideas
So i Hard Bricked my P9 i can only enter fastboot.
Phone was on Android N first build,flashed it with TWRP,but i dint have stock app likes camera calculator e.t.c
Phone was working OK but i whanted to get original camera.
So there was made TWRP for android N, i flashed it TWRP worked system was booting, but TWRP not mounting /data, so there was tuto for fix that.
Need to flash zip -> repair /data -> resize ( thats was begining of problem )
zip was success, but format and repair was with error 4
system not booting anymore stuck on bootloop, with twrp.
Tried re-flash N with TWRP dint helped . Only lost TWRP
So i flashed L19C432B136 with dload. update was success, but I don't know why system wast booting, there was no orginal recovery i can't enter it or update with dload.
Stuck in screen "Phone is unlocked and can't be trusted"
Flashing TWRP for MM or N is success but phone don't enter IT
Flashing stock recovery from B136 dint helped ( i tried stock recovery from B322 ; no success)
Tried flashing SYSTEM.img BOOT.img RECOVERY.img from 322, all is sucess but phone not skipping screen ( Phone is unlocked and can't be trusted )
Any idea how to get phone back from dead?
I can only enter fastboot.
Is i possible to flash something true fastboot?
I have full updates of L19C432B182 and L19C432B161.
Click to expand...
Click to collapse
You have 2 choices with this.
If you can still boot into TWRP,
1. Flash the Beta Update.zip
2. Power off phone.
3. Press up button whilst powering up phone.
4. You will now be in stock recovery and you can perform a factory reset.
5. the device will now boot in to N beta but will be missing the vendor apps.
There is another way to fix if this doesn't work. Tell me if this method works first.
Edit: I just read in the op that you flashed the update and had stock recovery.
The reason it won't boot is because you need to have b322 flashed and you have to factory reset to repair the corrupt file system. To do this follow these instructions.
1. You need to flash the Boot, Recovery and System images from b322 in fastboot.
2. Then enter stock recovery (Vol + and Power)
3. Then factory reset (this is essential as it repairs the file system and enables boot)
4. The device will then boot.
5. (Optional )If you want to go back from the beta you have to flash the rollback.app to b300 through th dload method first then you can flash a Android 6.0 through the dload method.
Regards
Lee
thel2dab said:
You have 2 choices with this.
If you can still boot into TWRP,
1. Flash the Beta Update.zip
2. Power off phone.
3. Press up button whilst powering up phone.
4. You will now be in stock recovery and you can perform a factory reset.
5. the device will now boot in to N beta but will be missing the vendor apps.
There is another way to fix if this doesn't work. Tell me if this method works first.
Regards
Lee
Click to expand...
Click to collapse
Cant Enter TWRP
noone of recoverys work
richish said:
Cant Enter TWRP
noone of recoverys work
Click to expand...
Click to collapse
Edited my previous post with another method.
thel2dab said:
Edited my previous post with another method.
Click to expand...
Click to collapse
fast qestion
there is 2 recoverys, does both need to be flashed?
@richish
If you get really stuck I can teamviewer your pc and help.
Or you can facebook message me direct.
I had exactly the same issue when I first tried to flash the properdatafix with TWRP for N
Regards
---------- Post added at 10:26 PM ---------- Previous post was at 10:24 PM ----------
richish said:
fast qestion
there is 2 recoverys, does both need to be flashed?
Click to expand...
Click to collapse
You can flash both.
fastboot flash recovery recovery.img
fastboot flash recovery2 recovery2.img
I don't think it is essential but it won't hurt to do it anyway.
---------- Post added at 10:35 PM ---------- Previous post was at 10:26 PM ----------
[/COLOR @richish
I seen you PM. I am not sure it will wok by flashing B182. I think you have to flash B322 first.
Regards
fist you have to flash stock recovery from emui 5(android N) through fastboot.
second , download the rollback package,extract it and put it on dload folder of external storage.
third, turn off the phone , and press vol up + vol down + power button together to enter forced update mode.
if it is successful system will boot and you should flash android M firmware using dload method then u should unlock bootloader,install twrp,wipe /system /cache /data and then flash update.zip(android N) and hw_data of your firmware one after another.
i hope this help you.
still phone is not booting
I redownload b322, extracted Boot.img System.img Recovery.img Recovery2.img and Cust.img with
http://forum.xda-developers.com/showthread.php?t=2433454 Update Extractor
Flashed all .img true fastboot
But still nothing
Stuck on bootloader screen "Your device is unlocked, and can't be trusted"
Maybe i need flash some more images from b322.
Its look like phone cant pass bootloader.
Any sugestions?
P.S. Phone still have warranty, but booloader is unlocked
and fastboot oem relock ************** ends with failed.
"Failed - root cant trusted"
Sugestions how to lock it?
I had my phone bricked from testing cm, and going back to stock. My solution was to flash dload and recovery from the 182, followed by dload flash of 182.
@richish
caution : these commands will format the partition
can u use these command ?
"fastboot format /system"
"fastboot format /data"
or "fastboot erase /system"=> this will erase system partition
Phone is live now.
I downloaded DC-Phoenix and bought 15 credits
flashed stock B182 via DC-phoenix and phone booted.
I recomand this apllication for everybody who have similar problems.
THX for everybody who helpped.
richish said:
Phone is live now.
I downloaded DC-Phoenix and bought 15 credits
flashed stock B182 via DC-phoenix and phone booted.
I recomand this apllication for everybody who have similar problems.
THX for everybody who helpped.
Click to expand...
Click to collapse
How can i sign up for an account, it alway said wrong username or password !:crying:
DC-Phoenix is not cheap but it also cured my phone after bricking it with flashfire where all other methods did not work.
if you use it follow the instructions carefully and do the 2 step flashing although it will work after the first one. if you don`t do the second flash the partition sizes are wrong and a dload update will fail.
smartmobee said:
How can i sign up for an account, it alway said wrong username or password !:crying:
Click to expand...
Click to collapse
First u must buy credits, activate your account in email and then login in aplication.
Hi everyone
I would like to share the problem that i am having with my p9 , so maybe i can get your help.
Firstly i had L19C185 version and i changed Oeminfo in order to install c636 Beta 7.0 Nougat.
I installed the nougat but then realized that i dont have stock apps in my phone, so by mistakely tried to install TWRP for 6.0 Marshmallow and my problem started here.
Now my phone can not boot. its stuck in Phone is booting now ( the screen when you unlock bootloader after huawei logo) , and its never booting. it stays like that.
I tried to flash rboot.img , recovery.img and System.Img from fast boot. but whenever im trying to flash system.img after boot and recovery.img, a get an error and never succeeded to flash system.img. Im trying to flash these .img files from L19C636b180.
Can you please help me or give me some advice because none of mobile services couldnt fix and flash new software. maybe because they dont know exactly what should they do. and in my country i couldnt find anyofficial huawei service provider.
Please help me how to fix my phone.
I also had serious problems with flashing the thing back to stock.
TWRP was broken too for me.
I've done that to fix it all
The ONLY way that worked for me was
1. Download EVA-L19C636B168 from here http://forum.xda-developers.com/p9/development/rom-stock-rom-eva-l19c636b168-t3419586
2. Download that SRK tool http://forum.xda-developers.com/p9/development/tool-srk-tool-huawei-bootloader-root-t3374068
3. Flash the recovery from the SRK tool, you can do that with the tool or directly via fastboot (i don't know other proper source for the correct recovery img)
4. Put the image EVA-L19C636B168 (UPDATE.app) in the "dload" folder of your sd card
5. Start phone in dload mode (Hold all 3 buttons at start) and let the update do it's job
What about recovery??? Does 3 button combination works? Whats heppens if u hold volup and power button when turning phone on!
Situation looks similar what i had.
Only solution for me was dc-phoenix.
U have tu buy 15 points to flash phone (15eur) But it works.
I'm 99% sure that there are bootloader comands what is same as for dc-phoenix,but i dont know them.
Sent from my EVA-L19 using XDA-Developers mobile app
please help
i had bricked my p9 L09 twrp not working noting working only fastboot mode is working plzzz help me in finding boot.img recovery.img system.img
Hey all. I was trying to rollback my P9 to a stock ROM, but it failed and now I am stuck with a bricked P9 (bootloop).
My phone is a European P9 (EVA-L09C432). I have an unlocked bootloader.
- Huawei eRecovery and HiSuite restore does not work.
- I've tried forcing the update using the SRK Tool brick utility, but receive the message "FAILED (remote: sparse flash write failure)" when it's strats writing 'system'.
- My TWRP backup does not work, I had a 7GB backup that installs fine, but the phone is still stuck in a bootloop.
- I can flash EVA-L09C432B378 ROM using the SRK brick utility fine, but the phone is still stuck in a bootloop.
- After I have installed B378 and try to force flash B136 using the dload method, it either gets stuck on the "going into restore mode" or it goes to the "installing package" screen, where it is stuck at 5% until it reboots.
Any suggestions?
try one more time install rollback package by download mode
I've tried. Several times, all day :crying: My process:
Write TWRP from fastboot so I can boot into TWRP and transer UPDATE.app to the dload folder
Reboot into fastboot
Write stock recovery image from fastboot
Boot into recovery mode
Get stuck at 5% on the "Installing update" screen.
I've tried the UPDATE.app or firmware B136 (stock), and UPDATE.app for B378 (Nougat)
Both get stuck at 5%.
I'm stuck at the bootloop
isn't srk tool only for MM?
maybe try extract recovery , boot and system partition from b378 and flash by fastboot , next start flash rollback package by download mode
I noticed when I tried to restore my backup using TWRP it failed at "vendor" (Failed to wipe vendor). I receive this issue at vendor and product.
I tried using fastboot to flash vendor and product manually, I receive these error messages:
"failed: remote command not allowed"
The phone won't allow me to write vendor and product.img... but my bootloader was unlocked?
Is it possible I could have relocked my bootloader? How am I supposed to get the bootloader code for my P9 again :/ It's nearly impossible.
I managed to use the recovery dload method to install a beta version of B378 (build number NRD90M test-keys). Will now try to use the recovery method to roll back to B136 and update back to B378 again.
Highfall said:
I managed to use the recovery dload method to install a beta version of B378 (build number NRD90M test-keys). Will now try to use the recovery method to roll back to B136 and update back to B378 again.
Click to expand...
Click to collapse
I'm having similar issues. Have you solved your problem? What have you tried so far?
Same problem here! Did you resolve?
Thanks you.
Try unplug charger or usb cable then do it
WTF, that ist the solution to the whole damn problem! Just unplugging the damn usb cable and it installs the update just fine. ive spend 2 whole days on this, almost giving it up beacuse everytime it got stuck at 5% and then this...
seriously thank you!
JimmyEatFood said:
Try unplug charger or usb cable then do it
Click to expand...
Click to collapse
thx i managed to boot my device, but i relocked bootloader and factory reset doesnt work correctly it deleted 3rd party apps and leaved few system apps and blotware. what should i do.
and really thanks, you saved me.
Removing cabled worked for me also
How to Dual Recovery] Huawei PRA (prague) - Android 7
Content removed. The dual recovery is too dangerous and can lead to bricks.
valerio32 said:
So if I wanted to do the root, can I receive all OTA updates? . And if OTA updates included an eRecovery update. Is it updated or bootloop?
Click to expand...
Click to collapse
Ota updates always go. If twrp is on the recovery1 partition, the update aborts during installation. If twrp is on the recovery2 (eRecovery) partition, it works fine. The eRecovery is always overwritten without checking. The recovery only after checking if a stock exists.
ChinHon said:
[How to Dual Recovery] Huawei PRA (prague) - Android 7
The firmware should be updated, a full version to be flashed, we need to install a flashable zip , other flash operations are on, or we want to install Linage OS.
Then we need a fully functional TWRP recovery.
Would not it be convenient if you do not always flash it, but simply "switch" could?
That's what we do in the future, because we are now aligning a dual recovery.
Thats is quite easy:
Requirements:
OEM and FRP unlocked
Huawei PRA
Preparation:
ADB set up and flash knowledge available.
We both flash recoveries in the correct order:
fastboot flash recovery recovery.img
fastboot flash recovery2 twrp.img
That never needed stock Recovery2 (eRecovery) is overwritten.
Now both recoveries are present on the device and can be called anytime.
In the stock we come as usual with key combination Volup + Power, in the TWRP same, but with USB connection. (PC or charger)
When OS updating, the Recovery2 is overwritten with the eRecovery and must
are then replaced with TWRP.
The advantages for the future
- Direct exchange of TWRP in stock and vice versa, without rebooting,
- during updates, no unrooting and no Factory Reset (automatically if necessary)
- for flash operations, or Wipes per stock, immediately switched to TWRP
- in normal operation that "thinks" EMUI "all original".
*****important*****
To Lineage OS installation:
factory reset in stock recovery
factory reset in TWRP
wipe: System and Data in TWRP
flash: Vendor in TWRP Terminal
flash: * Lineage * .zip in TWRP
now make full backup in TWRP
To install the Rescue Rom:
factory reset in stock recovery
factory reset in TWRP
wipe data in TWRP
restore rescue backup
now make full backup in TWRP
In the future, the TWRP recovery now works with all functions.
After some reboots, the following has been shown:
The datapartition is mountable in TWRP,
but is not reliably secured or restored.
Therefore, never delete the internal memory and data partition,
or a factory reset. I have had the experience that too
other partition backups will never be restored as they are
were created. A perfect restoring is not possible.
Please do not use TWRP for backup and restoring operations.
Use a factory reset only in stock recovery.
The current TWRP is very dangerous. See my notes in the root thread. I have the Dualrecovery with me always. But I can fix any brick quickly. The normal user but not.
Thanks to: Team Win Recovery Project
and Huawei Technologies Co., Ltd. 华为 技术 有限公司
NOTE: Despite careful preparation I can not guarantee that through the implementation of this Guidance does not create damage to the device or operating system, and therefore assume no liability for ensuing damage and malfunction of hardware and software! If you are still unsure, follow these steps: Only perform the procedure if any mentioned conditions (model number, Android version, etc.) apply to you or your device. Read the instructions carefully and completely up unfamiliar terms. check downloaded files for viruses. A backup of important settings and data make. The instructions do not perform if you do not know what you're doing.
Click to expand...
Click to collapse
I've flashed TWRP recovery to the phone, replacing stock recovery. I didn't replaced erecovery. Then I made factory reset in TWRP. Now I have only a black screen with soft buttons in Android. Could you help me please, what do I do now? (Erecovery can't find any downloads to restore phone.)
paraNo said:
I've flashed TWRP recovery to the phone, replacing stock recovery. I didn't replaced erecovery. Then I made factory reset in TWRP. Now I have only a black screen with soft buttons in Android. Could you help me please, what do I do now? (Erecovery can't find any downloads to restore phone.)
Click to expand...
Click to collapse
You can try to flash twrp in recovery2 via adb, wipe in stock recovery and twrp, and restore the twrp backup.
Enviado desde mi PRA-LX1 mediante Tapatalk
paraNo said:
I've flashed TWRP recovery to the phone, replacing stock recovery. I didn't replaced erecovery. Then I made factory reset in TWRP. Now I have only a black screen with soft buttons in Android. Could you help me please, what do I do now? (Erecovery can't find any downloads to restore phone.)
Click to expand...
Click to collapse
All you need is here:
https://forum.xda-developers.com/p8...-to-root-huawei-p8-lite-2017-android-t3582179
ChinHon said:
All you need is here:
https://forum.xda-developers.com/p8...-to-root-huawei-p8-lite-2017-android-t3582179
Click to expand...
Click to collapse
Thanks to both of you!
I've flashed stock recovery, made factory reset, and phone is working again.
But I've lost some of the apps (mainly games from the original ROM, magazine unlock is stopped working, lost themes, wallpapers etc. :crying
I've tried to download the pre-rooted B182 ROM but the archive is broken. (Both the zip in Mediafire, and the rar in MEGA)
I have ROM version B172, but System update cannot find updates. Thats why I'm not sure, if I can use the rescue rom. Maybe It won't upgrade.
Create a backup for security and try the rescue rom. It won't hurt. In the future, use the huawei backup app from the system so that you don't lose your apps and settings again.
ChinHon said:
Create a backup for security and try the rescue rom. It won't hurt. In the future, use the huawei backup app from the system so that you don't lose your apps and settings again.
Click to expand...
Click to collapse
Thank you, I will try!
The apps, and things that I've lost was in the original ROM. I think, I can't save ROM apps with huawei backup. (And I thought, I can't lose anything from ROM )
I have bricked my phone after Magisk install fail.
I first unlocked bootloader succesfully
then i installed twrp succesfully
then i flashed magisk using twrp - this failed and sent device to erecovery. (which won't find package)
i used twrp to wipe data, now i was able to boot, and it installed like a fresh EMUI. However, almost all apps were broken- could not download themes/camera shut down etc.
To fix this, i wanted to restore to stock and did the following: download update package for my VTR-L09 of EMUI b175 (I was on b162 before), used Huawei Update Extractor to extract files and flashed BOOT.IMG, SYSTEM.IMG and RECOVERY.IMG. This was done without error.
Now my phone won't boot at all. I am stuck at the 'your device can't be trusted' screen. I cannot go into recovery. When I connect via USB, I hear the chime in Windows but I can't seem to connect with ADB.
What to do now?? Am I hard-bricked? I hope that anyone knows how to deal with my phone bricked like this. Please help me to solve this issue.
Best of wishes.
Edit: I am able to enter forced recovery, however updates fail at 5%.
I am also able to fastboot with USB, however I am unsure what to do next.
I unbricked my phone! Many thanks to who ah way and his solution found here: https://forum.xda-developers.com/p10/how-to/guide-unbricking-p10-using-hwota-windows-t3714416
:victory:
why are you doing it when you dont understand it?
You cannot flash part of B175 firmwar eover B162 firmware.. OMG.
use the HWOTa to go back to stock and please stop playing with the device without propper knowledge
hi everybody,
I need help from a big expert because I have a big problem with my P10...
ok for starter I know where is my mistake I forget to enable oem security in dev option
of course it's not my only mistake in twrp I do a advenced wipe and I wipe system sd etc...
So now my phone don't boot, twrp goe's when I flash another updape.zip with extarnal sd card and I can't flash anything with fastboot because frp it's lock...
my previous version it's l09 and I don't find full update.zip of this version just ota...
Some one can help me please
Hi,
maybe my guide works, but I don't think it works with FRP Lock, just try it.
If you were on Nougat before you wiped, use Tutorial 1, if you were on Oreo use Tutorial 2 - important choice.
Also note that you can't install Huaweis update.zip with TWRP because it's not an installable zip. It's only for Huaweis recovery - and this is what my script does:
It flashes the stock Huawei recovery with removed online validation and put some recovery commands into cache so the recovery knows what to do.