[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] 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.

Latest releases can be found here:

Major release

Minor release

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

Enabled, and configured, Boeffla generic kernel wakelock blocker

Disabled a lot of stuff at both kernel and system level (Improves battery life and performance)

Schedtune tweaks (Improves system 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

Latest Magisk

Busybox for Android NDK Magisk Module by [MENTION=4544860]osm0sis[/MENTION]

Patience

Installation/How-To use & abuse:

1) Download the attached ZIP

2) Extract the script

3) Move 01tweaks to the following location;

/sbin/.core/img/.core/service.d and give it the following permissions (0755)

4) Reboot your phone, let Android boot to the launcher and let Magisk boot service do its crucial magic (takes about 60-65 seconds before the script is fully up and running behind the scenes)

5) Enjoy!

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=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

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 balance between battery life, system responsivness and performance

Contributors:

[MENTION=8852292]xFirefly93[/MENTION]

Created: 2018-09-18

Last updated: 2018-09-19