Install P10 OTA updates after root? - Huawei P10 Questions & Answers

How can I install the OTA updates on P10 after root? I root it using TWRP and SuperSu. I believe I need to install a stock recovery, where can I get a stock recovery? Also will installing a stock recovery erase my data?

vondutch9 said:
How can I install the OTA updates on P10 after root? I root it using TWRP and SuperSu. I believe I need to install a stock recovery, where can I get a stock recovery? Also will installing a stock recovery erase my data?
Click to expand...
Click to collapse
A rooted phone cannot receive OTA update.

I did it this way (on my P10 Lite):
1- Unroot using SuperSU and do not choose to recover stock boot and recovery image when asked, phone will reboot
2- Now download the OTA update using HiSuite and 2 zip files will be saved on your computer.
3- Extract the bigger file (should be called Update.zip or something like that) and you will then see a file called UPDATE.APP file which is like 3GB or so.
4- Now use Huawei Update extractor from here (https://forum.xda-developers.com/showthread.php?t=2433454) to extract the first Recovery.img from it (there could be 2, just extract the first one).
5- Now reboot into bootloader and flash this recovery image and then reboot into system again.
6- If everything is working fine, reboot into bootloader again and relock your bootloader using "fastboot oem relock (your bootloader unlock code)"
7- This will erase all your data and do a factory reset of your phone so make sure you make a HiSuite backup before doing this.
8- Now you should be able to update normally on your phone.
9- If u want to unlock bootloader again and reroot then you do it the exact same way as you did it the first time.
PS. I am not responsible if you brick your phone while doing this.

Related

[Q] HTC one dual 802W - can't return to stock recovery

i would like to upgrade my htc one over the air. here is what i did
my phone was rooted and had TRWP, now i flashed stock recovery for KK which i found here:
http://forum.xda-developers.com/showthread.php?t=2617159
but phone still doesn't enter recovery (red triangle) and with that olsa OTA is not runninng after phone restart
any idea what i have to do to return to stock recovery?
i am running android 4.43 with OS 6.13.401.3
iampinki said:
i would like to upgrade my htc one over the air. here is what i did
my phone was rooted and had TRWP, now i flashed stock recovery for KK which i found here:
http://forum.xda-developers.com/showthread.php?t=2617159
but phone still doesn't enter recovery (red triangle) and with that olsa OTA is not runninng after phone restart
any idea what i have to do to return to stock recovery?
i am running android 4.43 with OS 6.13.401.3
Click to expand...
Click to collapse
If you got red triangle, press POWER + VOL_UP..
elias.parasini said:
If you got red triangle, press POWER + VOL_UP..
Click to expand...
Click to collapse
what should i expect? it is just restarting my phone....
i am able to use my phone but still no idea how to enter recovery/upgrade via ota
ok, I found that volume up and power is showing log.
with that i can see below when trying to install OTA:
whan i am entering recovery i get different error:
any proposal how to move forward?
my phone is relocked now, is there any option to unlock it without cleaning all data?
i don't want to reinstall everything again
iampinki said:
ok, I found that volume up and power is showing log.
with that i can see below when trying to install OTA:
whan i am entering recovery i get different error:
any proposal how to move forward?
my phone is relocked now, is there any option to unlock it without cleaning all data?
i don't want to reinstall everything again
Click to expand...
Click to collapse
You have 4.4.2 stock recovery. The OTA needs 4.4.3 (or above) stock recovery.
Download the OTA but dont install it, copy the OTA file to your computer, unzip it, you'll get firmware.zip, unzip the firmware.zip, you'll get recovery.img.
Flash that recovery.img.
Than install the OTA through setting -> software update, dont install OTA via recovery..
It should works..
elias.parasini said:
You have 4.4.2 stock recovery. The OTA needs 4.4.3 (or above) stock recovery.
Download the OTA but dont install it, copy the OTA file to your computer, unzip it, you'll get firmware.zip, unzip the firmware.zip, you'll get recovery.img.
Flash that recovery.img.
Than install the OTA through setting -> software update, dont install OTA via recovery..
It should works..
Click to expand...
Click to collapse
i have to unlock the phone first (ir is relocked) will it wipe my data?any chance to keep them?
iampinki said:
i have to unlock the phone first (ir is relocked) will it wipe my data?any chance to keep them?
Click to expand...
Click to collapse
unlock bootloader erase your data.. Copy your file to your computer..
For apps, you can use titanium backup, so you dont need to download that apps from playstore again..
elias.parasini said:
You have 4.4.2 stock recovery. The OTA needs 4.4.3 (or above) stock recovery.
Download the OTA but dont install it, copy the OTA file to your computer, unzip it, you'll get firmware.zip, unzip the firmware.zip, you'll get recovery.img.
Flash that recovery.img.
Than install the OTA through setting -> software update, dont install OTA via recovery..
It should works..
Click to expand...
Click to collapse
indeed flashing new recovery did solve the problem. As i locked phone before (somewhere people were saying that it has to be locked to get OTA) i had to wipe the phone (titanum backup doesn't work without root)
thanks
How to re-lock this phone ?
Htc one m7 dual sim (802w)
elias.parasini said:
You have 4.4.2 stock recovery. The OTA needs 4.4.3 (or above) stock recovery.
Download the OTA but dont install it, copy the OTA file to your computer, unzip it, you'll get firmware.zip, unzip the firmware.zip, you'll get recovery.img.
Flash that recovery.img.
Than install the OTA through setting -> software update, dont install OTA via recovery..
It should works..
Click to expand...
Click to collapse
hentorky said:
How to re-lock this phone ?
Htc one m7 dual sim (802w)
Click to expand...
Click to collapse
fastboot oem lock

Couple questions after unlocking bootloader (XT1096)

Ok, here's the rundown - I have a VZW Moto X (XT1096). I previously ran mofo on it had flashed the 5.1 img files to it and so had 5.1 rooted, but with a locked bootloader. After learning that JCase had gotten sunshine to work on it I unlocked my boot loader. I then decided that because I was worried about having the a kind of mish-mash of systems on it, i.e., 5.0 bootloader (unlocked) with hacked and modded 5.1 system files flashed from mofo, that I wanted to start fresh. I then used the XT1096 flash to stock script and flashed back to 5.0 (there were a bunch of problems and bootloops and force closes, but I am happy to report I am now on a fully stock 5.0 with unlocked BL). Following being stock I have tried to take the OTA but have been unable to do so. When I try it OTA on my device it just sits at 0%. When I tried using MDM it gave me an error message that it failed to install the update - on the device it said getjar: unlocked.
So, now that I am on 5.0 with an unlocked bootloader I am not sure how to proceed with my priorities, Root, WiFi tethering and upgrading to 5.1. My questions are this:
(1) How can I upgrade to 5.1 or does my bootloader unlock preclude that?
(2) How best can I achieve root?
(3) Once I am rooted what do I need to do in order to enable wifi tethering?
Thank you so much!
Okay I can't help with all your issues since I didn't get that problem. It seems like whatever you did to install your phone back to 5.0 it wasn't a clean install or you didn't do a clean data wipe to remove errors, which caused it to not able to receive OTA. I do not believe unlocking bootloader preclude you from receiving OTAs because it worked for me.
1. What you should try to do is download this stock 5.0 firmware package, run the bat file with the latest adb/fastboot, then boot into recovery after that and do a data/cache wipe just to make sure. Then boot in the phone and try to do the OTA again.
2. To get root, I use TWRP recovery to flash SuperSU. This is the standard way in fact.
Download SuperSU.zip and put it in the phone: http://download.chainfire.eu/supersu
Get the latest TWRP image here for the Moto X 2014: https://dl.twrp.me/victara/
Flash the recovery using the command: fastboot flash recovery twrp-2.x.x.x-victara.img
Boot into recovery and flash the SuperSu.zip.
Note that now you have made changes to the recovery and system partition, so in order to receive future OTA updates, you need to use fastboot and flash the stock system.img and recovery.img before doing the update.
3. I don't have experience with Verizon network. I use T-Mobile on this Verizon device and I just enable WiFi Hotspot. In the APN settings, in the "APN type" field, I add the value "dun". And set everything to IPv4.
Okay I can't help with all your issues since I didn't get that problem. It seems like whatever you did to install your phone back to 5.0 it wasn't a clean install or you didn't do a clean data wipe to remove errors, which caused it to not able to receive OTA. I do not believe unlocking bootloader preclude you from receiving OTAs because it worked for me.
1. What you should try to do is download this stock 5.0 firmware package, run the bat file with the latest adb/fastboot, then boot into recovery after that and do a data/cache wipe just to make sure. Then boot in the phone and try to do the OTA again.
2. To get root, I use TWRP recovery to flash SuperSU. This is the standard way in fact.
Download SuperSU.zip and put it in the phone: http://download.chainfire.eu/supersu
Get the latest TWRP image here for the Moto X 2014: https://dl.twrp.me/victara/
Flash the recovery using the command: fastboot flash recovery twrp-2.x.x.x-victara.img
Boot into recovery and flash the SuperSu.zip.
Note that now you have made changes to the recovery and system partition, so in order to receive future OTA updates, you need to use fastboot to flash the stock system.img and recovery.img before doing the update.
Can't help you with tethering since I don't have experience with Verizon network.
eksasol said:
Okay I can't help with all your issues since I didn't get that problem. It seems like whatever you did to install your phone back to 5.0 it wasn't a clean install or you didn't do a clean data wipe to remove errors, which caused it to not able to receive OTA. I do not believe unlocking bootloader preclude you from receiving OTAs because it worked for me.
1. What you should try to do is download this stock 5.0 firmware package, run the bat file with the latest adb/fastboot, then boot into recovery after that and do a data/cache wipe just to make sure. Then boot in the phone and try to do the OTA again.
2. To get root, I use TWRP recovery to flash SuperSU. This is the standard way in fact.
Download SuperSU.zip and put it in the phone: http://download.chainfire.eu/supersu
Get the latest TWRP image here for the Moto X 2014: https://dl.twrp.me/victara/
Flash the recovery using the command: fastboot flash recovery twrp-2.x.x.x-victara.img
Boot into recovery and flash the SuperSu.zip.
Note that now you have made changes to the recovery and system partition, so in order to receive future OTA updates, you need to use fastboot to flash the stock system.img and recovery.img before doing the update.
Can't help you with tethering since I don't have experience with Verizon network.
Click to expand...
Click to collapse
Thank you for the reply - got the update to take and have gotten the device rooted properly.
Now I just need to enable wifi tether - anyone know what is done in the Mofo images that allows it - can i do the same here?
I am interested in this question as well. I am in the exact same boat as the OP, except I am still on a Mofo 5.1 img that is giving me issues. I'd like to flash back to stock and take the OTA. But wifi tether will be a must.
Thanks to mikeoswego we have the tethering answer.
http://forum.xda-developers.com/showthread.php?p=62379151
eksasol said:
Okay I can't help with all your issues since I didn't get that problem. It seems like whatever you did to install your phone back to 5.0 it wasn't a clean install or you didn't do a clean data wipe to remove errors, which caused it to not able to receive OTA. I do not believe unlocking bootloader preclude you from receiving OTAs because it worked for me.
1. What you should try to do is download this stock 5.0 firmware package, run the bat file with the latest adb/fastboot, then boot into recovery after that and do a data/cache wipe just to make sure. Then boot in the phone and try to do the OTA again.
2. To get root, I use TWRP recovery to flash SuperSU. This is the standard way in fact.
Download SuperSU.zip and put it in the phone: http://download.chainfire.eu/supersu
Get the latest TWRP image here for the Moto X 2014: https://dl.twrp.me/victara/
Flash the recovery using the command: fastboot flash recovery twrp-2.x.x.x-victara.img
Boot into recovery and flash the SuperSu.zip.
Note that now you have made changes to the recovery and system partition, so in order to receive future OTA updates, you need to use fastboot to flash the stock system.img and recovery.img before doing the update.
Can't help you with tethering since I don't have experience with Verizon network.
Click to expand...
Click to collapse
I tried this but after I flash TWRP I can't boot to recovery. If I choose recovery from the bootloader it just turns off the phone (charging icon). If I send it adb reboot recovery I get error android "No Command."
Flashed it multiple times, tried mfastboot, no luck. Any ideas?
Edit: I feel dumb. I was using power button to try to select, it's volume up. Good to go.
GatorsUF said:
Thanks to mikeoswego we have the tethering answer.
http://forum.xda-developers.com/showthread.php?p=62379151
Click to expand...
Click to collapse
The other method (the one I used) was to install the Xtether xposed module for the 2013 Moto X - worked perfectly for me.
I feel like a complete noob for asking this in regards to my XT1096, but, how would I get rid of the unlocked bootloader warning message?
SargeStryker said:
I feel like a complete noob for asking this in regards to my XT1096, but, how would I get rid of the unlocked bootloader warning message?
Click to expand...
Click to collapse
Flashing this
http://forum.xda-developers.com/showthread.php?t=2871478
juliospinoza said:
Flashing this
http://forum.xda-developers.com/showthread.php?t=2871478
Click to expand...
Click to collapse
Thanks!

Couple of questions about rooting

Hi there, I am currently running B383 on my P9, and really want to root it. However when I do, will I still be able to get future updates to the software? Do I need to unroot and lock bootloader first?
Also when the bootloader is unlocked, a message is displayed at boot about your phone being unsecured and non-trustworthy, is it possible to remove this message? (I used to have a moto g with an unlocked bootloader, and I flashed some file to remove the warning).
Thanks
I don't think there is a way to remove that message every time the phone is turned on. Mine does that too as I've unlocked the bootloader.
Did you unlock the bootloader yet? Because when you need to unlock it, the phone will basically be factory reset when bootloader is switched from locked to unlock (vice-versa).
And for OTA updates the best way is to do it manually, downloading the MV-PV file via Huawei Firmware finder (Full PV file which contains two files update.zip and hweu..zip, update.zip (system firmware) is flashed first then hweu.zip (The system apps).
You will need a custom recovery. The one you will need to use is TWRP (This one specifically - twrp-3.1.1-0-eva.img) to flash OTA's via custom recovery (To repeat you flash update.zip first then hweu.zip) You can ignore the errors if it prints any while flashing the OTA files as I did the same and it worked fine no problem.
When you want to root your phone, make sure to flash 'SuperSU-v.2.82-EMUI5-SELEnforcing.zip' via TWRP recovery to root your phone.
For the other questions, you do not need to unroot the phone to install the OTA updates. The phone will just unroot itself when the OTA update is flashed onto phone. You simply just need to re-root it again by re flashing the SuperSU zip as mentioned above.
When you need to boot the custom TWRP recovery you need to turn the phone off and hold power + volume up until Huawei Logo / text is displayed you must release both keys immediately after 0.5-1 second which is a short time frame to get the phone to boot to custom recovery or else it will boot the Huawei eRecovery instead.
SuperSU here: https://forum.xda-developers.com/p9/development/root-supersu-2-81-emui-5-t3612258
TWRP here: https://forum.xda-developers.com/p9/development/twrp-t3565703
Best to follow the instructions from those links. The information above is to guide you through the processes.
..
benjamen50 said:
I don't think there is a way to remove that message every time the phone is turned on. Mine does that too as I've unlocked the bootloader.
Did you unlock the bootloader yet? Because when you need to unlock it, the phone will basically be factory reset when bootloader is switched from locked to unlock (vice-versa).
And for OTA updates the best way is to do it manually, downloading the MV-PV file via Huawei Firmware finder (Full PV file which contains two files update.zip and hweu..zip, update.zip (system firmware) is flashed first then hweu.zip (The system apps).
You will need a custom recovery. The one you will need to use is TWRP (This one specifically - twrp-3.1.1-0-eva.img) to flash OTA's via custom recovery (To repeat you flash update.zip first then hweu.zip) You can ignore the errors if it prints any while flashing the OTA files as I did the same and it worked fine no problem.
When you want to root your phone, make sure to flash 'SuperSU-v.2.82-EMUI5-SELEnforcing.zip' via TWRP recovery to root your phone.
For the other questions, you do not need to unroot the phone to install the OTA updates. The phone will just unroot itself when the OTA update is flashed onto phone. You simply just need to re-root it again by re flashing the SuperSU zip as mentioned above.
When you need to boot the custom TWRP recovery you need to turn the phone off and hold power + volume up until Huawei Logo / text is displayed you must release both keys immediately after 0.5-1 second which is a short time frame to get the phone to boot to custom recovery or else it will boot the Huawei eRecovery instead.
SuperSU here: https://forum.xda-developers.com/p9/development/root-supersu-2-81-emui-5-t3612258
TWRP here: https://forum.xda-developers.com/p9/development/twrp-t3565703
Best to follow the instructions from those links. The information above is to guide you through the processes.
Click to expand...
Click to collapse
Thanks for the quality answer, I have no doubts anymore!

OTA update over Magisk? What's gonna happen?

If I have a P9 on Nougat B391, I receive an OTA, am currently rooted on Magisk v14. If I install the OTA anyway? What will happen? I know I will lose root, but will my bootloader be relocked? Am I going to lose any data?
Would like to know what will happen next as I am thinking of installing it. thanks!
there are 2 posible outcomes, maybe 3.
1. update will be successfull and you will lose root, twrp, bootloader can be locked too, but on fastboot it will shown as unlocked, if you cant instal twrp, then you need to unlock bootloader even if there is tuped unlocked.
2. update will fail and you will be back on same build you was.
3. never hapened to me, but are possible, that phone got bricked!
Arnys said:
there are 2 posible outcomes, maybe 3.
1. update will be successfull and you will lose root, twrp, bootloader can be locked too, but on fastboot it will shown as unlocked, if you cant instal twrp, then you need to unlock bootloader even if there is tuped unlocked.
2. update will fail and you will be back on same build you was.
3. never hapened to me, but are possible, that phone got bricked!
Click to expand...
Click to collapse
IMO, (2) is most possible utcome. (3) may happen if you force DLOAD and other manual methods.
Better:
1) unroot by Magisk Uninstaller, find the download link in the post https://forum.xda-developers.com/showpost.php?p=74913863&postcount=1
2) flash from TWRP original stock boot img
3) wipe Dalwik and Cache from TWRP
3) flash from fastboot original stock recovery
4) let it make OTA update but select in the System Update settings to use Full (not differential) update - it will not delete your apps and settings
Of course, you will loose root and TWRP but bootloader will remain unlocked and you will not risk bricking the phone.
Arnys said:
there are 2 posible outcomes, maybe 3.
1. update will be successfull and you will lose root, twrp, bootloader can be locked too, but on fastboot it will shown as unlocked, if you cant instal twrp, then you need to unlock bootloader even if there is tuped unlocked.
2. update will fail and you will be back on same build you was.
3. never hapened to me, but are possible, that phone got bricked!
Click to expand...
Click to collapse
thanks, this roughly gives me an idea on what would happen and the risks it contains! thanks a lot!
zgfg said:
IMO, (2) is most possible utcome. (3) may happen if you force DLOAD and other manual methods.
Better:
1) unroot by Magisk Uninstaller, find the download link in the post https://forum.xda-developers.com/showpost.php?p=74913863&postcount=1
2) flash from TWRP original stock boot img
3) wipe Dalwik and Cache from TWRP
3) flash from fastboot original stock recovery
4) let it make OTA update but select in the System Update settings to use Full (not differential) update - it will not delete your apps and settings
Of course, you will loose root and TWRP but bootloader will remain unlocked and you will not risk bricking the phone.
Click to expand...
Click to collapse
thanks a lot! it's useful to know how to unroot my phone as there isn't any particular guide for this phone model haha. anyway, is there a way to unroot and lock my bootloader without wiping my phone?
roottree said:
thanks a lot! it's useful to know how to unroot my phone as there isn't any particular guide for this phone model haha. anyway, is there a way to unroot and lock my bootloader without wiping my phone?
Click to expand...
Click to collapse
Magisk Uninstaller does not wipe your phone.
However, unlocking or relocking Bootloader (from Fastboot) triggers Factory restore

Info about Stock Recovery p9 Plus

Hi guys, I have to flash a recovery stock to update via OTA. Should I use a recovery related to my serial number (as explained here) or can I use a generic recovery for EMUI 5.0? On my p9 Plus now I have EMUI 5.0.3
Briefly, I saved an EMUI 5.0 recovery on my PC, can I always use this or after every new update the recovery changes and I have to flash a new one looking at my build number?
Sorry for my noob question, thanx in advance
Guys, nobody can help me?
1st, if you have rooted your phone you must do a full update (download the full update package)
2nd for the recovery flash the image of your current version, and next time never flash moded recovery img on recovery partition, you must flash it in recovery2 partition (cmd : fastboot flash recovery2 recovery_image.img)
xzanium said:
1st, if you have rooted your phone you must do a full update (download the full update package)
2nd for the recovery flash the image of your current version, and next time never flash moded recovery img on recovery partition, you must flash it in recovery2 partition (cmd : fastboot flash recovery2 recovery_image.img)
Click to expand...
Click to collapse
Thanx for your answer, really interesting! So if I flash TWRP on recovery2 partition I will be able to update directly via OTA from the update menu on my phone without connect it to pc even if I'm rooted because I maintain my stock recovery on recovery partition?
And after update I have to re-root my phone or this method keep it safe?
yes, you can update directly.
and after the update you have to re-flash TWRP on recovery2 and re-root your phone, and mabye you need to re-unlock your phone first
xzanium said:
yes, you can update directly.
and after the update you have to re-flash TWRP on recovery2 and re-root your phone, and mabye you need to re-unlock your phone first
Click to expand...
Click to collapse
Ok I understand, thanx a lot! :good:

Categories

Resources