yashsingh1/xdaforums huggingface dataset:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] _wasted_:
you mean this post right? isn't it just an update for microG? i dont use any google-services for now so i skipped initial config + this update.

so there is no 20201017 system-image neither here in this thread nor on sourceforge.... am i missing something:confused:
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Oops, sorry - you are right: I thought I did a full system.IMG

EDIT: Did another (test) build and flashed it - all fine! Download here
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] _wasted_:
Thx for the fast build, but hot-spot is still not working.

Edit: flashed OpenKirins 20201019 - hot-spot is working there (could activate and connect with other phone) so it's not a hardware issue. Back @ your latest interim build hot-spot not working.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
On my device it is perfectly working - the fix, which I had applied in the 20201007 build, did already the job and could also explain the root cause.

I did that interim build yesterday simply to make sure that there isn't anything wrong, as I did not want to "downgrade" my device (because of microG). I did not attempt to "fix" anything in there.

So back to your device:

I have an L09 (single SIM), do you maybe use an L19 or L29? (Not that I could think of this being related, but you never know) Have you flashed anything on top?

I'll start to study the provided logs later today, maybe I see something.

But could you please do me a favor and connect the phone via adb to your PC and enter the following command:

adb shell getprop persist.sys.vndk

And tell me, what is the result. Thanks
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] _wasted_:
i also have the L09.

last time i got bock to b550 stock via erecovery i flashed the oreo-twrp, L09-network-patch and i think also flashed the enable-OTA.zip.

than i flashed the stock recovery i extracted from the stock firmware downloaded from the firmware-finder web portal.

when i'm @ your rom i stay with the stock recovery and never flashed something on top of your rom.

output from 'getprop persist.sys.vndk' is 'hi3650'.

relating to the logs: they are from different boots because i had some trouble to get the dmesg at first. I don't know, but in case this makes digging into them easier i can grab new ones from the same boot. but not earlier than in ~3 hours.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Thanks - regarding logs, I only need a logcat from the attempt to switch on the hotspot.

Could you please also try the following:

Enable root, and enter the below command in a root shell or via adb:

setprop persist.sys.vndk 26

Afterwards, please try to enable the hotspot and tell me whether it succeeds or not. Afterwards, please restart the phone in any case to avoid any issue.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] _wasted_:
ok, then i think the log i posted before should be sufficent.

setting this to '26' fixes the hot-spot. i could turn it on and connect to it with another phone.

after rebooting the value stays at 26. Even after a cold boot the value didn't change back to 'hi3650'. Should i set it my self back to hi3650? Or can i leave it this way?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Thanks for the feedback, this indeed tells me something:

First of all, if you leave the value at 26, the Camera won't work any more (latest after a reboot, it'll crash).

Second, if your device behaves like that, then my patch to fix the hotspot is not present on your device!

As it is present in my system image (as said, I explicitly tested again), this means that you must have something in your device setup, which somehow overwrites my patch!

You said you flashed my latest image, and that you did not flash anything on top of my build, so I am wondering what would overwrite the wifi-service java library of my build in your specific case?

When you switched between Openkirin and my build, did you perform a factory reset plus wipe cache?

(You should! Only if you upgrade a build from the same ROM, you don't need to - So Openkirin LOS16 > Openkirin LOS16 : not required; My ROM > My ROM : not required; but Openkirin > My ROM - factory reset & wipe cache strongly advised!)
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] _wasted_:
oh i thought just a factory reset is sufficient when switching between different ROMs - my fault.

so i did flash your latest build again, afterwards did a factory reset + wiped the cache:

-now hot-spot again not working

-output from 'getprop persist.sys.vndk' is 'hi3650'

i have observed something since flashing back the stock recovery in the process of rebranding and upgrading to oreo, but i don't know if its related to this or if it's just normal behavior:

-every time i do a factory reset it performs it to ~17% and than shows this screen.

so i don't know if its related but i thought i should mention it just in case that this is unexpected behavior. it's doing this every time since i flashed the extracted recovery_ramdis from b550 after updating to b550 through erecovery and applying the network-patch & enable_ota-patch.

maybe at some point in the process of updating through erecovery, applying the patches and, flashing stock recovery, flashing your ROM i messed something up.

i think about if repeating the procedure will fix it.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
In fact, the behavior described by you of the recovery also happens with my device and I consider it "normal".

Some technical background to the WiFi hotspot:

Regarding the persist.sys.vndk property being 'hi3650', this is caused by this commit to get the Camera working (look at the vndk-detect file) - this aims at still maintaining treble compatibility for other devices, therefore the /system/etc/ld.config.26.txt file was not replaced, but complemented by the file /system/etc/ld.config.hi3650.txt for the hi3650 hardware.

But a side effect was the not working hotspot, because it broke this treble wifi hotspot fix, because whilst the /vendor partition is still on Android 8.0 (SDK 26), the /system partition is on Android 9.0 (SDK 28), and the hotspot works differently in 8.0, so this fix aims at behaving like 8.0, when starting the hotspot. Hence I made this hack to restore the intention of the originating treble fix.

So I am wondering, how my patch is not present or active on your device . . .
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] _wasted_:
so i've changed the property again to 26 & did a cold boot. hot-spot is working. camera is also working fine. took multiple pictures & short videos. so relating to the qouted statement this is unexpected i think and maybe helps you with finding the issue. i've also read through your last post. thanks for the detailed info but my android/coding knowledge is nothing you could count on :silly:

what about [MENTION=8324266]ric0shay[/MENTION]? he reported this issue also... so ric if you still around can you read through the last posts since your last post and tell us how the specific values/ symptoms are at your device?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
What is the value after your cold reboot? 26 or hi3650 ?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] _wasted_:
prop is still @ 26 after multiple cold boots. headphone-switching isn't really working. just high frequencies are audible. camera still works fine, maybe some other issues. didn't have spent much time with the phone today.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
Regarding Headphone: Have you tried disabling AudioFX in Headphone mode?

Regarding the prop: This is really weird - I have no explanation, your setup behaves, as if my WiFi patch wasn't present and if the vndk-detect script would contain a different code. Of course good for you, that you have a solution, but if we exclude any modifications on your end (you said you did not flash anything), I don't understand this. Maybe last question: Did you enable any settings or execute any options in the Phh treble app?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] _wasted_:
I don't want to fix the headphone-switching for now, because it will work when i clean flash your rom again. Just wanted to give as much infos as possible, in case it could be useful.

at first when i started flashing your ROM i played a bit around with the treble settings. This stuff's all new to me so I wanted to try and see what it does. Iirc i fooled around with:

-huawei features: enable blurry UI workaround

-misc f.: fps divisor, force fps, disable HW Overlays, Force enable CAmera2API (to see if opencamera can finally find the monochrom-sensor), securize.

afterwards i flashed your rom again and did a factory reset.

last two or three times i flashed your rom i left them untouched.

edit:

went back @ stock B550 firmware through erecovery, flashed the networkpatch & did everything as described in the rebrandUupdate-thread. than followed the kirin install guide to flash your rom. i verified the checksum of every file i downloaded. double-checked the step by steps. the only thing i've touched after initial config (left all options at the predefined valus) where disabling adb, nfc & bluetooth result:

-hotspot not working

-hi3650 prop value

but i've observed another thing: if i leave w-lan toggled on before i try to toggle hot-spot on, hot-spot stops immediately. also when trying to toggle frequent times in a row without touching the w-lan toggle, it stops immediately.

if i toggle w-lan off before and then again try to toggle hot-spot frequent times in a row, the time passing before each of the hot_spot process got canceled is noticable longer.

i grabbed logcats for with w-lan enabled, and for w-lan disabled: enabled, disabled
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
I honestly have no explanation - it perfectly works on my device and as indicated before with references to the commits, the fact, that is wasn't working before October and now is working, matches with the commits and is 100% explainable.

The fact that it works for you when you manually set the prop to 26 also indicates, that my latest patch is not present, which - as you downloaded and used my system.img - normally indicates, that some parts must have been overwritten later after flashing (at least I don't have another explanation). Just to make sure: After you went back to Stock B550 and then did all until you flashed my ROM: Did you immediately check the hotspot, or did you first "sort of restore" your favorite apps and if so, how and which apps?

How about other thread readers? Does it work or not with your P9 devices?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] _wasted_:
yes i checked it immediately the last time i went back and forth. at other flashing-"cycles" before i sometimes installed opencamera, sometimes other apps through f-droid and aurora (with whitelisting it in aurora services beforehand) mostly socialnetwork-apps to see for which of these i'd need GCM. Only root-stuff i did was setting the persist.sys.vndk-prop for troubleshooting the hot-spot, also just in that earlier flash-"cycle".

the logs i posted at the weekend are from a complete fresh, clean flashing. i installed nothing, flashed nothing, didn't even connected it to the internet.

may i ask if you have cleanflashed your latest rom at your device? is your vendor/kernel b540 or b550?
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
/vendor & kernel both are in B550 on my device

I did not clean-flash, due to backup quite difficult.

But as explained already:

1. The prop is not an Android prop. It has been introduced by Phh for his treble builds (I have forked his work)

2. There are two occasions, where this prop is evaluated: The LD config file (that is, why the camera patch sets it to hi3659) and the hostap-driver

3. The hostap driver, also via a patch introduced by Phh, checks, whether the vendor partition is still on Oreo (vndk < 28) and then stops and starts the wifi service before starting the hotspot. This is, what failed in my builds until last month, because with the prop being hi3650, the condition to do the stop/start was not met.

4. So my patch to fix that was to also accept the value 'hi3650' as valid condition for the stop/start

I will try a last thing in my next build: I'll leave the prop being 26 and trigger the LD config differently similar to Openkirin
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] MSe1969:
New build with November 2020 ASB fixes

Hi all,

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

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

ASB Security string 2020-11-01

Bromite Webview on 86.0.4240.181

Fix for CVE-2020-15999

Rework of Hotspot Fix

Fix of AOSP mail app widget

Updated microG (see "interim build")

Replaced weak F-Droid signatures with ROM's V2 signatures

Please note:

The F-Droid and F-Droid privileged extension have been re-signed with this ROM's signing key. F-Droid keeps compatibility also to older Android versions, which however results in the necessity to use weak V1 signatures. In addition, they don't use V2/V3 signatures. To overcome this issue, the F-Droid apps have been built from source and V2-signed with the ROM's signing key.

You therefore need to de-install any updates, if you have made any - do do so, simply deactivate F-Droid and F-Droid privileged extension and activate them again. In case there were any updates, they will be de-installed and you will have as a result the delivered re-signed apps in their newest version.

Happy flashing, regards M.
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] _wasted_:
Hotspot is working now on my device. Thank you
[Huawei P9 ROMs, Kernels, Recoveries, & Other Devel] P9_User:
Good Morning,

I flashed the img yesterday night and after succesfull boot the google play app was in a kind of shutdown loop and the phone was getting hot. Because I had no time to tinker around I simply flashed the previous version lineage-16.0-20201019-emui8-gapps.img from openkiri again and all seems tobe fine again.

Did I made something wrong with my basic knowledge? I flashed the image with fastboot and made a straight reboot. Should I have done a whipe or something? Can I flash your img over the openkiri one? :confused:
[Android Q&A, Help & Troubleshooting] luiz.teixeira:
I am building Android AOSP 8.1 (Oreo) for a phone-like device, which is permanently mounted (e.g. industrial deployment) and has no battery. However, when I power it up, it shows a charging indicator and a power reading of 6%. What do I have to change to tell Android there is no battery? I think that is possible, since Android also runs on devices like set-top-boxes and so on. Can I remove this verification? I've tried to modify BatteryService.java in ./frameworks/base/services/core/java/com/android/server/BatteryService.java, and also tried to modify frameworks/base/core/res/res/values/config.xml but didn't have success. Any help will be very welcome.

Thanks in advance.
[Android Q&A, Help & Troubleshooting] vash_h:
I'm not sure on this but my android tv box has a permanent 100% battery with charging logo. And no it doesn't have battery, tested it by unplugging the power supply and the unit goes dead.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] penglezos:
Englezos Kernel - MI 9T/K20 Pro​

Englezos Kernel for the MI 9T/K20 Pro (raphael,in) is a minimal kernel focused on improving overall UX with performance and battery tuning. Support any AOSP OSS based rom both Android 10 & Android 11, no MIUI support.

Features:

Latest CAF msm-4.14 (Specific Qualcomm Optimized kernel base) with latest android-4.14-stable merged

Latest wifi and audio drivers tags

Power efficient workqueues and idle power consumption is reduced to the absolute minimum

Optimized CPU frequencies and EAS energy model for improved performance and battery life (idle also)

Selectively cleaned Xiaomi's drivers for reduced debugging and performance improvement

Dropped unnecessary boosting

Devfreq boost driver

SimpleLMK driver for better and improved memory utilization

Passes SafetyNet bootloader unlock check

LZ4 compression for ZRAM enabled by default

WireGuard VPN tunnel support

vDSO 32 patches to improve 32-bit performance

Modules support disabled for lighter kernel

Excluded a lot of debugging symbols for kernel size reduction

Root will be preserved even after flashing the kernel! (i.e. No Need to Reflash Magisk after flashing kernel).

Many other miscellaneous improvements not listed here, check the source

Installation instructions:

Flash the .zip file through your installed recovery or FKM.

Changelogs/Downloads:

Download from Github Releases

Reporting issues:

Before reporting an issue please check that it only occurs when having this kernel installed. Otherwise it may be an issue with the ROM.

Make sure you provide logs and or a descriptive information with your reports, else you will be ignored.

Be aware that battery issues are very likely related to your personal settings. Don't blame me for your modifications.

Thanks to:

nathanchance: for android-linux-stable

osm0sis: for his amazing anykernel3 script

kerneltoast

kdrag0n

All others who have their commits or contributions picked.

XDA:DevDB Information

Englezos Kernel, Kernel for the Redmi K20 Pro

Contributors

Englezos

Source Code: https://github.com/penglezos/kernel_xiaomi_raphael

Version Information

Status: Stable

Current Stable Version: 0.13

Created 2020-04-06

Last Updated 2021-07-26
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] penglezos:
Reserved
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] jejemc:
thank you for sharing your work ;)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] cacio_confusa:
Is F2FS upstreamed from mainline ?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Yarimorez:
Nice i'm gonna check It out
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Heiko77:
Nice to see your kernel for this device.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] penglezos:
Release 0.2 April 09

A hot-fix release fixing random reboots, sorry for any inconvenience. Download link at first post.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] t0m2k:
thanks for the update! :)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] carpediemz:
no bug and smooth. great battery. clean source base correct upstreams.. thumb up.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] affendymahmud:
thank for your work..

currently trying the latest kernel
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] z1022:
I use K20 Pro. Download Englezos-raphael-0.2-MI9FOD.zip or Englezos-raphael-0.2.zip ?

Thanks
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] bdwilk:
Depends on which ROM you're using. The ROM will either use mi9fod or LOS (normal) fod.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] gwenmillett:
Any plans for miui in the future?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] penglezos:
No
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] okatotomato:
can u change vibration more lighter haptic ?

kernel is good :)
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Turbine1991:
This might be a little too aligned with power saving. I came from Candy kernel, and this kernel in comparison doesn't even register touches at times. It's also quite sluggish.

I like the idea though.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] penglezos:
Assuming you are coming from Candy kernel you are using MIUI? Also I need logs and more information as you can see.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] justin.knoefel:
How do I know which one to use for Lineage 17.1? Mi9FOD or the other?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] LVME:
The other
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 17007501:
I want to thank the developer, I am using the kernel with the pixel experience +, everything is fine and the battery direction is very good, it is simple to get to 10 hours of screen, I am happy!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] venu44:
Nice kernel. But terrible fod on pixel exp +
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] affendymahmud:
Using pe + march edition

With wifi usage, I get 9+ sot with 23 hours of standby time with 5 % battery left
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] ngollop:
To be honest, if someone wishes to compare a battery oriented kernel to another non-battery oriented kernel, be my guest, but its an unfair comparison. Its really hard to find kernels that are more focused on battery life rather than performance, so if someone wishes to go down that path, download one of the 9123821938 kernels available.

This is great work from you [MENTION=5798056]Englezos[/MENTION] so please keep it up with the same focus you've been having.

---------- Post added at 12:19 PM ---------- Previous post was at 12:18 PM ----------

To be honest, if someone wishes to compare a battery oriented kernel to another non-battery oriented kernel, be my guest, but its an unfair comparison. Its really hard to find kernels that are more focused on battery life rather than performance, so if someone wishes to go down that path, download one of the 9123821938 kernels available.

This is great work from you [MENTION=5798056]Englezos[/MENTION] so please keep it up with the same focus you've been having.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 17007501:
I adore this kernel, I look forward to an update
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] akkh99:
No. It is a problem of candy kernel. When you flash another kernel(even with stock MIUI kernel which previous works without any lag) over candy kernel everything will be lagging. You need to clean flash the rom to fix this.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] nfsmw_gr:
It's not a problem of candy, this needs to be done regardless of the kernel you're running.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] penglezos:
0.3 release is up, check first post for changelog/download link.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] 17007501:
thank you very much for your great work!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] nfsmw_gr:
Where are you from mate?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Uassya:
Why do you give out work

Linux kernel developer community for their work? As far as I can see, there are no your commits in history
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] penglezos:
You literally just joined today and the first thing you post is this, I assume you are using another account to hide your identity. Anyway to answer your question: yes I use other people commits because they had already implemented stuff also you can use the github's search functionality to directly check my own commits or use a magnifying glass and check the whole commit history. Have a nice day.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Leon1d:
Good day to Dev and all others!

I got one question. Is there TTL FIX target implemented in kernel? And if not, could it possible to enable it?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] penglezos:
0.4 release is up, check first post for changelog/download link.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Devione:
This is by far the best kernel I've used for the K20 Pro. Thanks for this and keep it up.
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] tntgdh:
Hello developer. Any intention of allowing screen overclock in this kernel ?
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Akshatidoo:
Bro u forgot to add the mi9fod version in downloads! Only regular (los) is attached!
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] sandeep_7:
Tried and really impressed with smoothness and battery backup with this kernel . Thanks [MENTION=5798056]Englezos[/MENTION]
[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Mystic X:
This is awesome. I am really happy to see a kernel focusing on battery life without degrading performance. Keep up the good work bro:D

Thank you so much:highfive: