[MODS][SCRIPTS] Zackptg5's Misc Projects

Search This thread

Zackptg5

Recognized Developer
Sep 18, 2014
4,148
7,005
zackptg5.com
Google Pixel 4a
Google Pixel 5a
Many of you already know that I have them all of my projects listed with their respective xda threads and download links on my website, but not all of them had an xda thread. So rather than cluttering xda with a new thread for each individual mod I make, I decided to put the smaller ones here :victory:

Binaries
  • Cross Compiled Binaries For Android Build Script
    The new home for my binary build script. Combines what was formerly GNU and Misc build scripts into one. It contains a good number of useful binaries such as aria2, bash, coreutils (with advanced cp/mv - adds progress bar functionality), curl, gawk (GNU awk), sed, vim, zsh, and more. Check it out to see the expanding list
  • Keycheck
    Finally tracked down the source code for this. This will compile the keycheck binary so you can use vol key selections and what not. Uses a modified build script by @osms0sis. Instructions on the repo
  • Zip for Android
    This builds the zip binary, prepared for android by cloudchou @github in addition to a build script by @osm0sis that I modified for this. Just clone the repo, cd to jni, chmod the build script, and run it

Mods
  • Cross Compiled Binaries For Android
    This zip contains a term script which can install any number of the growing list of binaries I've managed to cross compile for android. Here's the repo where they're all stored
  • Codec Power Gating Disabler [Deprecated]
    Another straightforward one. Disables codec power gating. It's needed for some audio mods like @chdloc's Biquads
  • Kernel Sepolicy Patcher [Deprecated]
    Unlike most sepolicy mods out there, this one changes sepolicy at the kernel level - meaning no boot script crap so it'll work regardless of other mods/root solutions (or lack there of). You can choose between enforcing or permissive while flashing it - you can use this to switch at will to test stuff out or whatever
  • Module Manager [Deprecated - not needed with magisk v24]
    Magisk Canary v23.x got rid of the magisk-modules-repo from the app. This term script replaces that temporarily until an in-app solution is implemented. Allows you to update and install mods with ease.
  • Overlay Mount Fix [Deprecated]
    Fix for overlay mount related issues with magisk - often seen in oneplus devices with /product
Misc
  • Searx Instance
    Searx is a metasearch engine with a focus on privacy. It allows you to search many search engines at once without being tracked by them - I use it to remain private while using google and to for scientific journal article searching (science tab). I have more details on what it is/setup here on my website

More will be added when I come out with them. For a complete list of all of the stuff I work on, check out my website linked at the top of this post :)

Audio Mod Troubleshooting Guide

XDA:DevDB Information

Zackptg5's Misc Projects, Tool/Utility for all devices (see above for details)

Contributors
Zackptg5
 
Last edited:

cmo220

Senior Member
Aug 26, 2010
1,288
393
Google Pixel 7 Pro
Earlier this week I got Android Auto in my car. I never considered that Viper4Android wouldn't work with it. I was hoping the USB Policy Patcher would fix that but it didn't. It looks like this is a problem for most, if not all people.

Has anyone found a way to use V4A while connected to Android Auto through a USB cable? If so, please explain what you had to do. Thanks.
 

HemanthJabalpuri

Recognized Contributor
@Zackptg5
If i want to use your Bash for android in a kitkat stockrom.. then the following zip is fine?..
I extracted the main files from your zip and made a simple zip...
since in Magisk Manager ..description about your bash for android says it needs 5.0+.....
Thanks
 

Attachments

  • bash_for_android_zackptg5.zip
    913.8 KB · Views: 1,163

Zackptg5

Recognized Developer
Sep 18, 2014
4,148
7,005
zackptg5.com
Google Pixel 4a
Google Pixel 5a
@Zackptg5
If i want to use your Bash for android in a kitkat stockrom.. then the following zip is fine?..
I extracted the main files from your zip and made a simple zip...
since in Magisk Manager ..description about your bash for android says it needs 5.0+.....
Thanks
The compiled zip is for lollipop+. If you want it for older, go to the bash build script link in the OP and compile arm binary for Api 19 (or older)
 

Zackptg5

Recognized Developer
Sep 18, 2014
4,148
7,005
zackptg5.com
Google Pixel 4a
Google Pixel 5a
/system/etc/bash/bashrc
/system/etc/bash.bash_logout
/system/etc/bash.bashrc
are not needed?
They're technically not needed but can be useful. You can place them manually, or unzip the bash module zip and replace the bash binary in the arm folder in the custom.tar.xz folder with the one I attached
 
  • Like
Reactions: HemanthJabalpuri

Zackptg5

Recognized Developer
Sep 18, 2014
4,148
7,005
zackptg5.com
Google Pixel 4a
Google Pixel 5a
API 19?

also why nanodroid bash is 4.*mb and yours is 1.*mb?

I have it as minimum of 21 because that's the magisk minapi so I'm just keeping it consistent. You can always compile it for 19 with my build script here: https://github.com/Zackptg5/Bash-for-Android-Build-Script

My compiled binaries are stripped which means that inessential stuff (things not required for normal functions) were removed. See more on that here: https://en.wikipedia.org/wiki/Strip_(Unix)
 
  • Like
Reactions: HemanthJabalpuri

tutibreaker

Senior Member
Feb 14, 2009
1,033
508
El Banco
www.facebook.com
Redmi Note 10S
That all the rom installed busybox, and i try 2 versions of it and Same results
 

Attachments

  • Screenshot_2019-01-19-07-29-43.png
    Screenshot_2019-01-19-07-29-43.png
    84.2 KB · Views: 532

Top Liked Posts

  • There are no posts matching your filters.
  • 59
    Many of you already know that I have them all of my projects listed with their respective xda threads and download links on my website, but not all of them had an xda thread. So rather than cluttering xda with a new thread for each individual mod I make, I decided to put the smaller ones here :victory:

    Binaries
    • Cross Compiled Binaries For Android Build Script
      The new home for my binary build script. Combines what was formerly GNU and Misc build scripts into one. It contains a good number of useful binaries such as aria2, bash, coreutils (with advanced cp/mv - adds progress bar functionality), curl, gawk (GNU awk), sed, vim, zsh, and more. Check it out to see the expanding list
    • Keycheck
      Finally tracked down the source code for this. This will compile the keycheck binary so you can use vol key selections and what not. Uses a modified build script by @osms0sis. Instructions on the repo
    • Zip for Android
      This builds the zip binary, prepared for android by cloudchou @github in addition to a build script by @osm0sis that I modified for this. Just clone the repo, cd to jni, chmod the build script, and run it

    Mods
    • Cross Compiled Binaries For Android
      This zip contains a term script which can install any number of the growing list of binaries I've managed to cross compile for android. Here's the repo where they're all stored
    • Codec Power Gating Disabler [Deprecated]
      Another straightforward one. Disables codec power gating. It's needed for some audio mods like @chdloc's Biquads
    • Kernel Sepolicy Patcher [Deprecated]
      Unlike most sepolicy mods out there, this one changes sepolicy at the kernel level - meaning no boot script crap so it'll work regardless of other mods/root solutions (or lack there of). You can choose between enforcing or permissive while flashing it - you can use this to switch at will to test stuff out or whatever
    • Module Manager [Deprecated - not needed with magisk v24]
      Magisk Canary v23.x got rid of the magisk-modules-repo from the app. This term script replaces that temporarily until an in-app solution is implemented. Allows you to update and install mods with ease.
    • Overlay Mount Fix [Deprecated]
      Fix for overlay mount related issues with magisk - often seen in oneplus devices with /product
    Misc
    • Searx Instance
      Searx is a metasearch engine with a focus on privacy. It allows you to search many search engines at once without being tracked by them - I use it to remain private while using google and to for scientific journal article searching (science tab). I have more details on what it is/setup here on my website

    More will be added when I come out with them. For a complete list of all of the stuff I work on, check out my website linked at the top of this post :)

    Audio Mod Troubleshooting Guide

    XDA:DevDB Information

    Zackptg5's Misc Projects, Tool/Utility for all devices (see above for details)

    Contributors
    Zackptg5
    7
    So I got annoyed with crafting sed statements, testing them and making sure they work on linux shell, and then finding that busybox and toybox sed can't handle it. So I cross-compiled GNU sed for android, problem solved :)

    I decided it'd be best to combine all of the GNU binaries I got going into 1 mod so bash, coreutils, and sed are all in one GNU-Utils mod now
    6
    Added GNU awk (Gawk) build script and compiled binaries to my GNU Utils mod per @osm0sis suggestion :)
    5
    Finally got around to looking more into GNU and ended up reworking the build script and as a result, the mod here. Dropped v4.0 update. Changelog:
    • Update findutils to 4.7.0
    • Update bash with to 5.11
    • Fix Fortify issues with cpio, gzip, and tar
    • Add perl regex to grep
    • Switch everything to NDK
    • Fixed sort and timeout in coreutils (almost, sort can't read in files so just pass it through instead - ex: cat file.txt | sort)
    • Switched to dynamic link (except bash and gawk)
    • Removed ncurses - no reason for it
    You can grab it here: https://zackptg5.com/android.php#gnu
    5
    Could you please give an example of a situation. I still don't really understand :confused:
    So on some oneplus devices, some directories are mounted at boot as overlays (google overlay mounting if you're unsure of what it is). The problem here is that when an overlay is created, it effectively overwrites the destination which nullifies anything magisk has already mounted. So any modules that had files mounted to where the overlay is won't work.

    I think of overlay mounting as combining multiple folders into 1.

    So for example, during boot, an overlay mount is created for /product/priv-app:
    /system/product/priv-app
    /system/india/priv-app
    /data/adb/modules/somemagiskmod/system/priv-app
    /data/adb/modules/anothermod/system/priv-app

    S the mount command would be:

    Code:
    mount -t overlay -o  ro,context=u:object_r:system_file:s0,relatime,lowerdir=/data/adb/modules/anothermod/system/priv-app
    :/data/adb/modules/somemagiskmod/system/priv-app:/system/india/priv-app:/system/product/priv-app overlay /product/priv-app

    this would take all 4 of those directories and essentially combine them into 1 in /product/priv-app

    Timing is important here. This overlay is made AFTER magisk has already mounted module files which means that the overlay pretty much overwrites them.

    So what my mod does is effectively unmount all overlay and related magisk directories/files and remounts them as unified overlay mounts