yashsingh1/xdaforums huggingface dataset:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Signing in fact is part of the entire build process, and "unsigned" is not a good expression, because every build is signed, but if you do not specify/foresee a signing key, the publicly known test key is used. I doubt that this really would help you - any modification would void the signature, you would have to re-sign anyhow - maybe you should try that? (I am not sure whether only each app is signed or also the image as such)

Besides, I don't have any "unsigned build lying around", which I could provide to you - I would need to especially build that for you and then upload (which I am honestly not willing to do).

May I ask what modifications you would like to do?

What you could do, is one of the following options, and that probably would suit you already:

adb root && adb remount && adb shell (ok, something is better not done while the system is up & running, but many things are possible, but you need to reboot afterwards)

temporarily flash a TWRP recovery and go from there (be warned, that this *may* create unwanted side effects! It is not recommended from my side, but if you want to anyhow modify things, you are on your own and you should know what you do and the risks)

to simply "get rid" of apps, you could use the 'pm disable' or command in an adb (root) shell

to simply add an app, it should be possible to manually add the files and set the permissions (don't forget the SELinux context!) and reboot

Just in case: If you are keen on flashing Gapps, there may be other side effects with the hardening measures of this ROM, in that case, you're maybe better off with an old OpenKirin build.

For Magisk, there should be a dedicated instruction around in the net (you may have to look in the web archive)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Premier4ever:
Thank you sir for you response,

As you can see, I am a newbie to this world and the "unsigned" term I used was not meant to be understood as a risky rom that is open to all sorts of attacks, what I meant was; the ability to do modifications and tweak the rom to my liking and preference out of the box without going through the hasle of doing it everytime I flash it, modifications such as ringtones, alarms, UI sounds, boot animation, wallpapers, kernel settings, adding and removing apps, launcher, keyboards and so on while keeping the rom neat, lite and small sized.

Sorry for impling that you have an open rom laying around and certainly I didn't mean that you build one specifically for me. My thinking was; since you are the maker/upgrader/modifier of the rom that means you already have the original build that can be worked on, kept updated and republished which I was kindly asking for but, after all that complexity you mentioned above I believe I am better off leaving that idea aside.

Sorry again for any inconvenience and I do really appreciate the work and effort you put into this.

P.S: English is not my spoken language therefore, I don't know how would my words sound to a native speaker, I apologise If they come out to be rude or insulting.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
As explained, when you do fastboot flash system <name of unzipped .img file>, you simply replace the /system partition, which is anyhow mounted read-only. All your personal settings, installed apps, etc. are stored on the /data partition, which is not touched by the update.

- ringtones can simply be stored on your internal memory or SD card as files and used in the menu

- alarms are set in the respective menu and kept

- UI sound settings as well

- boot animation is indeed more complex (I would not mess around with that tbh)

- wallpapers are also set as part of your settings and additional ones can simply be stored on the int. memory or SD card

- you can individually install apps (will also not touched by the update), and you can "freeze" shipped system apps

- different launcher can be installed as regular app and then set, same applies to keyboard app

- so with the exception of boot animation and kernel settings (for the latter, you can also get some root-enables tweaking apps, but be careful with that), I do not really see any reason to modify the ROM itself

I build this from source, making use od LineageOS code repository, Google Android code repository and my own modified sources. A good starting point on how that works can be found in the LineageOS wiki (here for a different device) and specifically to my build here - so the picture is different from your idea of using some "original ROM".

No worries :)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] kkgodygah:
thank you for your great job with "Custom build release" that is so nice.

but i have small bug to report that is "The navigation bar covers the camera buttons“, so we cannot taka a picture.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Thanks for the feedback and bug report - however, I don't have any issue on my own device.

Do you have a screenshot with your issue?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] kkgodygah:
here it is

View attachment 5616793
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Olliblacklist:
hello I have installed the rom but it overheats the phone gets hot why? I hope to have an answer and a solution as well
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Weird - have you set a specific resolution on your device? On which device do you use the ROM? A P9 or another device?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
I don't experience this with my device. I would need more specific details to maybe get an idea. Can you e.g. produce a log? Have you flashed anything in addition?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Olliblacklist:
what does a specific resolution mean? I use a Huawei p9 but the phone should be hot without doing anything also how should I do to solve?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
My answer about the resolution was not for you, but for kkgodygah and the shown camera issue, look whose message I quoted.

My answer to you comes afterwards, I was asking you for a log or more details.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Olliblacklist:
in practice I install the rom and everything is successful only that the mobile phone becomes hot and remains hot and the battery runs out I don't understand why you can help me understand how I have to solve why I would like to keep the lineage 16 thanks
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
I would really need to get more details, as I don't experience that issue and neither received I a similar feedback.

Have you installed any specific apps? Using a fancy "kernel tuning" app? Tried to flash a different kernel? Using Magisk with any specific module? Or e.g. using a root firewall app and block a system service, which shouldn't be blocked?

Or, you've set the Google/Facebook blocking, whilst e.g. having installed the FB spyware, so this app would constantly attempt to "phone home" ? Things like that...? This is blind guessing, I really need more info - best would be a log
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Olliblacklist:
no no without app i.e. after installing the rom the mobile phone starts to get hot the kernel I use yes and one modified on emui 8 tell me which kernel to use maybe I'll give it a try if you tell me how to register I'll send it to you
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
In the process of getting to EMUI 8, it is clearly stated, that you should first verify, that all went well with EMUI 8, including the patches.

So did you verify, that you could use the phone with the Huawei EMUI 8 firmware properly, before flashing the system.IMG of this ROM?

And did you erase from recovery also the cache, as advised in the OP?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Olliblacklist:
sisi with emui 8 it is fine no problem but when I install lineage 16 everything is fine it starts and everything but the cell phone I do not know why it gets very hot it does it I am with linegae 16 then tonro with the backup to emui 8 and it is fine that is the cell phone does not become hot I do not understand why ... if you can help me thank you ... if then and the kernel I do not know tell me what you recommend or if there are patches that I can install via twrp
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Before you flash lineage, did you flash the EMUI recovery first? And then, after flashing lineageos over EMUI via fastboot, did you factory reset AND also erase the cache?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Olliblacklist:
i flashed everything via twrp not or used fastboot
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
So you did

not

follow the install instructions! OK, what EXACTLY did you do with TWRP to flash LineageOS over EMUI?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Olliblacklist:
I deleted the cache and delvi chace data and installed the img file this I did with the twrp and it starts normally but the only problem is that it gets hot as soon as I finish starting and configuring everything even without doing anything the phone is always hot
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Please follow my install instructions! I normally like TWRP a lot for orher devices. But for this device, it is a recipe for trouble! You need it on your journey to get to EMUI, but then just leave it apart, you only earn trouble with it!

So: Go to fastboot mode and flash the Huawei recovery. Then flash the system img via fastboot. Then use the key combo to enter EMUI recovery, do the factory reset and afterwards the cache deletion, then reboot. You need to do that only once.

EDIT: If you had active fingerprints for unlock in EMUI 8, you must delete them while you are still in EMUI 8 !
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Olliblacklist:
okay I do as you say and let's see how it goes thanks I'll let you know
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] brookie229:
Could be that you need a new battery. Check the health with some app.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] kkgodygah:
my device is p9 EVA-AL10.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
No good idea, as all fine on my own P9, so can't reproduce.

Did you set a specific resolution?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New build with June '22 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_20220615_system.img.zip/download

Custom build release 2022-06-01

Bromite Webview 102.0.5005.96

F-Droid 1.15.2

microG 0.2.24.214816-11

Happy flashing!

Regards, M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
The Huawei Firm Finder URL has been changed:

https://professorjtj.github.io/

The method described by @zgfg is the same
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Hi. I made update as usual but this happened. Any advice?

G:\android\fastboot>fastboot flash system los16.img

target reported max download size of 471859200 bytes

sending sparse 'system' 1/5 (460796 KB)...

OKAY [ 10.774s]

writing 'system' 1/5...

FAILED (status read failed (Too many links))

finished. total time: 12.757s

Edit: Did DL and unzip again, and it worked as usual. Strange but okay, its up to date now.

Cheers.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Jon (aka nle):
I have a P9 that I only use as a GPS with Android Auto. Recently Android Auto keep bugging me about "outdated android".

Is this the latest and greatest ROM I should use for my use case?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
Android Auto has been discontinued for smartphones and will be replaced by Google Assistant Driving Mode.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Jon (aka nle):
Ok, thanks, but the P9 stock is android 7, while Google Assistant Driving Mod requires Android 8.

So I need to upgrade. The question is if this is the best choice?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Tecalote:
@Jon (aka nle) It's a very good ROM. But as far as I know, Google Assistant doesn't run on MicroG. If Google Assistant Driving Mode only runs on Android 8, you need to rebrand to EVA-AL10 first and then update to EMUI 8 /Android 8. I think there is an Open Kirin ROM based on Android 8 for the P9 with Google services. You have to check if it's still available.

Do you have P9 or P9 Plus (makes things little bit different)?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Jon (aka nle):
Thanks! It's the P9 (EVA-L09)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Hi. I have an urgent problem regarding Aurora Store. Since yesterday it says:

"Download failed, Sitzung ist abgelaufen (session is unexpired) please log in again."

Now I tried to log out and log in again, nothing changed. I need to install an airkey app for my new job which is pretty urgent for me. : /

I will do more research but maybe one of you know what to do?

I know its no problem with the LOS16 but I really dont wat to set up for playstore.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
You could try the following (try one after the other)

- There is an option to delete all downloads

- Try force-closing the app and purge the app's cache (Settings - Apps - Aurora Store - ...)

- Try to purge app data (same path as before)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
force-closing made it : )

You made my day. Thanks.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New build with backported July '22 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_20220714_system.img.zip/download

Custom build release 2022-07-01

Happy flashing!

Regards, M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] kundifon:
Thanks for great rom! I realized, that without google goes too.

My bank app claimed that weren't installed from playstore and therefore it closed for that reason. How bad, ugly bank!

Then I change the install method in Aurora store to Native installer (for older android versions) (Setting/Instalation/Instalation method). After reinstall bank app works for now.

What if maybe will need the playstore in future app versions?

Some noob qustion. If some custom rom has latest security patches and updates like this one, does android version matter?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Hi there. Another user-question.

I am not shure if it has something to do with latest update, the 3D app fusion360 tells me WebGL is deactivated.

Now I dont know when it happened because I had that viewer working proppely for a while.

My P9 is running nice and only changes are weekly app-update and security patch once its released.

So I am not shure where this WebGl issue is coming from. Hope my request this is not too far away from this thread.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] NPS-2750X:
This system image works well on my EVA-AL10（Chinese version）, but there are still some bugs.

1. The most serious one is that I can't delete any photo in /DCIM/Camera , as the picture below shows. If I try to delete these photos in Gallery app , they would "disappear" but not really be deleted.

2. Sometimes , the device will immedietely turn black and then automatically reboot after taking a photo in stock camera.

3. When I use this system for the first time , it asked me for password . But I never set any password on this device and I used fastboot -w before flashing. In the end I ran factory reset in Recovery mode and it showed "Device is being encrypted" before booting into system.

View attachment 5678255
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] NPS-2750X:
Another problem is that if Magisk is installed , the CPU temperature would be really high (up to 64℃) and remain unchanged. At the same time , the internal Root settings would disappear. I had no choice but give up installing Magisk.

Besides , it seems that the camera problem can be solved by adjusting settings. If "Save photo to SD card" switch is turned on , camera will work normally. But I still can't delete any photo.

That's all the problems I've found until now.

Although there are bugs , this system is good and easy to use . Thanks to the developers , this old device comes to life again.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
I have just installed this app for test purposes, but as you need an Autodesk account to start using that app, I didn't continue and de-installed it again. At least for the steps to get to the logon screen, there was no error...

Can you produce a log or so? Or, after updating to the next build (will be published soon), try again?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Thanks for your feedback.

I can't reproduce this behavior on my own P9.

Haven't experienced this so far on my own device. However, the P9 is not my primary device, so I am not a "power user" of it or its Camera...

As explained in the OP, when flashing this GSI the fisrt time (e.g. over stock EMUI 8.0), it is key to afterwards run a factory reset and afterwards a cache wipe in recovery. ('fastboot -w' may not be enough)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
In my tips & tricks section, there is also some information about Magisk. Please read that carefully - however, I don't use Magisk myself, so I can't give you any assurance, whether it works or not.

And yes, it is a "feature" of Magisk to remove/hide any other root solution...

Maybe something weird with your SD card? Have you tried deleting files via root shell, just to see, whether that would solve the issue or also throw any error? I has such a problem with a complete different device and SD card some years back, where at the end, I had to format the SD card to get rid of the issue...

Thanks again for your feedback.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New build with backported August '22 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_20220808_system.img.zip/download

Custom build release 2022-08-01

Bromite Webview 103.0.5060.140

Happy flashing!

Regards, M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] NPS-2750X:
Thank you for answering my feedback.

In fact , whether the "Save photo to SD card" switch is turned on or not , photos are always saved to internal storage . And , of course , they can be deleted with Root , but can't be deleted by stock file manager and any kind of Gallery app. Besides , recently I found that screenshots can't be deleted , either .But if I copy the same photo or screenshot to external SD card , it can be deleted successfully .

I attached some videos here to show this problem . （p.s. I'm sorry for being nervous when recording these videos because speaking English is still a bit difficult for me. ）
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
That is true, I confirm this behavior. I am however not sure, what is the reason - in the German or English transaltion, it says "prefer saving to SD" (and not "save on SD" - so maybe there is some whatever kind of check in the stock camera app, which fails). I am afraid, I can't do anything here.

As explained before, I don't see this issue with my own phone, and I am sure, that if that was a general issue with the ROM, others would have complained as well. Is it possible for you to produce a log? Connect your phone via USB to your PC, enable debugging in the developer options, and call on your PC in a terminal/command window "adb logcat > mylogfile.txt". Now try to delete the file, and afterwards, stop the adb session with [Ctrl]+C key and provide me with the logfile. (You will find more information in the internet about the 'adb logcat' topic, if needed).

No worries, the videos are very well understandable.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] NPS-2750X:
Thank you again for your reply . Here's the logfile I got . I don't know if I did it correctly , but it does contain the "failed to delete" information . View attachment 5682017
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Hi. So I made August update but fusion app still not working. Browser based WebGL demos do run nicely.

Now I wanted to provide you screenshots and logs but somehow I am not abel to create logs via adb. Once a few month ago it already worked, so I am curious again.

This is my result, I still think adb is working but something still not running well : (

G:\android\fastboot>adb logcat > lc.txt
- waiting for device -

G:\android\fastboot>adb devices
List of devices attached

G:\android\fastboot>adb kill-server

G:\android\fastboot>adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully

G:\android\fastboot>adb devices
List of devices attached

G:\android\fastboot>adb logcat > lc.txt
- waiting for device -

G:\android\fastboot>adb logcat
- waiting for device -

G:\android\fastboot>adb kill-server

G:\android\fastboot>adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully

G:\android\fastboot>adb devices
List of devices attached

G:\android\fastboot>fastboot devices
MWS7N(number) fastboot

G:\android\fastboot>adb logcat
- waiting for device -

G:\android\fastboot>adb kill-server

G:\android\fastboot>adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully

G:\android\fastboot>adb devices
List of devices attached

G:\android\fastboot>adb logcat > lc.txt
- waiting for device -
^C
G:\android\fastboot>fastboot reboot
rebooting...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Did you enable debugging in the developer options AND also enable MTP (file transfer) for your USB connection?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Yes, both are set on in developers optios.

Still no device number showing when adb devices

fastboot do work, if it matters.

Could it be a driver issue? Any suggestion?

Edit: Did found something yesterday night. I can set USB to MTP (filetransfere) only within developers option. If I go to settings/search/usb the select screen is buggy and I can not set anything. Tried with deactivated developers options and still no chance to do changes.

Screenshots made here (sorry, did not switched to EN):

View attachment 5683821 View attachment 5683823
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Eowieh:
Is the DynamicsProcessing library installed and configured with a commit (more info here)? If not, I kindly ask if you could do it, so that Wavelet can be used.

I enjoy the ROM. Gives new life to an older phone. I especially like that it already has root built in.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Thanks for the log. Unfortunately, the log does not tell any reason, so I guess it may come from the linux sub system. So could you please try the following:

Connect your phone via adb and type in a command window 'adb shell'. Let's take your example file IMG_20220807_155809.jpg from the log (feel free to use another file, if you like).

Within the shell, enter first cd /storage/emulated/0/DCIM/Camera/, then ls -la IMG_20220807_155809.jpg and show me the output. Afterwards ls -Z IMG_20220807_155809.jpg, then try to delete the file with

rm IMG_20220807_155809.jpg - does it work or do you get an error message ?

leave the adb shell session with exit