yashsingh1/xdaforums huggingface dataset:
[Google Pixel 6 Pro] Freak07:
Update to 1.8.4

Hey guys and girls,

So here´s the next update. It´s kind of an off schedule update, as I planned to update the kernel with the next security update/feature drop.

But in the light of recent events regarding the new exploit called "Dirty Pipe" (more info here), which is similar to the "Dirty Cow" exploit from a while ago, but easier to exploit this time, I decided to release an update ahead of schedule.

This exploit was fixed in linux-stable 5.10.102, as opposed to a single commit in AKC (android kernel common, commit here). This shows once more why merging linux-stable is beneficial as explained in detail in the OP.

Since one of the key aspects of this kernel is security and staying on par with upstream (which often fixes exploits way ahead of android security bulletin updates, even before an exploit is even known or fixed via a patch on the security bulletin) I decided to release this update as quickly as possible, so this exploit is fixed on devices running this kernel.

Several other notable improvements and changes in this release:

Bring in scheduler updates from Android 13 Developer Preview, which aim at improving task placement. (adjust powerhal accordingly)

BFQ IO-Sched is now on par with linux-mainline.

Several fixes to mm subsystem, f2fs and others.

Several other improvements are included as well. More details in the changelog.

Download is below.

Updated instructions in the OP!

Changelog:

- linux-stable 5.10.103

- contains fix for the dirty pipe exploit

- built with clang 14.0.2 prebuilt by google

- improvments from kernel/common

- fix memory leaks

- security related patches

- mm improvments

- f2fs fixes

- scheduler fixes

- for details please check github

- built with improvements from A13 Dev Preview to display driver

- other changes please look at my github

Download:

Downloads for : -Android- Generic Device/Other | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com

Instructions can be found in the OP! Please follow the instructions to avoid any issues.

If you´re coming from another kernel restore stock boot.img, dtbo.img, vendor_boot.img and vendor_dlkm.img before flashing. Thank you.
[Google Pixel 6 Pro] Freak07:
Android 12L Kernel

Since the Android 12L kernel I uploaded a while ago, without any further (guaranteed) form of support, is affected by the previously mentioned dirty pipe exploit and was downloaded over 300 times, I decided to rebuilt the A12L kernel as well.

It´s on par with the above 1.8.4 release, but made to work correctly on A12L.

Enjoy!
[Google Pixel 6 Pro] Az Biker:
Dude! Much respect for your diligence and hard work!
[Google Pixel 6 Pro] swieder711:
Upgraded from 1.7 to 1.8.4 on the February release with root. Buttery smooth.
[Google Pixel 6 Pro] lattosimbaste:
Did you flash the updated kernel directly or did you restore stock boot.img, dtbo.img, vendor_boot.img and vendor_dlkm.img before flashing as suggested?
[Google Pixel 6 Pro] swieder711:
Direct over the top flash with Franco Kernel Manager
[Google Pixel 6 Pro] Gordietm:
I've noticed on the latest build that when I reboot, the "Google" shows up then disappears, then comes back and the "G" comes on and reboots. It does this every time.
[Google Pixel 6 Pro] Utini:
Also updated kernel on february build. Works fine :)

Uninstalled old module, reboot, flash new kernel, reboot, profit.

Just make sure to do the final reboot with airplane mode disabled due to the still present proxycontroller bug :S
[Google Pixel 6 Pro] jcp2:
I direct flashed over 1.7.0 and am getting reboots after unlocking the phone. I had flashed the A12L radio over 1.7.0 a week ago with no issues. I'm not sure what to do now. :(

UPDATE... Re-flashed 1.7.0 and no more reboots :)
[Google Pixel 6 Pro] swieder711:
How did you flash the A12L radio? Did you see any improvement?
[Google Pixel 6 Pro] jcp2:
fastboot flash radio A12L_B3_radio-raven-g5123b-97927-220126-b-8118856.img ****big improvement :)
[Google Pixel 6 Pro] Blade22222:
I'm running the 12l radio with the newest kernel and have no problems. Maybe a bad flash or download. I also noticed better bandwidth with the 12l radio.
[Google Pixel 6 Pro] Admiral2145:
Where did you get the new beta radio file from?
[Google Pixel 6 Pro] Admiral2145:
Do u have the link for pixel 6 version?
[Google Pixel 6 Pro] Texan1:
Running A12L Beta 3 with Kirisakura 1.84 12L kernel.

CPU seems to be running hotter than usual, I normally notice it hovering in the 80's (degrees Celsius) but it's been 95 degrees since yesterday.

Not sure how accurate EX Kernel Manager is but is this something to be concerned about?
[Google Pixel 6 Pro] murphyjasonc:
I did the same. The improvements are awesome! Better connection and much faster data speed's.
[Google Pixel 6 Pro] Admiral2145:
Do u have the link to pixel 6 version?
[Google Pixel 6 Pro] murphyjasonc:
You must have something running in the background. That's way hotter than what mine is.
[Google Pixel 6 Pro] Freak07:
It's not normal for your CPU to hover around 80°C either if you do not much with your phone and haven't changed the sensors the temp is read from and displayed in exkm. (No clue if exkm allows for this, but i know dev check from flar2 does)

If you do some gaming, watching videos, interact a lot that can be higher of course.

Ambient temp for me is about 20°C. While composing this message and checking exkm it's at 43°C for the moment i switch to exkm and quickly drops into the low 30ies if I just let the phone sit at the live freq view.

Probably an app or a service in background requesting resources. I'd check either via adb shell or terminal CPU usage via "top" and.

In terminal just type "su", grant Superuser access, rotate to landscape and then type "top". (All without the quotation marks).

Check if an app or service constantly stays at top if you don't interact with the phone.
[Google Pixel 6 Pro] dd805bb:
Damn DEV here rocks. Thanks for the 12L update. Just was reading about the "dirty pipe,' got on here and the dev already updated it. Wow. Just in awe. Thanks a million.. really shows you actually care about your work and people using your work. Thank you again. Can't say it enough.
[Google Pixel 6 Pro] Lughnasadh:
Just to add, I'm on 12L Beta 3 with the latest version of this kernel (1.84) and my idle temp right now is 29 Celsius. I'm using the Temperature 1 sensor in EXKM.
[Google Pixel 6 Pro] murphyjasonc:
You can get it by downloading the entire 12L factory image and extracting it.
[Google Pixel 6 Pro] Admiral2145:
The raven p6pro version works on p6?
[Google Pixel 6 Pro] murphyjasonc:
Sorry I thought you were asking for Raven. You need Oriole. You will need to download the factory image and extract the radio. If you can't do that for some reason let me know and I'll download it and post it.
[Google Pixel 6 Pro] Admiral2145:
Found it however, if u can post it that'll be great... Installing payload dumper and all this crap isn't worth it
[Google Pixel 6 Pro] murphyjasonc:
Yeah, it seems the took the factory image download down when they merged it with the stable version this month. You can try installing the Android 13 radio. From what I've read it's not as new as 12L but gives much of the same benefits.
[Google Pixel 6 Pro] Admiral2145:
Android 12L Beta 3 now available, adds support for Pixel 6 series

Google has released Beta 3 of Android 12L, which adds support for the Pixel 6 series and fixes a bunch of bugs.

www.xda-developers.com

Can you grab it from here and post the radio?
[Google Pixel 6 Pro] murphyjasonc:
Here you go.

https://drive.google.com/file/d/1_QlDEXjEuECJWfJaDv6-lEg7Jh-JZaez/view?usp=drivesdk
[Google Pixel 6 Pro] Admiral2145:
Your the man... Thx again 💪

Man... On tmo I'm now getting 5g ultra capacity(2.5ghz) with new radio... Old radio I was getting low band 5g (700mhz)
[Google Pixel 6 Pro] Utini:
Interesting to read about those improvement with 12L Beta Radio.
[Google Pixel 6 Pro] Jiggs82:
Another beta is out it seems lol

https://www.reddit.com/r/android_beta/comments/taf1pf
[Google Pixel 6 Pro] jcp2:
re-downloaded and re-flashed 1.8.4 over 1.7.0 and it reboots often. re-flashed 1.7.0, and no reboots again. I'll just have to wait for March update and see if it fixes itself.
[Google Pixel 6 Pro] Freak07:
Could you try to restore completely to stock kernel by following the guide in the faq (flash boot, dtbo, vendor_boot and vendor_dlkm), remove any magisk modules or other modifications done on the device and afterwards flash 1.8.4 again.

In case you´re still getting random reboots please upload the contents of sys/fs/pstore immediately after the phone booted back up. Just zip up the whole dir with any file explorer that has root privileges.
[Google Pixel 6 Pro] jcp2:
I'll give it a try when I get back from physio later this afternoon. Thank You for your reply.
[Google Pixel 6 Pro] Admiral2145:
I'm straight for now... Going to test this out a few days and see how the improvement is in different areas.... curious if the battery drain is better or worse.
[Google Pixel 6 Pro] DanielF50:
You need to manually select the correct CPU temp sensor under "temps" in EXKM - I don't know which sensor is the correct one, but "Temperature 25" (always 90 degrees) definitely isn't the real CPU temp.
[Google Pixel 6 Pro] Texan1:
Ah, thanks for the replies all, yes it does seem to just be stuck on 95 permanently!

How do I work out which temp sensor to use from all of these though?!
[Google Pixel 6 Pro] DanielF50:
I genuinely don't know. I don't think theres one temperature for the whole SOC, just cores and other sensors etc, so I would probably just select one of the 33-34 degree ones as they seem to be the most sensible option.
[Google Pixel 6 Pro] Lughnasadh:
I use Temperature Sensor 1 in EXKM. The temp matched up with another app I use so I decided that was good enough 🙃
[Google Pixel 6 Pro] TheLoonyRebel:
Dumb question but this is usable with the A12 Feb 2002 second build, right? Just straight flash it in fastboot nothing else I need to do?
[Google Pixel 6 Pro] Admiral2145:
Yes... I'm on 2nd Feb update no issues
[Google Pixel 6 Pro] ttle54:
I'm on Android 12L Feb patch, Kirisakura kernel, latest Magisk build. I flashed the Beta March build today and having boot loop problem. Please be advised
[Google Pixel 6 Pro] Admiral2145:
You can't flash that over 12L... you need to be on 12 ťhen go to a13.
[Google Pixel 6 Pro] Lughnasadh:
Do you mean you updated to the QPR Beta 1 and then flashed this kernel and got into a bootloop? If so, see F.A.Q. in Post #2 on how to get back to stock. Or just reflash QPR Beta 1.
[Google Pixel 6 Pro] ttle54:
No, I already have this kernel flashed on Android 12L Feb patch. I flashed the QPR Beta1 on the phone and now stuck in boot loop. Just successfully flashing QPR Beta 1 image on the phone and out of the loop. Flashing this kernel on after installed QPR beta1 now.
[Google Pixel 6 Pro] Lughnasadh:
So you reflashed QPR Beta 1 and all is good? And this kernel is working on QPR Beta 1?
[Google Pixel 6 Pro] ttle54:
Yes, so far so good, having no issue now
[Google Pixel 6 Pro] Lughnasadh:
Good to know 👍
[Google Pixel 6 Pro] ttle54:
I jinxed it....as of right now, here are the problems I having with Android 12L QBR Beta 1 and Kirisakura kernel :

1. No audio/sound from Spotify, YouTube, phone calls

2. Screen sensitivity is terrible. It won't register my clicks on the edges

3. Videos in Messenger displaying black screen

I submitted a case to Google Support couple minutes ago.

For now I'm flashing back to Android 12L Feb Patch with Kiri kernel.
[Google Pixel 6 Pro] zetsumeikuro:
Chances are the kernel is not fully compatible with the QBR Beta 1.
[Google Pixel 6 Pro] Jiggs82:
I flashed latest 12L kernel 1.8.4 over QBR beta 1 update and I got no issues with sound from audio or phone calls. Everything is fine here
[Google Pixel 6 Pro] zetsumeikuro:
That's good to know. Thanks!
[Google Pixel 6 Pro] jjblaster3:
it works fine for me! from ur screenshot it seems u flashed the wrong kernel version, flash the one linked here https://xdaforums.com/t/kernel-08-0...pixel-6-pro-aka-raviole.4358435/post-86541807

also probably not best to report to google support if ur issue stems from a custom kernel (non-official kernel) but regardless should be fixed by flashing the correct one or returning to stock kernel
[Google Pixel 6 Pro] Freak07:
thanks for reporting back that it still works on the "new" 12L beta. It sure gets confusing with all those builds out now.

I just checked again and there´s no kernel source pushed for that new beta build for Pixel 4 or Pixel 6. So great news that it still works fine for you.
[Google Pixel 6 Pro] Utini:
No idea if it us relevant but my CPU Temp is at 49C while doing some chrome browsing on reddit/xda. I am not on Wifi and on low/medium signal with Dual-SIM atm.

Should it be lower?
[Google Pixel 6 Pro] Freak07:
seems fine to me :)

also depends on the sensor EXKM reads the temp from.
[Google Pixel 6 Pro] Admiral2145:
5% per hour battery idle drain with deep doze on 5g UC tmobile and 1.8.4 kernel... It's this normal for anyone else?
[Google Pixel 6 Pro] Freak07:
The kernel has not much to do with reception/radio. It´s handled by the radio/baseband firmware.

That said I get little to no drain with screen off. Overnight on wifi I usually lose around 2-3% over 7-8 hours.

On mobile data this increases of course, but not more than 1%/h if I don´t touch the phone for a few hours on 4g or 5g. (althought that doesn´t happen that often during the day)
[Google Pixel 6 Pro] Lughnasadh:
Just to add to what Freak07 said, I got a .6%/hr idle drain on 1.84 (12L) the 1st overnight after flashing this kernel on Wifi.
[Google Pixel 6 Pro] Texan1:
@Freak07 Do you envisage putting together a kernel for the new QPR3 Beta 1 build? Despair has said there are new touch screen drivers in this build and he thinks he's got a solid working kernel now.
[Google Pixel 6 Pro] Admiral2145:
So even tho I'm in deep doze it shouldn't be this high... What can I do to find out why it's so high?
[Google Pixel 6 Pro] Lughnasadh:
1st step would be in terminal type "su", then "top" and see if you have a process running amok.
[Google Pixel 6 Pro] Freak07:
Yes, it seems they have pushed the source now.

When I find time I'll put out an updated build.(y)
[Google Pixel 6 Pro] DespairFactor:
Touch issues are caused by Google updating the common driver for both devices. It doesn't impact oriole, but it impacts raven on custom kernels not built with the new source
[Google Pixel 6 Pro] Admiral2145:
System and u0_a206 are over 20% each
[Google Pixel 6 Pro] Freak07:
Do the updated drivers work backwards with the non beta Feb branch?
[Google Pixel 6 Pro] DespairFactor:
They should, but the issue is still some of the modules in the dlkm image cause booting issues on the standard 12(non 12.1/12L) builds. I haven't looked into which modules cause the issues though.
[Google Pixel 6 Pro] Texan1:
I'm testing out QPR3 Beta 1, is the kernel for it dated older than the kernel that came with the 12L Beta 3 build?
[Google Pixel 6 Pro] DespairFactor:
Commit sha and last commit date are different, last commit date is Jan 20 on QPR3 Beta 1 and Jan 21 on 12L Beta 3.

You can see the commit history here and notice the couple additional commits on the QPR3 Beta branch

Log - b7ac987c82261b1c891f7177251e5823f6af4a01 - kernel/gs - Git at Google
[Google Pixel 6 Pro] Lughnasadh:
You need to put it into landscape mode to see the package name all the way to the right. And watch for a bit as CPU loads and memory will go up and down. See if they stay high.
[Google Pixel 6 Pro] ttle54:
Yep, good call, I flashed the wrong kernel. Just reflashed the correct 12L kernel, the audio sound issue is fixed.
[Google Pixel 6 Pro] scloutkst:
I understand the 12L kernel is unsupported, however I wanted to leave feedback either way. The display driver update included that was backported from 13 seems to be semi broken. Long presses are not recognized properly near the edge of the display (say when going to hold the backspace key on the keyboard) I believe the palm rejection specifically is broken. Just an educated guess. It goes way too far into the display.

When turning down the sensitivity for the edge swipe for gesture navigation to reduce the area where it is effective this helps slightly. I can long press and hold down the backspace key for normal operation, but still have to hold the very left edge of the key.

Flashing back to the stock kernel fixes the problem and restores normal behavior. This allows me to use the backspace key normally and long press/hold anywhere on the key. This is not limited to backspace key in Gboard. It effects everything near the edge of the display.

On the June feature drop beta on pixel 6 pro. S3B1.220218.004

No big deal I'll just run stock for now.

Also of note aside from the issues at the edge, something just feels off about interacting with the display. Could just be in my head though as I thought I was going nuts when trying to figure out what was going on.

I appreciate you taking the time to push out these updates as quickly as you do. Especially given that your pushing a separate version just for us beta users. You're awesome!

Edit: Also phone crashes and reboots upon toggling off power saving mode in EX kernel manager. (Idk if this is an app issue or kernel issue, just figured I'd leave this information here as well)

Edit 2: it seems I'm not the first person to notice the issue with the display driver, after going back and rereading previous comments. Sorry for wasting your time. As it seems the updated source code for raven will fix this issue.
[Google Pixel 6 Pro] ttle54:
Agreed, I ran into the same issue with the long press at the edges. It won't register but as soon as I reflash 12L beta 3, it's working again. I guess just wait for the kernel update on QBR beta 1 patch.
[Google Pixel 6 Pro] Freak07:
Thanks for the reports! :)

Touch drivers need to be updated for the new beta firmware. That's what's causing these issues.

I'll try to get updated builds out when I find time :)
[Google Pixel 6 Pro] scloutkst:
No rush my dude. Thanks again for all your hard work.
[Google Pixel 6 Pro] Freak07:
can somebody that´s on stock A12L kernel and firmware (the June feature drop update) and has USB C headphones (I have the old usb c pixel buds that came included with a previous pixel phone) check if plugging them into the phone, playing some media, and plugging them out crashes the phone?

ideally take a ramoops in case the phone crashed. just zip up the contents of sys/fs/pstore and upload them here.
[Google Pixel 6 Pro] Freak07:
Android 12L Kernel (QPR3/June Feature Drop)

Hey everyone,

Here´s another build for the new Android 12L Beta Firmware which should hopefully fix the touchscreen issues a few other described.

Please report back, in case you ran into those issues with the previous build, that didn´t include the new source.

I wish everybody a great weekend.
[Google Pixel 6 Pro] Lughnasadh:
Just tested and working fine on my end. No crashes. Stock kernel on QBR3 Beta 1 (June Feature Drop). Using Google's adapter and AKG Y20 buds.

Sidenote: JamesDSP and V4A working fine.
[Google Pixel 6 Pro] subtha:
UPDATE: followed your instructions about rooting first, it's all good now. Thank you!
[Google Pixel 6 Pro] Burt Squirtz:
Hmmmm. This could be a fluke or a glitch in my phone itself, but the device seems to randomly heat up a lot more than on stock kernel. Seems to happen for no rhyme or reason -- for example playing Spotify.

@Freak07 hey, this might be worth looking into:

https://xdaforums.com/t/module-fingerprint-scanner-booster.3688637/

Supposedly it might help the speed of the fingerprint scanner°. Problem is, it won't install in magisk. And there's no TWRP to install it. I tried the terminal commands- but for some reason it just wouldn't work.

I don't know so actually improve the speed but it seems to show some promise.
[Google Pixel 6 Pro] Freak07:
great to hear :) enjoy!

there´s no telegram group for this kernel. everything is here on xda.

great to hear. I´ll include the vbmeta requirement in the OP and the FAQ.

That might help a few other people.

probably not related to the kernel. most likely an app/service requesting resources in the background and taking CPU share.

Used spotify/google podcasts for a few hours yesterday and nothing out of the ordinary.

If it happens you can check for a stuck background process by opening terminal.

then typing "su" and grant terminal app su access. Afterwards type "top" and rotate your phone to landscape.

If any app/service constantly takes a big portion of CPU share and is on top of the list, you know what´s happening.
[Google Pixel 6 Pro] Freak07:
Update to 1.0.5

Hey guys and girls,

Alright here´s the next update. It includes 5.10.45 and a big portion of interesting kernel/common commits.

There are some security fixes, deadlock fixes, probable performance improvements and scheduler updates.

A few commits linked here to get an impression:

Saving a few cpu cycles, mm improvements doing the same, performance improvements in microbenchmarks and fixing a potential deadlock.

The complete set of commits you´ll find on github if you´re interested.

Another optional update I´d recommend running together with this release.

In the download folder you´ll find a magisk module, which you can flash in magisk manager as usual, that alters the config file for the stock powerhal. The module is called powerhint_p6 in the download folder and will simply show up as Powerhint_Module in magisk manager.

For now the only change is that the max cpufreqs will be restricted when the screen is off. That means during music playback or other operations that are done while screen is off, you might see some power savings.

The power savings might be less over a 7-8 hour period when your phone is just sitting there doing nothing overnight. But results can vary there as well, depending how often the phone wakes up due to installed apps, setup, network quality and a bunch of other factors.

For now I didn´t want to restrict the max freqs too far as this could cause stutters during music playback, especially during streaming of high quality audio or flac playback.

Current max limits for cpu on screen off: little cluster to 1,4ghz, mid cluster to 1,49ghz and big cluster to 1,58ghz.

I tested this extensively the last two days and couldn´t get music to stutter.

So if it sounds good to you, it´s included in the download folder. It works also on stock kernel.

I´ll keep that here just in case.

I discovered that my compiled vendor_boot.img is a userdebug build. That´s the reason developer settings crashed on 1.0.0, due to a selinux-denial that happens because of userdebug.

Since we don´t modify anything yet that ends up in vendor_boot.img please flash back the original one from the factory image you´re device is running on in case you´re still running it.

Boot to bootloader and execute the following command:

fastboot flash vendor_boot vendor_boot.img

Then proceed to flash the other images as described in the guide in the OP!

Changelog:

- linux-stable 5.10.45

- updates from kernel common

Spoiler content hidden.

- optional powerhint magisk module to possibly save a little bit of battery on screen off scenarios like music playback.

Download:

Downloads for : -Android- Generic Device/Other | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com

Instructions can be found in the OP!

Don´t forgot to restore the stock vendor_boot.img found in the factory image if you flashed 1.0.0!
[Google Pixel 6 Pro] subtha:
flashed 1.0.5 with no issues with booting, same for magisk; will report back if any issues arise, and will keep an eye on battery life over time.
[Google Pixel 6 Pro] ne0ns4l4m4nder:
Pixel 6 here, flashed latest no issues, running great, thanks as always!