[OnePlus 3 & 3T Cross Device Themes, Apps & Mods] adanteon:
About SoilWork

SoilWork is a mod created by @RogerF81, originally for the HTC 10, which features a Snapdragon 820. I've ported this mod to work with both OnePlus 3 and 3T devices. While the mod keeps the same name, the scripts used have been modified to best adapt to our devices! All the tweaks used in these scripts are made to work on any android and kernel version. If you are using an HMP kernel or an EAS one, there is no problem, as SoilWork will do the job of identifying your kernel and applying the tweaks accordingly.

Check out RogerF81's original thread here.

How to install/use this mod

If you use any of the Magisk modules provided in the download section, you just need to flash it in TWRP or in Magisk Manager and reboot. All the setting will be applied 30s after boot, to prevent any possible interference. Boosters Disabler is the only one which will run 45s after boot to prevent interference with the other profiles. (They can be installed alongside!)

If you want to use the .sh file provided in the download section, you can simply run it in a terminal emulator with these three simple lines:

su
cd /path/to/file.sh
sh *name of file*.sh

If you use the terminal method, rename the script, as parentheses aren't recognized from the terminal, use backslashes or the tab button combination (Vol+ and T) to complete the name of the script, which will also correct the name before you make it run. This is an error which won't be needed in the next update as the scripts will have a different name. Guess what? Fixed it.

Alternatively, use any other app which can run the script as root. At every reboot, however, the tweaked tunables will reset to the default values. The scripts already have a sleep time of 30 seconds (45 for Boosters Disabler), so it's not needed to add one. If you, by any means, remove it, please add from the app's settings a delay of at least 30 seconds in order for everything to work as it should.

If you're using a script manager app, as EXKM, please note that these apps seem to have problems in reading large files. Even if the file size has been reduced from the previous release, these apps may have these problems anyway. If that's the case, copy and paste the script to a new file created within the app.

Note: The script will not print anything on the console (it'll print grep checks) or output any file (as the previous versions) this is because all the scripts have been checked and are known to run without problems. If you still want to check if the script runs correctly, check the output from the app you are using to run the script (Magisk users run the script as stated above), since the console will output error messages (if any)

Note for Magisk users: The latest module is compatible with Magisk v15.0. Older versions are not supported anymore and are most likely to be moved to a folder tagged "OLD" in my AFH's Magisk folder.

Known bugs

Some Oreo ROMs seem to not react well under the battery profile (Cardinal Xtended seems to be excluded from this issue)

Available profiles

(more to come)

Battery: Enhanches battery life without ruining user experience. It ruins your experience anyway? Try Battery LightWeight!

Battery LW: Also known as Battery LightWeight, this profile is the same as the Battery one, but has less impact than its predecessor.

Balanced: Gives a balanced experience between performance and battery.

Boosters Disabler: Disables any kind of CPU boosters in your kernel (Vox Populi, Input Boost, CPU Boost).

Downloads

MEGA | GDrive

AFH Main Directory

├ Magisk 13.x directory

└ Magisk 14.0 directory

Since AFH doesn't support the sh file extension, the scripts will only be available with GDrive or MEGA.

I'll use AFH as a repository - check it out if you want an older zip. If you search for an older script, just download any of the magisk zip and extract the script under /common/service.sh and you'll get the script.

Changelog

Battery profile

v2.0
-Cleaned and fastened the script
-Added smartmax governor as a suggestion of a good tester

Battery LW profile

v2.0
-Initial release
-Not bad for a version jump, uh?

Balanced profile

v2.0
-Same as battery for this version

Boosters Disabler add-on

v2.0
-The only change is the version number. Maybe.

Old changelogs

Battery profile

v1.4
- Tweaked some EAS values
- Deadline over noop if maple is not present
v1.4.1 (will still show as 1.4)
- Fixed an error in the code
v1.3:
- Fixed flash problem via TWRP
- Fixed version
- Implemented more tweaks for EAS kernels (HMP too, but little was done)
v1.2:
- Optimised integration with blu_spark kernel
- Squashed some bugs
v1.1:
- Fixed tweaks which caused the device to stutter
- Optimised some tweaks to make the profile even more battery friendly
v1.0:
- Initial release (unavailable)

Balanced profile

v1.4
- Tweaked some EAS values - more battery, same performance
- Fixed a GPU code-related problem
v1.3:
- Fixed flash problem via TWRP
- Fixed version
- Implemented more tweaks for EAS kernels (HMP too, but little was done)
v1.2:
- Optimised integration with blu_spark kernel
- Squashed some bugs
v1.1:
- Fixed an error in the code which made GPU values to not apply on OP3
- Optimised some tweaks to make the profile more balanced
v1.0
- Initial release (unavailable)

Boosters Disabler

v1.0:
- Initial release

Credits

@RogerF81 for the original script and idea

@joshuous and @RenderBroken for their help with kernel related questions

@boyd95 and @ZeroKool76 for trying the script out before the release

@soniCron @Alcolawl @Freak07 @Asiier

@Mostafa Wael @patalao @Senthil360 @TotallyAnxious @Eliminater74

@ZeroInfinity @Kyuubi10 @ivicask @DeeZZ_NuuZZ

ROMs which include SoilWork (or any of it)

ZeNiTy [EAS] since 30.09.17 build - Thanks to @ZeNiXxX and @SKULSHADY for the inclusion and for their awesome work! Check out the full post here.

Version info

Version: 2.0

Status: stable

Date of creation: 20/09/2017

Date of last update: 29/12/2017

Note for the developers of custom ROMs: Yes, you can use my script in your ROM, but give credits and PM me so I can add your ROM in this OP.