yashsingh1/xdaforums huggingface dataset:
[Huawei P10 Guides, News, & Discussion] amducias:
Hi all,

Can you please advise if this method could be used to get back to Stock Rom from OpenKirin one (currently using Lineage OS but don't like it)? I'm not quite sure which step should I follow from the initial instructions, so if you could advise how to proceed I would really appreciate it.

Please note that I have the stock recovery.
[Huawei P10 Guides, News, & Discussion] M1chiel:
If you haven't rooted you can simply flash system.img from the stock rom and do a factory reset in erecovery. Openkirin.net clearly explains how to extract the system.img from a stock rom. Make sure you download the correct one (i.e. the version you are using: see About phone).
[Huawei P10 Guides, News, & Discussion] amducias:
Yeah I tried to follow the instructions which they put in three separate articles, however the last one is landing on the main page and I don't see the flasing instructions. Here is the link:

https://openkirin.net/user_guide/how...tition-images/
[Huawei P10 Guides, News, & Discussion] M1chiel:
fastboot flash system <name-of-rom-image-file>
[Huawei P10 Guides, News, & Discussion] mad1993max:
Hi i followed the guide, but my twrp is stuck at "Have a nice day! and thanks for the cockie!" and it wont reboot into huawei recovery? Any help?
[Huawei P10 Guides, News, & Discussion] urbanboymne:
Use new Huawei MultiTool and flash stock recovery in tool
[Huawei P10 Guides, News, & Discussion] nmlng:
Can I downgrade to other version using this method?
[Huawei P10 Guides, News, & Discussion] Jannomag:
I'm not really sure, the script just provide the update files for a modified recovery, which installs them.

Maybe it works, maybe not

But, DO NOT try to install Nougat over Oreo! For this, there's a tutorial here on XDA.
[Huawei P10 Guides, News, & Discussion] nmlng:
Alright thanks. Wanted to downgrade previous oreo version since Huawei started to implement some ridiculous thing and become close source in the future. Really frustrating
[Huawei P10 Guides, News, & Discussion] mcohyeahhh:
Hi sir,

I want to update from VTR-L29C432B130 to oreo VTR-L29C432B375 full. Will this work? Thanks
[Huawei P10 Guides, News, & Discussion] Jannomag:
Yes, if you're bootloader is unlocked, you can use Tutorial #1.
[Huawei P10 Guides, News, & Discussion] mcohyeahhh:
I have to have fat32 sdcard right? I currently have generic hierarchial sd card formay and have doubts. I will just reformat it. I dont have card reader atm. I'll try it once I have sd card with fat32. I have bootloader locked but I will unlock it to install twrp.
[Huawei P10 Guides, News, & Discussion] Jannomag:
FAT32 is the best file system for Android even though it's old. With FAT32 you can't run into SD card related problems.

You can also format it within Android without an SD card reader and copy the files via MTP, so no reader is required if your phone works.

Just be sure to copy everything you need.
[Huawei P10 Guides, News, & Discussion] mcohyeahhh:
Wow it worked like magic:good: thanks for the guidance. Successfully upgraded my phone to oreo with tutorial 1.

VTR-L29C432B130 to VTR-L29C432B375

I'll have yet to check phone for any concern if there is any.
[Huawei P10 Guides, News, & Discussion] Jannomag:
I'm glad it's working for you. Btw, B376 is out on Firmware Finder with September patches. With tutorial #2 you can update, but you lost root/Magisk after that, so you need to reinstall them if you want.
[Huawei P10 Guides, News, & Discussion] mcohyeahhh:
It's all thanks to your guide! And the rest of xda also. I did not install it since it is not yet approved when I checked on Firmware Finder. So I did not risk installing it and installed 375 instead as it is the latest approved based on FF.

BTW, my phone is locked after update and apps&contacts were deleted. Those were the only data I had so no concern for me. I came from a demo P10 (VTR-L09C652B103), soft bricked my phone trying to rebrand it, revived it using HWOTA to VTR-L29C432B130, then to oreo VTR-L29C432B375 using your method so I'm so happy that it os working now.:cool:

Thanks a lot to your method and guidance!
[Huawei P10 Guides, News, & Discussion] ej8989:
Will this method work if I want to DOWNGRADE from B370 to B366?

Device: VTR-L29C636

EDIT: It worked!
[Huawei P10 Guides, News, & Discussion] Jannomag:
Thanks for the information that a downgrade works!
[Huawei P10 Guides, News, & Discussion] dodgedroid:
Deleted
[Huawei P10 Guides, News, & Discussion] ufooq:
I tried this upgrading to Oreo method on my mate 8 by replacing the firmware files with mate 8 version.

After the device rebooted itself, it entered the TWRP recovery again and the following error messages were found.

E: unknown command [errno]

Updater process ended with ERROR: 9

Error installing zip file '/external_sd/oreoupgrade/update.zip'

does anyone have any idea on how to fix it?
[Huawei P10 Guides, News, & Discussion] hamadalog25:
Hi, I want to update my huawei p10 VTR-L09 rebranded to L-29C432. Do I download the update zip file for L-09 or L-29?
[Huawei P10 Guides, News, & Discussion] tkalfaoglu:
Error 2

I have a rooted unlocked mate 10. TWRP install of the zip file went fine, until it gave an

"updater process ended with error 2"

and it died.

Any ideas what to do?

-t
[Huawei P10 Guides, News, & Discussion] DallasCZ:
-it depends what update did you did.

-Nougat to OREO or just OREO update?

-what install files did you downloaded (i mean the one for Nougat-oreo, or oreo-oreo or the version for emmc storage devices?

-where in the proces in post 1 did this happened?

-have you tried to power the phone to recovery mode? If yes what recovery do you have?
[Huawei P10 Guides, News, & Discussion] mattintoronto:
Am I the only one who is having trouble accessing firmware files ? Both through the team mt app and their site. Are they done for ?
[Huawei P10 Guides, News, & Discussion] M1chiel:
No problem here. On the site click on the firmware link and change "changelog.xml" in the URL into "update.zip". The download should start right away.
[Huawei P10 Guides, News, & Discussion] lifeform:
hello

i cannot get update because i bought malay device but i lived in indonesia.

this guide still working?

i cannot used firmware finder anymore. vpn and proxy cannot working
[Huawei P10 Guides, News, & Discussion] Jannomag:
Yes, this guide still works. But you need to download your desired firmware manually.
[Huawei P10 Guides, News, & Discussion] mattintoronto:
Thanks for checking. Turns out the site is blocked by one of my lists that I edited my hosts file to include. Thanks again!
[Huawei P10 Guides, News, & Discussion] ExTile2:
''Serious problems''

ok. i think i made bad become worse. I tried updating from android 7 (i was o nC632B110) to android 8 with twrp using the oreoupgrade.zip method. Now it boots me into erecovery saying ''Serious problems occured when the phone boot, you are recommended to do factory data reset

NOTE: user data will be wiped after recovery''

And then i have two options: 1. Factory data reset (recommended) 2. Download latest version and recovery
[Huawei P10 Guides, News, & Discussion] DallasCZ:
And did you downloaded the right oreo update files (for C632?).

You can try to reflash your TWRP backup.
[Huawei P10 Guides, News, & Discussion] luke_landler:
Works just fine, I've tried method #2 to update my phone with unlocked bootloader and custom kernel from B376 to B379.

Only thing I noticed after the successful update and after flashing TWRP and Proto Kernel again, is that the phone app did not work anymore so no calls were able to be made, same for incoming calls. I re-applied the update method and everything is fine again. Seems like from now on I have to live without a custom kernel... :crying:

Phone: VTR-L09 8.0.0.379(C432)
[Huawei P10 Guides, News, & Discussion] sfoot13:
Be carefull, if you try to rollback to a previous version, you could hard brick your phone.

B380 is anti-rollback, don't know about B379, but you'll not be able to use custom kernel without issues.

https://xdaforums.com/p10-plus/how-to/attention-hard-brick-info-xloader-t3867807
[Huawei P10 Guides, News, & Discussion] luke_landler:
Ok thanks for the info. To everyone who is interested, referring to the link in your post: B379 also seems to be anti-rollback so calls are definitely not working with B379 using custom kernels
[Huawei P10 Guides, News, & Discussion] M1chiel:
[MENTION=6954776]Jannomag[/MENTION] I updated my VTR-L29C432 to version 381, which was approved by ff, but settings now indicate Build Number: 8.0.0.046(0LAO). This is clearly not correct as the security patch is 5 Nov 2018 and all European apps have been installed (e.g. emergency broadcast). The device works without issues. Any tips?
[Huawei P10 Guides, News, & Discussion] sfoot13:
Yes, if the OS isn't giving you troubles or annoying bugs, don't mess with it, leave it as it is.

If you want to downgrade, do it in a safe way, use HiSuite9, rollback to nougat and update to your favourite version.
[Huawei P10 Guides, News, & Discussion] Jannomag:
[MENTION=7244877]M1chiel[/MENTION] My script just tells the recovery mode which files it has to use for install. If there's any problem with the firmware, it can't be related to my script.

Possible reasons for your problem:

- Wrong links provided by FF

- Wrong or corrupted files from Huawei

- Wrong files provided for the script, maybe old files you copied accidentally instead of the new ones

0LAO is an indicator for wrong firmware files or failed rebrand. You can try [MENTION=4325260]cologne83[/MENTION] 's solution https://xdaforums.com/showpost.php?p=75159200&postcount=4 (instead of STF-L09, look for VTR-L[x]9).

Root is needed for this. Read the whole threat if you didn't rooted your phone.

I would recommend the TWRP by [MENTION=4131468]espaciosalter20[/MENTION].

I also uploaded my /cust and /version/special_cust directory, packed as zip, here (also VTR-L29C432B381)
[Huawei P10 Guides, News, & Discussion] M1chiel:
You are a hero! The version/special_cust was different from yours. All ok now. Thanks!

I figured out wat went wrong. I flashed the update_full_vtr-l09_hw_eu instead of the 29 :rolleyes:
[Huawei P10 Guides, News, & Discussion] M1chiel:
Thanks for the warning. Unfortunately the downgrade didn't work. Hisuite downloaded the Nougat VTR-L29 C432, but the installation failed. I managed to repair the cust info (see previous post) and I wonder if it the downgrade would work now. But I will not try that at the moment, since all is fine now.
[Huawei P10 Guides, News, & Discussion] djg269:
That's what you get when you are impatient ??

Kidding of course. Today official B381 came through.
[Huawei P10 Guides, News, & Discussion] Ghoelian:
It says I've got the wrong path, that the correct path is /sdcard/oreoupdate/oreoupdate.zip. But that is the path I put the files in. It even says right above it: "Installing zip file '/sdcard/oreoupdate/oreoupdate.zip'. Did I do something wrong?
[Huawei P10 Guides, News, & Discussion] Jannomag:
Please post a screenshot of your SD card and Oreo update directory.

Also attach the TWRP log, please. For this go to Advanced and do "Copy Log to SD".
[Huawei P10 Guides, News, & Discussion] Ghoelian:
Here's a pastebin with my recovery.log:

pastebin. com/D17BHXd1

Storage contents(my internal storage is mounted to /sdcard/ and /data/media/0/, but I always browse to /sdcard/):

imgur. com/a/AnKZTKF

oreoupdate folder (which is located in /sdcard/oreoupdate):

imgur. com/a/KYSyO3H

Apparently I can't post links yet, so I added a space.
[Huawei P10 Guides, News, & Discussion] Diodato:
Tried updating from B379 to B381 using method #3.

Installing zip file '/cust/officialupdate/officialupdate.zip'
Checking for Digest file...
Skipping Digest check: no Digest file found
I:Update binary zip
Verifying package compatibility...
Package doesn't contain compatibility.zip entry
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment not used in updater.

-----------------------------------------------
| Welcome to Jannomag's manual update script! |
-----------------------------------------------
This script will NOT update your EMUI 8.0 (Oreo)
It will only flash modified stock recovery
So you can install official updates without
needing to unroot and relock bootloader

Let's start!

Checking, if every file is present...
and looking for some cookies
officialupdate.zip in cust ... OK
Recovery in cust .............. OK

/tmp/updater: line 141: syntax error: unexpected end of file (expecting "fi")
Updater process ended with ERROR: 2
I:Install took 4 second(s).
Error installing zip file '/cust/officialupdate/officialupdate.zip'
Updating partition details...

Phone is VTR-L09 8.0.0.379(C432), TWRP is 3.2.1-0.

Log: recovery.log

EDIT #1:

It seems that your script is missing the following lines (starting at line #95):

ui_print "Unable to detect device flash type!"
sleep 2.0
exit
fi

fi

Is that correct?
[Huawei P10 Guides, News, & Discussion] Jannomag:
You put the oreoupdate directory in your internal storage. This doesn't work. You need an external SD card formatted to FAT32.

That's strange, because I used the script a week ago without any problems. Did you download the latest version and used the TWRP I posted in the threat?
[Huawei P10 Guides, News, & Discussion] Ghoelian:
Aah I see. I'll try that then. I thought that because the path is the same it would be fine. Thanks.
[Huawei P10 Guides, News, & Discussion] Diodato:
The link from your first post - "officialupdate-130618.rar"

Can you try yourself downloading this archive?

I use TWRP 3.2.1-0.

Anyway the syntax error (unmatched closings fis for ifs) would be independent of the TWRP version.
[Huawei P10 Guides, News, & Discussion] Jannomag:
You're right, I mixed up Tut#2 and Tut#3 (I used Tut#2 because B381 wasn't available for my device).

I updated #3 and also it links, I missed two 'fi' syntax for closing two 'if' arguments while looking for files either in /cust or /sdcard.
[Huawei P10 Guides, News, & Discussion] olat_dragneel:
Hello. I want to confirm that method #2 worked for my VTR-L09C432. I've updated from version b375 to b381. The best thing about it is you get a clean, unrooted OS, so when the next update hits you can simply install OTA. (I had trouble removing root and not being able to use official OTA).

Thank you for the guide!
[Huawei P10 Guides, News, & Discussion] Jannomag:
Glad to hear it! And yes, after the update the phone is u rooted, because the installer will overwrite /system and /cust, where the root is stored usually.

Which version did you use to update? Full-OTA or just OTA?
[Huawei P10 Guides, News, & Discussion] Superblond:
CONFIRMED: Worked for my Huawei P10 (VTR-L09) from Nougat to Oreo

Hi guys,

just to inform & encourage you this info.

Worked like a charm on) my Huawei P10 (VTR-L09 with

oreoupgrade-060518 .rar (provided in this post by Jannomag) and

2018.12.05	VTR-L29C432B382 (8.0.0.382) 2,8GB from here

(provided in this post by Jannomag)

Excellent work & thanks so much!

SB
[Huawei P10 Guides, News, & Discussion] Ghoelian:
So I've put it on an external SD card now, and when I run it it says that everything seems to be goog, but then unable to detect flash type. What does that mean?
[Huawei P10 Guides, News, & Discussion] bacardischmal:
Hello,

is there an easier way to avoid data loss when updating?

I use Project Treble with LineageOS and I removed the forced encryption on my P10.

Here the steps i did to update:

1. Did a full backup with twrp

2. Updating same as in "Tutorial 2 - Updating Oreo version" until the reboot

3. The phone will restart by itself and now I enter fastboot

4. flash treble LineageOS gsi with fastboot

5. flash twrp with fastboot

6. reboot to twrp

7. mount /vendor and copy a modified fstab.hi3660 to /vendor/etc/ to avoid new encyption

8. wipe cache & dalvik & reboot

I did an update from VTR-L09C432B381 to VTR-L09C432B382 without data loss, but is there an easier way?
[Huawei P10 Guides, News, & Discussion] lukastob:
I have downloaded aproved firmware from ff app and did not managed to update oreo, instalation failed around 75%. Then I have tried soft direct from pro-teammt site and it update without trouble. I'm curious what makes that difference between firmware from ff app and website.
[Huawei P10 Guides, News, & Discussion] Jannomag:
19.02.2019 - Added script for updating to Pie

Please follow instructions of Tutorial 4 for updating Oreo to Pie.

Report here if it worked or if you had any problems.

I tested it on my P10 region C432. I updated from 8.0.0.381 without any data loss.
[Huawei P10 Guides, News, & Discussion] lukastob:
I have 8.0.380c432 rooted with magisk, do I need unroot before upgrading to pie?
[Huawei P10 Guides, News, & Discussion] stefan.irmen:
Hi!

Thx a lot for your guide, i update my rebranded VTR-L29 from B384 to Pie (9.0.1.157) sucessfully with your tutorial #4!

My question is: If there will be a newer version, how can i upgrade? Can i use pieupgrade.zip too?
[Huawei P10 Guides, News, & Discussion] Jannomag:
It should work, I’ll release a sperrte version, when I can test it. For now be careful, I tried to downgrade and fried my main board with this.
[Huawei P10 Guides, News, & Discussion] stefan.irmen:
Ok! I dont want to downgrade, for now everything works fine... I just wondered, because there were only 2 update files instead of 3 like on oreo... For now i will stay on pie with open bootloader :)
[Huawei P10 Guides, News, & Discussion] stefan.irmen:
Just another question...

Is it right, that it isn't possible at the moment to go back to Oreo after Pie update???
[Huawei P10 Guides, News, & Discussion] Jannomag:
Some say it is, some say it isn’t.

Some people saying that HiSuite is able to rollback.

In the P20 forums is a Tutorial with a script for downgrading. This script contains the exact same commands as my script, so I rewrite my own script and tried to downgrade to Oreo - now my phone won’t show anything else but a black screen with working fast boot. I tried to reflash everything but I’ve still just a door stopper.

I tried DC Phoenix with test point, also no success.

I ordered a used mainboard and hope it’s working.

So, be careful with Pie. Play store certification isn’t working, if you don’t need this you can stay on Pie until there’s a working rollback.
[Huawei P10 Guides, News, & Discussion] fatjoez:
I updated my P10 from v8 b360 to emui 9 beta succesfully.

* I had b360 so don't worry about minimum b376 warning

* My device is UFS not emmc. The sequential read was about 400.

* I previously had SUPERSU root installed but no problems

* playstore not certified

* overall ok

* Successful root with magisk (followed instructions here: https://xdaforums.com/mate-10/how-to/guide-magisk-root-mate-10-pro-t3886967)

1. patch stock recovery_ramdis.img with magisk 2. flash patched file in fastboot 3. reboot phone to recovery then phone will boot rooted
[Huawei P10 Guides, News, & Discussion] Jannomag:
Magisk is using recovery_ramdisk but this didn’t work for me when I tried. Huawei messed it up with EMUI9, everytime you want to Boot rooted you need to boot like you want to boot into recovery. If you want to use recovery you need to flash it over Magisk
[Huawei P10 Guides, News, & Discussion] Disillusionedsal:
P10 Plus VKY-L09 (No recovery, No Boot, Error! Func NO : 11)

Background:

Phone was successfully rebranded to VKY L29, however since VoLTE doesn't work on it, an attempt was made to debrand back to VKY L09. Phone is unlocked, FRP is unlocked.

What went wrong:

After flashing OEMINFO, I tried using Tutorial 2 (Oreo update) by OP [MENTION=6954776]Jannomag[/MENTION]. I had all three update files in place and used TWRP to flash oreoupdate.zip which prompted everything was successful.

Unfortunately, after reboot the phone got stuck on warning screen but it won't enter recovery.

While attempting regular boot, phone would show below:

Error Mode

Attention!

Please Update system again.

[Green Android]

Error!

Func NO : 11 (reovery image)

Error NO : 2 (load failed!)​

What have I tried to fix it:

Tried flashing recovery multiple times viz. original, TWRP but the phone would always get stuck on warning screen.

Tried flashing all files under update.app viz. system, recovery, ramdisk, odm, product, cache and whatnot, many would fail with error FAILED (remote: Command not allowed)

Tried multi-tool to flash various boot / kernel, ramdisk, recovery but to no avail.

Tried DC-Unlocker only to get below:

Build number: :System 8.0.0.046(0PF0)

Model: VKY-L09

Battery state: 3564mv

Device with unsupported security patch

User accepted to update device with unsupported security patch

Writing XLOADER partition

XLOADER partition UPDATE :FAIL Command not allowed

Device with unsupported security patch

2/23/2019 3:01:49 PM Writing device finished - INCOMPLETE​

What I've understood is, OP's patch writes two images to two different areas in memory.

These two areas correspond to laf and rct partition. However, when I try writing or erasing these partitions or memory blocks through fastboot, I get command not allowed error.

Seems like this annoying phone is beyond repair, but would appreciate any input that I can try to fix it.
[Huawei P10 Guides, News, & Discussion] burimselmani:
I did the method 4 and it worked perfect, It even unbricked my phone! thanks a lot!
[Huawei P10 Guides, News, & Discussion] netmaniack:
You tried to flash Oreo rollback fw or previous Oreo fw?
[Huawei P10 Guides, News, & Discussion] Jannomag:
I didn’t found any rollback Firmware and didn’t know if there are any differences. If you know more about that, please report.

Maybe this was the reason why my phone is a piece of junk now.

But I also have to say that it’s very bad engineering when software can destroy the phone completely just by flashing something wrong. Even test point isn’t working and the security patches are preventing that you’re able to flash necessary partitions.
[Huawei P10 Guides, News, & Discussion] tkalfaoglu:
I recently upgraded my OmniROM and I did not have to wipe anything.. So happy -- it works great and nothing is lost..
[Huawei P10 Guides, News, & Discussion] lukastob:
Could you briefly explain what exactly you rewrote on your script? Or upload it, because I downloaded all the scripts to make some comparsion and I have noticed some differences in paths. I could give a try to downgrade but first would like to fully understand all the commands in order not to fry it.
[Huawei P10 Guides, News, & Discussion] Jannomag:
First I removed all the security and text parts of my script like path checking.

Then I changed the recovery path from /.../recovery_ramdisk_a to /.../recovery_ramdisk.

After that I edited the paths of the update files to fit to my sdcard so all three needed files are available for the update command which is still getting written in the cache.

I’m not able to view my script because I can’t open it on my spare phone - iPhone 6S. Maybe later after work I can post my script, but above is all I changed.
[Huawei P10 Guides, News, & Discussion] skolebolle:
Hi! Short question. Is Huawei messaging app finally replaced by Android Messages in this build?
[Huawei P10 Guides, News, & Discussion] aalmeida1972:
Is there a twrp for android pie? I want to install magisk.

Thanks
[Huawei P10 Guides, News, & Discussion] Jannomag:
Not yet and it’s also not needed. You can use Oreo TWRPs m but you’re not able to decrypt /data.

Read through the tutorials and Huawei related posts in Magisk forums. You need to modify your recovery_ramdisk within the Magisk app. Then flash it. EMUI 9 doesn’t have a boot partition anymore. So you need to boot like you want to boot into recovery every time you reboot your phone.

You can extract the original recovery_ramdisk from EMUI 9 update.app.

If you want to update your phone you need to reflash Stock recovery first.
[Huawei P10 Guides, News, & Discussion] aalmeida1972:
So, it means, that it's not possible to install magisk?