[ROM][Treble][microG]LineageOS 16.0 for HUAWEI P9

Search This thread
I would like to try this. I haven't used my P9 for 3 years now and this seems like a good update (from Nougat to Pie). I checked my phone and it seems like I am using a custom ROM. Anyone here who has a link for a stock ROM? I am using EVA-L19. However for the life of me I don't know how to check what variant it is e.g. BXXX or CXXX.
Try using HWOTA7 by Tecalote.
gives very detailed instructions and all the firmware you need.
Or you can check out my guide on upgrading from Android 6 to 7 if you're familiar with flashing in TWRP.(I think it is also faster)
This file doubles as unbrick firmware.
Then you can go into HWOTA7 if you want to further upgrade to oreo or if your firmware has issues...
 
  • Love
Reactions: seitentaisei

AltairFR

Senior Member
Apr 22, 2021
673
331
Huawei P8lite/P8 Lite
Honor 9
  • Like
Reactions: XDXDDX

kundifon

Senior Member
Apr 16, 2019
56
50

What I found out​

This is a great Lineage rom for this old phone. Yes, the phone is capable for everyday tasks, it’s fast and reliable. One of the highlights is definitely stock camera app, so you can get the most from camera.


There are some limitations:​

  • Usb debugging have to be turned off, otherwise you my face with heavy battery drain.
  • eSpeak TTS is useless! Honestly, it's unusable TTS synthesizes speech mechanism. You really cannot understand English and German generated voices. If you need this feature, you have to replace it with some other TTS speech synthesizer.
    There are TTS engine available: RHVoice (open source), Google TTS speech services, or some other even better and payable.
  • There is obviously location deviation for about 15 – 20 m from accurate location! You can navigate with Here wego or Sygic (and other navigations too), but this location deviation can affect navigation, where two roads are near by.
    In case you replace microG with genue Google services this deviation disappears on the same device!
  • Google maps doesn’t work! This has deeper impact. Many apps use this framework for it’s own operation. There are apps like: store my car park location and navigate you back, then your bank app can’t show you their offices on map. The most widely used are weather apps, which cann’t obtain changing location.
    What you can do is to enable Mozilla Location backend in microG setting. So you get location from cell tower and this is good enough for weather apps purpose only!
  • Use some other translator than google’s because it doesn’t work.
  • You can't buy new apps in Aurora store. If you bot it before, you can install it, otherwise not. (Sure, you have to log in with your google account in Aurora store.)
  • In app purchases are not possible.
  • Some special apps like one for banking (NLB Klikin) want to be installed from google Play store only.
    Luckily you can do a workaround and temporally change setting in Aurora store. Go to settings/Instalation/Instalation method then choose Native installer.
  • In some applications build in feature sync/backup to gdrive doesn’t work.
  • Google contacts don’t sync. With some work, you can get it working.

GoogleContactsSyncAdapter​

You can install GoogleContactsSyncAdapter.apk in case you miss only this feature and leave the rom as is. So you get the best possible performance.
First of all, download right gapps package (arm64, android 9), I suggest smallest openGapps or MindTheGapps and extract file from it. Just unzip and search in the subfolders.
Callender sync works with microG, but you can install GoogleCalendarSyncAdapter.apk as well.

Copy folder GoogleCalendarSyncAdapter and GoogleContactsSyncAdapter together with adapter app in them to SD card.


Fresh install​

At fresh install of this custom rom, flash the rom image and TWRP recovery for android 8 in same session.
TWRP for Oreo P9-EVA-8.0.0-TWRP-v4.img: https://www.androidfilehost.com/?fid=1322778262903998750 (you used it when you rebrand and get phone on EMUI 8 firmware (https://forum.xda-developers.com/t/rebrand-update-tool-hwota7-p9-eva.3820849/#post-77161313))
Get device into fastboot mode.

Code:
fastboot flash system <name of the rom img file>.img
fastboot flash recovery_ramdisk P9-EVA-8.0.0-TWRP-v4.img

boot to TWRP with power + volume up.
Go to Mount and mount /system partition and /external sd card. Then go to Advanced/File manager. Copy folder with contact sync adapter to place, if you wish you may copy calendar sync adapter too.

Code:
/system/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk
/system/app/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk

Get device into fastboot mode and flash stock recovery back. Download from here: https://www.androidfilehost.com/?fid=1395089523397898706

Code:
fastboot flash recovery_ramdisk EVA-b540-EMUI-RECOVERY_RAMDIS.img

Get into stock recovery by press and hold Power+Vol.Up where you do the factory reset. Then boot to the system for first time.


Update procedure​

Whenever you flash new build of this rom, it is necessary to copy the adapter(s) again. Repeat the steps above. Omit factory reset at the end.
Be careful that you boot to twrp! Do not boot into the system without adapters because most likely won’t work and then another (unwanted) factory reset will be neccessary to solve the problem.
If boot go wrong, just keep holding power button until reboot. Now try again with power + vol.up


Alternative way​

Alternatively, you can copy adapters in working system, enable root in developer options and use some root file manager. You can use abd as well. But as described, it won’t work until factory reset!
For those who are familiar with adb. Maybe this can avoid factory reset. I didn’t test myself because I can’t with adb. https://gist.github.com/dreamwhite/934e7d2bb9e1f2a89c5307485a5c3fb3


Some related things:​

Most likely not, but sometimes things can go wrong. Since you are switching between TWRP and stock EMUI recovery, it is possible that you end up in boot loop. Backup your data!
Just flash back stock recovery, do factory reset and working system is back.
 
Last edited:

kundifon

Senior Member
Apr 16, 2019
56
50

GAPPS installation​


If you need, Gapps can be instaled. This rom is suitable for them.
I install NikGapps. Also working are MindTheGapps - I only noticed old play store. Someone reported that bitGapps work for him – I did’t manage to install them successfully. Absolutely don’t aspect that any gapps package will work – I have tested myself all of them.


First of all a comprehensive clean up is necessary. You need enough free space on /system partition and later install missing apps back from (play/aurora/fdroid) store.
(Some apps are really useless and I recommend way better open surce alternative as Simple mobile tools, especially Simple gallery pro)


Fresh instalation​

At fresh install of this custom rom, flash the rom image and TWRP recovery for android 8 in same session.
TWRP for Oreo P9-EVA-8.0.0-TWRP-v4.img: https://www.androidfilehost.com/?fid=1322778262903998750 (you used it when you rebrand and get phone on EMUI 8 firmware (https://forum.xda-developers.com/t/rebrand-update-tool-hwota7-p9-eva.3820849/#post-77161313))
Get device into fastboot mode.

Code:
fastboot flash system <name of the rom img file>.img
fastboot flash recovery_ramdisk P9-EVA-8.0.0-TWRP-v4.img

boot to TWRP with power + volume up.
Go to Mount and mount /system partition and /external sd card. Then go to Advanced/File manager.
Now you have to clean all traces of microG and free up additional space. Below is the list what I have deleted. (Ofcourse some bloatware bodered me) It's not neccessery all this but you have to provide enough free space, that's the point.

Code:
/system/app/AuroraStore/AuroraStore.apk
/system/app/Calendar/Calendar.apk
/system/app/Email/Email.apk
/system/app/eSpeakTTS/eSpeakTTS.apk
/system/app/GSFProxy/GSFProxy.apk
/system/app/IchnaeaNlpBackend/IchnaeaNlpBackend.apk
/system/app/messaging/messaging.apk
/system/app/NominatimNlpBackend/NominatimNlpBackend.apk
/system/app/privacy-friendly-netmonitor/privacy-friendly-netmonitor.apk

/system/etc/permissions/privapp-permissions-com.android.vending.xml
/system/etc/permissions/privapp-permissions-com.google.android.gms.xml

/system/priv-app/AuroraServices/AuroraServices.apk
/system/priv-app/Dialer/Dialer.apk
/system/priv-app/FakeStore/FakeStore.apk
/system/priv-app/Gallery2/Gallery2.apk (+ subfolder lib)
/system/priv-app/GmsCore/GmsCore.apk
/system/priv-app/Recorder/Recorder.apk

Now you can instal NikGapps with TWRP. Wipe dalvik/cache at end.
Get device into fastboot mode and flash stock recovery back. Download from here: https://www.androidfilehost.com/?fid=1395089523397898706

Code:
fastboot flash recovery_ramdisk EVA-b540-EMUI-RECOVERY_RAMDIS.img

Get into stock recovery by press and hold Power+Vol.Up where you do the factory reset. Then boot to the system for first time.


Update procedure​

When you flash new build of this rom, you have to repeat all steps above. Only omit factory reset at the end.


Gapps as Magisk module​

Alternatively you can install Gapps as Magisk module.
In this case for me only liteGapps were working. (lite package is smaller than core). I only noticed that contact sync wasn't working.
I haven't tested, but should works if you install GoogleContactsSyncAdapter separately bevor. See my previous post how to do this. Do factory reset and then continue with Magisk and liteGapps.



HWGSIpartitionKit to resize huawei system partition​

Just to mention another alternative way. You can use HWGSIpartitionKit to resize huawei system partition.


Thank you all for your help
@MSe1969 , @Tecalote , @lo_ol , @zgfg , @AltairFR , @golvelliuscs , @Nicknackpaddywack101



Some related things:​

The same warning belongs also here. Most likely not, but sometimes things can go wrong. Since you are switching between TWRP and stock EMUI recovery, it is possible that you end up in boot loop. Backup your data!
Just flash back stock recovery, do factory reset and working system is back.
 
Last edited:

P9_User

Member
Oct 27, 2020
41
8
Hi. A very basic question about stock sms/mms app.

Since Signal announced it will stopp sms support I went back (added) to the stock sms/mms app for this purpose. Now its like a very basic app. Its working, but no settings for design or colours.

Is there any other minimalistic and trustfull app which provides some more settings?

Thanks on advance.
 

kundifon

Senior Member
Apr 16, 2019
56
50
Hi. A very basic question about stock sms/mms app.

Since Signal announced it will stopp sms support I went back (added) to the stock sms/mms app for this purpose. Now its like a very basic app. Its working, but no settings for design or colours.

Is there any other minimalistic and trustfull app which provides some more settings?

Thanks on advance.

I mentioned Simple mobile tools. They are open source and available on playstore and fdroid.

Or do your own calculation, how much free space you need. As I said, it's not neccessary to delete all those things. Simply preserve stock sms/mms app.
(I instaled NikGapps. Tryed also with BitGapps but did't work for me, don't know why.) https://forum.xda-developers.com/t/...0-for-huawei-p9.4078383/page-33#post-88045927
 
  • Like
Reactions: P9_User
Hello, I found a problem. my phone Mate8 uses install gsi, then must install twrp to Remove data forced encryption & wipe. If you do not perform this step , the system will fail to use encryption after restart. I see that the post installation just only needs the stock recovery to wipe. Why? Is it the firmware problem in different regions??
As said in the directions, flash the gsi and use stock recovery.
It may also be due to your phone.
 
  • Like
Reactions: MSe1969
New build with back-ported February '23 ASB patches available

Hi all,
a new build is available for download (update instructions, see OP):
  • Custom build release 2023-02-01
  • microG on 0.2.27.223616-3
  • Spoof apps installed by G*PlayStore *)
*) Apps installed by Aurora are now spoofed as "installed by Google PlayStore". This should fix such issues, where certain apps complain or refuse to run, when installed via Aurora - the internal string they expect is "com.android.vending", which translates in this build to the FakeStore app, so don't be worried, if the app info tells you "installed by FakeStore"

Happy flashing!
Regards, M.
 

P9_User

Member
Oct 27, 2020
41
8
Hi there.
It happenes every few weeks that all my stored contacts are gone but only some of the last new ones are left.

I do backups so I can restore it but its still somehow anoying.

Contacts are all stored on internal memory. Any idear?
 

kundifon

Senior Member
Apr 16, 2019
56
50
I'm facing with very slow battery charging, thats means for about 8 hours from empty to full. I think it's way too long. Recently weared battery was replaced with brand new. It's the same with second phone on this rom.
In the Settings / Phh Treble Settings / Huawei features / Huawei fast charge I choose fast. No differences has noticed!

The third P9-eva is still on stock rom, charging goes fast. How to achieve the same on this custom rom?


Secont thing is about camera. how to convince the stock camera app to save images to the external SD card? There is an option but it doesn't aplly. Otherwise external SD works well in other apps (file managerS and tested also open camera)
 
Last edited:
I'm facing with very slow battery charging, thats means for about 8 hours from empty to full. I think it's way too long. Recently weared battery was replaced with brand new. It's the same with second phone on this rom.
In the Settings / Phh Treble Settings / Huawei features / Huawei fast charge I choose fast. No differences has noticed!

The third P9-eva is still on stock rom, charging goes fast. How to achieve the same on this custom rom?


Secont thing is about camera. how to convince the stock camera app to save images to the external SD card? There is an option but it doesn't aplly. Otherwise external SD works well in other apps (file managerS and tested also open camera)
What charger are you using?
Fast charge only supports Huawei chargers, and newer chargers seems to not recognise it as fast charge compatible.
Mine is from a 2019 Huawei p30.
Also it may be your battery if you are not using an official Huawei Battery.
Technical support for the P9 is still available in China. The official cost for changing a battery (including shipping in mainand China) is 99 CNY.
 
  • Like
Reactions: kundifon

kundifon

Senior Member
Apr 16, 2019
56
50
What charger are you using?
Fast charge only supports Huawei chargers, and newer chargers seems to not recognise it as fast charge compatible.
Mine is from a 2019 Huawei p30.
Also it may be your battery if you are not using an official Huawei Battery.
Technical support for the P9 is still available in China. The official cost for changing a battery (including shipping in mainand China) is 99 CNY.
Yes it was a charger fault. Thank you for hint.
I can just say that takes on my Samsung S8 about 4 hours, P9-eva needs 8 hours on the same mentioned charger.
On Huawei original charger which come along the phone, no problems at all. Charging goes fast, really fast!
 
Last edited:
New build with back-ported March '23 ASB patches available

Hi all,
a new build is available for download (update instructions, see OP):
  • Custom build release 2023-03-01
  • Bromite Webview replaced by Mulch Webview 111.0.5563.58
*) Bromite hasn't received updates since end of last year. It is meanwhile 3 major versions behind Chromium upstream, so this becomes a security issue! So I have decided to bundle the Mulch Webview from the DivestOS project with my build, as it comes very close to my original motivation to bundle Bromite - it is mainly a Chromium webview with many patches applied from the GrapheneOS project.

Happy flashing!
Regards, M.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    New build with back-ported May '23 ASB patches available

    Hi all,
    a new build is available for download (update instructions, see OP):
    • Custom build release 2023-05-01
    • Mulch Webview 113.0.5672.77

    Regarding some other topics being discussed here, like slow A-GPS fix, Safetynet tweaking or VoLTE, I unfortunately didn't find time to do some research etc. - can't promise anything, trying to have a look at those however, soon.

    Happy flashing!
    Regards, M.
    2
    In my build, there is the Phh treble app shipped, the securize script is an option within, I have however never tried it.
    Yes and the option start the script phh-securize.sh. But i have also make a twrp patch with the .sh
    2
    In my build, there is the Phh treble app shipped, the securize script is an option within, I have however never tried it.
    1
    This rom is pre-rooted. That's fine and handy.
    If you want install and use banking apps, they can complain and doesn't want to run (depens on bank, if interfering in things that are absolutely none of the bank's business. Rooting is user's choice!)

    What I have to delete to loose root and satisfy bank app? Or hide root?
    If I need root later, maybe I will (temporarily) install magisk. (or try somehow hide root. I haven't experience yet.)
    @MSe1969 maybe some advice? Danke voraus.
    Try this script, it remove all su binary and magisk
    1
    Appreciate your quick answer. But how to apply this script? Just leave me a path that I can search for further instructions. If I knew how, I wouldn't ask.

    Alternatively, may I manually delete those files/folders with twrp file manager? (This I know how...)
    Code:
    rm $SYSTEM/xbin/su
    rm $SYSTEM/bin/phh-su
    rm $SYSTEM/etc/init/su.rc
    rm $SYSTEM/bin/phh-securize.sh
    rm -Rf $SYSTEM/{app,priv-app}/me.phh.superuser/
    rm -Rf /data/su || true
    
    And what with folowing? Create empy files and folders?
    
    touch $SYSTEM/phh/secure
    mkdir /metadata/phh
    touch /metadata/phh/secure
    Just start an adb shell in root mode
    Copy the script on the phone, for example in /tmp and start it with cmd

    ./phh-securize.sh
  • 23
    This thread is dedicated to provide Lineage-OS 16.0 builds with microG included for the HUAWEI P9 with current security patches.

    It is a treble build, therefore it could also work on other devices, but I haven't tested. And yes, the camera works!
    (Although it is based on the work of phhusson's GSI builds, some specific adaptations have been made, so I guess, it is worth a try for further Huawei devices based on EMUI 8, but that's it...)

    Features of this ROM
    Download here
    • Pre-installed microG and F-Droid like the LineageOS for microG project (own fork)
    • Pre-installed AuroraStore
    • Root included (switch on in dev. settings)
    • eSpeakTTS (FOSS TTS engine)
    • Backported Audio balance (accessibility settings) from Android 10
    • Additional security hardening features listed below
    • Access to /proc/net blocked for user apps
    • Bundled netmonitor app to allow network monitoring
    • Enhanced Privacy Guard: Switches for motion sensors and other sensors
    • Cloudflare as default DNS (instead of Google)
    • Privacy-preferred default settings
    • Optional blocking of Facebook- and Google-Tracking
    • Optional disabling of captive portal detection
    • Firewall UI
    • No submission of IMSI/phone number to Google/Sony when GPS is in use
    • Default hosts file with many blocked ad/tracking sites
    • Privacy-enhanced Bromite SystemWebView Mulch Webview
    • Additional restrictions for secondary users
    • Increased password length
    • Hardened bionic lib and constified JNI method tables
    • Huawei Stock Camera

    Current release levels
    Custom build release 2023-05-01
    Security string: 2022-01-01
    AOSP tag: 9.0.0_r46
    Mulch System Webview: M113


    Source-code and build instructions
    Device config.: https://github.com/lin16-microg/device_phh_treble/tree/lin-16.0-eva-p9
    Build manifest: https://github.com/lin16-microg/local_manifests/tree/lin-16.0-treble


    Installation Instructions

    YOU ARE RESPONSIBLE SOLELY YOURSELF FOR ANY ACTIONS YOU DO WITH YOUR DEVICE !!!

    Please note - I won't explain any single aspect (e.g. how to install 'fastboot' on your PC or troubleshoot USB connectivity issues under Windows). Search the net and consult the search engine of your choice or look here in XDA, there is plenty of information available.

    Pre-Requisites
    • Have fastboot and adb installed on your PC and make sure, you can connect via USB to your device in fastboot mode and via adb
    • Know the key combinations to get your phone into fastboot mode and recovery mode
    • An unlocked bootloader
    • EMUI 8.0 firmware
    • Have the Huawei Stock recovery installed (not TWRP)

    ONLY, If the above pre-requisites are met, download and unpack the linked ZIP file, and flash the .img file via fastboot (EMUI 8.0 is the tricky pre-requisite - see further below).
    • Get your device into fastboot mode and connect to your PC via USB - the screen should look like below, indicating "PHONE Unlocked"
      P9_fastboot.png
    • Flash the ROM with the command fastboot flash system <name of the rom img file>.img
      fastboot-flash.png
    • Afterwards, enter the command fastboot reboot
    • Hold Power+Vol.Up to get into the Stock recovery:
      p9_stockRecovery.png
    • Choose the option "wipe data/factory reset"
      Don't 'panic' if the operation stops at a percentage significantly lower than 100% and you see a red exclamation mark, all is fine
    • Next, choose "wipe cache partition"
    • Finally choose "reboot system now"

    Some hints:
    • If you come from an EMUI 8.0 stock ROM or a different treble build (which means, you are already on EMUI 8.0), don't forget the factory reset as described.
    • If you update one of my builds from this thread, you don't need to wipe anything, so you can skip everything after the 'fastboot reboot' step!
    • On some (but not all) PCs, you may have to run fastboot as Admin (Windows) or root/sudo (Linux)

    If the above pre-requisites are NOT met, you will have some extra-rounds to perform, until you get there:
    Unlocked Bootloader
    Huawei has stopped providing unlock keys, so if you haven't got one, this thread, this link and/or of course the search-engine of your choice may be helpful. I was lucky enough to obtain an official unlock key on the last day of HUAWEI's unlock page, so I have no experience with the unofficial unlock methods - good luck!

    EMUI 8.0 firmware
    Get back to Stock ROM, if you use a Custom ROM. On Stock, if not yet done, apply all updates offered to you by the Stock ROM updater, until you are on the latest officially offered Android 7 (Nougat) EMUI 5.x release.
    Huawei has shut down however their update servers for older devices and older software releases, so this may become difficult, if you are e.g. still on Android 6 - I don't have a good advice for you in this case.
    Once you are on Android 7 (aka Nougat), please visit this thread, which really explains step-by-step, what needs to be done. Really carefully read everything and follow ALL the steps, especially, don't forget at the very end to flash the Stock EMUI recovery!
    IMPORTANT UPDATE:
    The linked thread, as well as the Openkirin documentation point - via a Russian firmware site - to the domain 'hicloud.com' for the firmware download, which seems to be down. As suggested by @zgfg you can try either
    his Mega link or e.g. https://androidhost.ru/search.html
    Update: See this post to obtain the firmware!
    Update 2: See also here

    You need your unlock key handy: During this process, the bootloader will be automatically locked several times, so you need the key a couple of times to unlock again!
    A hint for Linux users: The HWOTA tool is in fact a windows wrapper around Linux shell scripts, so there is no real need to use Windows, if you have a working Linux installation (however, make sure to replace the 'mkdir' commands in hwota_eng.sh with 'mkdir -p').


    Android 10, 11, 12 or 13 builds?

    Simple answer: There won't be any coming from my end (my aim is to provide daily-driver capable builds and not to boot an experimental GSI with lots of issues and a non-working camera) - so stop wasting everybody's time by repeatedly asking!


    Bug reports:
    If you have a problem, please create a post with these informations:
    Build Date:
    And try to get log as described here
    Please note that I can't and won't support issues with builds using a different kernel or Xposed.
    In regards to microG, I will try my best to help when it is related to this ROM (I use it myself), but any questions of the type "the YXZ-app can't do <some sort of fancy xyz Google functionality> properly" are better asked in the respective microG forums.

    Credits
    AOSP project
    LineageOS project
    openkirin.net
    phhusson
    AndyYan
    Tecalote
    microG project
    Graphene OS project
    csagan5 (Bromite)
    WhyOrean (Aurora)
    zgfg (for very helpful contributions in this thread)


    XDA:DevDB Information
    [ROM][Treble][microG]LineageOS 16.0 for HUAWEI P9, ROM for the Huawei P9

    Contributors
    MSe1969
    Source Code: https://github.com/lin16-microg/device_phh_treble/tree/lin-16.0-eva-p9

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 4.x
    ROM Firmware Required: EMUI 8 firmware
    Based On: LineageOS

    Version Information
    Status:
    Stable
    Stable Release Date: 2023-05-10

    Created 2020-04-06
    Last Updated 2023-05-11
    8

    GAPPS installation​


    If you need, Gapps can be instaled. This rom is suitable for them.
    I install NikGapps. Also working are MindTheGapps - I only noticed old play store. Someone reported that bitGapps work for him – I did’t manage to install them successfully. Absolutely don’t aspect that any gapps package will work – I have tested myself all of them.


    First of all a comprehensive clean up is necessary. You need enough free space on /system partition and later install missing apps back from (play/aurora/fdroid) store.
    (Some apps are really useless and I recommend way better open surce alternative as Simple mobile tools, especially Simple gallery pro)


    Fresh instalation​

    At fresh install of this custom rom, flash the rom image and TWRP recovery for android 8 in same session.
    TWRP for Oreo P9-EVA-8.0.0-TWRP-v4.img: https://www.androidfilehost.com/?fid=1322778262903998750 (you used it when you rebrand and get phone on EMUI 8 firmware (https://forum.xda-developers.com/t/rebrand-update-tool-hwota7-p9-eva.3820849/#post-77161313))
    Get device into fastboot mode.

    Code:
    fastboot flash system <name of the rom img file>.img
    fastboot flash recovery_ramdisk P9-EVA-8.0.0-TWRP-v4.img

    boot to TWRP with power + volume up.
    Go to Mount and mount /system partition and /external sd card. Then go to Advanced/File manager.
    Now you have to clean all traces of microG and free up additional space. Below is the list what I have deleted. (Ofcourse some bloatware bodered me) It's not neccessery all this but you have to provide enough free space, that's the point.

    Code:
    /system/app/AuroraStore/AuroraStore.apk
    /system/app/Calendar/Calendar.apk
    /system/app/Email/Email.apk
    /system/app/eSpeakTTS/eSpeakTTS.apk
    /system/app/GSFProxy/GSFProxy.apk
    /system/app/IchnaeaNlpBackend/IchnaeaNlpBackend.apk
    /system/app/messaging/messaging.apk
    /system/app/NominatimNlpBackend/NominatimNlpBackend.apk
    /system/app/privacy-friendly-netmonitor/privacy-friendly-netmonitor.apk
    
    /system/etc/permissions/privapp-permissions-com.android.vending.xml
    /system/etc/permissions/privapp-permissions-com.google.android.gms.xml
    
    /system/priv-app/AuroraServices/AuroraServices.apk
    /system/priv-app/Dialer/Dialer.apk
    /system/priv-app/FakeStore/FakeStore.apk
    /system/priv-app/Gallery2/Gallery2.apk (+ subfolder lib)
    /system/priv-app/GmsCore/GmsCore.apk
    /system/priv-app/Recorder/Recorder.apk

    Now you can instal NikGapps with TWRP. Wipe dalvik/cache at end.
    Get device into fastboot mode and flash stock recovery back. Download from here: https://www.androidfilehost.com/?fid=1395089523397898706

    Code:
    fastboot flash recovery_ramdisk EVA-b540-EMUI-RECOVERY_RAMDIS.img

    Get into stock recovery by press and hold Power+Vol.Up where you do the factory reset. Then boot to the system for first time.


    Update procedure​

    When you flash new build of this rom, you have to repeat all steps above. Only omit factory reset at the end.


    Gapps as Magisk module​

    Alternatively you can install Gapps as Magisk module.
    In this case for me only liteGapps were working. (lite package is smaller than core). I only noticed that contact sync wasn't working.
    I haven't tested, but should works if you install GoogleContactsSyncAdapter separately bevor. See my previous post how to do this. Do factory reset and then continue with Magisk and liteGapps.



    HWGSIpartitionKit to resize huawei system partition​

    Just to mention another alternative way. You can use HWGSIpartitionKit to resize huawei system partition.


    Thank you all for your help
    @MSe1969 , @Tecalote , @lo_ol , @zgfg , @AltairFR , @golvelliuscs , @Nicknackpaddywack101



    Some related things:​

    The same warning belongs also here. Most likely not, but sometimes things can go wrong. Since you are switching between TWRP and stock EMUI recovery, it is possible that you end up in boot loop. Backup your data!
    Just flash back stock recovery, do factory reset and working system is back.
    8
    New build with backported July '22 ASB patches available

    Hi all,
    a new build is available for download (update instructions, see OP):
    • Custom build release 2022-07-01
    Happy flashing!
    Regards, M.
    6
    New build with back-ported January '23 ASB patches available

    Hi all,
    a new build is available for download (update instructions, see OP):
    • Custom build release 2023-01-01
    • microG 0.2.26.223616-16
    Happy flashing!
    Regards, M.
    6
    New build with back-ported February '23 ASB patches available

    Hi all,
    a new build is available for download (update instructions, see OP):
    • Custom build release 2023-02-01
    • microG on 0.2.27.223616-3
    • Spoof apps installed by G*PlayStore *)
    *) Apps installed by Aurora are now spoofed as "installed by Google PlayStore". This should fix such issues, where certain apps complain or refuse to run, when installed via Aurora - the internal string they expect is "com.android.vending", which translates in this build to the FakeStore app, so don't be worried, if the app info tells you "installed by FakeStore"

    Happy flashing!
    Regards, M.