yashsingh1/xdaforums huggingface dataset:
[Huawei P9 Guides, News, & Discussion] ant0nwax:
My battery was rebooting the phone at 40% when it needed to be replaced, especially in winter, when the phone was cold. If the phone is on +80% and this spotify/cam issue happends, then it is not the battery. but for me also the start of camera caused the phone to reboot at EOL battery. Even with not much going on in background.
[Huawei P9 Guides, News, & Discussion] sebasmadd:
Well my battery I still think is damage, because I do the trick to flip the phone on a table and if is spin, that means the battery is inflated.

But other than that, I think the major problem is the ROM, because I have 70% or more of battery, and if I open spotify or anything that play's music, and then I tried to used the camera, and when the picture is taken, the phone reboots. Sometimes, if I don't have any music playing or in the background, the camera makes the same thing. And sometimes is not even the camera, if I open Instagram and get a notification from the app, it reboots again.

So I don't know what to do, I honestly gonna buy another phone soon, but in the meantime, this is the phone I have so I want it to be working fine, it's no even running a custom rom with bugs or anything, it's suppose to be an official firmware.
[Huawei P9 Guides, News, & Discussion] zgfg:
The symptoms are as from an old battery:

https://xdaforums.com/p9/how-to/phone-restarted-empty-battery-using-t3948639

If rooted, you could try to calibrate (for the short run)

For the long run, it's not so complicated or expensive to replace the battery:

https://xdaforums.com/p9/accessories/recommended-replacement-battery-t3866249
[Huawei P9 Guides, News, & Discussion] sebasmadd:
Wow that was fast XD.

Yeah, I think I'm gonna replace it and see if that work, if not; well, I won't do anything else other than replace the phone itself with a newer one when I have the money haha.

Thanks anyway!
[Huawei P9 Guides, News, & Discussion] daveh077:
Hi all, I know this can be reported on the magisk thread but just wanted to know if anyone who uses this phone with Oreo etc from this thread, if the hide magisk manager option works or not for anyone?

Any tips specially related to this rom that could get it working? I'm on the newest magisk as of today but this issue has been around for several versions now.
[Huawei P9 Guides, News, & Discussion] zgfg:
Honestly, this is something strange.

I have two P9s with b540, both should been setup similarly, on one of them I had Magisk Manager hidden (repackaged) with no problem and on the other I tried with several Stable, Beta, Canary versions but repackaging always failed. Even after reinstalling b540 from eRecovery, with Factory resetting.

That is, if talking about repackaging/hiding Magisk Manager.

If talking about not detecting root (hiding Magisk from particular apps), I didn't have problems but I only have one app I needed to hide from. I played with RootBeer app, and I was able to pass all checks green (with some tricks) - of course, on that P9 where repackaging of MM worked
[Huawei P9 Guides, News, & Discussion] daveh077:
Hi thanks for your reply, yes I'm referring to the repackaging of magisk manager, one of my banking apps keeps detecting root and I suspect it's detecting the magisk manager.

Do you know is it possible to manually repackage the magisk manager or flash a repackaged version?
[Huawei P9 Guides, News, & Discussion] zgfg:
Repackaging acts on two sides, it randomly renames packages in MM but it also correspondingly makes changes in Magisk database (which is stored in Data partition)

Hence it's not related with flashing patched Ramdisk

But also, you cannot export (repackaged) Manager from one phone (I tried) to the other, because it will not find the database on that second phone
[Huawei P9 Guides, News, & Discussion] daveh077:
Ah ok and it's not possible to export the database too? Thanks for the responses
[Huawei P9 Guides, News, & Discussion] Amoresh:
Can I do this update on my Huawei p9 (EVA-L09C675) in India?
[Huawei P9 Guides, News, & Discussion] zgfg:
You must have EVA L09, L19 or L29, and EMUI 5 (Nougat) stock firmware - OP posts require to start from the latest for your model and cust

Otherwise, no regional limitations because the first step will be rebranding to Chinese AL10c00 (don't worry, in English, and later b540 comes for all regions and with all languages)
[Huawei P9 Guides, News, & Discussion] daveh077:
I've also tried several versions of the magisk manager, going back as far as v16, none of them will repack and hide the magisk manager.

Is it possible it's due to the flashed ramdisk we're all using from the mega link?
[Huawei P9 Guides, News, & Discussion] zgfg:
If using my Mega:

https://mega.nz/#F!JwkVyRya!Rb7OUE0z3PEpXBRxGOM-vQ

there is only a patched Ramdisk for Magisk v19.5 (19404) - you must update Magisk (simply by Direct method) through Magisk Manager for newer Magisk versions.

But you can patch yourself directly from stock Ramdisk (it's also on my Mega but you can extract yourself from b540 update.zip by using Huawei Update Extractor).

Instructions for installing/patching Magisk are available on their GitHub:

https://topjohnwu.github.io/Magisk/

So you can try...

Strange point is that [MENTION=808575]ant0nwax[/MENTION] has repacked Magisk (and I think he was able to update with) - I also had successfully repacked Magisk but upon I Factory reset, I can't make it anymore
[Huawei P9 Guides, News, & Discussion] daveh077:
So I made my own patched ramdisk, then flashed that and again tried the hiding of the magisk manager, still no luck sadly
[Huawei P9 Guides, News, & Discussion] zgfg:
I managed to Hide/repack Magisk Manager, see:

https://xdaforums.com/showpost.php?p=80659957&postcount=36544

If you still fails to install the repackaged MM manually, delete that app-patched.apk, disable Play Protect and try again - it would be interesting to see is it related to disabled GPP (I think, mine was disabled)
[Huawei P9 Guides, News, & Discussion] daveh077:
I've disabled play protect, playstore version is 16.0.16.

With magisk manager 740-121 I've selected to hide the manager, download begins and a protected.apk does appear in the data/data directory you specified, however when I try install the protected.apk I get "there was a problem while parsing the package" message.

I've tried copying the protected.apk to another location but the copy never starts. I've also tried stopping the magisk manager and try again but also didn't work.

Any ideas?

---------- Post added at 10:08 AM ---------- Previous post was at 09:36 AM ----------

I've gotten further and my repackaged magisk is now installed (I used a different root explorer) to access the cache folder.

However when I open the repacked magisk manager it says it requires additional setup, tries to download and install a magisk install zip file which fails.
[Huawei P9 Guides, News, & Discussion] zgfg:
My PlayStore is 17.02

Additional setup should not be updating Magisk (I already had latest Canary 20.1 (20003)), but the part manager needs for Safety Net check.

Disable auto-update and just check SafetyNet - delete original not-obfuscated MM and grant root to the repackaged one when it asks.

You may have a problem now that updating Magisk with repackaged Manager fails - some people complain[ed] about, that they had to unhide Manager, update Magisk, then hide Manager again
[Huawei P9 Guides, News, & Discussion] daveh077:
You're a genius! I updated my playstore to 17.0.12 and magisk to 20.1 and reran the procedure, it's all working now and my banking app is working again.

Thank you so much for your help on this.

One final question, if new magisk updates come out should I install them or not?
[Huawei P9 Guides, News, & Discussion] zgfg:
Are you kidding, who knows what the next Magisk can bring ☺️

You can always hold on for a while and monitor what people report in Canary and General Magisk threads, but also keep the patched Ramdisk from the last working configuration, that you can easily restore if things go wrong with the update

--

One more observation (don't know were you checking about):

- I was unable to get Device is Certified in Playstore.

Play Protect and SafetyNet were green, but there was no info in Playstore if Device is Certified or not

- I was trying by deleting Cache for Google Play, Google Play Services and Play Services Framework (during that time phone must be in Airplane mode), but no avail (even with cleaning Dalwik Cache and Cache)

- Additionally, I was trying by manually adding to:

/data/data/com.android.vending/shared_prefs/finsky.xml

a line (see OP post #4):

<boolean name="device-google-certified"value="true/>

but the line was always deleted by Google Play.

Now, when Magisk Manager was repackaged, PlayStore happily shows Device Certified (and it added the line to finsky.xml)
[Huawei P9 Guides, News, & Discussion] daveh077:
My play store already says device certified on it.
[Huawei P9 Guides, News, & Discussion] alexrainmk:
Decrypting Data partition and Internal memory, for TWRP access

Hello! Tell me how to encrypt the DATA partition back. After reinstalling the EVA-AL10 8.0.0.540 (C00) system via WIFI. The phone has stopped loading on the OS, it hangs on loading. How to fix. Thank :rolleyes:
[Huawei P9 Guides, News, & Discussion] zgfg:
I did from eRecovery, Install latest and Factory reset.

As always before Factory reset, I started with:

- unroot, flash back stock Recovery, Ramdisk (unroot should do it, but you can both) and Kernel (if using custom Eco).

It similarly failed me once or so, I repeated until it booted

If eRecovery won't work, don't try rolling back, rebranding or so - you can install b528 by DLOAD and then you will receive OTAs back to b540, see:

https://xdaforums.com/showpost.php?p=78721851&postcount=1351

(if you search for Service repair, you will find few more posts about)
[Huawei P9 Guides, News, & Discussion] alexrainmk:
Thanks:)
[Huawei P9 Guides, News, & Discussion] xxxvego:
Guys, is it possible to install GCam?

I tried flash ZIP camera2api enabler and installed gcam on android 8.0.0 but the application closes after giving consent. ;( [MENTION=7786725]zgfg[/MENTION] maybe you know something about it?
[Huawei P9 Guides, News, & Discussion] zgfg:
Nope, I never tried not-stock Camera apps
[Huawei P9 Guides, News, & Discussion] sebasmadd:
Hi everybody, I have a doubt, what does exactly do the phone being certified on the playstore? I mean, mine say's it's not certified and I don't see any difference.. the only think is that when I rebranded my p9 and than update it to Oreo, some apps doesn't show on the play store, like WhatsApp, Instagram, and my banking app, now all of a sudden, those apps show like normal, and I can even update them regularly, even though I had problem with the banking app Wich I at first had to extract the apk from my girlfriend's phone so that I can have the most update app.. now, after a month or so with Oreo on p9, and even changed to a new battery because it was busted before, everything seems to be working fine.. the only think is the certification, I don't have it, and honestly I'm not feeling like flashing TWRP and install Magisk just to fix that, even though deep down I want to do it xD, so that's why I'm asking, what does the certification do exactly to the phone.. is it possible that it fixes alone? Like the apps I mentioned before now just show up on the play store? Or is any way to root the phone in simple steps? Like one click root I don't now.

Thanks!
[Huawei P9 Guides, News, & Discussion] dnspok:
Hi all,

I'm new here and it's too much for me to understand what to do. I have my build number VIE-L29C636B394 and I'm running on EMUI 5.0.4 and Android 7.0. I want to update to EMUI 8 and Android 8, how do I do that?

Thanks.
[Huawei P9 Guides, News, & Discussion] zgfg:
You don't need to install TWRP, specially you don't need to flash Magisk zip.

You can flash from Fastboot the Ramdisk image already patched by Magisk - read OP post #4. Then install Magisk Manager apk...

OP posts refer to an old version of Magisk. You can install the old, then update through Magisk Manager to the latest.

Or, you can install the latest Magisk and Magisk Manager from my Mega, you will find the patched Ramdisk img and MM apk:

https://mega.nz/#F!JwkVyRya!Rb7OUE0z3PEpXBRxGOM-vQ

With SafetyNet failing and specially with Device not certified, some apps (banking and so), refuse to work.

Although, some also detect root/Magisk and then again refuse to work - but there are tips how to trick them (frankly, this is a cat and mice game):

https://www.didgeridoohan.com/magisk/MagiskHide

You can check SafetyNet without Magisk - CTS Profile will fail since Device is not certified for Chinese Oreo, you need Magisk to fix the CTS Profile issue.

Find the Safety Net Check also on my Mega and don't allow Playstore to update (newer version requires paying to verify CTS Profile)

---------- Post added at 07:29 AM ---------- Previous post was at 07:26 AM ----------

Please, be careful - you say your phone is VIE, that means P9 Plus.

This is here for P9 (EVA), P9 and P9 Plus are different phones (mainly and most notably by phone and display sizes):

https://www.gsmarena.com/compare.php3?idPhone1=7745&idPhone2=7972

You have to use XDA subforum for P9 Plus, and there you will find the corresponding thread for installing Oreo to P9 Plus:

https://xdaforums.com/p9-plus/development/rebrand-update-tool-hwota7-p9-plus-vie-t3843930

Follow the OP posts, read them carefully, they explain in every single detail how to rebrand to AL10c00 and how to update to b537 (for VIE the latest is b537, for EVA here b540)
[Huawei P9 Guides, News, & Discussion] dnspok:
Thanks for the reply! I just have some questions like will I lost all info in my phone (Factory reset) upon this new update? And also I couldn't get my bootloader code, is there anywhere else I can get it? (VolDown + Power button does not boot into FastBoot for me so I couldn't know whether my phone is unlocked)

Thanks!
[Huawei P9 Guides, News, & Discussion] zgfg:
Post #2 in the VIE thread from my previous answer describes the details (answers are also there)

Anyway:

- Yes, Factory reset is part of the described process, you should prepare backups: Google accounts, some things you can backup and later restore by Backup app and or HiSuite [backup all, you will see what would allow you to restore], Contacts can be exported/inported to/from CVS, WhatsApp to GDrive, copy photos to PC or SD card, etc)

- Vol- is for Fastboot, not Vol+, it must be described in OP post #2.

You can also use adb command to reboot to Fastboot, please again read the OP posts

- You can still buy BL codes for VIE/EVA from DC Phoenix or Ministry of solutions for cca 4 EU:

https://www.dc-unlocker.com/

https://ministryofsolutions.com/paid-services
[Huawei P9 Guides, News, & Discussion] ClassicRed:
Hello

Thank you for this great tutorial

I managed to pass my eva L09 french in AL10, in spite of the english / french translator ...
[Huawei P9 Guides, News, & Discussion] marious8:
I need to say that after upgrading my P9 to Oreo my mobile phone is extremely fast. It took me a while to change the firmware and it was not easy to do e.g figure out how to unlock bootloader but it was worth doing. I feel like it's a brand new mobile phone. Additionally, I replaced the battery some time ago for few bucks and to be honest I don't see any reason now to upgrade my phone to a new one. It will be enough good for the next year.

The only thing you need to remember is to unprotect your SD card before you start upgrading the mobilephone because if you do forget the password you can not access your data anymore. What is more Huawei backup does not save the SD card password.

The next TIP is regarding Google play store somehow at first time after the upgrade it did not work with oreo.(probably I did not accept some terms and conditions) I had to do the factory reset and then flash the firmware again to make it working.

Btw. some of you say that with the new firmware Google play says that the mobile phone is not certified. I have noticed that issue with my google play store. However, it is true that SafetyNet Test fails test and some apps may not work e.g Netflix. Fortunately for me all the apps I used to use work including banking.

Thank's a lot for the hard work somebody did to create the instruction and the patches to make it working.
[Huawei P9 Guides, News, & Discussion] diablod:
Hi, I have done all right until the point 29)...then I have installed the Google play new app but the app don't work so I have done wipe cache, wipe data e now the phone is locked on the first screen of booting...he says "your device is booting now" but nothing happends... Thanks
[Huawei P9 Guides, News, & Discussion] zgfg:
Problems with Playstore is common and if you searched in this thread you will find it answered/discussed more than once

Anyway, how did you wipe Data:

a) from TWRP

b) by Factory reset from system or (e)Recovery, but still with TWRP installed

c) like in (b) but strictly upon reverting to stock Recovery

Both (a) and (b) lead to bootloop, only (c) is the proper way

Now, for the beginning, try to resolve by eRecovery - choose Install latest firmware and recovery, and immediately follow by Factory reset (also from eRecovery)
[Huawei P9 Guides, News, & Discussion] diablod:
Yes...I have done a wipe from twrp...so can you explain what I must do ? Sorry ;(
[Huawei P9 Guides, News, & Discussion] zgfg:
You can search in this thread for eRecovery

Anyway, to unbrick:

- connect the phone to charger (!)

- Press and keep pressing Vol+

- Boot

From eRecovery, choose in this order

- Install latest firmware and Recovery (it should offer you b540)

- Factory reset

Boot, accept OTA updates if they come

Suggest you to install and setup Magisk before you install Playstore app.

If you would need to clear cache for Playstore, find instructions I think in post #4.

If you want to wipe Dalwik cache, use eg MiXPlorer, grant it root rights, navigate to root, Data and delete Dalwik folder, and reboot.

Use TWRP only for flashing Tecalote's zips (image files can be flashed from Fastboot), not for 'Factory reset' and so (TWRP does not support encryption and cannot deal with Data partition and Internal memory)
[Huawei P9 Guides, News, & Discussion] Speaka:
Play Store not showing installed apps.

Hello community,

I recently update my eu eva-l09 to b540. Most things work flawlessly. Thanks for the good work! :good: But nothing is perfect, so isn't my play store. I followed the steps in op, installed the apks and flashed the magisk image. After that I restored some Backups from within titanium backup. (Worked only with manual installing apps). Apps all seem to work, but:

In the play store I can't see any of the installed apps. Only if I install them via the store they show up. Can't update any and some apps I can't find at all via search. Also apps I bought already show up as not bought.

What I tried already:

Google account is correct

Cache and data cleared.

Tried different apk from apkmirror.

Tried market fix in the tb app.

Am I missing something?

And what else can I try to fix?

Thanks in advance!
[Huawei P9 Guides, News, & Discussion] zgfg:
Seems that this is something new.

I observed the same problem (saw it first time) a month or so ago upon Factory resetting and configuring - but after few days or so, I suddenly started to see all apps ( incl. those that I restored from Backup app or manually by having apk installation files

Observed also by another user, see:

https://xdaforums.com/p9/development/rebrand-update-tool-hwota7-p9-eva-t3820849/post80473609

Don't know is it related to Device certification changes imposed by Google, or due to the newer versions of GApps, or what.

Anyway, I was (re)installing more than half a dozen of times this Chinese Oreo, always following more or less the samr pattern (differing only in available updates of Magisk, GApps and Huawei apps being updated by Gallery app).

I always install Magisk (before installing Playstore - otherwise CTS profile fails) and I had the same empty list when I installed GPLay and configured the account,, but when I checked few days later, the list of installed apps was populated correctly.

If it helps you...
[Huawei P9 Guides, News, & Discussion] Speaka:
Thanks for your quick reply!

So I will just stay calm for now and see if it helps.

Playprotect is certified by the way.
[Huawei P9 Guides, News, & Discussion] diablod:
So, I have done a reset from erecovery and it downloads a installs the al10c00b398 firmware..and now after the screen "your device is booting now" the screen became black and nothing happend...
[Huawei P9 Guides, News, & Discussion] zgfg:
b398 is Nougat, not Oreo?!

If eRecovery recognized that latest firmware for you had to be b398, then something went very wrong, maybe you affected more than /Data from TWRP

You can try to better understand the current state of your phone by executing the following commands in Fastboot:

fastboot oem get-bootinfo
PAUSE
fastboot oem get-product-model
PAUSE
fastboot oem get-build-number
PAUSE
fastboot oem oeminforead-SYSTEM_VERSION
PAUSE
fastboot getvar vendorcountry
[Huawei P9 Guides, News, & Discussion] diablod:
Hi, I have re-done all the guide from beginning e now it works...and I have installed magisk with no patch.

So, sometime PlayStore crashes, so if I must clear cache I can do it from twrp, but If I must reset phone I must do it from setting/system/restore, correct?
[Huawei P9 Guides, News, & Discussion] zgfg:
Excellent :)

If you really need to Factory reset, I do it always from eRecovery.

But before, I always:

- do Backup (stock app)

- backup WA and Google accounts

- remove Google and Huawei accounts

- remove fingerprint, face, pin

- unroot and restore (whatever applies) stock Recovery, Ramdisk, Kernel, eRecovery.

Last one is a must to avoid soft-brick, removing accounts and display protection may save you from issues upon Factory reset

You can selectively clean Cache for particular apps and services in Settings, Apps, System processes (Storage, Clean cache).

You can clean full Cache from eRecovery

If you want to wipe Dalwik, you need root and root explorer like MiXPlorer: root, Data, Dalwik (then reboot).

TWRP cannot wipe Dalwik because it does not support encryption on /Data (neither on Internal memory) - although it will not complain if you try, yielding you to wrongly think that it wiped

You can wipe Cache from TWRP, but be careful, don't wipe any other partition.

Use TWRP only for Tecalote's zips - but you must prepare them to external SD (because TWRP cannot access Internal memory).

TWRP can be also used for wiping Cache (it can be also done from eRecovery) and for flashing Ramdisk/Recovery/Kernel images - but you can also do flash images from Fastboot (as Tecalote prefers)

Btw, images can be also flashed by EMUIFlasher.apk (root required):

https://xdaforums.com/mate-20-pro/how-to/guide-manual-updating-firmware-t3893171

PS: When I had problems with Playstore (I always install Playstore from apkmirror, upon Magisk):

- switch to Airplane mode

- clean Cache for GApps

- wipe Dalwik

- reboot and switch Airplane off
[Huawei P9 Guides, News, & Discussion] rowland.phoen1x:
hi everyone.

i follow all steps to rebrand my p9 to al10, but when i install TWRP and boot it, he ask me for password (decrypt data)
[Huawei P9 Guides, News, & Discussion] zgfg:
It is described in post #2 or #4, pass to be ignored.

Just swipe to enable writing to System and go on

As mentioned elswhere, TWRP cannot access /data nor Internal memory - please read also my previous post.

As result, TWRP cannot save its own Settings - you will always need to repeat avoiding pass on opening
[Huawei P9 Guides, News, & Discussion] diablod:
Perfect !! But with mixplorer in root/data I haven't dalvik folder ,?
[Huawei P9 Guides, News, & Discussion] zgfg:
Ok, if not exactly "dalwik" then it is "dalwik-cache"