yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
They should have been there when you installed the substratum app. But no matter, you can use mine if you'd like :good:

https://drive.google.com/file/d/1j9xzBkXPdpniB3_oy1Wr30qbKkWzeIAX/view?usp=drivesdk
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] JimSmith94:
I tried that with the zip of 1.05, but when I went to install from /data in TWRP, the zip file didn't show. The permissions were rw-rw-rw, should they be set to something else?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
Great update.

All working and functioning fine.

Thank You
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Juzman:
Yeah, it's strange I removed / readded fingerprints, then the banking app would error when I tried to open it and use my fingerprint to log on. Clearing data/cache didn't fix it and had to uninstall / reinstall and setup my banking app again.

So easier for me to just copy the zips to /data and flash :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
Yeah I get it. That was my one caviet, all my apps were still working. If I had to redo auth on other apps I would be going the route with /data or otg.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] marbertshere:
Can someone humor me and tell me what kind of battery usage you have listed under "active" drain in the EXKM battery monitor?

I seem to average around 9-10% an hour, I was hoping I could get a ballpark idea of whether this is good or not. I've heard of some ppl getting 5-6%/hr.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
Current active drain is 10.34% with wifi usually off (7am-5:30pm), data always off, and battery saving locations services always on. Idle drain is .73%. Phone up time is 217hrs 20mins (about 9 days). I being up up time because as the up time increases and the battery monitor collects more data it seems like the battery data gets worse. After every restart I'll have about 9% active drain. I see 6-7hrs SOT if I try to run it dead and charge every night but I refrain from doing this so as to keep my battery licinfia longest life. Typically after a day of use my phone is at75% battery life and I have had 1.5-2 hrs SOT. I don't game. That's from messaging and surfing the net.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] marbertshere:
Hmm ok thanks. Seems we have about similar battery life. When you say battery data gets worse, you mean that the reported battery life is worse, not that that the data is less accurate, correct?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
That's correct. It's just getting more accurate really because of the larger sample size it has. I used to get 8% active and .55-.6% idle drain, but that doesnt happen anymore.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] madscribblerz:
I use l speed set to balanced profile and a few performance oriented tweaks - in my testing focusing solely on battery didn't save that much and made the phone way less responsive.

This is also at 80% brightness.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
On ex1.05. Thanks for all your hard work, flar.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
People should definitely take what you said into consideration when striving for battery life. All too often we concentrate on edging out some extra screen time at the expense of why we bought a flag ship device to begin with. This thing gives us an easy 4-5 hours SOT and is blazing fast most of the time. As you mentioned, performance takes a noticable hit when trying to second guess what Google created. Screen brightness and signal strength have a much bigger effect of battery than kernel settings. I lose over an hour of SOT at home if my WiFi is off as we have very little signal out here in the boonies.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
P preview has fantastic battery life and is as responsive or more than O.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
This interests me. What's your active and idle drain? I know the articles I saw said google worked on the doze settings and how things were optimized for better battery life but I didn't see any quantitative numbers.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nithin1992:
Coming back to Android after spending the last couple of years on iOS. The monthly security patches and Magisk (Xposed back then) stuff is new to me.

Could someone please be so kind to guide me on flashing the kernel (mainly need it for the color profiles) and Magisk? Also how could I do the monthly ota updates? Hopefully that's possible without the need for a full factory image flash?

Also, thanks for the kernel @@flar2 , reminds me of the flashing spree I was on with my Nexus 5/5x.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Read this guide thoroughly, then when you get a good understanding, we'll be happy to help you on your way. Welcome back! ??

https://xdaforums.com/pixel-2-xl/how-to/guide-unlock-flash-root-pixel-2-xl-t3702418
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
There are no sound controls. I don't know if I'll be able to do anything with headphones, it's digital now.

I just have to update the app for Oreo
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] apascual89:
That would be great. Thank you
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
Yup! Thanks guys!!

What is the exact motion to get the sweep to sleep to work. On sweep to sleep sweep right I kept trying to swipe right and then swipe from the left edge to the right and couldn't get it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] apascual89:
Sweep to sleep works only on the navigation bar.

Swipe from the left edge of the navigation bar to the right.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
Thanks. It works well.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sruel3216:
my bluetooth headphones keep skipping. like a bad connection. would there be any settings i could mess with in exkm to help? dev options

maybe?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ilal2ielli:
Anyone else's charging stuck at ~1000 mA?

Estimated time from 20% to 100% will be about 4 hours.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mgear356:
It's like this on stock kernel too.. Off your screen and it will charge at full speed
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xflowy:
[MENTION=4684315]flar2[/MENTION]? :)

also: the exkm app does not detect the kernel and offers updates (or not).
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ilal2ielli:
Even with the screen off, still stuck at ~1000mA.

Flash Kernel was like that too for the first few releases, but then charged at full speed available with the most recent releases (~2400mA to 2800mA).
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] elreydenj:
I would have to agree with this. Seems to be charging at an extremely slow rate comparable to what it used to...

Edit: Seems to start off very slow and then begins to fast charge soon after.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
So do all EX kernel manager options work like cpu governors, GPU frequency settings, cpu max and min settings, low memory killer, etc? Are the performance mode and battery saving mode toggle switches working? My cpu frequencies seem to be all over whether in power saving or performance mode. I do notice that the cpu load increases to 40%-50% when I press on battery saving (green) mode. It's on 20-30% in performance mode. This seems counter intuitive.

If so, anyone find any good settings already?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Charging is 100% identical to stock.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
I have to update the app
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matt1313:
Is anyone getting deep sleep?

I haven't seen it hit that yet.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
I hit it for 7% of the time through the night. That seems low.

Anyone on my post above?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] LLStarks:
This kernel needs to be synced with upstream. Please use Nathan Chance's work.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xflowy:
and regarding the maple scheduler implementation?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ilal2ielli:
Thanks, I'll just watch it over the next few charges.

Phone fully charged, off charger for six hours, four and a half were deep sleep.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Mine is fine, battery is excellent. Something is keeping your phone awake.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nithin1992:
Oh, actually I have gone through them but it seems to only cover flashing and rooting which I'm quite aware of at this point, thanks to that thread.

What I need to know is the best way to minimize re-flashing for each monthly Google ota. Anyway I'll keep looking more at that thread at the same time.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Easiest way is to fully unlock the bootloader, and fastboot the monthly factory images. Takes about 10 minutes once you figure it out :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Another way is to fastboot boot TWRP instead of flashing it. Then always back up the stock boot.img. When the OTA comes, boot into TWRP, restore stock boot.img, then reboot to system and the install the OTA update.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nithin1992:
This is perfect! Just to be clear this works even with Magisk installed? Obviously I'll lose Magisk temporarily when I'm back on the stock boot.img. I was under the impression that there are more changes that would be applied by the custom kernel / magisk and would need more work.

Thanks, glad to get back to your kernel !
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
Does anyone know if it's possible to activate wireguard via tasker? I don't need to go into the app and toggle certain config files, is just like it to toggle the switch in my notification pulldown menu to the on position when connected to certain wifi networks.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Restoring boot.img removes Magisk.

I just thought of one more thing, you might also need to restore dtbo.img for the OTA to work, not sure. I usually flash the full factory image as suggested by [MENTION=3730810]Badger50[/MENTION]. You just have to remove the "-w" option from the flash-all script so it doesn't wipe your data.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] madscribblerz:
TWRP -

https://xdaforums.com/pixel-2-xl/development/twrp-alpha-pixel-2-xl-t3698148/page164

Kernel -

This one

Magisk -

https://xdaforums.com/pixel-2-xl/development/2017-11-6-root-pixel-2-xl-t3701176/page189

In a nutshell -

Download twrp - it has two files to it - a zip and an Img.

Unlock your bootloader & unlock critical

Flash your factory android image (I recommend deuces script for this, the phones have two partitions and this script keep them on sync)

On your pc boot your phone using the fastboot command - fastboot boot TWRP.img

Once in twrp, flash the twrp zip, kernel zip, and magisk zip in succession.

Reboot system. Profit.

For a monthly update, flash it using deuces script, then follow the steps above again. You can flash without rewriting data which I do for point releases but not major ones (for instance wipe between 8.0 and 8.1, but not for security updates to 8.1)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bemagrp:
In my opinion flash-all with -w full factory image is much better way than do ota.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
I have been on stock about 90 percent of the time. When rooted with magisk and with a number of different kernels. I just fastboot flash the current boot.img. When this is done, you have stock recovery, kernel and boot. I then sideload the update.zip. No issues at all.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] madscribblerz:
I lice deuces script to flash. It makes sure the a and b sides don't get horked.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nithin1992:
[MENTION=4684315]flar2[/MENTION] [MENTION=5666801]madscribblerz[/MENTION]

Thanks for your inputs, I'm now on the Kernel with magisk, glad to see the community here as helpful as it once was! Once April's OTA is here, I'll probably try to do the sideload with stock boot image and see if it works, if not will do the flash. Google's come a long way from the Nexus 5 times, to a point where the stock ROM and kernel is pretty solid and has plenty of sweet features, which is why I want to stay as close to stock as possible without having to go about doing flashes often.

Here's the steps I followed, Factory image flash & unlock using Deuce's script -> Boot to system to verify, copy zips -> Boot latest TWRP image -> Install kernel, magisk -> Done

Double tap to wake - Glad to have it, Google's Ambient display was something I disliked since you couldn't action on the notifications.

Color Control - I have a color profile setup now and my screen looks much more nicer, whiter, totally worth it. However, any idea if someone has made a profile for our device using a colorimeter ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Any plans for a P1 kernel, now that Google has released the source?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bradhoschar:
Clickin on the Taimen link shows 'Sailfish' as the download. Is that just a typo?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
Anyone else getting worse battery life on the March update? Could it have anything to do with the finger print scanner fix? Is it scanning and essentially "awake" more now?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ocbooger:
It's the right one.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nithin1992:
Nope, most likely placebo or rogue apps. I'm at 6 hours SOT right now with 32% battery left. Great job as always [MENTION=4684315]flar2[/MENTION] !
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
It looks like I'll be at 6-7 he's SOT too in the long haul, but the EX kernel manager says active drain is 11.5% and idle drain is like .75%. What are you seeing? This is a slight increase in both fields from what I had before.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nithin1992:
Haha I've turned off the Battery Monitor. Seeing those stats seemed to cause me more harm than good lol.

I'm happy with the pixel's battery as I'm coming from an iPhone 7, 6s, Nexus 5x line of phones and this way I don't go all OCD about trying to squeeze out every last bit of battery.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
Good point. I may try that. The OS babtery stats seems to tell a good enough story anyway. Right now I'm at 75% battery and have had 2hrs exactly SOT. That'd equate to about 8hrs battery life and SOT. That's pretty good by my estimation.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Eventually. I haven't checked yet, but Google is usually a bit late with the source for previews. I actually don't blame them, they probably want at least a few weeks with early adopters running a clean stock setup, to find bugs.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
They released it a couple hours after dropping the factory images: https://android.googlesource.com/kernel/msm/+log/android-p-preview-1_r0.2/
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] 12Fully:
Are you running Xposed? Mine is always around 18-20%
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mac796:
Will hbm ever come to this phone. Or is it not gonna happen?

I think I remember you said it was too much of a pain. Thanks for your work
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
I need an LG phone to reverse engineer.

I looked at the v30 kernel source and it looked like the commands for hbm come from userspace. I need to know the commands.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] wtherrell:
No hbm is one of my regrets for getting this phone.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mac796:
I know I used it all the time on my motorcycle in the sun
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
I did update the hbm widget app to be more useful.

Now it works on any phone, even without root, to force max brightness. No special extra high brightness for this phone, but auto mode still helps a lot in the sun.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Update!!

Download:

ElementalX-2.00

Changes:

-Initial release for P Preveiw 1
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TonikJDK:
Bootlooped on initial install, saved the log. However I dirty flashed it over Magisk rooted stock boot. Flashed it again after running flash-all with -w removed., it still boot looped. Well not really a full loop, it shows the white G screen then bounces to fastboot mode and stays there.

Install log file attached, and I am happy to continue testing anything you need. I am quite comfortable with the procedures and will get myself out of trouble. If not I am still under warranty.

EDIT I have seen this before. Let me flash boot.img to both slots and try again. Leaving work now, will get back to you in 90 minutes or so.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Definitely not a kernel issue. I have installed with and without Magisk and it works.

I will re-upload to AFH just in case there is something wrong with the zip. EDIT: md5sum checks out, it should work. I just reinstalled it again.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TonikJDK:
No it is not. I have successfully installed it at home now, no problems at all. I don't have where the error happened before totally nailed down, but it was somewhere between the keyboard of my computer and my chair.

Sorry for wasting you time sir.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] JimSmith94:
Is this only for P or is it backward compatible with Oreo 8.1?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Just for P
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Awesome! Working great! Smooth and fast.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Xg3nFatality:
I don't know how this is an issue but sadly it is for me. I'm running Nitrogen custom ROM, 3-10 build with march security, I know I need to extract the content of the kernal and remove the dtbo.img file from it. After I remove the dtbo file, I zip it back up touching nothing else. When I try to flash the file in twrp it tells me that it is not a valid file and errors on me. I've unzipped and rezipped on a computer, I've done it on my phone and same thing each time it tells me it is not a valid file. Any ideas? :confused:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Namolas:
I had the same problem when unzipping and then trying to re-zip. Instead use 7-Zip to explore the zip without unzipping it and delete the dtbo.img that way.

7-Zip
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Xg3nFatality:
Thanks a lot, it worked like a charm!

Anyone have any idea as to why this occurs though? :confused:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jbarcus81:
Oh my... I've been driving myself insane trying to get this kernel to work with Nitrogen ... It was this easy the whole time!? :silly::silly::silly:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] The Wrath of Kahn:
-There's been some confusion when it comes to installing TWRP and/or modified kernels on the Pixel 2XL... does anybody know for certain if doing so prevents you from being able to install OTA updates? I currently have Magisk installed but haven't installed TWRP at all. Last time I tried to apply an OTA by following the instructions in the Magisk forums it didn't work, so I'm reluctant to do anything in recovery at this point. Anybody know for sure?-

Nvm, plenty of people are answering this one... I'll sort it out.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TonikJDK:
Hit the easy button.

Download the full image each month.

Edit the flash all bat file and remove the -w near the end to preserve data and apps and run it.

Boot to twrp and flash the kernel, then flash the magisk zip.

It's a 15 minute process, clean, easy and repeatable. Been doing it that way since my Nexus 6.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] The Wrath of Kahn:
Thanks for the summary. That sounds like what I've managed to do on my own before. I was hoping there was a way to avoid this sequence because I have a non-technical friend with the same phone and wanted to simplify the process as much as possible. I'll just avoid installing elementalx on her phone so we can bypass needing TWRP.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TonikJDK:
Don't need to install it, just boot to it. You need to do that anyway to install Magisk. Not trying to change your mind, just being clear.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] The Wrath of Kahn:
But I'm assuming that, if I install elementalx using the one time boot method to TWRP, that would still prevent OTA patches from applying until I restore the stock boot.img?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
That, and not being rooted or have a custom recovery :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] liver20:
And if to make factory reset without wipe internal data... Better wipes in twrp, right?

Enviado desde mi Pixel 2 XL mediante Tapatalk
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Correct. The twrp "factory reset" will not wipe your internal storage. You'd need to go to advanced wipe to do that.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sam0yed:
Hello!

I have ElementalX working finally in my Pixel 2 XL, but to my dismay, the EX Kernel Manager app doesn't have the options to enable gestures. I have Magisk v16 installed and have granted SuperUser access. What could I be doing wrong?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Swipe the app away in recents and open it again, maybe didn't get root access when it first started.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sam0yed:
I have just now, still giving me the same options.

I can change CPU stuff, and all that. But I can't seem to find the option to enable gestures like sweep2sleep and all that. It also wasn't included during the installation when I flashed it in TWRP.

---------- Post added at 07:50 PM ---------- Previous post was at 07:37 PM ----------

Found out the problem.

I'm flashing a patched boot image so I can install Magisk, so when I flash the EX kernel then flash the Magisk image, it wipes the EX kernel with it.

Any workaround I could do so I can have EX kernel and Magisk together? I always get stuck in a boot loop or stuck in the boot animation if I flash the zip so I resorted to the flashing the patched boot image.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] TonikJDK:
Boot to twrp, flash the EX kernel. Stay in twrp and flash the magisk zip. Reboot. If the app isn't there dig into the zip and install the apk. If you had to do that reboot once more.

The above is using the beta 16.2, but should work with any of the 16 plus versions.

Just saw you mention bootloops when you flash the magisk zip. Flashing EX first should avoid that. If not, use the flash all bat file and flash your system back to stock so we know you have a clean setup.

Just edit the flash all first and remove the -w near the end to keep your data.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Flash the Ex kernel, and then magisk via twrp. That's the method most all of us use.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] p70shooter:
Are you on stock or custom rom?