yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Pretty sure most folks are flashing it with the current twrp for the P2XL ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] tysj:
Flashed it perfectly fine with TWRP 3.2.1.-2
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
By removing security? That's not proper.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
I fastboot boot the latest twrp image and have no issues.

Lately TWRP can't decrypt your data, but there are several workarounds for that. If you have lockscreen security and don't want to disable it, then copy the elementalx zip to cache and flash from there.

Here is my exact procedure:

reboot to bootloader

fastboot boot twrp.img

adb push elementalx.zip /cache/

In TWRP, tap Install, navigate to cache, select the elementalx.zip and flash it.

Optional: push Magisk to /cache and flash it too

Reboot to system
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] fKm:
You can also adb sideload the zip. You don't have to copy it into the cache folder. That's how I do it :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Ghisy:
Hi flar2!

Does your kernel also include the wake-up delay for the screen that Google implemented this month? I'm still on the security patch from April (haven't been able to update) and using Flash's kernel. Nathan decided to stick with it for June and forward and well, I'm sure I'm not going to like this delay.

Just wanted to know! Thanks!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
For what it's worth, I am about to test a commit that may end up improving or eliminating the delay without reverting that change. Not to give false hope but just wanted to keep you informed.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
Agreed, I've been completely satisfied with TWRP since the last version was released months ago. I'm truly confused by the handful of people who continue to struggle with what should be the basics. I know Nathan's tutorial has become the go-to but this device needs to get a sticky FAQ to cover the dozen recurring hurdles people keep tripping over.

Sadly as comfortable as I am with my own routine, I lack the fundamental knowledge to be that guy.

Hopefully the few devs and mods that are really active in the troubleshooting capacity here can get around to something. I think one of the reasons it's not there yet as the SOP on "the basics" has changed a bit, a couple times since the beginning.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ChronoReverse:
Unless this is you, it looks like there's a patch that might fix this now: https://android-review.googlesource.com/c/kernel/msm/+/699786
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] tysj:
With the latest twrp, I don't have to remove any security prior to flashing. My pattern unlock works just fine in twrp.

My process starting from the factory image once I transfer over the twrp, kernel, and Magisk zips to my phone is:

1. adb reboot bootloader

2. fastboot boot twrp.img

3. flash twrp.zip in twrp

4. flash kernel in twrp

5. reboot and adb reboot recovery

6. flash magisk in twrp.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
That's the commit I was referring to lol....
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Ghisy:
Oh nice! Thanks Nathan! For the record, I was not blaming you in any way! You and flar2 are great devs and both of your works are appreciated!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jbarcus81:
Almost flashed your kernel for the 9.0 preview 3 .. noticed it has the June security release.. Better not :) just an FYI if anyone comes asking if they can use 2.01 on DP3 ... will remove the security patches. Learned about that the other day from this amazing thread.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
No issues here using Elx on ppp3
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jbarcus81:
Likely no issues.. I just wasn't sure if it had the June security release in it. The 3rd preview comes with June 5th security release.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Thanks for all the answers!

Is the P Kernel going to be upgraded for DP3/Beta 2?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jbarcus81:
I would imagine so.. [MENTION=4684315]flar2[/MENTION] is an absolute phenom and I'm sure he'll work on it for us. :highfive:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] buffal0b1ll:
Not without the source being released yet.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Oops!

Forgot about that. I should know better. Been in this for a while.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jbarcus81:
HA! I missed that as well.. DOH! :cowboy:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dalo04:
Do I need to remove the dtbo to use it on a custom ROM?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dalo04:
I'm trying to install june update in the latest RR but its not working. Here is the log. I removed the dtbo from the zip.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mistermojorizin:
This message shouldn't pop up on a stock rom, but it does on some custom roms. With 1.08 it started popping up on a stock rom. Yes, it's *mostly* harmless. Here's one situation tho: you reboot and walk away. If the phone works properly, it should go to alway on display until you come back and start it. If the internal error pops up, screen dims, starts to flicker a little, gets dark but most pixels are still activated and stays in this state wasting your battery till you come back to start. So harmless? mostly.

I fixed it right away. Because I'm on a stock rom and i shouldn't be seeing this.

adb reboot bootloader

fastboot flash dtbo_a dtbo.img

I got dtbo.img from the google factory image. I'm still using May while waiting for the unlock delay to get fixed.

Just giving an option to folks who want the message gone, like myself. I've lived with the message on a custom rom, and it's no big deal. But part of me wanting to go back to stock was to not have to deal with this message. It should not be coming up on a stock rom at all. But since it now does, here's a quick solution that worked for me.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Update!!

I restored avb

Download:

ElementalX-1.09

Changes:

-revert remove avb
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] madscribblerz:
1.09 is destroying my Viper/Dolby combo. Error about no init.d support.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
init.d was deprecated like five years ago, this kernel has never supported it
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] madscribblerz:
Not sure 1.08 works and 1.09 doesn't then. I'll try to upgrade and capture logs if it breaks.

---------- Post added at 10:51 PM ---------- Previous post was at 10:38 PM ----------

1.09 definitely breaks it. The app dissappear for viper. Rolling back to 1.08 brings it back.

Could it be an issue with magisk mount of viper? What/how would you like diagnostics?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
I can't see how it would be related to the kernel, these things are handled by Magisk or SuperSU
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] madscribblerz:
I can't either but installing 1.09 makes it dissappear and installing 1.08 makes it come back - so there might be a problem with 1. 09 and magisk? For me it doesn't matter much, I'll stay on 1.08 and deal with the pop-up at boot. I guess just know I saw something fishy and hopefully it's just me, and if not, maybe what I saw will help you track down what it's about.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ocbooger:
Viper and Dolby both working fine for me on 1.09
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] madscribblerz:
Maybe it's my versions? Can you tell me which viper & Dolby?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ocbooger:
These
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
I have written my thoughts on this many times, I will not be upstreaming.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] skw5115:
Running great on my phone for the past 2 days. Thanks!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
[MENTION=4684315]flar2[/MENTION] . . .

Thanks for this kernel!

Coming from the Nexus 6 to the Pixel 1 XL and now 2 XL, all of your kernels have been amazing.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
I was complaining about it. how quickly should it go into deep sleep?

Can u see my post above asking about what's actually working in ex kernel manager? Is setting the cpu frequency enable along with performance and battery saving mode?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
It should go to deep sleep within 5 seconds.

Just leave CPU frequencies alone on modern chips, it cuases problems because you are fighting against what the system is trying to manage.. You don't need powersave mode or anything with this phone.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
Could button mapper or swipe navigation be causing the lack of deep sleep? I use a swipe to lock feature in swipe navigation. Could it be tasker looking for a text to trigger actions to help me find my list phone? Tasker wifi scanning? I also have a task set so when I open YouTube auto screen rotate turns on and vice versa when I leave the app. There is also a tasker task so data, gps, and all location services turn on when I open Google maps. What about auto voice? That's always on too.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] holla420:
How's the battery life with this kernel?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
DELETE
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Kernels usually don't have any bearing on battery life.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
It shouldn't, mine is working good with Button Mapper set to toggle flashlight with Active Edge.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
Wait, maybe I was mistaken. I'm in deep sleep more than 7%of the time! That must have been this morning right after a reboot when I saw that. Do these battery stats look normal?

How do I know if I'm in performance or battery saver mode? Neither one is depressed inward, but it wasn't before either when I had the notification in my pull down menu that I was in battery saving mode.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] holla420:
Umm...yes it does
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Regardless of your deep sleep time, those are excellent stats. Your active drain is under 10% and idle is under 1%.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Actually, the kernel has very little impact on battery life. A few years ago in the Nexus 5/5/6 era there was an opportunity to make some gains with kernel tweaks, but now the chips and software are much better optimized.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
Every kernel in this forum says on the FAQ from the developer says

Q: "My battery sucks"

A: Kernels don't effect battery life.

Sent from my Pixel 2 XL
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] matt1313:
What's everyone's preferred setting?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
I asked this too. Nathanchance pretty well so disabled tweaking his flash kernel (at least on the first couple builds), and flar2 discouraged me from making any tweaks just a few posts back.

Flar2, or anyone else who can chime in, is it safe to say that the factory kernel settings are the best, and these new kernels only add features and safety? This statement of course being on a general rule of thumb. If this is correct at all, I'm sure it's not 100% accurate...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dubt17:
I've been on the Samsung train since the S6 to S8 days, and haven't been on a kernel for a while. When I flashed back in the day it was for battery tweaks, and now there's almost no gain from what everyone's mentioning.

I really like being able to dive into my device and see all of the information laid out in a well-designed app, and the swipe to sleep gesture is awesome, but what else advantage does this, or any custom kernel bring to the table over stock?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I wouldn't really say I disabled tweaking, I just haven't really added much to tweak. Reason being is these new devices have very efficient chips and setups by the OEM (Google's perf team is probably the best in the business) so I see no reason to mess with that (it's just going to result in a sub-par experience).
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Custom kernels are still a bit more optimized and there are added features and fixes. You need a custom kernel to pass safetynet, do color control, wake gestures, add supoprt for more filesystems, etc. I might have some sound tweaks and backlight tweaks coming, we'll see. I've also started looking into why it takes so long for the screen to come on with this device. I shaved a bit of time off, but it should be instant.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] madscribblerz:
I got it working. The trick for me was backing out magisk to 16.0 instead of 16.4 - on 16.0 (1600) everything works great.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mistermojorizin:
I set the frequencies to the overclocked ones during installation, but when I open Ex manager, the max frequency is always the stock or lower, for both CPUs. I set them to the overclocked ones and marked set on boot. It worked for a little while, but whenever it automatically changes the max frequency, that's the max that's set on boot next time. Am I missing anything, I would just like it to have the option to upscale to the overclocked frequencies if needed and it seems that it never does that on its own.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Hey Flar2, think there might be a bug in your latest EXKM app battery monitor. In the pic at the bottom, you'll see how the deep sleep area doesn't register anymore. It just shows that it's being held awake, when I know indeed that the phone is definitely entering deep sleep. Granted that the pic has little up time, but even after last night of 6 hours without use, I lost only 1% of battery. This was with using Flash's experimental 2.44b3 build, which may be a mitigating factor. Just an FYI for you. And thanks as always for your contributions to the community :good::cool:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Forgot the pic ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Phelicks:
Will 2.01 work with DP3?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Maybe it's just a glitch. I haven't touched the battery monitor code for a long time and it's counting deep sleep on all my phones.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
No worries my friend. I suspect these new kernel commits to decrease the screen unlock delay might be the culprit. But no matter either way. Thanks again :good::good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ossito2012:
i have tried flashing 16.0, log in twrp says image is patched but when i reboot to system the phone is not rooted, when i do 16.4 it roots., did you do anything special to get 16.0 installed.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Try installing it directly through magisk manager. Set the channel to stable, then you should get prompted to install it :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] madscribblerz:
Nothing special. Just flashed factory image then twrp, elemental, then magisk 16 and all was well.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jongcruz:
Has anyone tried this kernel on Nitrogen OS? After flashing it it just bootloop.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ossito2012:
Not sure what is going on, 16.0 just doesn't install, 16.4 had no issue. Oh well screw it I'll keep 16.4.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pkgnex:
DP3 Source

DP3 kernel source was finally pushed!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] lil_michelle:
I had to delete the dtbo.img in the kernel zip in nitrogen OS
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Update!!

Update for latest Android P.

Also, you no longer need to reflash Magisk after the kernel.

Android P Beta (DP3):

ElementalX-2.02

Changes:

-P preview 3 update

-prevent annoying message at startup

-detect root so you don't have to reflash
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] abuttino:
[MENTION=4684315]flar2[/MENTION]

Do you see anything in the kernel for WiFi calling? They disabled the menu for WiFi Preferred and, the adb shell command I found in Oreo doesn't work anymore in 9.

(Settings list global, wfc_ims_mode)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ram4ufriends:
Interesting change log....message at startup mean the bootloader unlocked message?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
No, it's the "internal problem with your device" message
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Nope. Not that one. The other one when you enter the OS ??
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pkgnex:
I just want to drop a quick line here to thank [MENTION=4684315]flar2[/MENTION] for developing on the Pixel 2 / XL.

I've tried all the kernels for this device, and while all of them are good and the dev's are all great, this one gives me both the best performance and battery life on my device.

Thanks!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jbarcus81:
I lose Wifi calling on both the June update and DP3 .. Very strange. Shows enabled and preferred but won't work. Any specific logs that would be helpful?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] MrMagicPotato:
Kernel Feature Request: SPECTRUM

Previous to my Pixel 2 XL I had a Xiaomi Redmi Note 3.

Integrated in every custom kernel there was a specific code to support the "SPECTRUM" app.

It's a really simple and straightforward

app, that allows the user to quickly switch between preset profiles

for BATTERY, BALANCE, PERFORMANCE AND GAMING.

Link to XDA thread

Link to Play Store

I really think that this would be really useful and practical if implemented well!

I really hope that the OP [MENTION=4684315]flar2[/MENTION] will take this advice into consideration!:fingers-crossed::p

Thanks in advance!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] chazall1:
2.02 running great.

Did not lose root after install.

Wow

Great job

Thanks
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Reechings:
For 8.1 do we need to flash magisk after flashing kernel?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Yes, for now.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Schroeder09:
I'm not sure if this is the correct place to ask this question, but it's related to your kernel. I'm using ex kernel manager. It currently seems to be showing weird battery statistics. It showing screen usage at over a hundred percent for me. Also, the active and idle drains don't seem to be corresponding to watch screen on time I'm receiving. I have pretty low rates I have 8.8% active drain and .8% idle drain! I would think this would get me 6 to 7 hours screen on time. But when I extrapolate my battery usage and corresponding screen on time, it seems like I should only be getting four and a half hours screen on time. I know there are a lot of variables with that. Am I watching a lot of videos with the volume really loud am I connected to Wi-Fi all the time Etc. still, even with these variables accounted for, it seems like these statistics might be off. Is there anything wonky going on with the app right now?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Not trying to answer for Mr. Flar2, but I'll agree with you on weird battery stats. I'm not having what your having, however, the "deep sleep" portion isn't registering at all. Yet the phone is sleeping fine. Go figure ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ram4ufriends:
Is your Android Battery SOT and Ex Manager battery SOT the same? For me EX Manager SOT is more...3h 45m in EX Manager but 3h 5m in Android default battery settings...I didn't restart after full charge also
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
There's always some discrepancy. EXKM does a better job of adding actual phone calls to the SOT, whereas the stock android battery app doesn't :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
The stats in EXKM are correct. It counts battery usage from the time you boot the phone, not since the last charge. Battery percent used keeps accumulating. Screen on time is all the time that your screen has been on while not plugged in. It's not going to agree with Android's battery stats because it's measured differently.

It's showing cumulative stats for all time while battery is discharging.

You should focus on %/hr stats. Yours are good. 8.8 is really good, mine is usually higher than 10. 0.8 for screen off is normal.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
deep sleep is showing on all my phones.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Knew you were gonna say that ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nadiros:
Thanks Flar2 for the flashing ability added to your kernel manager! Tested today and working great. Cheers
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Blackfyre:
DELETE
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Interceptor777:
Hey there, I flashed version 1.09 after I removed the DTBO.img from the zip on to Resurrection Remix 0624 build and I've lost Rapid Charging. It was working before I flashed the kernel.

I tried both the stock charger and the USB C port on my computer which supports USB PD and used to rapid charge.

If you would like any logs tell me what and I can provide them, thanks.

EDIT: This is the RR build: https://androidfilehost.com/?w=files&flid=267190

Everything including color control is working fine, just the charging which seems capped at 4V 500mA.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jasonstackhouse:
There must be something going on with the latest release 1.09 regarding usb connectivity. As you mentioned, you lose fast charge after flashing, but this also does something weird to the way the phone interacts with OTG USB connections as well. Whenever I plug my thumb drive in with this kernel active it wont allow a connection, it gives me the options of charging the device, file transfer ect, but when you chose file transfer nothing happens. I tried taking out the jump drive and just plugged in the USB OTG dongle and it did the same thing as when the jump drive was plugged in. I of course ruled out any outside factors by trying multiple jump drives with multiple OTG dongles and all got the same results. When I revert back to stock or flash different kernel, the usb functionality is back to normal, instead of asking me what i want to do with the attached usb, the system reads the usb attached, than says SANDISK USB DRIVE.

Also, for some reason you can still connect to a computer, transfer files and communicate with the device in fastboot, none of that functionality is affected, it does not however auto connect, it presents the same questions asking what i want to do with the connection, i chose file transfer and than it makes the connection with the computer. weird stuff.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Interceptor777:
Yeah same here, I went back to stock kernel for now until we can find out what's going on. First time I charged my phone to full in a few days lol.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pkgnex:
DP4 source available

The DP4 wahoo kernel source is available.

At least it didn't take a week after the images dropped this time...