• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[MOD] BlackenedMod v2.0 (Pixel 3a / Pixel 3a XL)

Search This thread

12paq

Senior Member
Aug 16, 2010
1,155
368
Colorado
www.DonAshcraft.com
Installed perfectly and generated the appropriate logs. First thing I noticed was scrolling between home screens on the launcher was smooth as silk. Will test more as time will tell.

Thanks for the update!!
 

Attachments

  • Screenshot_20191115-203358.png
    Screenshot_20191115-203358.png
    94.4 KB · Views: 560
  • Screenshot_20191115-203341.png
    Screenshot_20191115-203341.png
    53.8 KB · Views: 554
  • Like
Reactions: xFirefly93

Drakax

Senior Member
Dec 2, 2010
156
14
Installed perfectly and generated the appropriate logs. First thing I noticed was scrolling between home screens on the launcher was smooth as silk. Will test more as time will tell.

Thanks for the update!!

Which root explorer did you use to move the extracted files?
None I've tried can access the root directory on Android Q.
 

12paq

Senior Member
Aug 16, 2010
1,155
368
Colorado
www.DonAshcraft.com
Which root explorer did you use to move the extracted files?
None I've tried can access the root directory on Android Q.

I use Root Explorer:
https://play.google.com/store/apps/details?id=com.speedsoftware.rootexplorer

It has support for system-as-root mounted as / in Magisk 19.4+, but not sure you even need that to access /data/adb/service.d Probably just need to be rooted. Either way it just works. You can set the permissions at the new location too.
 

adm1jtg

Senior Member
Jul 26, 2010
2,769
868
Georgia
I use Root Explorer:
https://play.google.com/store/apps/details?id=com.speedsoftware.rootexplorer

It has support for system-as-root mounted as / in Magisk 19.4+, but not sure you even need that to access /data/adb/service.d Probably just need to be rooted. Either way it just works. You can set the permissions at the new location too.

Used root explorer as well and just dropped 2 script files in proper location then set permissions.... already had busy box magisk module installed.... profit
 
  • Like
Reactions: 12paq

nylar357

Member
May 23, 2018
21
7
holon.is
OnePlus Nord N10 5G
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
 
Last edited:
  • Like
Reactions: kkjb

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    Introduction:

    Hello everyone!

    The idea to this 'project' did blossom after having an conversation with @pkgnex in the past about the general idea of creating something else that follows what he started with his PK's Tuning Script for Pixel 2 (XL) 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 battery life and performance on our Pixel 3a (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 all of 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
    • 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 Magisk Module by @osm0sis
    • Patience

    Installation/How-To use & abuse:
    • 1) Download the attached ZIP
    • 2) Extract the script
    • 3) Move the script to the following location;
      /data/adb/service.d and give it the following & needed file 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 @Phalanx7621 phenomenal guide here or check out @Phalanx7621 in-depth video here. The installation method is the same for all generations of released Pixels!
    Credits:
    • @franciscofranco for all the information on which kernel wakelocks that is safe to block
    • @Phalanx7621 for his phenomenal how-to guide
    • @Lord Boeffla for his awesome generic kernel wakelock blocker
    • @pkgnex for inspiring me walking into this partially unknown territory.
    • @flar2 for his excellent EXKM application and ElementalX Kernel
    • @osm0sis 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:
    • Optimize and properly tune things even further for best possible balance between battery life, system responsivness and performance

    Contributors:
    @xFirefly93

    Created: 2019-07-06
    Last updated: 2019-11-15
    10
    Update!

    Note: It is recommended that you reboot your phone after you have applied v1.3 so the customized changes / improvements takes full effect and is fully up & running as intended.

    Version v1.3 (Minor release):
    - Added the needed commands so the logs folder, and the output message, will be automatically generated after each completed boot sequence (Thanks to @crian for giving a few seconds of his time helping me out with this contribution. You rock, dude!)
    - Simplified a few explanations of what each section does
    - Fully enabled the RET idle power state for both clusters (may, or may not, lead to slightly improved battery life for everyone)
    - Most likely fixed the minor issue with the weird all over the place maximum CPU frequency bouncing on the whole LITTLE cluster

    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!

    Enjoy! :)
    10
    Update!

    Note: It is recommended that you reboot your phone after you have applied v1.2 so the customized changes / improvements takes full effect and is fully up & running as intended.

    Be aware that you have to flash the Busybox Magisk module by @osm0sis for getting the newest enhancements, that is featured / included on v1.2, up and running as intended!

    Version v1.2 (Major release):
    - Added a few crucial filesystem tweaks for improved performance (Credits goes to @pkgnex for this contribution. Be aware that you have to flash the Busybox Magisk module for getting those modifications up and running as fully intended)
    - Fully removed all of the alternative task scheduler values / settings (they was only causing random freezes and lagspikes)
    - Slightly adjusted the default stock CPUSet values for hopefully improved power efficiency as well as system responsivness
    - Cleaned up the script on a few minor typos and what not
    - Disabled a few minor CPU related loggers (experimental)
    - Reduced suspend latency by enabling console_suspend
    - Added a few tweaks for overall better network performance
    - Shifted to Westwood TCP congestion algorithm per default
    - Disabled the useless Adreno GPU frequency throttling tunable
    - Disabled RCU expedited and 'replaced' it with RCU normal for improved real-time latency, CPU utilization and energy efficiency

    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!

    Enjoy! :)
    10
    Update!

    Note: It is recommended that you reboot your phone after you have applied v1.8 so the customized changes / improvements takes full effect and is fully up & running as intended.

    Version v1.8 (Minor release):
    - Re-wrote and "patched up" the whole script from scratch
    - Removed all the modified frequency stuff for now (needs a few more adjustments before they will be added again)
    - Re-enabled power efficient workqueues (=PEWQ) again
    - Fully enabled laptop_mode (slightly improves battery life)
    - Disabled fsync per default (improves IO performance)
    - Cleaned up a few crucial typos both here as well as there

    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!

    Enjoy! :)
    9
    Update!

    Note: It is recommended that you reboot your phone after you have applied v1.7 so the customized changes / improvements takes full effect and is fully up & running as intended.

    Version v1.7 (Major release):
    - Finally fixed the battery life issues that a few may have experienced while having BlackenedMod up and running
    - Included a simple guide on what you've to do for getting the alternative min & max frequencies working as intended
    - Disabled power efficient workqueues once and for all (the overhead cost doesn't justify the notable performance loss)
    - Re-configured my Schedutil profile from scratch so it works like a bulldozing charm together with the changes below
    - Increased Schedutil up_rate_limit to 1000us (reduces any overhead caused by all over the board frequency scaling)
    - Unlocked & enabled the 300Mhz freq for the big cluster
    - Slightly underclocked the big cluster max frequency for better battery life power and for a better user experience
    - Carefully adjusted the min LITTLE cluster freq a little for compensating for the new big cluster min & max frequencies
    - Reverted commit sync interval to default 5 seconds again
    - Some additional minor fixes and adjustments here and there

    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!

    Enjoy! :)