yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bosox284:
Yeah, the zip gave me no problems but the .img files did. I personally feel like you're adding an extra couple steps by doing it through TWRP, but the .img files didn't work for me so that was necessary.

Assuming you're using Magisk, after a couple reboots it's going to patch the dtbo image anyway. Once it patches that, you're going to get the message again.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] MrBrady:
I'm using the unofficial Magisk app, which doesn't patch dtbo.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] elliwigy:
well i came off a fresh start so i didnt have twrp yet lol i prefer twrp as its easier imo and dont need access to a computer
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 1.0.6

Hey guys and girls,

new update. This is a pretty big update so to say. My walleye tester [MENTION=7896855]kinfam[/MENTION] and me flashed well over 10 builds to get everything right and working smoothly.

use the instructions in the op for flashing, please

Changelog:

- Updated to 4.4.112

- more CAF patches from [MENTION=6842057]nathanchance[/MENTION] (thank you!)

- Reverted the "old" patches from copperhead OS (taken from marlin kernel) to make way for the dedicated wahoo patches as they were pushed recently

- introduce a feature called mac randomization ( disabled by default as some companies networks rely on mac identifaction, may come in quite handy if you don´t want to expose your mac adress)

- kernel/time: move frequently used functions to headers and declare them inline (should reduce overhead)

- many crypto and random patches

- sdcardfs updates

- revert the more heavy undervolting and relax it a bit again as some users were facing glitches (heat improvement was negligible in this aspect)

- some patches to cfq scheduler

- patches to westwood tcp congestion algorithm

- force all non-percpu kthreads to little cluster

- updates to eas machinery (improves performance in certain scenarios)

- meltdown patches

- added backlight dimmer thanks [MENTION=4684315]flar2[/MENTION]

- some source fixups from [MENTION=5051294]frap129[/MENTION]

- added state notifier (needed for fingerprint unlock boost)

- added fingerprint unlock cpu boost

- little change to zram

- cpuidle patch (should improve deepsleep)

- updates for WALT (should improve efficiency of EAS)

NOTE:

to enable mac randomization, set

/proc/sys/dev/cnss/randomize_mac

to

0 = OFF

1 = ON

by default it is 0 (mac randomization disabled)

Download: https://www.androidfilehost.com/?fid=962187416754454542

or following the link in the op to the correction version

Have fun, enjoy the kernel and your phone.

Big thanks to [MENTION=7896855]kinfam[/MENTION] for taking the time and all the testing! I really appreciate it! Go drop him a thanks :)

If you like my work please consider a donation

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee: http://paypal.me/freak07
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
The kernel should also work on the custom roms. At least it does on carbon. That’s what I’m using currently.

I just rebooted to twrp, flashed my kernel zip and magisk 15.3 zip, rebooted and all was well.

If you should get stuck just force a reboot and it should boot up properly. I had this one time when I flashed a new build on the stock google rom :)

I hope everyone has a nice day and enjoy your phone :svetius:

One the screenshot is not the currently released but a slightly older kernel ;)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] veetoe:
Having some weird issues when flashing 1.06. Gets stuck at G loading screen and also twrp slows to a crawl. Literally takes 10x longer to do anything in twrp and the UI animations are laggy. As soon as I restore boot partition that has 1.05 on it, everything becomes normal again and it boots fine. I've tried rebooting multiple times with same results. I've tried flashing kernel then magisk and also the same followed by twrp at the end. Any ideas?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joeyddr:
For some reason when i flash your kernel i get the internal problem msg on every reboot, I flash kernel,twrp, then magisk. If i flash say Flash kernel 2.10 or 2.09 in the same order i do not get that msg. Do you do something different with the dtbo img?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Hm I don’t know what’s happening for you currently...

It’s booting up just fine for me
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Yes verity is disabled on my kernel for the custom roms to work.

I will adapt nathans way of detecting if one is running stock or custom rom via the ak 2 zip :svetius:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] martepato:
I experience the same as [MENTION=8317664]veetoe[/MENTION]

Laggy TWRP, sometimes stuck at the splashscreen. (Not all times)

I'm not that concerned by it, but if you need someone to reproduce it and test stuffs you can hit me up
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] imritechere:
Imritechere

Getting about the same results laggy , can't install busybox on rails, first thought it was my Majisk version, went back to 1.05 issues went away.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joeyddr:
I have zero lag with 106
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
So do you experience lag in the actual OS or just twrp?

And after successfully flashing and booting my kernel you face reboot issues on consecutive reboots?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] piyush7243:
No lag issues all well here
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] MrBrady:
Just installed over the stock kernel and Magisk. Got 3 random reboots right off the bat. Wiped data in EX Kernel Manager, even though nothing was set on boot, and haven't had a reboot since.

Looking at stars, the little cluster spends a LOT of time at 1900 which is concerning. Running idle for the past hour and stats are showing it's been at 1900 for 43% of the time.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] martepato:
The OS is fine, it is just TWRP.

I did some testing:

Flashed Kernel, Magisk & TWRP:

Lag in TWRP

Out of 20 consecutive reboots I got stuck 5 times

Flashed Kernel & Magisk:

No lag in TWRP

Out of 10 consecutive reboots I got stuck once

OS is fine under all conditions
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
could you try this?

https://www.androidfilehost.com/?fid=746010030569947956

it should solve the warning on stock roms and may fix your twrp lag
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] martepato:
Lag in TWRP is gone, but dtbo got patched I think -> still getting the warning

(Flashed stock boot, dtbo & vbmeta before installing 1.0.7)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joeyddr:
It caused a hang on first boot after installing, hard power off and on fixed, but still got the warning.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Hm it’s probably something with magisk than because I didn’t change anything. But the warning is purely cosmetic, should cause no harm.

Are you using xposed?

Are you using xposed?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joeyddr:
no exposed. if i flash the latest flash kernel i don't get the warning.... odd
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] martepato:
Uninstalled Magisk completely through the app, flashed boot, dbto & vbmeta to stock and bootet twice. No warning message yet. Then I flashed just the kernel, no Magisk, no TWRP and now I'm getting it.

I'm not concerned by it, just trying to help clear up what's going on.

No xposed
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bosox284:
I had the 1900 issue, too. I didn't get any random reboots, but it did hang on my first boot after installing the kernel. It booted fine the second time.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] otonieru:
Do i still need to flash stock kernel first if i want to flash this over other custom kernel ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Yup ?

You'll also have to flash the twrp.zip again, as well as magisk.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joeyddr:
I have had no issues flashing over another custom kernel.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] eqbirvin:
I've had this on every 8.1 ROM/kernel combo except LOS stock. You said rebooting a few times fix it? Is random CPU hikes and spikes and heat are the things that are keeping me off 8.1
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] veetoe:
I'm still having issues with the latest 1.07 update. The twrp UI lag is gone but any operations in twrp still take 10x as long. I've gotten it to boot into the OS and seems okay except something weird with zram. Inside ex manager it shows zram as "stopping" and doesn't change even with reboots or clearing data for ex manager. I've tried flashing over 1.05 and also flashing stock boot, dtbo, and vbmeta first. I've also disabled xposed before flashing. Same issues persist. I have no issues with 1.05 at all.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bosox284:
No, I just went back to the older version. I didn't have the 1900 MHz issue with 1.0.5, only on 1.0.6. I noticed it on one version of Flash Kernel too, but I can't remember which.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
Maybe unrelated but all my 1900 issues went away when I uninstalled that Button Mapper app. I truly do not know that was the fix but others seemed to make the connection also. Even if it's not your problem, I wonder if any other apps might create whatever condition it seems to have...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
How did you guys measure the idle usage?

When I use cpu times and letting my phone just sit on my desk I get this. (see screenshots)

If you use the live cpu view in exkm app you see 1900mhz used because the live view itself spikes the EAS machinery up.

EAS just reacts to the load and provides the corresponding horsepower to drive everything smoothly.

If something “requests” or causes the EAS tracker to provide additional cpu power exactly the cpu spikes will happen.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] otonieru:
Flars button mapper is known for causing cpu locked up when used in root mode. Use it with adb command, and the issue will gone,

You can run "top" from terminal and see the button mapper process use cpu as high as 90 percent sometimes

---------- Post added at 11:40 AM ---------- Previous post was at 10:45 AM ----------

Btw [MENTION=3428502]Freak07[/MENTION]

On your kernel, somehow i cant setup selinux to permissive. Any idea ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Yeah that’s exactly what I was trying to stay. If an app needs additional cpu power the eas machinery will grant it. And there could be some conflicts with apps that may cause the spikes.

Thanks for providing additional info :svetius: top command can be very helpful in this situation.

That’s how the community should work.

does it work on other kernels?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] otonieru:
Yes, selinux changer working fine on flash kernel.

On yours, when i try to manually send setenforce command through terminal, the return is : "invalid argument"
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Okay I see.

It could be due to the new copperhead OS/kernel changes I implemented.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joeyddr:
I did a reboot yesterday and it hung again, so i hard powered off then on, once in the OS i noticed all the colors were "saturated" i went to the display options and the options to change color were gone. I did another reboot and it was all back, thought that was odd.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] otonieru:
I see,

That make sense. Enchanced security never get along nicely with a lot of modification indeed :silly:

Luckily viper working just fine despite the selinux status
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I faced this issue also when I flashed many builds in a row.

Are you on stock or on custom rom? To me it happened while I was on carbon.

I wiped cache, rebooted and all was back to normal. Although I’m not sure what caused this issue in the end.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I might have found the cause some where having spikes to 1900mhz in some scenarios.

But only if it’s not an issue with an app that causes you load like the button mapper app.

I’ll upload an experimental 1.08 build later.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joeyddr:
stock
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] otonieru:
For anyone who find the high usage of 1900mhz freq,

I might suggest you to check whether ypur magisk hide work properly or not. Sometimes it got stuck, and triggering a lot of background logging activity,

Thats what just happen to me today. I feel that battery drain was faster than usual, and upon checking using top command, magisk using 33% of cpu all the time,

I turn magisk hide off and back on,

And the issue gone straight away, magisk stop using high cpu
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 1.0.8

Hey guys and girls,

here is 1.0.8. We skip 1.0.7 because it was mainly a release to make sure everything works out as intended.

use the instructions in the op for flashing, please

Changelog:

- Updated to 4.4.113

- Updated WALT ( set WALT window size to 10 ms instead of 20 ms, increases performance quite a bit as discussed in the eas dev mailing list)

- Updated EAS machinery

- updated sdcardfs

- some more upstream commits from https://github.com/aosp-mirror/kernel_msm/commits/android-4.4

- reverted an EAS commit that may fix high cpu usage in some scenarios. please note if you have an app like magisk manager or button mapper that request cpu power this fix will not help. It is just for scenarios where some cpu spikes may interfere with the clusters idling.

- more hardening/security patches from copperhead OS found here https://github.com/CopperheadOS/kernel_google_wahoo

MAC RANDOMIZATION

As this features is relatively new and was introduced in 1.0.6 I will post the instructions again

NOTE:

to enable mac randomization, set

/proc/sys/dev/cnss/randomize_mac

to

0 = OFF

1 = ON

by default it is 0 (mac randomization disabled)

Download: https://www.androidfilehost.com/?fid=890129502657578225

or following the link in the op to the correction version

Have fun, enjoy the kernel and your phone.

Big thanks to [MENTION=7896855]kinfam[/MENTION] for taking the time and all the testing! I really appreciate it! Go drop him a thanks

If you like my work please consider a donation

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee: http://paypal.me/freak07
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joeyddr:
The hang on first reboot is gone, no lag in twrp, warning msg is still there(which i don't get on flash but no big deal), so far so good.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jonesin:
It is my understanding that wiping cache in twrp does absolutely nothing. TWRP points to an old cache location that is no longer applicable on pixel 2 xl partition schema. The only way to actually wipe cache is manually inside of the os on a per app basis. Correct me if im wrong.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I just wiped the cache out of old habit. I’m no expert at twrp...

I think a simple reboot fixed the problem as the boot process is prone to errors due to a/b partition layout, google security etc.

I think the boot hang/magisk error also originates from this

I’m really glad we have a (mostly somewhat) working twrp solution for pixel 2 devices

Thanks for your insight!

That’s how community should work. collaborating all together in order to learn and achieve our goals :svetius:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] otonieru:
[MENTION=3428502]Freak07[/MENTION]

Is mac randomisation setting stick upon reboot ? Or do i need to apply it every reboot ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
it won’t stick after a reboot.

However you could either apply it via exkm app. In the user settings section :svetius: there you will find a reboot toggle.

or use a magisk post fs data script or however it is called :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] otonieru:
Thx, did so already.

Btw, am quite surprise, it turn out that your kernel support wireguard as well. I never see you mentioned it anywhere.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I mentioned it in the changelog sometime ago. But you’re right I forgot to add it to the op.

I’m quite sure I forgot to mention a few under the hood changes as well in the op ;)

Best is to take a look at my git :svetius:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Ericarthurc:
Sorry if it was already answered (couldn't find through posts?) but will the kernel work with custom roms, like CarbonRom? Or is it for stock only?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] tessut:
IT will Work on custom roms
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
yes it will. And patch dtbo (verity) depending if you’re on a custom rom or not.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] tessut:
Is that a theme that U have on ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Yes it’s mono/art

https://play.google.com/store/apps/details?id=connoisseurship.project.mono
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Hey

Could somebody that is running stock rom please upload the file

WCNSS_qcom_cfg.ini

Found in

/system/vendor/firmware/wlan/qca_cld

Thank you in advance!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] martepato:
There you go
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] otonieru:
[MENTION=3428502]Freak07[/MENTION]

Btw, can ypu recommend kernel manager app ?

Am currently using EX but my config never re- applied on reboot. Not sure why. Should i extend the wait time for applying on boot ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I use EX kernel manger app too.

What settings do not stick for you? As some are controlled by services and are hard to change without disabling that service/Hal
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
thanks for uploading the file. [MENTION=2772001]martepato[/MENTION] [MENTION=4066277]otonieru[/MENTION] :svetius:

I just wanted to check if the custom rom and google config file is the same.

This file allows to tweak the wifi driver from userspace.

I found a few tweaks I want to try. If you feel adventurous or want to help me testing it, you will find the modified file here.

Instructions:

1. Download the zip file from here: https://www.androidfilehost.com/?fid=818070582850489548

2. Extract the ini file from the zip

3. Cope the "WCNSS_qcom_cfg.ini" file to "/system/vendor/firmware/wlan/qca_cld" and replace the existing file.

4. Set permissions to rw- r-- r-- (0644)

5. reboot

6. profit :)

Edit: this little tweak should work across all roms and all kernels for pixel 2 / xl :svetius:

Changelog:

Changelog for wifi config file

maximize the continuous packets dropping threshold

limit peers for SoftAP to 10, prevent overloading

prefer connecting to a 5Ghz AP even if its RSSI is lower by 5dBm than the competing 2.4Ghz AP -> smart decision

disable Packet logging

disable more logging

enable qpower and deep sleep at the same time (qpower Manager wifi sleep)

tune bmps interval (may lead to powersavings during wifi idle)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] tessut:
What did U tweaked exactly ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
[MENTION=3346415]tessut[/MENTION]

Changelog for wifi config file

maximize the continuous packets dropping threshold

limit peers for SoftAP to 10, prevent overloading

prefer connecting to a 5Ghz AP even if its RSSI is lower by 5dBm than the competing 2.4Ghz AP -> smart decision

disable Packet logging

disable more logging

enable qpower and deep sleep at the same time (qpower Manager wifi sleep)

tune bmps interval (may lead to powersavings during wifi idle)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] otonieru:
Nothing applied :crying:

So sometimes i kinda hesitant doing reboot, since am gonna need to reaply everything

Btw, am trying your wifi tweak right now. I guess the difference wont be to obvious in daily usage isnt it ? Or is there any way we can check the effectivity of the mod ? :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
very strange indeed. I apply some settings in exkm on boot. See screenshots. They are sticking perfectly fine for me.

Cpu frequencies won’t stick at all because of the powerhal.

Are you sure magisk is installed correctly? Do other root apps function properly?

You could also check if busybox is properly working.

That’s the intention of the wifi tweaks. I need help evaluating the effects and check that there are no ill consequences introduced.

In theory it should improve usage in deepsleep and when the wifi driver is idling.

My reason was because my wifi changed in a specific room from 5ghz up 2,4ghz channel resulting in slower througput. That specific case is solved for me :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] otonieru:
[MENTION=3428502]Freak07[/MENTION]

Somehow i managed to get EX ro apply setting on boot,

I think the only thing i do differently from before is that now i save a setting profile for custom user value (randomize mac and elses)

btw,

do you have any idea whether you will be able to make "libnfc-nxp.conf" file in /system/vendor/etc to be writeable ?

Is it from rom side or kernel side ?

What am trying to achieve is to use card emulator app to clone my several payment card using NFC, so that i do t have to put all those card in my wallet everyday,

The app used to work in nexus 6p

But on this pixel 2 xl, when i try to simulate the card, it always say /system/vendor/etc/libnfc-nxp.conf and system partition is locked.

The app has root access granted and my system partition is R/W

The only thing different is back in 6p time, my slinux was permissive.

If you are interested about the app, you can download it from Play Store, name is "Card Emulator"
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 1.0.9

Hey guys and girls,

here is 1.0.9. :)

use the instructions in the op for flashing, please

Changelog:

- Updated to 4.4.115

- Add latest BFQ IO Scheduler

- some small EAS updates

- some caf updates

- net/sched: Import Cake package scheduler

- some sdcardfs updates

- some more upstream commits

- now build with clang 6.0.1

MAC RANDOMIZATION

As this features is relatively new and was introduced in 1.0.6 I will post the instructions again

NOTE:

to enable mac randomization, set

/proc/sys/dev/cnss/randomize_mac

to

0 = OFF

1 = ON

by default it is 0 (mac randomization disabled)

Download: https://www.androidfilehost.com/?fid=746010030569951555

or following the link in the op to the correction version

Have fun, enjoy the kernel and your phone.

WIFI TWEAK :)

P.S.: Here is a short link to the WIFI tweak I posted a few days ago :)

https://xdaforums.com/showpost.php?p=75407345&postcount=164

Big thanks to [MENTION=7896855]kinfam[/MENTION] for taking the time and all the testing! I really appreciate it! Go drop him a thanks

If you like my work please consider a donation

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee: http://paypal.me/freak07
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
What does wifi tweak do?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
there´s a short changelog in the linked post and in some of the following posts I explained my intentions :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] martepato:
For those who prefer it, I made a magisk module with Freak07's wifi configuration for easy, systemless installing :)