Is it possible to update to B381 (via OTA update) having a custom recovery? - Huawei P9 Lite Questions & Answers

Hi all,
I currently have a P9 Lite with VNS-L31C432B371 firmware installed.
Recently, I received the VNS-L31C432B381 update via OTA. Unfortunately, when the phone reboots into recovery mode, the update does not even start; instead, I get redirected to the custom recovery (TWRP 3.1.0.-2, system partition read-only) "homescreen".
Is there a way to update to B381 without wiping the entire phone?
Thank you for your time.

The OTA update system uses the EMUI stock recovery so no, there is no way you can update your phone through the updater by using the custom recovery

SALVO9 said:
The OTA update system uses the EMUI stock recovery so no, there is no way you can update your phone through the updater by using the custom recovery
Click to expand...
Click to collapse
Ok, thank you!
Another question: is there a way to obtain the stock EMUI recovery and flash it to execute the update?

_n0153_ said:
Ok, thank you!
Another question: is there a way to obtain the stock EMUI recovery and flash it to execute the update?
Click to expand...
Click to collapse
Yes.
Download your build's update.zip, extract the zip to desktop, you'll then have an update.app (you probably need the full ~2GB build, not OTA, e.g I use B370);
Extract recovery.img from the update.app via HuaweiUpdateExtractor;
boot to bootloader;
fastboot flash recovery recovery.img.
Done.

JHD94 said:
Yes.
Download your build's update.zip, extract the zip to desktop, you'll then have an update.app (you probably need the full ~2GB build, not OTA, e.g I use B370);
Extract recovery.img from the update.app via HuaweiUpdateExtractor;
boot to bootloader;
fastboot flash recovery recovery.img.
Done.
Click to expand...
Click to collapse
Thank you!
I succeeded in extracting and installing the recovery from the update.zip. Unfortunately the OTA failed anyway.
At this point, I think I should just wipe the phone and install the complete update from here.

_n0153_ said:
Thank you!
I succeeded in extracting and installing the recovery from the update.zip. Unfortunately the OTA failed anyway.
At this point, I think I should just wipe the phone and install the complete update from here.
Click to expand...
Click to collapse
Well I , like you, had a custom recovery. The 3-button method didn't work for me and even after restoring the stock recovery I was unable to install the update.
I unpacked the Update.APP file and flashed through fastboot the BOOT, RECOVERY, VENDOR and SYSTEM .img files and I was succesful but now I have the Model number as generic_a15 and Build number NRD90M test-keys. I can only assume some of the other img files carry the information about my phone. At the moment is stable enough but I can't open the Security menu.
If someone has any idea on how to flash the other img files, please let me know

okaar said:
Well I , like you, had a custom recovery. The 3-button method didn't work for me and even after restoring the stock recovery I was unable to install the update.
I unpacked the Update.APP file and flashed through fastboot the BOOT, RECOVERY, VENDOR and SYSTEM .img files and I was succesful but now I have the Model number as generic_a15 and Build number NRD90M test-keys. I can only assume some of the other img files carry the information about my phone. At the moment is stable enough but I can't open the Security menu.
If someone has any idea on how to flash the other img files, please let me know
Click to expand...
Click to collapse
well, if you flash your oeminfo zip, you should get it back

mjz2cool said:
well, if you flash your oeminfo zip, you should get it back
Click to expand...
Click to collapse
I only have old oeminfo.img packages, do you know how I can build one? There is a PRODUCT.img but it is considerably bigger than the oeminfo package that I have seen.
I flashed all the old B370 files, update.zip and update...hw_eu.zip, with DC Phoneix (a non free tool but saved me from.a bricked phone). After that, I flashed the new package and got the Security settings and Developer Options to work again.

Related

[SOLVED] local updates (update.zip, update.app) after root and unroot not working

Hello guys,
I have general issue updating locally (DLOAD) my P8 Lite, from root or SD, full update.app or incremental update.zip.
System always says: Sorry OTA update package (update.app or update.zip) not found and phone restarts
I had root but already unrooted. Tried to go back manually with adb to B052, didn´t help.
Any advice would be appreciated.
Ing.King said:
Hello guys,
I have general issue updating locally (DLOAD) my P8 Lite, from root or SD, full update.app or incremental update.zip.
System always says: Sorry OTA update package (update.app or update.zip) not found and phone restarts
I had root but already unrooted. Tried to go back manually with adb to B052, didn´t help.
Any advice would be appreciated.
Click to expand...
Click to collapse
Do you have stock recovery or TWRP?
Local update is not possible with TWRP. If you have TWRP you need to flash stock recovery, before trying the local update.
Well, I never installed different recovery, everything is default.
So after I renamed packages to something else, from e.g. update.zip to Update.zip1, and then back to update.zip, it started to work. While update I had DLOAD folder located both SD and root.
pmp said:
Do you have stock recovery or TWRP?
Local update is not possible with TWRP. If you have TWRP you need to flash stock recovery, before trying the local update.
Click to expand...
Click to collapse
how can i find a stock recovery?
same problem here. i have it on root of sd named update.app what do i have to do? rename it update.zip ?
Get a USB cable and plug it into a computer then restart the phone into recovery you should find it boots Huawei standard recovery if not you will have to flash it
EDIT turn off the phone then press volume up whilst pressing volume up press the power button keep holding volume up recovery should load
Post deleted
I've always used TWRP to flash stock updates. After flashing you have stock recovery and it's unrooted.
dereppsteiner said:
how can i find a stock recovery?
Click to expand...
Click to collapse
Here you can find a table with all Huawei firmware in it. Find one (F3) for your device (for example, ale-l21 europe region: ALE-L21C432) and download the FULL version. Then use Huawei Update Extractor to get just the recovery.img (right click on it > Extract)

Need help to create a TWRP update from OTA

I just receveid an OTA update, but the installation stuck because the system is rooted.
I found the update.zip file on my Handy, but it contains some directory (Meta-inf, patch and system) and a big file update.app that I believe contais all the update file.
Is it possible to extract the file from update.app and then create an update that can I launche from TWRP? And if so how could I do it?
Thanks
You can't.
flash back a stock recovery.
After ulocking bootloader and root the OTA didn't work with original recovery that's why I wanto to create an update that works with TWRP
did you try?
ItalianWolf said:
did you try?
Click to expand...
Click to collapse
Yes I reinstalled the original recovery that you can find in t he root package and I completely unroot the phone using the unroot command in SuperSu.
Then I launch the update but after reboot it stuck at 11%, so I create the dload folder in my handy memory and copied there the content of update.zip and then forced the update. In this case, after reboot, it load until 99% that it reboot, but the installed version is still the 170 and not the 188.
Here worked, from post #393 to # 397 and #400
Stock recovery in root zip maybe too old.
Edit:
Ops perhaps it work on full update packages.
ItalianWolf said:
Here worked, from post #393 to # 397 and #400
Stock recovery in root zip maybe too old.
Edit:
Ops perhaps it work on full update packages.
Click to expand...
Click to collapse
What does here mean?
Which thread?
Thanks
Harlock1978 said:
What does here mean?
Which thread?
Thanks
Click to expand...
Click to collapse
Sorry, forgot link: http://forum.xda-developers.com/p8l...-lite-android-6-0-marshmallow-t3305550/page40
You need the Huawei Update Extractor Tool, and do the following:
Load the UPDATE.APP file inside the HUET
Extract boot.img, system.img, and cust.img, from UPDATE.APP inside the HUET
Flash the respective files via Fastboot
so if I am on Marshmallow beta, should I flash the recovery that comes with the marshmallow or the recovery of the B052 rom ?
AmINoS007 said:
so if I am on Marshmallow beta, should I flash the recovery that comes with the marshmallow or the recovery of the B052 rom ?
Click to expand...
Click to collapse
If you have to, flash the B052 recovery... you can always flash the Marshmallow recovery if it doesn't let you update.
I only flashed boot.img, cust.img, and system.img, when I upgraded; didn't flash Marshmallow's recovery at all.
Don't think you can even get OTA updates on the Marshmallow beta anyway (even via a normal bootloader-locked device).
Sorry for my late answer but I was travelling only with a Mac and I couldn't use Huaweu Update extractor.
This are the file that you can find in UpdateApp 188:
00.SHA256rsa.img
01.crc.img
02.curver.img
03.verlist.img
04.efi.img
05.fastboot1.img
06.boot.img
07.recovery.img
08.recovery2.img
11.cache.img
13.dtimage.img
14.dsp.img
15.fastboot.img
16.hifi.img
17.mcuimage.img
18.modemimage.img
19.modemnvm1.img
20.teeos.img
21.trustfirmware.img
And also the following directory:
META-INF
patch
system
Which file should I install, I didn't find a system.img and there are two different recovery
Thanks
You should not install any OTA with TWRP...
Flash back the stock recovery, update, then flash the twrp again, it's way easier and more secure, than doing a flashable zip from an OTA update without knowing what to do with the file within.
The OTA updates usually doesn't contain the SYSTEM.IMG file you are looking for, it contains individual files and scripts to patch up the current system partition to work with the new update.
From the two recoveries you should use the RECOVERY.IMG (the one without the 2 in it).
But again, I do recommend to flash the original recovery(not the one in the update), do the update, and put twrp back.
Where can I find the original recovery from ALE-L21C432B170, so that I can flash the original recovery again?
TIA
I found the original recovery and flashed it then I did a complete unroot and tried again to do the OTA update but it stopped at 11%.
Is there a different way to update?

From Lineage Os 13 to Emui

Hello everyone !
I'd like to know the way to go back to Emui, 4.1 or 5.0, after a installation of Lineage Os on my device, a CAN-L01.
Can anybody help me and the people that installed Los and want to go back to Emui too ?
Thanks
M4rt1 said:
Hello everyone !
I'd like to know the way to go back to Emui, 4.1 or 5.0, after a installation of Lineage Os on my device, a CAN-L01.
Can anybody help me and the people that installed Los and want to go back to Emui too ?
Thanks
Click to expand...
Click to collapse
How Did you installed LineageOs with fastboot or twrp and did you ever flashed nougat firmware?
You can flash stock firmware via fastboot you need to install on your pc firmware finder, huawei extract tool, fastboot and hisuite (for sub drivers).
So - open firmware finder and search fwd for can-l01 download it and extract update.app
- run huawei extract tool,open update.app with it and extract (with right click) boot.img, cust.img, recovery.img, system.img and userdata.img (cust.img and userdata.img are just in Marshmallow for nougat rom you only need to flash boot, recovery and system) in the root of fastboot folder
- run fastboot trough cmd and flash images you have extracted with huawei extract tool.
If you never flashed nougat you can flash marshmallows, in firmware finder marshmallow firmware is somewhere about 1.9gb.
---------- Post added at 08:23 PM ---------- Previous post was at 08:05 PM ----------
Or you can try the other method, download fwd with firmware finder, extract update.app, extract with huawei extract tool recovery.img, flash recovery with fastboot, create a new folder in the root of your ad-card and name it dload, copy the update.app in dload folder, open the dialer app and type
Thanks for your fast reply !
I installed Los with TWRP.
In fact, I have tried for a week to install Emui 5.0, I flashed again and again changing my method but the best result I got was a bootloop, so I went back to Los. I did a full backup of my system running onto Emui 4.1 but to perform something like this I had to remove encryption from my /data partition, I did it with the command fastboot erase userdata. However, everytime I was booting the rom it encrypted the /data... So my backup doesn't contain /data and I think it is the reason I havn't been able to go back onto Emui so far.
Could you provide me a link to download a fullota of any Emui 4.1 firmwarefor CAN-L01C432 or C109 ? I already looked for it but I can't find anything.
M4rt1 said:
Thanks for your fast reply !
I installed Los with TWRP.
In fact, I have tried for a week to install Emui 5.0, I flashed again and again changing my method but the best result I got was a bootloop, so I went back to Los. I did a full backup of my system running onto Emui 4.1 but to perform something like this I had to remove encryption from my /data partition, I did it with the command fastboot erase userdata. However, everytime I was booting the rom it encrypted the /data... So my backup doesn't contain /data and I think it is the reason I havn't been able to go back onto Emui so far.
Could you provide me a link to download a fullota of any Emui 4.1 firmwarefor CAN-L01C432 or C109 ? I already looked for it but I can't find anything.
Click to expand...
Click to collapse
http://www.htcmania.com/showthread.php?t=1233848
Can you upload your backup? I was looking for Can-l01 marshmallow backup.
I can upload my backup if you want, but this is a CAN-L01C109, France version.
I'll share the link when I finish downloading the C432B100 and uploading my own.
M4rt1 said:
I can upload my backup if you want, but this is a CAN-L01C109, France version.
I'll share the link when I finish downloading the C432B100 and uploading my own.
Click to expand...
Click to collapse
Did you uploaded your backup? Still waiting for download link.

Twrp nougat install image?

Hello
I am not a hope in TWRP.
And I wonder if TWRP for nougat can install .img file as it is written install image.
Is it possible to install cust.img, product.img, etc .....?
and how?
Thank you
Chisetdel31260 said:
Hello
I am not a hope in TWRP.
And I wonder if TWRP for nougat can install .img file as it is written install image.
Is it possible to install cust.img, product.img, etc .....?
and how?
Thank you
Click to expand...
Click to collapse
i tried to flash stock boot.img by twrp and it doesn't work, my phone stucks at your bootloader is unlocked ...
simo255 said:
i tried to flash stock boot.img by twrp and it doesn't work, my phone stucks at your bootloader is unlocked ...
Click to expand...
Click to collapse
OK,
I wanted to be on.
Because twrp revolution rc3 shows install image boot and recovery.
And twrp 3.1.0.2 shows boot, recovery, cust, misc, oeminfo, system, vendor, product, version.
But nothing goes. I thought I was hurting him. thank you
Chisetdel31260 said:
OK,
I wanted to be on.
Because twrp revolution rc3 shows install image boot and recovery.
And twrp 3.1.0.2 shows boot, recovery, cust, misc, oeminfo, system, vendor, product, version.
But nothing goes. I thought I was hurting him. thank you
Click to expand...
Click to collapse
yes but they aren't working well
simo255 said:
yes but they aren't working well
Click to expand...
Click to collapse
As you see I am still trying to install b380.
What I managed to do is;
Since rom revolution rc4,
Installs root v5.2 because boot is b380.
Adb flash system.img from b380
Reboot.
It is not broken everything works, but it does not write b380.
Chisetdel31260 said:
As you see I am still trying to install b380.
What I managed to do is;
Since rom revolution rc4,
Installs root v5.2 because boot is b380.
Adb flash system.img from b380
Reboot.
It is not broken everything works, but it does not write b380.
Click to expand...
Click to collapse
trying to install b380? first go back to mm, then upgrade to b380
mjz2cool said:
trying to install b380? first go back to mm, then upgrade to b380
Click to expand...
Click to collapse
Yes, I have already tried, since MM, it started but it writes nrd90m, and the parameters do not go anymore. And it lacks significant appl.
Datafull public installs but it is not complete.
And datafull hw eu does not install error 7.
Not serious I will test again tonight to the calm.
And tomorrow huawei will publish LOL
Chisetdel31260 said:
Yes, I have already tried, since MM, it started but it writes nrd90m, and the parameters do not go anymore. And it lacks significant appl.
Datafull public installs but it is not complete.
And datafull hw eu does not install error 7.
Not serious I will test again tonight to the calm.
And tomorrow huawei will publish LOL
Click to expand...
Click to collapse
if you follow the instructions closely and have the correct oeminfo and firmware all should be fine
So, here, what I could find and install nougat.
Firmware full-ota-mf not pv.
For, full ota mf, there are three files.
_ Update.zip.
_file public.zip.
_file datafull.zip.
Uses huawei extractor to unpack update.app of update.zip and file datafull.zip.
You can find and install.
With adb and flash fastboot
_boot.img
_system.img
With twrp edit hassan install image.
_vendor.img
_ Cust.img
_ Version.img.
On nougat the device works correctly.
Now I am looking for a solution to install product.img
Any help or advice, would be welcome.
thank you

[SOLVED] How to unroot, relock bootloader and flash EMUI ?

Hello,
I tried to flash the RessurectionRemix ROM and it was working well except the LTE so I decided to get back to EMUI.
Problem, i took the backup of bluesmoothie and flashed it but the phone never finish to boot.... (I didn't wipe anything, i thought that the restore function of TWRP was doing everything, am I wrong ?)
Moreover, the TWRP recovery can't access the content of my ext sdcard where the RR ROM is located and even if i put this rom to internal storage, i got the ERROR 7 (this is for deive: can; you have generic_a53)
Do you know what can I do to :
- Come back to EMUI
- Unroot the phone
- Re-lock the bootloader
The files of the TWRP backup are located on the sdcard, if i wipe data/system/cache, will it delete these files ?
Infos :
- Bootloader unlocked
- TWRP of Garak (but still have ERROR 7 now)
Thank you very much
First you need to flash the stock recovery in fastboot. After that you need to put the update.app in a folder called dload in your internal storage.
wangdaning said:
First you need to flash the stock recovery in fastboot. After that you need to put the update.app in a folder called dload in your internal storage.
Click to expand...
Click to collapse
Okay but where can I find the stock recovery ?
Then, do i have to flash it via ADB like i did with TWRP ?
After that, where can I find the "update.app" that you are talking about ?
If i'm right, you're telling me that i can't go back to EMUI without flashing the stock recovery ?
That is correct. First use firmware finder to get the update.app. There is a firmware extractor tool for Huawei firmware. Use it to extract the recovery.img and flash with fastboot.
wangdaning said:
That is correct. First use firmware finder to get the update.app. There is a firmware extractor tool for Huawei firmware. Use it to extract the recovery.img and flash with fastboot.
Click to expand...
Click to collapse
First of all, thank you very much for your anwser, it's very kind of you.
If i understood everything, that's what i have to do :
- Download one of the Huawei firmwares with Huawei Finder (Better get the B100 or another one ?)
- Extract the recovery.img with the update.app from Huawei Finder
- Flash the stock recovery with ADB
Then :
- I put the update.app that i get through the Huawei Finder in the dload folder of the internal storage (If i flash the stock recovery, will I be able to put files in the storage ?)
- I reboot the phone in recovery and normally, it should install the EMUI rom
At the end, my phone will no longer have a custom recvery, bootloader unlocked and root status ?
iSpeeX said:
First of all, thank you very much for your anwser, it's very kind of you.
If i understood everything, that's what i have to do :
- Download one of the Huawei firmwares with Huawei Finder (Better get the B100 or another one ?)
- Extract the recovery.img with the update.app from Huawei Finder
- Flash the stock recovery with ADB
Then :
- I put the update.app that i get through the Huawei Finder in the dload folder of the internal storage (If i flash the stock recovery, will I be able to put files in the storage ?)
- I reboot the phone in recovery and normally, it should install the EMUI rom
At the end, my phone will no longer have a custom recvery, bootloader unlocked and root status ?
Click to expand...
Click to collapse
Yes, that's correct. But you have to put update.app in dload folder on your SD card as far as I know. That's how I did it.
I couldn't find B100 on Firmware Finder and I've got relocked bootloader on Nougat.
Yes, you will need to copy the update.app to internal storage in TWRP, then flash the stock recovery. After flashing you need to hold all three buttons when booting (just like getting into TWRP. After update you will have no custom recovery, no root, and it should lock bootloader.
wangdaning said:
Yes, you will need to copy the update.app to internal storage in TWRP, then flash the stock recovery. After flashing you need to hold all three buttons when booting (just like getting into TWRP. After update you will have no custom recovery, no root, and it should lock bootloader.
Click to expand...
Click to collapse
I did everything, now it's booting but it's VERY VERY LONG... I'll wait and pray
iSpeeX said:
I did everything, now it's booting but it's VERY VERY LONG... I'll wait and pray
Click to expand...
Click to collapse
If it doesn't boot, then boot in recovery and do a factory reset and then it should boot. It happened to me and that's what I did.
#Henkate said:
If it doesn't boot, then boot in recovery and do a factory reset and then it should boot. It happened to me and that's what I did.
Click to expand...
Click to collapse
I still have the warning message "your phone is unlocked", is it normal ?
When i boot into recovery it's displaying "eRecovery" and ask me to download the new update of recovery but it fails when getting the package. I can only reboot and turn off :/
Thank you as always
iSpeeX said:
I still have the warning message "your phone is unlocked", is it normal ?
When i boot into recovery it's displaying "eRecovery" and ask me to download the new update of recovery but it fails when getting the package. I can only reboot and turn off :/
Thank you as always
Click to expand...
Click to collapse
You shouldn't have that message anymore.
Are you sure that the update.app got installed? @wangdaning told you to put it on dload folder in internal memory. I don't know if that is right or if it works, but I've put it in dload folder on sdcard when I've installed update.app.
#Henkate said:
You shouldn't have that message anymore.
Are you sure that the update.app got installed? @wangdaning told you to put it on dload folder in internal memory. I don't know if that is right or if it works, but I've put it in dload folder on sdcard when I've installed update.app.
Click to expand...
Click to collapse
Well i wasn't in front of it when it finished and I just did it : the update stops at 5% and then the phone reboot....
Do you know what do I have to do ? I took the recovery from the last B350 on huawei firmware finder
EDIT1 : but this time in recovery i can Reboot, Wipe factory reset, Wipe cache
iSpeeX said:
Well i wasn't in front of it when it finished and I just did it : the update stops at 5% and then the phone reboot....
Do you know what do I have to do ? I took the recovery from the last B350 on huawei firmware finder
EDIT1 : but this time in recovery i can Reboot, Wipe factory reset, Wipe cache
Click to expand...
Click to collapse
You can read in this post the steps I've used to relock the bootloader and get update (official I guess) through Settings > System update. Just "click to show content".
#Henkate said:
You can read in this post the steps I've used to relock the bootloader and get update (official I guess) through Settings > System update. Just "click to show content".
Click to expand...
Click to collapse
The problem is that the phone doesnt finish to but anymore... i can't do things in menu.
When you talk about SD card, it's the external sd card ? Because i don't have access to it anymore, but i have the partition SD Card
When you installed the B340 update, you seen the percent growing up and had a "success" message ? Because, for me, the update is stuck at 5% and then it reboot the phone
iSpeeX said:
The problem is that the phone doesnt finish to but anymore... i can't do things in menu.
When you talk about SD card, it's the external sd card ? Because i don't have access to it anymore, but i have the partition SD Card
When you installed the B340 update, you seen the percent growing up and had a "success" message ? Because, for me, the update is stuck at 5% and then it reboot the phone
Click to expand...
Click to collapse
Yes, I mean external sdcard.
Reinstall TWRP and restore bluesmoothie's backup and then flash the stock recovery again.
I didn't have any issues with installing the B340 firmware. It was installed successfully.
Try to follow the steps I've used. You shouldn't have any problem.
#Henkate said:
Yes, I mean external sdcard.
Reinstall TWRP and restore bluesmoothie's backup and then flash the stock recovery again.
I didn't have any issues with installing the B340 firmware. It was installed successfully.
Try to follow the steps I've used. You shouldn't have any problem.
Click to expand...
Click to collapse
Okay i'm going to try it right away
My external sd card doesnt show up anymore when i connect it to my PC, i don't know why
I mentioned internal SD card because you said your external was not recognized, but you might try putting the dload folder on external. I have done it both ways. Sometimes the update through stock recovery is finicky. If it doesn't finish run it again. Also, make sure your USB is disconnected, as may Huawei users have mentioned this causes it to freeze. If it still fails, try dloading a different update from firmware finder.
Did it work?
I didn't have so much time these days but I did it and it worked for the 1st part (flash bouesmoothie's backup). Tomorrow I'll do the final step! Thank you again
Here I am :
1 : flashed stock recovery from B350 and i don't have the "unlocked" message anymore !
2 : The update B350 made it, "update success"
3 : It doesn't boot for now
4 : The boot doesn't end
-----
1 : flashed TWRP recovery, launched a factory reset in the same time
2 : Phone booting again on B100
-----
1 : flashed stock recovery from b350
2 : flashed b350 update
3 : Everything is fine !
Thank you for your help !!!

Categories

Resources