yashsingh1/xdaforums huggingface dataset:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
You cannot add 'whitelist' to the hosts file

Either you block the site with 0.0.0.0 or you hardcode its real address (in which case phone will not ask the DNS servers to resolve that address)

If the ROM supports (I don't know, not using) Private DNS, you can set it to:

dns.adguard.com

That can be easily enabled/disabled in Settings and works as a pretty good adblocking protection
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Some further information:

1. Yes, the ROM being Android 9 (Pie) supports the private DNS feature

2. You can replace the hosts file (root access needed, but this ROM offers root)

3. You can also, if you want, install the AdAway app (root needed), then you can edit the hosts file or even "whitelist" certain entries.

Normally, the hosts file work however well, even with sites using scripts to detect ad-blockers, as the redirected ad hosts still "reply" to pings...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
In my case its the website www.standard.at

I dont know which tracker or ads they use, but the website is absolutely serious (at least I think it is).
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
when I visit der standard.at with my device (Firefox with uBlock origin and NoScript addon, where I only allow scripts from derstandard.at and staticfiles.at whilst blocking all those other ****ty scripts, I am able to normally use their site, even with my blocking hosts file... ;)

Edit: Funny, that XDA seems to censor certain words... The **** stands for the brown substance, which leaves e.g. the body of a dog on its rear end... :)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] engsalam10:
thanks much bro i have tested it and its working perfectly with now issues its now be flashed normally
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Hi,

I have created a test build with Huawei Camera included, as suggested by you.

Please perform some comprehensive tests and let me know, whether it is good enough to include into the next build.

Thanks & regards - M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] engsalam10:
hi bro

i have recently installed the rom i am coming from open kirin rom and i am finding some lag in the ui and opening apps and the phone is charging very slowly i have enabled fast charge 4000 mah is settings and i can not install google play store as in past
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
I can't see any lag or charging issue on my device and I never received such a feedback from others. Have you performed a factory reset and cache wipe (using Stock recovery!), when you flashed my ROM, as explained? Or did you simply flash it, without wipe or even mess around with TWRP for install?

This ROM is "Google free" and has certain additional security measures. It is not foreseen to have Gapps installed.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] engsalam10:
i did a factory reset through official recovery now there is now lag but the phone is charging very slowly which setting should i apply ? i have 18w charger

and is there a way to install google play store
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] FioleK:
How add AdAway to root previliges? I've enable root in dev menu, but AdAway still claims the phone is without root (AdAaway 5.5.1). It's the same with titanium backup... Should I install some manager like Magisk or SU?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
I use the 2500 setting on my device.

This ROM comes with AuroraStore to install apps from the play store.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
HI fellas,

Ad-Blocker issue succesfully solved. As you mentioned @MSe1969, now I use Firefox with Ublock and No-Script Add-On. This added to AdAway makes everything running as I expect. But only by adding Ublock and No-Script it startet to work as it should.

Another new issue, the ringtone changed twice in a few days without changing it to a new tone with a number (eg. 24682) as filename. I think its not a system-sound, maybe its coming from Signal or Telegram? But both times I noticed when a standard network phonecall was incoming.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
I don't have those issues in my device, AdAway 5.5.1 works as it should. Btw, I deliver a prepared hosts file coming from AdAway, so you shouldn't need it.

Have you tried restarting the phone?

Habe you flashed any other 3rd Party root solution?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] FioleK:
No, just LOS.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
Hi. Just to know, i have already your rom, but it's an older version, is there a way to flash/update it without having any data lose?

and, another question, is there a way to use nfc?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
As explained, if you have already my ROM and simply want to update, just enter fastboot mode and flash my ROM system.ing via fastboot flash system <name of my ROM .img> and afterwards fastboot reboot, no wipe, nothing else. This will simply be an update without data loss.

You have to wipe everything only, if you come from a different ROM (e.g. Openkirin or EMUI 8.0 Stock ROM) - see OP.

In regards to Nfc - it only works partly. I'll try to extract Nfc from most recent firmware soon.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
ok, i've just flashed the rom, and once i have turned on the phone and typed the password, the error "Google Play" or "Google Play Services" keeps stopping"", keeps spamming and i can't do anything
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
You said, that you had already my ROM running

- therefore I said you can flash it w/o wiping.

But when you say now "Google play" and "Google play services", then obviously you did NOT have my ROM running before on your device! My ROM does not come with Google play store and Google play services.

I have also explained, that if you come from a

different

ROM, you need to wipe your data! And if you haven't even been on EMUI 8.0 (does not matter whether on Stock ROM or any treble custom ROM, main thing is EMUI 8.0 firmware underneath, as explained in OP of this thread), then you will have real trouble.

You have in fact the following options:

a.

You are on EMUI 8.0

and you have the system.img of your previous ROM available (e.g. OpenKirin).

=> Flash that system.img via fastboot, afterwards reboot into Stock recovery and Wipe the cache (no factory reset)

=> Reboot and you'll be where you had been before the flash

b.

You are on EMUI 8.0

, and you can live with loosing your data

=> reboot to (Stock) recovery, perform a factory reset and wipe cache - then you have a clean start with my ROM

c. You did not read the instructions of the OP (or decided to ignore them) and you have not been on EMUI 8.0 before flashing my ROM img file

=> Congrats, you've messed up your device

=> Reboot to eRecovery and let it do its job...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
"You said, that you had already my ROM running

- therefore I said you can flash it w/o wiping.

But when you say now "Google play" and "Google play services", then obviously you did NOT have my ROM running before on your device! My ROM does not come with Google play store and Google play services."

I was sure that I flashed the right rom, now I'm doing at least a backup of some important apps, then i'll do a wipe
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
Update: after a pair of hours, I flashed the rom, but what about Magisk? si there a way that let me use it?

Edit: i fixed the problem
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Glad you were able to fix your issue.

Regarding Magisk: Here is the official install guide (scroll down to the Huawei section): https://topjohnwu.github.io/Magisk/install.html

Do you need the extracted RAMDISK.img from firmware?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
Test version feedback

1. The camera "streamer shutter" option is abnormal

2. "Super Night Scene" option is not available

3. "Photo with sound" option is not available

4.Sometimes it will prompt "Unable to connect to the camera" (the probability is very low, just turn on the camera again)

The rest are all normal
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Thanks for taking the time to test.

Could you please explain in other words, what you mean with "streamer shutter" ?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
“The streamer shutter can help you capture the trajectory of the light and automatically extend the shutter time. No need to manually adjust the aperture and shutter, you can also take pictures of special light and shadow with Ambilight and beautiful. ”
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
I have tried to search for this by looking into the offered options in the camera app and didn't find anything. What is the path in the Camera app, which I have to follow, to get to that option?

I don't get your point, when you write: The camera "streamer shutter" option is abnormal

I would like to see on my phone, what you mean...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
I have to ask again about my issue with the ringtone. Its almost every second day that the ringtone is changing itself. When I change it back, the mysterious ringtone is called simply "36735" and not listed with system tones.

My own ringtone and alert is saved on SD card and found automatically and listed with system sounds.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Sorry, no immediate idea - can you somehow produce a log?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
If you tell me how to export any log files, I will do what I can. I am a simple P9-user with some little more skills then the average. Also I cant reproduce the issue. Sometimes I check the ring to see that my custom/standard tone is active.

What I tried to figure our where soundfile 36735 is coming from, but I have no Idear. Does Telegram or Signal have any own soundfiles? I dont think so...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Can you reproduce this behavior? As far as I have understood you, the answer is no. You simply notice the wrong ring tone, which means, it must have happened in the last hours, right?

Well, try the following, which would only work, if the respective event has recently happened:

Connect your device via adb to your PC, and enter the following command: adb logcat > lc.txt and abort the command via Ctrl+C after a couple of seconds and then send me the file lc.txt - hopefully, there are hints.

Best to send me the file via PM, as the logfile may contain sensitive information, like your phone number, all your installed apps, etc.

You may even want to edit the file...

Make a "dry run" now to see, what needs to be done and what info the log contains. If you find already any hints, send it to me now, but I guess you will have to wait until it happens next time.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
No, I cant reproduce this issue.

Last time it happened was between two phonecalls 1. May 18:52 and 30. April 14:52.

I will have a look on the log file now.

Edit: Funny, log file only contains 9. April and 2. May. No time between.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
hi, no thanks, the issue is another, i know that the gapps are completely isolated, but for work i have to use Google Duo that, when i try to configure it, it displays to try again by an unknown error, is there a way to fix this?

edit: google's apps as Photos and Drive, work normally, Duo and Meet don't
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
View attachment 5298311

In fact, the "streamer shutter" of the camera is "流光快门" in Chinese, and it is actually this icon on the camera. (Perhaps I will not use this function, but I really think it is abnormal)

In addition, the "Super Night View" function is normal (the reason is that I don't use ==), I also found that the "time-lapse photography" function is abnormal.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Some apps - especially those deeply integrated with the Google play services, such as some directly developed by Google (e.g. maybe Duo?) - don't work properly with microG. There is e.g. an open issue here

The issue has been opened already in 2018 and there have been some proposals made, which seem to have helped other people, but there is a fairly recent problem with Duo posted from this year . . .

So to answer your question - I have unfortunately no idea.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
OK, the marked feature on your screen shot is called "Light Painting" in English.

This will be more complicated to test / reproduce, I would need a tripod and a handle to fix the device for that:

This is about e.g. make a photo at night with very long exposure times to then e.g. see the red back lights of cars as "long traces" . . . - let me see.

"Time lapse" (the icon in the middle, 3rd row from above) works properly on my device: This is to take a video, which is then shown with faster speed.

But "Slow motion" (middle icon in first row on top) does not work, I can confirm : This is to take a video, which then will be shown much slower than recording speed. This simply does not work at all.

Nevertheless, I will start shipping the Huawei Camera in my next build, instead of the AOSP camera, because it offers much more features and the main functionality works. So even if not all features work, it offers much more than the AOSP Cam, so your were right.

Let's see if and how we can fix the non-working features...
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
When I take logs, it is usually after a reboot or "fresh flash", so I am right now not sure about that. But I see in my logs always entries from the device boot-up and my fairly actual entries. Maybe somebody with a specific knowledge can bring some light into this - but could it be, that your device is up & running since 9th April w/o reboot and without being auto-disabled because of not charging the battery?

The log usually is subject to housekeeping (otherwise it would grow indefinitely).
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] TYOPXN360:
Maybe my "slow motion" and "Time lapse" are reversed at yours, and my "slow motion" is shot at a higher frame rate. On the contrary, "Time lapse" is like a video with completely different pictures put together.

Also, thank you for taking my suggestion!
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Now I just realized, we had sent messages on 21th April, the time I flashed your rom the very first time.

Since that time I made some reboots, maybe once a week. So how can it be the log entry is from a date bevor? Wronge date set bevor network sync for time/date?

I charge my P9 frequetly, its my one and only mobilephone.

Anyway, now I check the ringtone setting every day twice, so if this issue will appear again, I can reduce the timewindow at least a bit.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New build with May 2021 ASB patches available

Hi all,

a new build is available for download:

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

ASB Security String 2021-05-01

Replaced LineageOS/AOSP Camera with Huawei Stock Camera *

Fixed image size of system.img, so flash issues with some devices should be fixed

Fixed Firmware display info in case of B552 (was still showing as B550 before)

AuroraServices updated to version 1.1.1

Bromite Webview updated to 90.0.4430.204

_________________

* Although not all features (e.g. slow motion) work, the offered and working functionality by far exceeds, what the shipped LineageOS Camera is able to do

Happy flashing!

Regards, M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Works fine! Thanks again for keeping my P9 alive and up to date.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
hi there, I've just flashed the rom update and everything root related that I edited on the last update, got resetted.

Infact I can't use Magisk anymore, the fix that i made on the old rom, was deleting su on bin and xbin, but now I can't do it anymore and dk why.

step that I made:

I use as root explorer Amaze, I tried to delete su from there but an error displays: Can't delete this file 1. su

i tried to delete su from adb (adb rm -f /system/xbin/su) but nothing happens because i can't reach the root (adb root , adb remount)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Normally, if you enable root for ADB and apps in the developer options, you should be able to work with 'adb root' & 'adb remount'.

Independently, if you simply flashed the system.ing via fastboot, your patched ramdisk.img for Magisk hasn't been touched, so I don't see any reason, why there should be an issue.

However, based on the previous discussions we had, I am still not sure, what exactly you have done with your device. I only got the feedback from you, that you were able to fix the problem...

EDIT:

For the most recent Magisk version, the Huawei instructions have been removed from the official Magisk install instructions.

Quote: "P.S.2: Huawei devices are not supported, and the instructions are removed from this page."

Not sure, whether you have upgraded Magisk, so I'd stick with the last working version of Magisk.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
in developer options, this section doesn't exist anymore, unless it changed its name while translating everything in italian (but i don't think so)

Is there a way to enable root adb?

on the older rom you have pubblished, when i installed magisk, the only thing i did to make work magisk and fix the "an abnomal su is in your device, please delete it and then reinstall magisk" error, i was searching the file in the root but nothing, when i tried to make the root work, i tried to open an app that requires root to see if i did something: it was titanium backup, and on the error window, he said actually where the su file, that i had to delete, are.

/system/bin/su

/system/xbin/su

i delete them with a root explorer from my device, Amaze, i reinstalled magisk and everything worked just fine.

i don't know if i did something bad when flashing your latest rom two/three days ago, but that error on magisk popped out again when i flashed the rom and i did again that deleting thing, on bin i did it succesfully, but not on xbin, so there i am.

i opened just now xda, waiting for your reply, so i didn't touch anything from the day i sended the message
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Okay - that means, that Magisk as such is already active, as the "redirection" of /system is already in place...

... I am no Magisk expert - I also don't use it myself, but I have an idea:

You seem to be in a "catch 22" situation:

- Magisk is already active and thus you can't use the shipped root solution any longer

- Magisk however is not happy and does not let you use its own root option

- So you have no root, but you need root to make Magisk "happy"

If my assumption is correct, then this would be the way forward:

- Get an unpatched RAMDISK.img from Huawei Stock firmware and flash it via fastboot

- Now, Magisk isn't active any longer and you can make use of the shipped root solution

- Via 'adb root' & 'adb remount', purge the files you want/need to purge

- Re-flash the patched RAMDISK.img, if you still have it somewhere; otherwise, start installing Magisk from scratch

Needless to say, this happens on your own risk. It's an idea of mine, and I can't give you any assurance.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
so, where should I take the un-patched Ramdisk.img?

no clue that somehow I ****ed up the files just to make work magisk, in that case, if I flash the RAMDISK.img, can this affect my data? should I take a backup?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
From the same place you took it when you installed Magisk the 1st time. Normally, you were in need of it already at that time...?

(I had offered you a while back to provide it to you, but you said you didn't need it. As I am not at home right now and I have the Huwei firmware files and extractor software plus VM to run Windows only on my home PC, I could earliest do so in about 10 days from now. If you still need it by then, just let me know.)

Important:

Don't grab any "random" RAMDISK.img, you may find when looking around in the internet! You are on a specific firmware version, most probably either B540, B550 or B552 - and the RAMDISK.img must be from the same firmware version.

Normally, flashing RAMDISK.img won't harm your data. But taking a backup is always a good practice.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
What was your last b5xx installation?

E.g., if it was b550, you need to download its update.zip and unzip to extract update.app.

Then use Huawei Update Extractor (find its thread on XDA) to extract Ramdisk.img from update.apk and then patch it.

Procedure is the same as if you stayed on b55x (without going to LOS) or if you went to OpenKirin ROMs, hence Magisk installation has been described in those threads and so (although maybe for b540 and some older Magisk versions - but procedure is still same)

Nevertheless, if somebody has the same b5xx as you do, he can give you his ramdisk.img he already extracted or even his

patched ramdisk ing (then you just flash and you will have the same Magisk version as he patched by).

But it's crucial that ramdisk.img is from the same b5xx

Edit:

Ramdisk is different partition from System or Data, hence it will not wipe or whatever your apps, settings and data.

If anything goes wrong, you just flash back the original ramdisk.img

When you install Magisk apk, it has link to Magisk Github, find Wiki there with detailed instructiions for Magisk Installation (with special section for Huawei)

PS: With TWRP, you can backup (to SD card!!!) ramdisk.emmc.win (assuming you didn't tamper yet with Ramdisk) and then patch by Magisk that file instead of the ramdisk.img
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Huawei section has been removed, it now says "no support for Huawei devices"
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
wait, this sounds familiar, i remember that to make everything work (also the step from android 7 to 8) i had to rebrand my phone, i have in a folder where i store all my phones data in, there's a System folder that leads me to this:View attachment 5308135

and that remembered me the rebrand software where should be the last update zip i flashed with that: b540

in magisk folder:

View attachment 5308137

there's a file named AL10c00b540_Patch02-Magisk_20400-Encrypt_AVB-Ramdisk.img

is it the right ramdisk?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] Nezus3301:
also that's ok, i have to use the phone normally (aka without using root stuff) it's my main phone so i always do the things carefoully even if i spend too much time, i can wait for you, nntw :)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] zgfg:
Bad luck for those who stayed on Huawei

Btw, do you have Magisk installed and which vdrsion?

Bcs, I've seen a report in XDA General Magisk thread that only Magisk v20.4 (the latest is now v23) or older work for P10 with EMUI 8 (same case, patching to its ramdisk.img) - if so, that's the reason Huawei was removed from Magisk Wiki

(I don't have P9 anymore or any Huawei). When I did have, it was b540 and Magisk v20 4 and the Magisk procedure I commented above perfectly worked.

I can still find on my PC the ramdisk.img from b540 and its patched by Magisk b540 counterpart, and I can share - but only for those who did not upgrade from b540 to b55x (and who are willing to stay on old Magisk)