yashsingh1/xdaforums huggingface dataset:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Hi,

I also use this app, but I don't update the GSM stuff too often. Yes - I can confirm your observation, but it is not related to my build, but to this issue of the app here:

gsmlocation points to old URL · Issue #132 · n76/Local-GSM-Backend

Received by email: First, thank you for this finely functional backend. issue: The MLS url for its cell networks database is now https://d2koia3g127518.cloudfront.net/export/ and the "update databa...

github.com

In an nutshell: The URL to download the GSM data from Mozilla has changed and n76, the dev. of the Local GSM backend, has handed over his project to another dev., as he has stopped the development for it.

The new dev. has already submitted a respective update request to F-Droid:

Update Local-GSM-Backend app · f-droid/fdroiddata@50b088e

This apk doesn't work since over a month, because mozilla changed their URL that is used to download their database and the application is useless without database, see https://github.com/n76/L...

github.com

You have now two options:

a. Wait, until F-Droid offers the update of this app

b. Uninstall the app and download the update directly from here: https://gitlab.com/deveee/Local-GSM-Backend/-/releases

Absolutely not!

(It should anyhow fail, but I wouldn't try) - microG spoofs the Google package signature, that is why Aurora thinks, that the Genuine Google spy services would need to be updated. However, even if you try, the package manager should normally refuse to "update" it. My recommendation is to long press on this in Aurora and to flag then "ignore all updates", this is what I do.

Regards, M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] limesko:
Thank you @MSe1969 again! The answer was just what I was looking for!

I'll wait a couple of days to see if F-droid updates, otherwise I'll manually update the GSM-backend.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] froydenzi:
I want to switch from stock rom to this,but from reading posts i see that all of bug reports are diffent,so is there any bug list from last update?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Hi, in post #4, all currently open issues (together with the already solved ones) are listed. Right now, I am not aware of any others.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] NeWONEx:
It won't flash as it parted for 4 which is ridiculous becuase smaller img would be parted to 5

it fails every time I tried both november and december both failed

I flashed openkirin worked just fine

ATTACHED PIC

successful one is openkirin

failed one is this rom both build 11 and 12

sorry I don't have internet connection enough to try which last build work
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Right now, no explanation, what could be the issue - works perfectly on my device and has always parted to 4, since 1st build. (To my knowledge, fastboot decides the part itself)

You may want to play with the -S parameter of fastboot ?

Besides, no further idea other than the "usual suspects", you can find when searching for that error (like download image again, get newest fastboot version, run fastboot as admin, ...)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] 1stapus:
I have exactly the same thing as NeWONEx.

Even if you download the latest version of fastboot, or try the old version of ROM, it is the same.

Can I get the fastboot that MSe1969 uses?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] namelessrabbit:
Hey MSe1969,

thank you very much for this ROM, seems to be working nicely so far.

Now I know that this is pretty much absurd but I would like to use the regular Gapps with LineageOS. As far as I understand, I absolutely must keep the stock EMUI recovery.

But how can I flash Gapps without a custom recovery? Sorry, I'm a bit lost at this point :-(
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Hi, this ROM is "Gapps free" and it is also not foreseen to use it with the genuine Gapps. It comes with microG and AurorsStore, so many things do work flawlessly.

However, if you absolutely want to use the genuine Gapps, I recommend to flash the Openkirin LineageOS builds instead.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] namelessrabbit:
Wow, thanks for the quick answer!

May I flash the Openkirin build directly over your version or should I roll back to Stock ROM? (via eRecovery)

€dit:

Nevermind, I felt lucky and just flashed the Openkirin build. So far, it looks like everything works as it's supposed to :-)) Thanks again for your great efforts nonetheless!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Flash via fastboot over my ROM, but afterwards you must afterwards boot into recovery and perform a factory reset/wipe and afterwards also wipe cache. See openkirin docu for details.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
I don't use Windows at all - I use Linux (Debian) and hence the respective foreseen fastboot package.

Linux is known to have less difficulties with "special" USB protocols like fastboot and adb - they simply work out of the box under Linux, whilst you have to install a bunch of manufacturer specific drivers for your android device under Windows. I am not saying that this is the explanation of your issue, but when I was still using Windows a couple of years back, I have made those experiences on my own.

Please note:

This is just meant as an FYI - nobody should now start an OT discussion here about "A is better than B".
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] dreadian:
can i revert or install the openkirin version on my phone if i am currently running this build?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Yes, you can flash the Openkirin ROM over this version via fastboot, but you need to perform a factory reset and wipe cache afterwards in recovery.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New build available with January 2021 ASB patches

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

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

ASB Security string 2021-01-01

Bromite Webview on 87.0.4280.131

Updated microG from upstream to 0.2.16.204713-10 (picked until 2f29b93)

Updated F-Droid to 1.10-alpha1-212

'ADB backup' now works

Happy flashing!

Regards, M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] mbscomplex:
Hi, thank you for this rom. I don't usually see these kind of tweaks and attention (or maybe I don't search enough idk). Bet some people (me) never used captive portal in their life so why the hell couldn't we get a simple toggle...

Anyway, although it boots fine on my PRA-LX1 I think it lacks some configurations for battery management and display settings. I would really like to use your build, but I don't want to make you work extra to support more devices. If I could apply your privacy mods on another build, I'd be happy, but I don't know how to and for sure can't build. Maybe you could give me some pointers? If possible..

Thanks again.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Courage2000:
So, I have a P9 EVAL 19, rebranded and updated to Oreo.

https://xdaforums.com/t/rebrand-update-tool-hwota7-p9-eva.3820849/

The question is how to switch to LineageOS?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Explained in OP - you have now established the prerequisite to flash the system.img file via fastboot.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Courage2000:
I've flashed the system.img

After the first restart I've used eRecovery to reset to factory defaults => on boot is asking for the password.

Used the TWRP to format data => stuck on loading lineage OS logo...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] dkionline:
Don't use TWRP. Do a Reset with stock Recovery.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
eRecovery ?? TWRP?

As mentioned already by @dkionline - don't use TWRP, make sure to have the stock recovery flashed. Then - as explained in the OP (or to be more precise: the linked Openkirin installation instructions) - the following is the sequence to be performed:

- fastboot flash system <ROM system.img>

- fastboot reboot

- press power+Vol.Up to enter stock recovery

- choose Wipe data/factory reset

- afterward choose wipe cache partition

- reboot
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] House079:
Where can I get stock kernel for latest build?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Please refer to the below links (taken from Openkirin pages):

1. https://openkirin.net/user_guide/how-to-download-stock-emui-firmware-for-your-device/

2. https://openkirin.net/user_guide/how-to-extract-partition-images-from-stock-emui-firmware/

3. https://openkirin.net/user_guide/how-to-flash-extracted-partition-images/

EDIT: Have a look here:

lin16-microG - Browse /treble_p9eva/EMUI8.0_Stock at SourceForge.net

sourceforge.net
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] House079:
Thanks man, that's exactly what I've been looking for
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
After I tried to install it, the sim card cannot be recognized. Why?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
Did you rebrand your P9 to Chinese Oreo AL10c00 - in that case you had to follow OP posts in the HWOTA7 thread to flash the single or dual SIM patch - that patch would then work both for rebranded Oreo or custom ROMs
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
sorry, I didn’t rename it, it’s always EVA-AL00, besides, I don’t understand what you said, because I only started installing this system recently, I’m a novice
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
Then, if your phone was originally AL10, don't know, maybe somebody else can help you

However, assuming you had EMUI 8 firmware before installing, as required by OP post #1
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
Could you tell me what to do next? I really need a sim card
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
Sorry, never had the originally Chinese P9, I cannot help you here (I just recall that users with originally Chinese P9 similarly had issues with loosing SIM cards when using OpenKirin custom ROMs, while for internstional users with oringinal EVA L09/L19/L29 it was required to flash the patch I mentioned above - but the patch did not work for original EVA AL00/AL09 phones)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Also no good idea - if nothing else helps, go back to stock ROM (eRecovery).
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
I found it! ! It turned out to be a problem with the version number. I tried to use the EMUI8 552 version but the sim card could not be recognized. When I downgraded to the EMUI8 540 version, I cleared all the files in the data before starting (keep the media and property folders). The sim card can be recognized normally! ! !
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
Will this ROM be updated in the future?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Yes

EDIT: I provide monthly ASB updates for LineageOS 16.0
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New build available with February 2021 ASB patches

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

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

ASB Security string 2021-02-01

Bromite Webview on 88.0.4324.141

Updated microG from upstream to 0.2.17.204714-5 (picked until 3d2c7e9)

Updated F-Droid to 1.10-alpha-234

Happy flashing!

Regards, M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
Once I uninstalled the google framework that comes with the system, the camera will not be used immediately, I just want to reinstall the new version of google
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
I am not sure, that I have understood your point.

You want to replace the microG stuff with the regular Gapps?

I don't recommend that! If you absolutely want the original Gapps, you should flash openkirin instead.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
No, the camera always stops indefinitely after a period of time and cannot be turned on, no matter what the reason is, it’s not a google problem. Every time you reinstall the system, you will not be able to run the camera after a period of time.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
You said your Camera issues have started, after you uninstalled components of the ROM, correct?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
哦， 我找到了， 原来是 magisk 模块的问题， 谢谢！
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
English, please
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
Oh, I found it, it turned out to be a problem with the magisk module, thanks!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Harris-io:
Hello,

I found and installed your rom. I really like the "no Google policy" .

I have however a issue:

When logging in inside a app (LEGO Super Mario) I log in using the internal browser. However the response does not get recognized => App is unusable...

Second bug is a not working login with Anton ( https://play.google.com/store/apps/details?id=com.solocode.anton&hl=de&gl=US ) . The app freezes after trying to log in...

fixed installing the february update

Any ideas?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Hi, just to make sure: Is your problem completely solved, or is only the crossed issue solved and the 1st issue with the screenshot still exists?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Harris-io:
The browser issue was not solved this day - but after I installed another Browser and made it default I was able to log in using this browser and it worked.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] thinsoklearp:
PS C:\Users\thins\Desktop\fastboot\fastboot> fastboot flash system treble_arm64_a_lineage16_20210204_system.img

target reported max download size of 471859200 bytes

sending sparse 'system' (460796 KB)...

OKAY [ 14.206s]

writing 'system'...

FAILED (remote: sparse flash write failure)

finished. total time: 14.234s

i can't flash my P9 and now it brick any help? thank
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
Did you have EMUI 8, as it states for pre-requisite in the post #1
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
The functions of the camera are a bit too few, can you consider adding a native camera to this Rom?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Not immediately, but if I find the time, I can have a look. I did initially play around with that, but at that time no success. I know that Openkirin does (or at least did) so, therefore I can have a closer look at their system.img - if anybody has got a clue what to do, I'd appreciate.

In any case, native Cam app has been built for Oreo (8.0), this ROM is Pie (9.0) and there ARE issues because of that, afaik
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] thinsoklearp:
i have EMUI 8 and android 8 too
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Your bootloader is unlocked?

And did you try running fastboot as Administrator (Windows) / root user or sudo (Linux)?

Have recent version of fastboot?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New build available with March 2021 ASB patches

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

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

ASB Security string 2021-03-01

Bromite Webview on 88.0.4324.207

Updated microG from upstream to 0.2.18.204714 (picked until 87465cd)

Updated F-Droid to 1.11

Updated phh treble app

Extended phone number blocking options (Dialer settings)

Happy flashing!

Regards, M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] thinsoklearp:
i have unlock bootloader but it only show phone unlock and not FRP unlock and it is EVA-AL00

and i don't know how to run fastboot as administrator too
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Igoran:
Thanks for your hard work for maintenance that old device!

Using it as 2nd phone.

For camera - it was interested to use GCam on this build too. But if you have a time for it. Doesn't so important.

Really interesting tweak for me - can it be changed default Bluetooth LDAC Codec Playback Quality from "Best effort" to "Optimized for Audio Quality" setting in "Developer options"?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
For the Chinese branding (AL00 or AL10), it is normal, that no FRP lock is shown.

Run fastboot as administrator:

On Windows, run the terminal / command window as administrator, and within, operate fastboot normally.

If your phone is still bricked, have you tried to restore stock ROM using eRecovery?

Besides, I have no good idea, why fastboot would not write.

EDIT: Have you installed a very recent version of fastboot? If not, try to obtain the most recent version. And also make sure (as you seem to use Windows) to have recent USB drivers for Huawei devices.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
I have installed the version released in February and now the version released in March. Can I install it directly on my mobile phone? (installed by third party twrp)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Yes, if you use my build from February, you simply flash the new system.img (no wipe) - either via fastboot (recommended), or - as you seem to use TWRP (so assume device not encrypted) - you can do so also via TWRP with flash image option.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
Oh, I'm sorry, I'm wrong. I'm using FastBoot. If you say that, I'll be relieved. thank you!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] thinsoklearp:
Thank so much for your help kind sir!

I been trying to flash the lastest rom with the lastest flash tool but no luck.

I do been able to flash 16.0 from openKirin.net everything work well except the first sim slot (Sim1) the second slot(sim2) work just fine but second slot doesn't support 4g only 2g so i Decide to use erecovery to go back to EMUI 8 for the time being i really hope i could find a way to make it all work.

but anyway thank you again for your help
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
For this problem, I have a solution, you can try to solve it
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] thinsoklearp:
Can you tell me how?

Thank in advance
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
Install EMUI 8 550 in twrp, then restore factory settings and remove forced encryption of DATA. After entering the system, turn off volte. Restart, flash ROM and reinstall TWRP, then open the file, delete all folders and files except media and property in /data. Just enter the system!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
Hey, I found a camera that can be applied to this ROM, do you consider adding it in the next update?

https://xdaforums.com/t/p9-camera-for-treble-gsi.4006381/
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] gandooo:
Hi

Thanks for your work.

One issue that i saw is, only LTE or only 3G doesn't work. Only 3g work first but after some while switch back to 2G and i must manually switch it to 3G again and again.

One interesting bug which i saw is, sometimes when i use handsfree and i take it out, the sound play through call speaker instead playing through main speaker and you must restart the phone to solve this problem.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
uhh, hi, i followed the guide, the system boots, but asks me to prompt a password, so i'm locked out

edit: from the second boot and so on, the phone goes on bootloop, any tips to fix that?

i've already tried to reflash the image, but the results are the same, bootloop.

reflasfed the image, then flashed magisk, same thing: bootloop.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Thanks for the link, looks interesting.

However - requires some further analysis, as many of the scripts, libs etc. are already present, so I would need to diff and to experiment a little. So can't promise it'll be present in my next build. I would also have to see, whether it properly works and finally is worth the effort.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
You mean, if you restrict the networks to be used in Settings or via *#*#INFO#*#* ?

Because with default settings, 3G and LTE work w/o issues on my device...

You say "sometimes" - you have any way to reproduce the behavior? (But to be honest, even if I can reproduce, I doubt I can fix that)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
The information provided by you is not really sufficient!

What has been your

starting point before flashing this ROM?

In fact, you can have four starting points:

a. You are on a Custom ROM below Android 8

Go back to Stock ROM using e-Recovery (follow instructions on bootloader screen indicating that your BL is unlocked).

b. You are on Stock ROM with EMUI version

below

EMUI 8

Then, follow exactly all the points in the linked thread to bring your phone to a

properly working

EMUI 8 Stock ROM with Chinese branding. Do not forget to flash the Stock recovery at the end!

c. You are on Stock EMUI 8 (Chinese branding), and all works fine, including SIM detection.

- Make sure you have also restored the

Stock Recovery

suitable for EMUI 8. (This means: NO TWRP!)

- Make sure to delete any finger print keys etc. in the Stock ROM, while you are using the Stock ROM

- Flash the system.img of this ROM using fastboot

- Use the proper key combination to boot into recovery! DO NOT boot directly into the ROM, or you end up in a mess !!!

- In the Stock recovery, perform a factory reset and wipe the cache afterwards

- Only then reboot into the ROM

- If all that is fine and you want Magisk, then, only now, deal with it

d. You are already on a properly working GSI / Custom ROM with EMUI 8

This indicates, that you have some time back been in the status as described in c.

Follow same instructions as in c.

You are now in a somewhat unstable/corrupted state. So first step is, that you use e-Recovery and/or the instructions to go back to Stock. Once you are in Stock (could be, that you end up being in EMUI 5 even), follow above instructions.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
the answer is C, i followed the guide you linked to rebrand the p9 and port it to emui 8 and yes, i have twrp installed, so, should I get rid of it?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Yes, flash stock recovery.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
is there a link or a post where i should found the recovery? thanks in advice!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
In the HWOTA 7 rebranding (to Chinese Oreo) thread, OP posts, there is Switch-TWRP-to-EMUI-Recovery.zip to flash.

If you installed TWRP to Recovery and did not mess eRecovery, it should work
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
yep, i see, i'll give it a try rn, thanks

edit:

fastboot flash recovery D:\Download\System\Oreo\Switch-TWRP-to-EMUI-Recovery.zip

target reported max download size of 471859200 bytes

sending 'recovery' (1 KB)...

OKAY [ 0.004s]

writing 'recovery'...

FAILED (remote: partition length get error)

finished. total time: 0.018s
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
lin16-microG - Browse /treble_p9eva/EMUI8.0_Stock at SourceForge.net

sourceforge.net

Depending on whether you have installed Stock b540 or b550, take the proper file from above link and flash as follows (below example assumes the b550 firmware):

fastboot flash recovery_ramdisk EVA-b550-EMUI-RECOVERY_RAMDIS.img