Couple of questions about rooting - Huawei P9 Questions & Answers

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!

Related

Root Question

I have the Spint version of the X and have already taken the OTA update that contains the camera fix. Is it possible for me to install a custom recovery and root after unlocking the bootloader using the method shown in this video? http://www.youtube.com/watch?v=2fzih8xkki0
It is never made clear on what software version you have to be on
Yes you can. I did it that way. Got phone, updated it, unlocked boot loader through Motorola, fastboot flashed TWRP, then auto rooted via TWRP. Normally I manually root/flash superSU zip, but this time I decided to try the TWRP auto root method.

[Q] Sort Me out on 4.4.3 update

The more I read the more confused I get. Could someone sort me out?
<complain>I got the moto x because of the quick OTA updates. Now it seems that because I installed TWRP and froze a few apps with TB that this feature is totally borked!</complain> is that correct? I cannot update without stock recovery and all the original apps installed / unfrozen?
In my predicament would the easiest thing to do be
1. Unfreeze any system apps I've frozen.
2. Use msfastboot to reflash stock recovery?
3. Accept the OTA or somehow flash it manually (I'm not sure about this last one see below)
I accidentally accepted the OTA download and now it bugs me to install. I won't install because it just reboots into TWRP. But it does keep prompting me to set at time to install. If I simply flash stock recovery I think i will still get this prompt. Would that be the easiest way to go?
Thanks for any advice.
pairustwo said:
The more I read the more confused I get. Could someone sort me out?
<complain>I got the moto x because of the quick OTA updates. Now it seems that because I installed TWRP and froze a few apps with TB that this feature is totally borked!</complain> is that correct? I cannot update without stock recovery and all the original apps installed / unfrozen?
In my predicament would the easiest thing to do be
1. Unfreeze any system apps I've frozen.
2. Use msfastboot to reflash stock recovery?
3. Accept the OTA or somehow flash it manually (I'm not sure about this last one see below)
I accidentally accepted the OTA download and now it bugs me to install. I won't install because it just reboots into TWRP. But it does keep prompting me to set at time to install. If I simply flash stock recovery I think i will still get this prompt. Would that be the easiest way to go?
Thanks for any advice.
Click to expand...
Click to collapse
1. - You do not need to unfreeze apps. The apps are still there untouched in the file system, and in recovery the OS hasn't booted enough to know that the apps are "frozen". By the way, frozen apps are basically just tagged in the OS as not available....so with the OS not running (just recovery is), they aren't "frozen" in recovery.
2. - Yes, fastboot to flash stock recovery. Boot to bootloader mode, fastboot flash recovery recovery.img (you don't need mfastboot for recovery, though you can still use it.)
3. - Accept the OTA. Since yours is trying to install, you should be able to boot to bootloader, flash stock recovery and on reboot it will start the install of the OTA. When done and booted.....reflash TWRP if you like.
That would be the way to go, yes.
Flash stock recovery and try to upgrade. If you cannot, try to unfreeze all sys apps. That should do it. ?
OK. So maybe not such a huge PIA as I had thought. I will track down the recovery file and read the instructions for flashing.
Thanks
@pairustwo
Every time another OTA comes out, people who modify their phones ask the same question. I've written up a FAQ based on the past OTA's.. -> http://mark.cdmaforums.com/MotoX-OTA.html if you want to read it to get more info.
Part of the issues you are talking about when taking an OTA is that the OTAs want to patch and replace only SOME files on your phone, so it checks to make sure the update is for your phone and its android version by evaluating certain files on the phone, that they exist and that their check sums match what the update expects.
i.e. change/modify/delete files the OTA update checks before installing, and the OTA will refuse to install.
If it didn't do this, the wrong update could possibly flash to your phone, replacing files with incompatible versions and making a big mess.
So yeah, "getting back to stock" (or as close to it as you can) is always recommended before taking an OTA so the "check" doesn't fail and prevent the OTA from applying.
In the past, freezing apps with Ti Backup was enough of a modification to cause the OTA's to fail. So often it is still suggested to un-freeze those done with TiBackup.
The OTA zip file (as downloaded) will only flash from Stock Recovery. TWRP and CWM for example don't properly process and flash them, so if you try to install when stock recovery is NOT on your phone, you get stuck in a bootloop. Using mFastboot to flash stock recovery back on is fine for those with unlocked bootloaders. Locked Bootloader users, is another matter.
There is a way "side load" the OTA, IF you have stock recovery, your phone hasn't received the push from Moto or your Carrier yet, and the OTA Zip file has leaked. But it still requires you get back to stock, etc. just as if you were getting it OTA.
So I've tried to flash back to stock but am having an issue. Does anyone have a link to a stock recovery image? Maybe the one I have is corrupt.
pairustwo said:
So I've tried to flash back to stock but am having an issue. Does anyone have a link to a stock recovery image? Maybe the one I have is corrupt.
Click to expand...
Click to collapse
Answered here -> http://forum.xda-developers.com/moto-x/moto-x-qa/dead-android-red-exclamation-t2778189
and I made this -> http://mark.cdmaforums.com/MotoX-EnterStockRecovery.htm

Install P10 OTA updates after root?

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.

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

Huawei p9 EVA-L09 No fastboot/recovery access.

Hello friends, recently I saw a tutorial on YouTube how to remove the bootloader unlocking notice in Huawei, as a software update arrived for my EVA L09, I wanted to do everything from factory without root or recoverys to install it via ote. So I removed the twrp by the huawei recovery and followed all the steps that the man made and reset the development settings, then I worked in the ADB to re-lock the bootloader, after finishing the processes, my phone was restarted and I'm stuck in the bootloader logo of Huawei, I never step out of there. I wanted to enter the fastbot mode and I can not because it seems to be deleted, I do not know what happens because it does not enter the fastboot mode and only reboots again, nor do I have access to the normal recovery. I tried to use the volume method up + down and power button using the UPDATE.APP but there are no such methods, the phone is apparently clean. it only stays in the logo.
I took him to the technician and he told me to communicate to the support of Huawei because he did not know what to do, I would appreciate too much to help me please, because nowhere do I find something and you are the maximum.
thankfully
Updated thread title and moved to P9 Q&A. Hope this gets you the answers you're looking for.
There are good and proven tutorials here on XDA (XDA has its own search), not sure what did you find and follw from YouTube ( was it for proper cust, proper case of going back from root or custom ROM and which one to stock and which stock build, etc)
To unbrick, you have three options:
https://forum.xda-developers.com/sho...08&postcount=7
- free method but AFAIK it requires Fastboot working
Paid solutions:
https://www.dc-unlocker.com/DC-Phoen...epair-tutorial
https://funkyhuawei.club/plans
zgfg said:
There are good and proven tutorials here on XDA (XDA has its own search), not sure what did you find and follw from YouTube ( was it for proper cust, proper case of going back from root or custom ROM and which one to stock and which stock build, etc)
To unbrick, you have three options:
https://forum.xda-developers.com/sho...08&postcount=7
- free method but AFAIK it requires Fastboot working
Paid solutions:
https://www.dc-unlocker.com/DC-Phoen...epair-tutorial
https://funkyhuawei.club/plans
Click to expand...
Click to collapse
Hello friend, thank you for answering, what I did was the following https://www.youtube.com/watch?v=s9BZuywrRAw I had the original rom of android 7 and I got the update through the B398 ota but I had root and twrp, I wanted to leave everything in the factory by removing the twrp and replacing it with the huawei recovery and removing the root. When it was restarted, it never came back and I do not understand why I do not have a fastboot or recovery mode.
Thank you
It is not enough to say EVA-L09 and b398.
You must know what was exactly your original stock ROM (before you rooted), like was it EVA-L09c432b397 or what.
Then, there is very simple method to go back to the stock ROM you started from, say to c432b397, wherefrom you would then be able to accept OTA to b398...
It's all about flashing the correct HWOTA package through TWRP, and you would be back to your unrooted stock and back to your stock recovery:
https://forum.xda-developers.com/showpost.php?p=74913874&postcount=3
Unfortunately, now after the YouTube, you have no Androud, no TWRP, no fastboot...
Btw, unlocked Bootloader does not prevent OTA updates. It was only neederd to unroot and then to go back to stock recovery - both you simply get just by flashing the right HWOTA package.
Alternatively, you could have to unroot (SuperSU has its own option to remove root, for Magisk there is a ZIP package to uninstall Magisk), and to flash the original stock recovery - and you would be clean to accept OTA (although with Bootloader still unlocked).

Categories

Resources