[MODS][SCRIPTS] Zackptg5's Misc Projects

Search This thread

Zackptg5

Recognized Developer
Sep 18, 2014
4,086
6,679
zackptg5.com
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
    Another straightforward one. Disables codec power gating. It's needed for some audio mods like @chdloc's Biquads
  • Kernel Sepolicy Patcher
    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
  • Overlay Mount Fix
    Fix for overlay mount related issues with magisk - often seen in oneplus devices with /product

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

Version Information
Status:
Stable

Created 2018-12-20
Last Updated 2020-10-24
 
Last edited:

cmo220

Senior Member
Aug 26, 2010
1,288
393
Google Pixel 5
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.
 

Zackptg5

Recognized Developer
Sep 18, 2014
4,086
6,679
zackptg5.com
@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,086
6,679
zackptg5.com
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
403
300
El Banco
www.facebook.com
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: 374

Top Liked Posts

  • 1
    @ale82to I got the same results as you. I'm not expert in the actual use of aria2 so afraid I won't be of much help there :/ You could try curl or something

    Updated bash - fix for seg fault with regex
  • 1
    @Zackptg5 , just found ur Searx. thank you ,
    dave
    1
    @Zackptg5 , just found ur Searx. thank you ,
    dave
    No problem :)
    Changed default to start page. Ran into the Google captcha issue for a hot second but seems to have solved itself. Google still works for now :/
    1
    @ale82to I got the same results as you. I'm not expert in the actual use of aria2 so afraid I won't be of much help there :/ You could try curl or something

    Updated bash - fix for seg fault with regex
  • 47
    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
      Another straightforward one. Disables codec power gating. It's needed for some audio mods like @chdloc's Biquads
    • Kernel Sepolicy Patcher
      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
    • Overlay Mount Fix
      Fix for overlay mount related issues with magisk - often seen in oneplus devices with /product

    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

    Version Information
    Status:
    Stable

    Created 2018-12-20
    Last Updated 2020-10-24
    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
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone