[Google Pixel 3a ROMs, Kernels, Recoveries, & Other] nylar357:
Kernel Tweaking - Sargo

Tweaks :

Blackened Mod

a kernel tweak script (omitted name on purpose)

Tools:

ADB Functional Terminal - (basically any OS but not covering this here bc if you don't know what this is you probably shouldn't be trying to do anything to your Kernel)

EX Kernel Manager - For script execution

Or in lieu of an ADB terminal a good file manager that will allow you to chmod (change permissions) but an ADB shell is way easier.

So the idea here is simple we are going to be moving the BlackenedMod files to /data/adb/service.d and changing the permission to 0755 or read/execute. This is happening so that your device will run these Tweaks at boot. Our second objective is to simply execute the Ktweaks script in EX.

***DONT SKIP THIS***

some kernel tweak scripts you’ll find on the creators Github page is written as a Bash file, this however won’t execute properly in EX Kernel Manager you need to edit the file

Change :

#!/usr/bin/env bash

To This:

#!/system/bin/sh

Dont forget to save it as a .sh ! And double check the bottom of the script and make sure it ends with : exit0 and not any strange assortment of brackets, I’ve found often during file movement and copies and or pastes it ends up with all kinds of weird **** at the end.

Now to the nitty gritty so to speak.

With App Only : NO PC METHOD

Open the BlackendMod zip, extract the workaround & blackenmod scripts. Make sure your device has usb debugging on at this point (SHUT IT OFF WHEN WERE DONE FOR GOD SAKE!) and usb set to file transfer. Connect your phone accept the prompt asking to trust your computer.

Open your respective terminal that has adb working on it.

adb usb

Response:

* daemon not running; starting now at tcp:5037
* daemon started successfully

adb devices

Response:

List of devices attached
Abcde12345 device

Were good to move on.

adb shell

Response:

Sargo:/ $

Your now running a shell on your phone (commanding it) So now we’ll simply find and move the workaround and blackendmod scripts to the aforementioned file and change permissions.

cd /storage/self/primary/Download/Blackened*
ls

Response:

00changelog.txt 00workaround.sh 01blackenedmod.sh readme.txt

Assuming this is your path as it was mine at a time.

In order to move the files to the proper folder and chmod we’ll need elevated permissions to do this simply type

su

Magisk will toast you to allow this on your phone, do so.

mv 01* ~/data/adb/service.d/ you may have to use /root/data/adb/service.d/

mv 00w* ~/data/adb/service.d/ you may have to use /root/data/adb/service.d/

We’ve moved them, now lets change directory and change permissions.

cd
pwd

Response:

/

Change permissions, if the wildcards wont work type that **** out!

chmod 0755 01*
chmod 0755 00w*

I’m using wildcards here so I and you don’t have to type out the whole name. We’ve now applied the proper permissions. And this part is done. At this point you could drop into whatever desired directory and spin up the text editor

vi

And paste in the tweak script and append that first line, and double check the exit0 is the final line. Save it as tweak.sh somewhere EX Kernel Manager can find it (local storage). Exit your adb shell by typing exit a few times or ctrl+x or ctrl+c your way out. Shut down the adb server

adb kill-server

Shut off adb debugging on your phone, if you don’t understand now why adb debugging can be dangerous well you were probably not paying attention!, anyone could open an adb shell on your phone simply by typing adb connect yourip:5555 && adb shell, and now they have at the very least a user, probably root shell on your phone and that means your pwned, hard.

Disconnect your phone from the computer, Open EX Kernel Manager > Tools > Script Manager > Add Script > tweak.sh. You could run it right now but were about to restart your device so probably don’t bother. Reboot your device, KEEP IN MIND the blackenedmod script adds a 120 second timer to allow for everything to happen as it should and you won’t run into much more time consuming headaches later. Check your storage for logs, they should read “ 01BlackenedMod v# Have been more than just successfully executed. Enjoy! “ . Go back into EX and run your tweak script and voila your device is now fully, optimally tweaked.

** Tested Successfully on Android 9,10,11, Descendant v 4.0.0 (Android 9), and Dirty Unicorns 14.7 (Android 10) on the Pixel 3a Sargo **

*** EDIT *** App Only Method Added & Kernel Tweaks Script

Nylar - During the Great Conjunction and very nearly the Winter Solstice 2020 CE