yashsingh1/xdaforums huggingface dataset:
[Huawei P9 Guides, News, & Discussion] Tecalote:
Welcome back :)

Believe me, if there was a way, I would post this..

FYI:

As long you are on Nougat you can also use HWOTA7 Tool for Unlock Bootloader.

Downgrade from Oreo to Nougat will always close the Bootloader.

During my rebrandings to Oreo and back for testing (and I did it with all Chinese brands) I couldn't count how often Bootloader was going to be closed ;)
[Huawei P9 Guides, News, & Discussion] RandomQuezoPH:
After many tries, my Playstore seem to always crash upon start. Auto Date and Time both turned off, this problem seemed to occur after flashing RROS beta 1 and now I can't get it to work :/

Update: Magisk crashing aswell when pressing safetynet check
[Huawei P9 Guides, News, & Discussion] ironet:
With the Play Store problem, I did a low level factory reset and it still works

Enviado desde mi EVA-AL10 mediante Tapatalk
[Huawei P9 Guides, News, & Discussion] Tecalote:
Are you still on RROS or back to Stock?

If you are back on Stock and have trouble now, you can flash with HuRUpdater (which can be used for downgrade, but also to flash any Oreo Rom) the b528 Oreo Firmware.

You must Backup your stuff before and make the settings new (for mobile network... and Root)

And then do it as described here (but with the Oreo Firmware):[url]https://xdaforums.com/showpost.php?p=77161314&postcount=3[/URL]
[Huawei P9 Guides, News, & Discussion] Tecalote:
Strange, I dont have problem with YTVanced.

And you did the Root as described in Post https://xdaforums.com/showpost.php?p=77209279&postcount=155

I installed the module with Magisk Manager /Module + and choose it from internal storage folder "Magisk Manager" (not from external SD) I have observed that some apks can not be installed by the external SD. That's why I do not install any Magisk modules from the external SD.

I used following VTVanced version: https://mega.nz/#!zEIjXYpB!acb35KBtEX53nUdFTRqmhp90QHWwV7kP50GrdMD7-UU

BTW: This module seems to be interesting - I am just not sure, if it really works (SELinuxModeInverter4Magisk-v1.0.5): https://androidfilehost.com/?fid=818222786056035067

When I check with Terminal su getenforce it tells me: enforcing (but its maybe hidden permissive)

Interesting ist also Init.d-Injector (which can be downloaded directly in Magisk Manager).
[Huawei P9 Guides, News, & Discussion] Tecalote:
[MENTION=7764957]RandomQuezoPH[/MENTION] BTW: Interesting related to Treble Roms read Posts from here until page 23:

https://xdaforums.com/p9/development/rom-t3767344/page22

RROS must be installed that way: https://xdaforums.com/showpost.php?p=77235956&postcount=216
[Huawei P9 Guides, News, & Discussion] zgfg:
I have installed directly from Magisk/Modules (as I always did also in MR vX), and at the moment I have no SD card in that L19 b528.

I will try tomorrow by downloading and installing manually (but what would be different, Magisk itself downloads to its folder on Internal Memory)

Btw, this TWRP does not save its Settings? Is this also because it cannot decrypt/acces Data partition (to save there)

Does this TWRP properly access Dalwik Cache? I wanted to wipe Cache and Dalwik, but after that System booted (quickly) as usual, not taking ages as when it must recompile all apps
[Huawei P9 Guides, News, & Discussion] Tecalote:
Yes, TWRP can't store settings, because it hasn't access to the internal storage.

Wipe Dalvik Cache is working properly.
[Huawei P9 Guides, News, & Discussion] zgfg:
I didn't have OTA popping up asking to reinstall on AL10b528. I only had it on AL10b399

Maybe I should Factory reset + wipe Int Mem this b528, but it will take me half a day to configure it back ;(
[Huawei P9 Guides, News, & Discussion] Tecalote:
You cannot wipe internal storage with TWRP, Factory reset with this TWRP is not recommended.

If, you should do it with Stock Recovery (recovery_ramdisk) and if + internal storage, then from settings.
[Huawei P9 Guides, News, & Discussion] mco489:
Hi Tecalote,

I followed your guide coming from L09 and made it successfully to the AL10 Oero.

However the Play Store would not work and there was also no option to log into a Google account. I decided to factory reset and that's where the mess started. Unfortunately I did it in the TWRP and now I a stuck. The phone won't boot anymore and I also cannot run your script anymore as it stops waiting for the TWRP. I can get into fastboot mode but that's all.

What can I do? I really need the phone.

Edit: This is the script output:

Replacing the eRecovery runoff in TWRP, wait...

target reported max download size of 471859200 bytes

sending 'recovery2' (25254 KB)...

OKAY [ 0.556s]

writing 'recovery2'...

FAILED (remote: partition length get error)

finished. total time: 0.569s

Hold down the volume key plus and Power Button to boot into TWRP.

Thanks and BR
[Huawei P9 Guides, News, & Discussion] RandomQuezoPH:
That's the one I actually followed including the instructions in OpenKirins' website

---------- Post added at 02:48 AM ---------- Previous post was at 02:42 AM ----------

I'm on stock already, I didn't liked being on RROS so much bugs and like the same bugs in Surdu's thread :crying:

I'll try to get feedback when i'm done doing those instructions

One thing I noticed, file names of the "update_all_hw" and "update_data_public" file are renaming back to it's original file names so I need to rename it :/ Maybe that's the problem because I am not renaming it to "update_all_hw" and "update_data_public" because from the start, I already changed them and didn't know that after flashing again and again, it will come back to it's real name :(
[Huawei P9 Guides, News, & Discussion] Tecalote:
[MENTION=9346899]mco489[/MENTION] Sorry for the late answer, I saw your post just right now. I am working on the German Thread, that's why I didn't recognize your issue.

Don't panic. You made some mistakes, but it's possible to restore your Phone.

I write you in about 10 minutes how to do it.
[Huawei P9 Guides, News, & Discussion] Tecalote:
1) Question: Did you install the Playstore.apk and the steps from here?: https://xdaforums.com/showpost.php?p=77161300&postcount=4

2) In OP Post #1 I wrote following in Point 3) - You can not use HWOTA7 on Android 8 - It is made to update and rebrand on Android 7 with TWRP for Android 7. Oreo has another partition for TWRP (recovery_ramdisk) and another TWRP must be used (Android 7 TWRP cannot work on Android 8) Thats why = partition length get error....

3) I wrote some posts ago - it is not recommended to do Factory reset with TWRP. We dont have a fully working TWRP for Oreo/P9 right now. The TWRP, we have, is made for another device, but for some function usable, except access to data and Factory reset.

4) If you decide to do Factory reset you must use EMUI Stock Recovery (extracted from the UPDATE.APP = RECOVERY_RAMDIS.img (I wrote in Post #2)

5) Before doing all those steps you should learn to read everything before just doing! At least Post 1 - Post 4. And if you do not know something, or have a problem, it would be better to ask in advance, before you do something rash.

6) Restore with TWRP for Oreo: To solve your issue, you must try to flash the right TWRP for Oreo in Fastboot Mode (from Post #2 - the same one, which you used for Factory reset) If this is possible and flashing is succesful, disconnect USB and boot immediately to TWRP (Vol+ and Power Button)

7) Then you can flash again the 3 firmware zip files (AL10 Oreo firmware) with HuRUpdater. How this works, you can read here (but you use it not for downgrade, because you do it with Oreo Firmware): https://xdaforums.com/showpost.php?p=77161314&postcount=3

8) Soon you have flashed the OREO firmware with HuRUpdater, reboot (not to system) but to: Recovery and do Factory reset from there (you will boot to EMUI Recovery, which comes shipped with the firmware) - after reboot to system. If this would not work, and you could not flash TWRP and do the steps, then you can try to restore OREO Firmware with eRecovery

9) Restore with eRecovery: Connect the USB Cable on the one end with the charging station and on the other with your P9. Press Vol+ and Power Button and keep pressing until Phone reboot to eRecovery (Note: eRecovery is not the same than EMUI Stock Recovery)

10) Soon you are in eRecovery - you choose "Download latest version and Recovery" - then you connect your P9 with WLan (enter PIN in eRecovery). eRecovery is searching "Get info package" and will start the download (Full firmware) and after restore your Phone to AL10 Oreo Firmware.

Have a look here: https://xdaforums.com/showpost.php?p=77186132&postcount=74

Let me know, how it goes.
[Huawei P9 Guides, News, & Discussion] RandomQuezoPH:
Stuck at Step 2 in 13. ROOT fails to make an xbin folder in /system
[Huawei P9 Guides, News, & Discussion] Tecalote:
Did you flash the AL10-OREO-patched_ramdisk.img and have you installed Magisk Manager? Look in Magisk Manager /menu /Superuser if your Root Explorer (which one to you use?) have already Root-Permission.

If yes, there would be no reason why you could not create the folder xbin
[Huawei P9 Guides, News, & Discussion] RandomQuezoPH:
Yes I did, can I use Mixplorer just as you say. It also have Root Permission. I can still go to /system but whenever I press ok to create a folder it shows a toast "Failed" last time it worked for me and this is the only time it failed
[Huawei P9 Guides, News, & Discussion] Tecalote:
I did not have that during my rebrandings

Thats strange. I would reboot the Phone and try it again. (Note: there is a folder in /system/system - dont try to make the folder in this wrong path...)

And make sure you have "Trust Space" in settings disabled.

If all those would not help you to create the folder xbin in: /system - just skip this step.

The BusyBox by osmosis works also without xbin folder. In this case, BusyBox will use the folder: bin

(I just recommend xbin, but it will work also with bin)
[Huawei P9 Guides, News, & Discussion] zgfg:
Of course, in case of Factory resetting I would first use Huawei Update extractor to extract stock eRecovery (ramdisk) and to flash it over TWRP.

In fact, I was thinking to do even more, to remove Magisk and also to flash original boot partition over your patched one - is this necessary or not?

However, I have no time for that, everything else seems ok so I can leave without YT_Vanced.

But just in case - to have OP in advance

---------- Post added at 07:34 AM ---------- Previous post was at 07:04 AM ----------

You mean, you have original P9 L09/L19, rebranded to AL10 b528 (through this guide) and you did Factory reset, and without new patching and chagning local.prop, you still had 2G/3G/4G working?
[Huawei P9 Guides, News, & Discussion] ironet:
Yes, I have original Eva-l09, I did factory reset or low level factory reset and it works networks and nfc

Enviado desde mi EVA-AL10 mediante Tapatalk
[Huawei P9 Guides, News, & Discussion] mco489:
Hi,

thanks for the huge effort you put into this. I was able to restore it with eRecovery and am now back to stock Oreo. I assume I will start again from step 6 of post 2?

Regarding 5, I am flashing custom roms since the Galaxy S2, it was just my first time on a Huawei (which is quite complex, yes). I read everything 3 times and immediately noticed my error. with the TWRP. I might have been too tired or better should have waited for the German thread :o.
[Huawei P9 Guides, News, & Discussion] Tecalote:
Hi [MENTION=7786725]zgfg[/MENTION]

1) If you remove Magisk and the by Magisk patched ramdisk.img, and flash original ramdisk.img you are not able to install Magisk. (because you can't flash it with TWRP for properly working and you have not the permission for direct install)

2) EMUI Recovery is not ramdisk. It is RECOVERY_RAMDIS.IMG

3) The issue with YTV has nothing to do with ramdisk.img or Magisk - I write later, what I guess.
[Huawei P9 Guides, News, & Discussion] zgfg:
My question was about safe Factory reset of b528. In short, not just stock recovery but also stock boot partition before resetting. Of course that patching, Magisk, etc. would follow once again upon the reset

Ie, (missing) OP how to factory reset our hacked b528 - there will be probably b529 or so, and before OTA one would need to clean b528
[Huawei P9 Guides, News, & Discussion] zgfg:
Not for me, see attach
[Huawei P9 Guides, News, & Discussion] Tecalote:
Did you allow system modification, after canceling decryption?

I have no problem with wipe Dalvik cache and will post later Screenshot.

But my Phone is original L09, perhaps it's not the same on L19 - don't know yet.

Note: We have no fully working TWRP at the moment.

This needs a bit time.

Before OTA (in Chinese Firmware) you need only restore recovery_ramdisk (Stock Recovery), but you can do additional ramdisk.img. No need to remove Magisk (its similar nocheck).

With OTA a new ramdisk.img will be installed.

Its necessary to extract this new ramdisk.img and patch this with Magisk boot.img patch function, then flash new patched ramdisk.img in Fastboot Mode and do the procedure for Root.
[Huawei P9 Guides, News, & Discussion] zgfg:
Cancel Decrypt, swipe to Allow Modifications.

I even tried by mounting all partitions (except OTG) - btw System was mounted correctly, checked by Advanced/File Manager.

However, only Cache is listed (and check-marked by default) in Mount, not Dalvik

Only I don't have SD card but for wiping Dalwik it should not matter
[Huawei P9 Guides, News, & Discussion] Tecalote:
In the meantime I found out, it's not required to Mount Partitions in "Mount" - except you want to use TWRP Filemanager.

But for all other reasons, TWRP mount itself what is needed. It's enough if Cache is mounted by default. If you click on select storage, it will automatically mount "SD Card"

And don't mount "splash" (if shown)

I flashed some zip files for testing and if something will be flashed to system it is not good if you mount system manually before, because it will be mounted by the script and have problem to mount, if system is manually mounted.

Try to wipe Dalvik Cache without mount manually anything in "Mount" except what is mounted by default + Micro SD.
[Huawei P9 Guides, News, & Discussion] zgfg:
Now with SD card.

TWRP: Cancel Decrypt, swipe to Allow Modifications.

Mount: Cache, SD card.

Wipe/Advance wipe: Cache, Dalwik.

Same result: Failed to wipe Dalvik
[Huawei P9 Guides, News, & Discussion] Tecalote:
The work on a new TWRP is in progress :)

I didn't test from Advanced menu. I did it after flashing a zip (which does only install something to system and vendor for testing) and I wiped Dalvik Cache (down on the left) before reboot.

From this Button it did work
[Huawei P9 Guides, News, & Discussion] zgfg:
I just want to downlad and change a theme, it requires login to Huawei ID.

When opening Huawei ID to login, it pops up that phone is rooted - is it Ok to continue and login with Huawei ID?

Btw, I tried to follow instructions as for MR v4:

- Airplane mode On

- Settings/Apps/Huawei Mobile Services clear Data

- Magisk Hide: hide Huawei Mobile Services

- Airplane mode Off

But still HMS pops up that phone is rooted

---------- Post added at 06:40 PM ---------- Previous post was at 06:39 PM ----------

When you have time please try wiping Dalvik from Wipe/Advance
[Huawei P9 Guides, News, & Discussion] RandomQuezoPH:
After many times of doing this, playstore always crashing after updating to oreo, already did all of the steps but still gives me crashes. It works if I follow your HRUupdater and change files to the oreo one's but that instruction doesn't have Magisk in it. it just says magisk not installed in the main magisk screen
[Huawei P9 Guides, News, & Discussion] Tecalote:
Permission Manager in Chinese Firmware

You can sign up with the Huawei ID without any problems. Huawei will always recognize Root on Oreo, it is currently not possible to hide root from Huawei.

But it is different than G.

Since I am back home now I tried Wipe Dalvik/Cache and Cache with Advanced Wipe - you are right, from this menu it does not work. Interestingly, it works if you flash a zip and then use the Wipe Dalvik / Cache button and confirm with swipe. (see Screenshot)

Okay. If you reinstall the Oreo Firmware with HuRUpdater, you must flash AL10-OREO-patched_ramdisk.img (which is patched with Magisk) and then install Magisk Manager and from Magisk Manager make direct install of Magisk.

I would nobody recommend to install Playstore and such Apps on AL10-b399 Nogat. I would install it on a clean Firmware (except Magisk) on Oreo.

→ The apks (Playstore etc.) are made for using on Oreo and not on Nougat.

Important settings:

Security & privacy → disable "TrustSpace"

Security & privacy /More → disable "Allow HiSuite to use HDB"

Security & privacy /More /Install unknown apps → allow Magisk Manager, allow MiXplorer (and your favorite apps)

Security & privacy /More → disable "External source apps check"

APK - Installation /Attention: Permission Manager (complete different to European)

See Screenshots - if you install Playstore or AdAway → if you get a warning, then ignore → on the end of the installation enable "Trust this App" and disable "Delete installation package"

Only if Playstore has all permissions allowed, it will work and only if MiXplorer has all permissions allowed, it will work.

MiXPlorer can not create the folder xbin in /system → Permission Problem

Playstore crashes → Permission Problem (or installed already on Nougat, instead on Oreo)

You Tube Vanced (use latest version) - if it has no App Symbol after flashing and reboot → Google Play Services /Playstore prevent You Tube Vanced.

It is better to flash this Magisk module → before installing Playstore - or disable Google Account and enable it after flashing YTV.

And if Google Account is already activated → it will immediately "update" You Tube Vanced into official You Tube → disable in Playstore Auto-Update for this App.

Test with You Tube Vanced - right now:

1) I had Playstore installed, but I am not logged in into my Google Account for now. → if you are logged in, you can delete Google Account

2) I used from Magisk YTV without black Theme (dont know if it works with)

3) I downloaded and installed directly from Magisk and rebooted

4) YTV is working (see Screenshots)

Before you try again, you can flash with TWRP attached zip file. After starting TWRP use Button "Cancle", then swipe to confirm system modification, then go to install and flash this zip.

What does the zip do? → It disable avb in vendor
[Huawei P9 Guides, News, & Discussion] zgfg:
Thanks for the answers.

In the meantime I logged in to Huawei ID and changed the theme - because I didn't like some Chinese stuff on the bottom left cornet on the locked screen.

I will try YT Vanced later tonight and will test then Dalwik wipe from the ZIP installation window in TWRP
[Huawei P9 Guides, News, & Discussion] zgfg:
1) Disable AVB Vendor (Android Verifying Boot) - should this ZIP help to hide rooting and modifications from Huawei?

2) Upon flashing Disable AVB Vendor ZIP in TWRP, I chose. wipe Dalwik from the same screen. It did not report failure, but booting afterwards was so quick that I doubt that Dalvik cache was really wiped.

You know how long it takes first time booting, or booting when Dalvik is really wiped.

But this was quick like everyday booting.

3) Removed YT, removed Google account. Flashed YT Vanced from Magisk, rebooted - icon and app was there. Added again Google account and immediately thereafter disabled auto- updating of YT app.

Thanks - YT Vanced Magisk module is now installed and working properly

4) Should I also flah init.d in Magisk?

5) For AdAway this is my Hosts fille source list (after all the previous experimenting). Last three are coming preinstalled, fist five add manually

http://1hosts.cf

http://sbc.io/hosts/hosts

http://someonewhocares.org/hosts/hosts

http://www.hostsfile.org/Downloads/hosts.txt

http://www.malwaredomainlist.com/hostslist/hosts.txt

https://adaway.org/hosts.txt

https://hosts-file.net/ad_servers.txt

https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext

http://winhelp2002.mvps.org/hosts.txt
[Huawei P9 Guides, News, & Discussion] Tecalote:
That's good news :good:

Your questions:

1) Yes, this disable AVB and it's good for many mods (if we get those to work like Viper and it prevent you (not in every case, but mostly) from Bootloop - if you install something what Oreo don't like) and it enables the possibility to use Apps which are normally restricted by Android 8.

4) It's not a fault to have init.d support. It can be useful for the later development, but might not necessary now. But I have it installed - cause I am in testing phase.

5) Thanks for the hosts file source list.

And finally thank you for your feedback ;)
[Huawei P9 Guides, News, & Discussion] Victor7w7:
After doing all the steps and once in Oreo, the root is removed alone? I would like it to remain rootless since I do not occupy it.

because now reviewing trueSpace tells me that it is rooted, how do I remove the root?
[Huawei P9 Guides, News, & Discussion] zgfg:
Following up

Dalvik is at /data/dalvik-cache

It can be wiped from MiXPlorer/Root or by rm command from Terminal Emulator or ADB.

But not from this TWRP lacking decrypt support to access Data partition
[Huawei P9 Guides, News, & Discussion] elsnibo:
go to the directory: /cust/all/cn/prop/ and open local.prop

Hi,

I followed the instructions but found trouble when I went looking for the local.prop file. On my phone in the root directory, I had the cust folder, but nothing from there on. Looked through this thread but didn't find a reference. Any ideas on what is going on?

Thanks,

elSnibo
[Huawei P9 Guides, News, & Discussion] Tecalote:
A) Which Phone do you have (originally) - L09 or L19?

B) Did you add the Lines to local.prop for enabling mobile network (and NFC, if you have L09)?

Of course, if you prefer to be on Oreo without Root, this is even possible.

1) Uninstall Magisk Manager App (from settings /apps)

2) Flash in Fastboot Mode the original ramdisk.img

How to do?

Download from xda: Huawei Extractor and in settings of this Tool disable both "header checksum"

Extract update.zip from Oreo Firmware.

With drag and drop put the UPDATE.APP into the main Window of Huawei Extractor.

Extract RAMDISK.IMG

Flash it in Fastboot Mode:

fastboot flash ramdisk RAMDISK.IMG

Reboot P9 - Root is gone ;)
[Huawei P9 Guides, News, & Discussion] urbanmec:
Maybe if you give more details we might be able to help ...

1. What rom are you on ? on what device(L09 or L19 or ...etc) ?

2. Is the folder empty ? if not what sub-directories do you see?
[Huawei P9 Guides, News, & Discussion] Tecalote:
If you can't see files in cust - your Root Explorer hasn't Root permissions.

Look into Magisk Manager /3dot menu if your Root Explorer has Root permission (if not, enable)

I recommend Mixplorer (which you can find Post #4)

Did you flash the patched ramdisk.img for Oreo and have you installed Magisk Manager?

This enables temporarily Root for modify the local.prop

Read Post #2
[Huawei P9 Guides, News, & Discussion] mco489:
Got it all working now :good: two questions:

Is it possible to replace the Chinese "long press home button search" with Google assistant? I wasn't able to get that switched.

Can I somehow remove the network symbol of the second disabled sim slot at the top?
[Huawei P9 Guides, News, & Discussion] Tecalote:
Google Assistant - I haven't looked yet, but I will if I get time.

Network Symbol for disabled SIM2 is not shown on my phone after reboot.

I will look too, if there are settings for it.
[Huawei P9 Guides, News, & Discussion] Newkeebrown:
I had exactly the same issue after upgrading to Oreo.

'TrustSpace' had re-enabled itself. Went to Settings>Security & Privacy>TrustSpace and switched it off. PlayStation, Magisk & Google account now working.
[Huawei P9 Guides, News, & Discussion] ironet:
What I do?

https://ibb.co/kSR4ve
[Huawei P9 Guides, News, & Discussion] Twisted Prime:
I'm gonna try again when magic rainbow 5 is out, i'll stick to nougat for now