yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
This is what is needed to flash back to stock. I dont like using the flash-all.sh

Hope this helps. I was trying to find a great explation of the slots

fastboot flash bootloader bootloader-marlin-*.img

fastboot reboot-bootloader

fastboot flash radio radio-marlin-*.img

fastboot reboot-bootloader

fastboot flash boot_a boot.img (Flash to active slot) a or b

fastboot flash system_a system.img (Flash to active slot) a or b

fastboot flash system_b system_other.img (flash to the inactive slot)

fastboot flash vendor vendor.img (Flash to active slot) a or b

fastboot flash modem modem.img (Flash to active slot) a or b

fastboot reboot

To clear all data run: fastboot -w
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] danon.brown:
flashing the dtbo is not mandatory. i had the same issue. just flash the patched image. See post #2
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
Good to see [MENTION=6842057]nathanchance[/MENTION]!! Getting my Pixel 2 XL for Christmas so I'm definitely gonna hang around here for sure... Still confused by all the active slot non sense and stuff since I'm still on a 6P, but I've seen some guys briefly explain how to properly flash already.

Anyways, can't wait to use flash!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
The dtbo file shouldn't be causing any sort of boot issues. I flash it every single time I build a new kernel. Are you sure you guys were flashing it to the dtbo partition?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] danon.brown:
well i definitely stopped reading after it booted. i was just flashing it to boot which would cause issues.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Doug8796:
Does this kernel fix any of the video recording mic issues on the 2xl?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I don't know but most likely not as I haven't touched anything like that deliberately. Who even knows if that is fixable at a kernel level?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I'm confused... What images are you talking about? All of the ones linked in this thread are Flash images. The command to flash them is in the OP under the installation section.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Phelicks:
[MENTION=6842057]nathanchance[/MENTION], please add into flash section the note that is needed to flash Magisk after all (if you had it before). I could not boot the device not doing that.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
You shouldn't need to flash Magisk to boot the kernel. Have you flashed any other mods?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
[MENTION=6842057]nathanchance[/MENTION]

No reboots today with all mods deactivated. It's only 3(Arizona time).. The day is still young.

I did upgrade to today's release. I'm sure that won't matter though.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Juzman:
I had TWRP, Flash 2.00 and Magisk installed.

Booted into TWRP, simply flashed 2.01 and rebooted, no Magisk.

Booted back into TWRP, flashed TWRP.zip, Flash.zip, Magisk.zip and rebooted - worked fine.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Well, yes, any time you upgrade your kernel, you need to re-root the boot.img either the flash.img or the zip.

The method for img's is

Have Magisk patch the kernel

Move patched-boot.img to your computer (you might need to move it to your download folder to make it visible on a computer.

Fastboot flash boot patched-boot.img

Fastboot flash dtbo flash-dtbo.img

Reboot

The method for zips:

Flash boot TWRP.img

Install flash.zip and flash-dtbo.zip

Reboot to bootloader

Flash boot TWRP.img

Install Magisk1456.zip

Reboot.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xflowy:
[MENTION=6842057]nathanchance[/MENTION] could u implement maple sheduler? more responsive than the two.

and: big frequency got stuck at 2457 mhz for the 4th time now and only reboot resolves.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joetheshmo:
See faq regarding maple io scheduler
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Keep me posted!

I don't plan to, sorry. Maybe I'll reconsider later.

I haven't had any issues with the frequency sticking. I guess I'll keep an eye on it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] andrewjt19:
I was talking about the ones posted here from the OP

Downloads

Primary: http://nchancellor.net/downloads/kernels/taimen

Mirror: https://github.com/nathanchance/fk-zips

My question was are those files directly from the Google Factory Images? The reason why I was asking is because I've had the roughest time getting TWRP to work workout corrupting the boot image and bootloops. Here's what I've done....

I used your guide for unlocking and installing TWRP found here.

I unlocked the bootloader successfully and attempted installing TWRP per the guide. Three times my phone either wouldn't boot, got stuck in a bootloop at startup or corrupted the recovery image so I could not enter it.

The last time I tried I successfully booted into recovery, flashed the TWRP zip, then Magisk, turned on the phone, used Magisk to patch the stock boot image, flashed it through fastboot and ----- no recovery, no root. Magisk not installed. I gave up, flashed back to stock and rocked the bootloader. I'm not sure if my phone is just temperamental with everything or I'm doing something wrong. I figure I will wait until development is more sound with everything and try again.

My main desire is to flash ARISE Sound Systems or Viper4Android. I do use Tasker with root options, but can wait. Sorry for the long reply, but maybe that sheds some light on my question.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xflowy:
u really content with cfq and noop? whats the default google gov again?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
I've actually noticed better battery life. Was waiting a few days for it to settle before I made any attempt to place a percentage or value on how much better it seemed. But certainly not worse or draining quickly in my case.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
The battery life you are noticing is coming straight from 8.1. it's a huge difference

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Well no, those are boot and dtbo images I have compiled because this is a kernel thread.

If you are installing TWRP, you should be using the zip to install the kernel as this device has combined the recovery partition into the boot partition. If you are flashing a boot image, you are going to lose TWRP. A/B devices are unlike any other device you've had before. There's a fairly steep learning curve. It's kind of outside the scope of this thread though, feel free to pick my brain in the unlock/flash/root thread I have in the Guides section.

Yes, I am. CFQ is the default scheduler.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Schedutil is the default governor.

Cfq is the scheduler.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
That wouldn't surprise me. As I stated, I did the kernel and 8.1 at once, so it is hard for me to be able to blame 1 thing or the other a day later. I take it you too have noticed bad battery on 8.1 , abuttino?

I just looked in my battery usage stats and button mapper used 12%! It wasn't even on the radar before the update. I disabled the "allow to run in the background" check. I checked its functionality after doing so, and all seems to be well. I'll see if that helps things to start. I'll just have to give things a couple days. Not happy with 8.1 so far. I wish I could go back. Google won't let us though from what I understand. No downgrades.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
What is button mapper?

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joetheshmo:
An app by flar2
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
It allows me to set shortcuts with buttons. For example, I have a double tap on the volume down button set to toggle my flashlight.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
So, the first people to ask something like that would be the developers of that app. Probably not the kernel issue.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
Just wanted to share a little story this morning. I was having a little odd behavior after updating to 8.1 so decided to flash factory image without wiping data and then reroot along with unofficial twrp and flash kernel 2.01... all was going well until my cat unplugged the phone in the middle of the flash. Needless to say after several hours of trying every angle I could think of to get back up, I ended up needed to wipe data along with the factory flash. Since the data was corrupt it kept getting stick on a red warning screen or a solid black screen. Booting to twrp from fastboot would never complete either.

SO...

1) Keep the cat away when flashing.

2) Always keep a copy of your recent Nandroid and Tibu folders on your PC as I'm back to the day I transferred my stuff from my 6P to the Pixel 2 XL which is November 15th. Not a huge loss but it's on me.

3) I'm not sure why people are still having so many issues rooting and flashing this phone. I started from scratch and using the 8.1 factory image I got up and running. Logged in and got it set up enough to know it was all good to go. Fast booted twrp and flashed twrp. Rebooted recovery with no issues. Flashed this kernel and the unofficial magisk and rebooted. Installed the lasted magisk manager and verified root and safety net. All in all, 6 hours to be 99% back to where I started from a trashed phone. Some of that time was clearly my fault (well my cat's) but none the less, it could have been worse.

Thanks again to Nathan and this whole gang of devs for moving this phone ahead.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
[MENTION=6842057]nathanchance[/MENTION]

It happened again last night. Was right about to go to sleep at the time, couldn't do anything about it. Was watching Netflix at the time. Last time was Android Pay.

Seeing a pattern here with SafetyNet apps though.

I'll try without the kernel today.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
I suggest a nice dog! Lol!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] MrBrady:
I haven't experienced that on 2.0 or 2.1 with Magisk
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Where did you get this version?

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jamiejames:
https://xdaforums.com/showthread.php?t=3708555
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] krweby:
I'm back on 2.0 flash it seems to have better battery life than 2.01. I'll know better with a little more use today if that is true. Didn't seem to be getting the same sot and the system seem to be using more power.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I won't tell you how to use your device but the kernel doesn't really cause drain. All you are doing is degrading your security. Not to mention 8.1 isn't even a week old, there is a break in period due to background optimization.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
[MENTION=6842057]nathanchance[/MENTION]

Today I am doing something a little different.

I am guessing [MENTION=3297454]thedude420[/MENTION] took the recent commits and built something called 14.520 in the unofficial build thread.

So, I used your IMG's then flashed thedude's zip by ONLY doing fastboot boot twrp.img (didn't flash TWRP, in other words)

Also, you asked a while back about how I was loading Magisk; I guess we'll see what happens with it zipped instead of boot patching.

It will be interesting to get down to the core of this problem, that's for sure
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
Nathan, what do you mean by "break in period?" Do you mean our devices will "get used to" 8.1 and gain better battery life, or will that not occur until future updates?

Also, can we go back to 8.0? I thought when dees_troy released twrp he said he discovered that you CAN'T go back on systems on the 2XL.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jasondowning85:
I have a story

I booted twrp, flashed flash, flashed magisk, rebooted and that's it.

Phone runs good.. no problems Thanks.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I have always used the image method, not a single bootloop on 8.1. Keep me posted.

The device optimizes apps in the background since Nougat. It means battery life and performance can sometimes be a little off until that finishes which can sometimes be a week or so.

No, you cannot downgrade, Google doesn't allow it for security reasons.

Like magic ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
No go. Was just browsing eBay and it rebooted.

Next, I'll try stock boot and dtbo.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TheDude:
Recent commits plus removed dtbo patching from code and installer script. That's what keeps those warnings from occurring.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Tylog:
8.1 and latest Flash Kernel , 3 Hours screen time , 65% battery left and this was my second full charging I have the device only two days. so far more than satisfied with both the phone and the kernel.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dnsmo:
I had been having the soft reboot and bootloop problem, so I decided to uninstall magdisk and do a clean install on all the stuff, flash factory boot.img, dtbo.img then booted to twrp 3.11.beta2 then flash Flash kernel 2.01 then the unofficial magdisk, and I will report back on how it goes.

Edit I just got the soft reboot now. The phone was idle and before that I answered a phone call. Then wanted to check again and it ask for pin since it was rebooted. :crying:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xryptic:
Hi, I saw a reply earlier that this kernel does not support changing color, but later somebody mentioned he can change color.

So my question, can this kernel now change color through apps like Ex kernel manager?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Mine hasn't crashed since I went to stock boot and dtbo.

We'll see!

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jamiejames:
I can change the color values with Ex. Did not know that.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
First cycle since fresh install. Crappy signal hurt the battery life but hell this ain't bad...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Tylog:
Yes, that's about the same as with me, I'm very satisfied, you should not expect much more.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
No complaints here Mr. Flash. First full charge cycle. If this keeps up, I may never need to charge again :good::good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Ericarthurc:
So I am not used to the new cpu governors that are on the Pixel 2 XL and was wondering what people here are using? On my Nexus 6p I was always a big interactive user and enjoyed it! I like high performance in applications and no lag, but also somewhat care about battery life. I would say I learn more towards performance though.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] clothednblack:
I think most of us are using stock settings other than color control modifications. No lag and great performance just by leaving the other options alone.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
[MENTION=6842057]nathanchance[/MENTION]

Haven't had a single crash on stock boot and kernel since I put it on. I'll still keep you posted though.

Sent from my Pixel 2 XL

---------- Post added at 12:59 PM ---------- Previous post was at 12:59 PM ----------

What theme is that?

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Swift Dark with fuchsia accent :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
How did you get the fuchsia accent?

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Select it under android system :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Thought so, just needed to know.

Thanks man!

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
Fuchsia? Really? :p :p :p
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Yeah, I had a feeling I'd hear from you on that one..I'd do exactly the same to you. I know it's not very manly, but the prison psychologist said that it may help control my anger towards others! Huh..too bad he didn't make it! :cool:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Stick with schedutil, it does exactly what you want it to.

Next step would be just flashing the Flash boot and dtbo images.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Without root?

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Well. I have root now, no reboots.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I'd still like to clear any doubts because I still have not had a single issue with these soft reboots, with or without root.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
So, you want me to unroot, then just flash your kernel and dtbo?

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
Welcome to the world of cutting edge testing / validating :p
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
I know that. Just want to be sure on what he wants. Nothing is ruled out when you live on the bleeding edge.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] fhem:
I have been running all his builds since he started building and I have had

NO REBOOTS

. I have been rooted and themed -- no twrp, no magisk modules, no tasker stuff -- just root and themed. How much additional stuff are you running???
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Tasker, no modules since I started on helping him get to the bottom of this, also deactivated theming as well.

Just did a hard reset on the day 8.1 was released (last Tuesday)

So, as far as I can see, I haven't had a single reboot since going to stock with Magisk. I will try harder to get it to reboot but, running without root is extremely difficult for me given my Tasker actions.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
If it isn't too inconvenient.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sruel3216:
im running the same theme. are you getting the problem with the navbar being white in some google apps their recent updates?...gmail, photos, google app
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
I will try something that really stresses the phone. A benchmark.

I'll do it unrooted with just your kernel.. Can probably live without root for most of today, so, I'll give it a shot.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Yep. Only in photos though. I don't usually theme Google. Gmail and the others are fine. It's mildly annoying, but I can live with it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sruel3216:
Ok cool. I talked to the dev and they are working on a fix for them all. He fixed Gmail and Google app but it didnt work for me. Il try reapplying. For now im on older versions of the apps. Google changed some of the code he said, causing the problem.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ram4ufriends:
Is it necessary to unlock the bootloader to flash kernel?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bkdodger:
Hi y'all... just checking in and following some of the posts here ... I've not flashed the latest kernel yet but I've experienced soft reboots on previous 8.0 and custom kernels...today on stock kernel with 8.1 first one .. it was good for days then today while using maps soft reboots until i had to shut down phone and power back up ...just has me thinking it's not just kernel related ... I'm only running Majisk with ad blocker... Any testing you may need i can do ...

Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Feel free to keep testing on stock and see if it continually happens there. If it does, it narrows it down to the commits Google added from 8.0 to 8.1.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bkdodger:
Yup will do ...originally I thought it was poor service area issue ..I had read some Pixel issues with bad cell service area triggering reboots on phones ...today I was in good area ...weird though that once it soft reboots it don’t stop unless I power down ...

iPhone BK X
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] murphyjasonc:
Same here. I have Magisk with several modules and flash 2.01 and haven't had any reboots. I seem to remember having some with full stock no rooted on 8.0 but none since dp2.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] marbertshere:
Question. I like to tinker around with some of the settings, and all I want to be able to do is underclock the big cluster slightly. I was able to do this on my last phone with EXKM, and I can now, but it doesn't stick for long. Seems like the system just sets it back to the max frequency. Is this a governor thing, a kernel thing, or an Android thing? Is there anyway to get it to stick? Thanks.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
It's most likely something from userspace (like the power HAL) resetting it but it could also be the governor. It isn't msm_performance (the traditional touch boost driver from previous devices) because it isn't compiled in. I'll try to look into it more but I don't think underclocking the big cluster is going to do too much for power (since the big cluster should very rarely be at max).
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Paddybecks87:
[MENTION=6842057]nathanchance[/MENTION],

Nathan, I hate to bother you, but I have an urgent question. I'm running 8.1 with your kernel (2.01, rooted with Magisk); I haven't really had a massive issue, but I do notice that the CPU temperature always quickly ramps up to the maximum (on both clusters). This is very apparent when switching between apps. The phone usually idles around 32°C, but strangely, it rapidly reaches 48°C-50°C (or even more) when opening apps, or, as I've said, switching between apps.

Is this behavior normal or should the CPU-temperature be lower?

I'd never dare blaming your kernel, you're doing some great work. I'm just curious as to whether it's okay or if these temperatures could possibly damage the CPU in the long run.

Thank you very much for your help!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
[MENTION=6842057]nathanchance[/MENTION]

After around 11am to 8:45pm yesterday, I was running your Kernel without root, no reboots. Went back to root and stock before I went to bed and was on my phone until about 1am. Fell asleep watching Netflix and no reboots this morning. I would know it rebooted because my weather program and Tasker wouldn't have been loaded, and I would have seen an immediate reboot.

It does not seem to happen with your kernel and alone.

So, what to do next? Try to catch a logcat while it is happening?

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Why don't you try uninstalling Tasker and see if that solves your problem s.