[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xFirefly93:
Introduction:

Hello everyone!

The idea to this 'project' did blossom after having an conversation with [MENTION=4793042]pkgnex[/MENTION] about the general idea of creating something else that follows what he started with his PK's Tuning Script but with a twist, mainly as a complement to his own thread that you can find here, but also with a completely different vision and focus on what the script itself should achieve (and deliver) for kind of results for myself and for all of you personally, of course, that wants to try it out and use it as a "daily driver".

Shortly explained.

This script is created with the goal of improving both the battery life and performance of our Pixel 2 (XL) devices, and after a whole range of configurations and various set-ups, I've come up with something that, in my eyes, is worth sharing with you so that you can try it out yourself and judge on your own, with constructive feedback on what can be improved or added in future releases - if desired. My philosophy is, and will always be, this:

If something can be improved or altered in a positive way so the average user can feel and see a difference, then go for it. Non stop.

The latest release can be found here.

Disclaimer:

This is presented as "what if". If this modification screws up or breaks anything for you, I am not the one to be held responsible. It's a free will to try out this kind of changes/modifications/addons/tweaks, just don't blame the inventors for eventual bad results and/or screw-ups.

Note: This script is not recommended to be modified or customized by the user.

Features:

Reduced battery consumption

Device specific enhancements for best possible balance between battery life & performance

Enabled, and fully configured, Boeffla generic kernel wakelock blocker

Disabled a lot of useless stuff at kernel level (Improves battery life as well as performance)

CPUSet improvements & optimizations

Schedtune tweaks (Improves responsivness)

Power efficiency enhancements

Wide IO block tuning (Reduces the possibility of hiccups, lags and overhead)

Possibly other miscellaneous things I've forgotten to write down here, both big and small.

Requirements/what you need for getting this script fully working:

An unlocked bootloader

Your own specific choice of kernel

Latest possible version of Magisk

Busybox for Android NDK (by [MENTION=4544860]osm0sis[/MENTION]) and SQLite for ARM aarch64 devices (by [MENTION=7187684]ianmacd[/MENTION]) Magisk Modules

Patience

Installation/How-To use & abuse:

1) Download the attached ZIP

2) Extract the scripts

3) Move both scripts to the following location;

/data/adb/service.d and give both of them the following permissions (0775)

4) Reboot your phone, let Android boot to the launcher and let Magisk boot service do its crucial magic (takes a few seconds before the scripts is fully up and running around behind the scenes)

5) Enjoy!

Note: If you still are unsure how to do for making my kernel configuration / modification work & be up and running behind the scenes, then please read [MENTION=4176532]Phalanx7621[/MENTION] phenomenal guide here or check out [MENTION=4176532]Phalanx7621[/MENTION] in-depth video here. The installation method is the same for both the first generation as well as the second generation of Pixels!

Credits:

[MENTION=6842057]nathanchance[/MENTION] for his contributions with his Flash Kernel

[MENTION=3292224]franciscofranco[/MENTION] for all the information on which kernel wakelocks that is safe to block

[MENTION=4176532]Phalanx7621[/MENTION] for his phenomenal how-to guide

[MENTION=947981]Lord Boeffla[/MENTION] for his awesome generic kernel wakelock blocker

[MENTION=4793042]pkgnex[/MENTION] for inspiring me walking into this partially unknown territory.

[MENTION=4684315]flar2[/MENTION] for his excellent EXKM application and ElementalX Kernel

[MENTION=4544860]osm0sis[/MENTION] for his Magisk Busybox module

Everyone that I've forgotten to mention here

Telegram:

If you want to try out betas / previews of my script before they are officially released, or just hangout and chat a little, then join the official Telegram group here

To-Do list:

Port this project to all of my additional devices

Include kernel specific scripts for every released P2(XL) custom kernel Done

- Even for stock kernel with SafetyNet patch by [MENTION=2821232]iissmart[/MENTION] Done

Optimize and properly tune things even further for best possible balance between battery life, system responsivness and performance Done

Sidenote:

If you optionally want to donate a beer or five as a way to show your appreciation for all the dedicated hours and work that I am putting into this mod on a daily rate - then this link is the way to go!

Contributors:

[MENTION=8852292]xFirefly93[/MENTION]

Created: 2018-09-18

Last updated: 2019-11-04