yashsingh1/xdaforums huggingface dataset:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Thanks for having a look. Meanwhile microG become really nasty and I am receiving this notifications every few seconds in normal use, even if I have "location" deactivated.

Went back to update version from May and all fine for the moment. One thing I noticed immediatly, microG settings are different standard settings. "location" (see screenshot from above) has all settings default "on" whilest May version have them "off".

Greetings.

View attachment 5955291
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
@MSe1969 May I ask, did you found some time to go through the log file I sent you? Greetings.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Sorry, just gave you a reply via PM, not really gotten really further
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Unfortunately, I could not really get through this (see my PM reply) - however, for the time being, I have the following advices:

For the newer build release, check that all permissions and also "AppOps" (see "Privacy manager" - especially any "Telephony" related AppOps) are granted to microG.

Further, as a work-around, you may want to pull the file /system/priv-app/GmsCore/GmsCore.apk from the May build, flash the July build and replace the file accordingly there (restart afterwards!)...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Hi. I have no extra Apps installed regarding permissions.

Where do I find "privacy manager"? Only found "TRUST" searching for "privacy"...

And what means "AppOps"? "Applikatrionsberechtigung"?

I would feel much saver if things are called like I find them in the phones settings. Unfortuitly I just acciedently reseted the "Privacy Guard" settings : (

Btw how can I "pull" a .apk out of an .img? Can not mount the .img with my known tools for virtual drives.

Thanks anyway.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Any suggstions how I can get back my previous settings? Really no idear which ones where activated? There are too many apps listed I dont know what they do...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
HI. got the GmsCore.apk extracted. Trying to install from android file browser it says: "Beim Parsen des Pakets ist ein Problem aufgetreten"

Shall I try installing via ADB tool and if, how?

Greetings.

Edit: Did push the .apk via adb tool, you sent me a "how-to" once I had the issue with the 3D-Webviewer. It copied the file and I made reboot. lets see how things behave. Went back to July-built and had notifications immediatly.

Will report later.

After reboot no microG installed now : (
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Yes, that is what I meant - but GmsCore is a privileged app, so you cannot restrict it (I forgot about that specific situation), so just make sure that Privacy Guard isn't activated for GmsCore.

The flashable image file is a "sparsed" image, so you would first need to convert it. This is the command sequence for Linux:

simg2img treble_arm64_a_lineage16_20230510_system.img.zip system.raw
mkdir sys
sudo mount -t ext4 -o ro,loop system.raw sys/

The newly created directory sys/ contains the mounted image contents.

For Windoze, you would have to consult the search engine of your choice...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
I think there is no way unfortunately...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] IceTe:
invaluable info, thank you!

Thanks to rom creator!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New build with backported August '23 ASB patches available

Hi all,

a new build is available for download (update instructions, see OP):

https://sourceforge.net/projects/lin16-microg/files/treble_p9eva/treble_arm64_a_lineage16_20230815_system.img.zip/download

Custom build release 2023-08-01

Mulch Webview 116.0.5845.92

Happy flashing!

Regards, M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] xdauser2023:
hi! Thanks for the continuous update. @MSe1969

I was able to get the ROM running on Dual Sim P9. I also expericned the following issues:

1. Only SIM Slot 2 can detect SIM Card, Slot 1 cannot detect SIM card at all.

2. I can make calls normally with SIM 2, data works but at Edge connection speed.

3. I have 2G signal only. Have tried to set the APN, and make sure to set the preferred network type to LTE, but nothing changed.

4. When I go to the phone setting using 4636, i see the preferred network is set to GSM only, with options in the dropdown, but changing it wont save and wont make any actual difference.

What do you think the fix could be? I dont mind losing a SIM card slot but really hope 3G/4G can work.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
As indicated before, as I don't own a dual-SIM P9, I can't analyze and directly help. I have an EVA-L09 (single SIM) only.

In the process of getting your device to EMUI 8 initially, there was also a task to "patch" the telephony/modem stuff (referred to as "Network patch" in the linked thread, see OP) and flash a specific package, which was hardware dependent (i.e. a different ZIP file for P9 single-SIM L09 and different files for the L19 or L29 dual-SIM devices), so have you applied the proper patch for your specific device? (What you describe to me seems to indicate, that this may be the underlying problem).

Maybe others having a dual-SIM device can step in here as well?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] xdauser2023:
Unfortunately I skipped that patch and went straight to flashing the rom because my IMEI were showing so I thought it wouldnt matter.. (my mistake)

Can you point me to the right step to repatch the network patch, do I need to flash back to the Chinese version EVA_AL10 (EMUI8) stock rom? if so how do I do that via eRecovery and HWOTO7.

Really appreciate it.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Please have a look at this post (step 19 explains the situation and Step 20 deals with the network patch): https://xdaforums.com/t/rebrand-update-tool-hwota7-p9-eva.3820849/post-77161313

In fact, you should only flash my treble ROM, if you have a perfectly working "Chinese" Oreo ROM, which recognizes networks, SIM cards etc.

I have had a look at the network patch flashable zip - I'm afraid you'll have to get back to the "Stock EMUI" and temporarily flash TWRP again. Maybe @Tecalote would like to step in here?

To make things worse, if I remember right, Huawei has even dropped their previous download servers, so you won't be able to get back to stock EMUI via eRecovery, as it can't download the Stock firmware any more. (Of course, if eRecovery still works, that is your method of choice.)

Instead, you would have to do the following:

Backup your stuff, as you'll loose everything on your device, also internal memory.

Create a folder /dload in the root of your SD-card and copy the file UPDATE.APP from the update.zip firmware file (see OP with FW links) into it (maybe a good possibility to use the most recent 552 firmware?). Then, extract from the 2nd zip file also its UPDATE.APP and copy it into /dload as UPDATE_cust.APP - Finally, switch off your phone and hold Power, Vol+ and Vol- simultaneously.

FOR THIS ACTION, PLEASE DO YOUR OWN RESEARCH FIRST BEFORE ATTEMPTING!

If all goes well, your device will get EMUI 8 stock firmware. Continue with steps 19 and 20 in above linked post (i.e. flash TWRP, flash the network patch, flash EMUI recovery)

Might be good, if others step in here as well - this is tricky.

EDIT:

Considering the above, there is one thing, which you could at least try - if you secceed, you won't loose your data and the fix would be easy. If not, it can't get worse than the above, but you WILL have your device 'screwed up' and need to get back to EMUI-8 anyhow:

Study the linked post/thread carefully to understand the original steps and the right files to download.

Copy the UPDATE.APP files (see above) into the /dload folder of your SD-card, as described above, so you have already the fallback handy, if the below steps would fail

Copy the right network patch zip file to your SD-card

Flash the Oreo TWRP and boot into it (yes, it cannot access your /data partition, ignore it and do nothing about it!)

Flash the network patch from the SD-Card in TWRP

Reboot to the bootloader

Flash my ROM's system.img via fastboot again

Flash the EMUI Recovery from fastboot again

Reboot the device

If you're lucky, all will be perfect. If not, you have to restore your device.

Good luck - and don't blame me, if something goes wrong, I never did before, what I have suggested - and again, people reading should contribute their opinion.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] alimori:
I have two P9 EVA motherboards, I think both AL10 (one has the Y2 model label, I don't know if it's an L29). So I think they were converted to L19, and the installed firmware is EVA-L19C185B405. Android 7.0, EMUI 5.0.4

I unlocked the bootloader, writing down the code (testpoint on the ground).

I believe I have the prerequisites for installing this custom ROM.

I followed the instructions and what was explained happened, including the appearance of the exclamation point (!) during the "Wipe data and factory reset" at 17%.

But the P9 doesn't start and the yellow message appears that "the bootloader is unlocked..." etc...

I repeated the procedure by forcing the download and installing the stock rom again (this time build 403 (I didn't find 405), but with the same result).

I ask if I necessarily have to install the stock ROM with Oreo, bringing the motherboard back to AL10 and then flash the ROM with Lineage16 which is discussed in this thread.

In practice, first use HWOTA7, download Oreo, install it via the dload folder in microSD, and finally repeat the flashing procedure of the MSe1969 custom ROM.

Is this what I have to do?

I ask, to be usable in Europe, and connect the network providers, if it must be patched and the apps will work like in a P9 model L09.

The purpose is precisely to make some apps work, which require a more recent version of Android.

I attach, if I can, the image of what was done.View attachment 6000813
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Yes, I confirm.

If your starting point is an Android 7 with EMUI 5, you need to perform ALL steps,

one by one

, as outlined in the linked thread authored by @Tecalote - do NOT skip anything!

Especially, please ignore my last post, in which I have suggested some short cuts, because xdauser2023 has missed one step during his EMUI 8 conversion, which is a very special, exceptional situation. My last post is not intended to 'replace' or 'short cut' in any way the original description given by Tecalote.

As explained in the linked thread, you need to rebrand to the Chinese model, reset and install the Chinese Android 7 EMUI 5 on your device, perform the update to Oreo / EMUI 8, do the network patch and have, as a result, a fully working Stock EMUI 8 Oreo. Even if it is for dummy purposes, you need to use the Stock ROM for a short while to verify, that all works as it should: SIM card(s), phone calls, mobile internet, WiFi, etc.

Only then, as final step, flash my ROM (to be more precise: The system.IMG)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New build with backported September '23 ASB patches available

Hi all,

a new build is available for download (update instructions, see OP):

https://sourceforge.net/projects/li..._a_lineage16_20230914_system.img.zip/download

Custom build release 2023-09-01

Mulch Webview 117.0.5938.60

Slightly hardened GPS configuration

Updated CA-Certificates

Happy flashing!

Regards, M.

EDIT: Link corrected
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] alimori:
Many thanks MSe1969 !!

I need some time to implement your suggestions, but I will let you know afterwards, hoping to be useful to the whole forum.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] alimori:
By slavishly following Tecalote's precious instructions on how to use HWOTA7, I managed to bring the two smartphones back to the AL10 version and install OREO, passing through Android 7 (Nougat).

I can confirm, as I believe I have already read, that by updating to Oreo, the native P9 EVA-AL10 does not require any patch to connect to European network providers. I only tested one SIM and this is the result.

Those who own a native European version of P9 (L09, L19, L29) can communicate how it works with Chinese Oreo.

I will keep Android 8 for a few days and then I will switch to the MSe1969 custom ROM, which I thank again for the support and suggestions.

For my part, I can suggest that the forum read carefully the threads of the authors of the programs and the various replies. A week of reading and two hours to work: with this ratio, you are able to understand what you are doing and get out of the way of new situations.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] kundifon:
Regarding banking apps, this is LineageOS rom and therefore shares it the same issues.

See here for solution. I didn't test on P9, should work. @MSe1969 are you able to change this once forever and ship reworked build.prop with your nexts rom builds?

Banking apps on LineageOS roms

Until recently, I had no problem with various banking apps. But after app update this particular bank (intesa sanpaolo Bank mobile - Slovenija) doesn't work anymore. They did (Bank app developers) some changes. I talk strictly about not rooted...

xdaforums.com

Here is patch which @AltairFR provided me for unroot this phone.

and the script for same thing https://xdaforums.com/t/rom-treble-microg-lineageos-16-0-for-huawei-p9.4078383/page-36#post-88567119

After this you can use banking apps on this Huawei P9 without problems. No more root access, advanced root checker don't find anything, pass SafetyNET.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] brookie229:
This may solve the SafetyNet Attestation Api compatibility issue but will not alter banking app function that are more and more using Google's Play Integrity Api. Could be useful for many but not for my banking apps.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Tested it - the prop by the way in the Pie GSI build is ro.build.tags (not ro.system.build.tags) - however, the advanced root checker app still identifies "dangerous props"...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New build with backported October '23 ASB patches available

Hi all,

a new build is available for download (update instructions, see OP):

https://sourceforge.net/projects/lin16-microg/files/treble_p9eva/treble_arm64_a_lineage16_20231022_system.img.zip/download

Custom build release 2023-10-01

Fixes for CVE-2023-4863 and CVE-2023-5217

Mulch Webview 118.0.5993.80

microG 0.2.29.233013

FDroid 1.18.0

Happy flashing!

Regards, M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
The conmtents of the file /data/tombstones/tombstone_03 would be interesting here, that could maybe lead to more information, the provided log (thanks for that) does unfortunately not tell too much...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jdonice:
Sure changed ext to txt so i could upload.. interested if this helps.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jimmygoogoo:
dear OP, i followed your wonderful guide on my Huawei p9 Eva-L29 , stock Android Nogat 7, which has bootloader unlocked.

fastboot flash system treble_arm64_a_lineage16_20231022_system.img

Sending sparse 'system' 1/5 (460796 KB) OKAY [ 14.425s]

Writing 'system' OKAY [ 3.721s]

Sending sparse 'system' 2/5 (427252 KB) OKAY [ 13.410s]

Writing 'system' OKAY [ 3.098s]

Sending sparse 'system' 3/5 (460796 KB) OKAY [ 14.485s]

Writing 'system' OKAY [ 3.328s]

Sending sparse 'system' 4/5 (460796 KB) OKAY [ 14.466s]

Writing 'system' OKAY [ 3.329s]

Sending sparse 'system' 5/5 (85696 KB) OKAY [ 2.699s]

Writing 'system' OKAY [ 0.628s]

Finished. Total time: 73.703s

then "wipe data/factory reset" then choose "wipe cache partition" , Finally choose "reboot system now" from Huawei stock recovery

now it is stuck at the following screen , I wonder if i missed anything :D

View attachment 6026624
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jimmygoogoo:
oh OP, I see my problem, i need to update my phone to EMUI 8 , it's going to be interesting, more reading to do...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jimmygoogoo:
thanks OP, all good after updating it to Oreo. Loving it
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] jdonice:
MSe1969 -- were you able to look at the tombstone. I ran a test using same app on Android for Windows (just to see what would fail) - I got an error there around Google Play Services not being present. With LOS it uses MicroG Services and my version is using the preview build, not stable.

View attachment 6027830

So on the device its using 0.2.29.233013

I know that on launch Bimmercode does a auto download of data, which I am not sure if its using Google Play Services to get that update?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Yes, but it did not tell anything more - some memory fault in libc.

I have no idea, really - as the app uses low level USB stuff, there may be some unusual conditions, which are problematic on this device being a treble build...

Play services dependencies - yes, that is what microG is for. I however don't think that the memory error is related to play services vs. microG at all.

Interesting, that the outdated version from January this year is still flagged as "stable", whilst the three subsequent versions are listed as "preview"...

As indicated, unfortunately, I have no good advice for you, but I have the feeling, it is more related to this being a treble build : Android 9 system partition working with original Android 8.0 vendor partition and kernel in conjunction with an app making use of ndk / C libraries on the OS rather than any play services thing...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New build with backported November '23 ASB patches available

Hi all,

a new build is available for download (update instructions, see OP):

https://sourceforge.net/projects/lin16-microg/files/treble_p9eva/treble_arm64_a_lineage16_20231122_system.img.zip/download

Custom build release 2023-11-01

microG and companion (aka Fakestore) 0.3.0.233515

Mulch System Webview 119.0.6045.134

Happy flashing!

Regards, M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Did the update an somehow it did not installed all 5 packeges.

I did not read carefully and did reboot. No it is stuck in boot process.

I did not figured out how to get into the fastboot-bootloader.

Any advice?

Edit1) Could get acces to bootloader. Somehow it had issues tith the 5th package. Now its through but seems like my system is back to factory settings, which I did not choos as an option : (
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] lo_ol:
Defective usb cable probably? Update went through flawless here as always:giggle:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Yes I think it is the cable. After a few tries it went fine.

BTW did a factory reset, which luckily also solved my microG-GPS problems. Now I have a clean and new set up P9. Is there a simple way to create a image of this state with all added Apps and settings?

Greetings.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] iamashwin:
Im in a somewhat of a wonky state.

I recently unlocked the bootloader from stock firmware and flashed TWRP from https://xdaforums.com/t/twrp-p9-3-1-1-1-emui-5-x-aosp-n-decryption-support.3565703/.

I then flashed this Lineage14.1 from https://xdaforums.com/t/rom-7-1-2-lineageos-14-1-for-huawei-p9-update-18-07-2017.3615781 and now stuck in a boot loop. I then flashed a vendor.zip following some other rom forum but that didnt help either.

Im now stuck, is there any way to flash this rom and get it bootable?

I suspect that my mistake was flashing the Lineage14.1 before updating EMIUI version.

Any help would be wonderful!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] :
no one is here to help you it your fault that you didn't read all info have a good day !
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] :
after flash and all things i was realizing that the phone become hot and stay hot i open mtweaks to see cpu usage surprise 100% on all core what can be ?

kundifon​
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] lo_ol:
Adb debugging enabled or outdated magisk installs cause this
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Magdy Doze:
Understandable...& I'll give it a try & report back
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Magdy Doze:
yes it worked ^_^
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] StickmanCheng:
Where is that specific patch？
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
Look to ROMs section, HWOTA7 thread, OP posts
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Thanks for reporting - updated the "Tipps & Tricks" section accordingly.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] akeshma:
Unfortunately, bank apps are able to detect root in this room. so I install the room from https://openkirin.net/download/

LineageOS 16.0 Build 4

it works great.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New build with August 2020 ASB patches

Hi all,

a new build is available for download (install instructions, see OP):

https://sourceforge.net/projects/li..._a_lineage16_20200808_system.img.zip/download

ASB Security string 2020-08-01

Bromite Webview on 84.0.4147.113

The location of the firewall functionality has moved to Network > Data usage in Settings (latest cherry-pick from here)

Happy flashing - regards, M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] sebasmadd:
Hi, I want to try this rom on my p9 because I want a change from emui. But I have a stupid question, what's the difference with this and any other rom? I mean, I know this rom is intended so google can't "track" you I guess, but for example, can I still use google apps with this rom? and download apps thru play store as usual? because I like google apps tho, so that's what I want to know. Most importantly I ask this question because I have apps that probably are only on the play store, like the apps from the banks in my country.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
The answer to your questions isn't a simple "yes" or "no". This ROM comes bundled with AuroraStore, which is a frontend to the play store. So you can download (almost) all free apps, and - if you use your own credentials to access, instead of the dummy accounts provided, you can also update your paid apps.

Further, microG coming with this ROM provides a basic compatibility with apps having dependencies to the Google play services. So many, but NOT all apps having such dependencies, also run fine with this ROM.

As a rule of thumb, complex games from big gaming companies and the apps coming directly from Google themselves probably won't run with this ROM, as they deeply integrate with the Google spy services. For the latter however, there are free and better alternatives available, so I don't consider this a real "loss".

In regards to banking apps, usually, those consist of the banking part as an app and a separate "push TAN" app. The push TAN apps most probably (I'd say for sure) won't work! (This anyhow isn't secure and is no 2factor authentication, despite the marketing blah blah from the banks).

The banking app may or may not work, depends on the product.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] xaweryp:
Hi,

does the WiFi hotspot work already within this 'official' LineageOS release?

Thanks,

X.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
As far as I can see on their change logs next to the download links, they claim it does.

Unfortunately, their device repo isn't publicly visible and they on purpose don't want to make their sources public.

I am still trying to find out how to make the hotspot work. Any hint appreciated ;)