[TOOL][BIN]BusyBox Recovery Flashable Zips **ALL-ARCHS** - Android Software/Hacking General [Developers Only]

Update 14-Jul/18: Busybox v1.29.0 released (Complete changelog: here)
Hello XDA,
All the flashable zips include two builds.
SELinux Enabled and Normal
This post will give you a pretty good idea about the difference.
There are 401 applets included in the normal and 413 applets included in the selinux build.
Here's a list for the same.
NOTE: Installing busybox does not modify your device's selinux status.
Architectures supported: arm, arm64, x86, x86_64, mipsel, mips64el and mipseb.
The attached zips install busybox in one of /magisk/bbxyds, [/data/adb]/su/xbin, /system/xbin, [/system]/vendor/bin after cleaning older busybox binaries and their symlinks from the device (if any).
Universal busybox installer flashable zip detects the architecture and installs busybox accordingly.
Code for mounting the su.img and running in embedded mode is borrowed from the SuperSU project.​
SELinux status is automatically detected by the installers.
Behaviour of all the installers as well as the cleaner can be manipulated using a bbx.conf file which should be placed in one of /sdcard, /data or /cache. For more details refer to the second post.
TWRP recovery or Flashfire is recommended for flashing the attached installers, however the code is pretty generic and should work on other recoveries too.
Projects using my BusyBox builds are:
Open Gapps
Apps2SD
Project Skynet
StØck ROM Sense 5 by @denkem
Stock Debloated roms for nexus 5, 6, 5x and 6p by @tupac4u
Inlightning Org
Universal SafetyNet Fix by @Deic
If you would like to include my builds in your project, a link to this thread in the project thread would be expected.
Also, if you can, pm me about it so I can add the name to this list.
Credits:
@7175 for his thread
@bovirus @Chinaboy5216 @skulldreamz for testing and reporting
XDA for...do I need to say it
Disclaimer: Neither me nor anyone else at XDA is responsible for what happens to your device. Please use the tools/utilites attached at your own discretion.
Having said that, I'll try my best to help you with any bugs or exceptions you might face.​
Download: Click here
Mirror: Sourceforge​
Busybox-CLEANER.zip and all the installers clean BusyBox in /su/xbin /data/adb/su/xbin /system/xbin /system/vendor/bin /vendor/bin /data/adb/su/bin /system/bin /su/bin /magisk/phh/bin /su/xbin_bind /data/adb/su/xbin_bind and /magisk/bbxyds
The installers will automatically detect 32/64 bit arch and install the appropriate binary
NOTE: If FlashFire gets stuck on a black screen or errors out when flashing, please flash from recovery instead. (There seems to be a /system mounting issue on some devices in FlashFire)
File list:
Busybox-<VERSION>-YDS-UNIVERSAL.zip
Flashable zip compatible with all architectures.
Busybox-<VERSION>-YDS-<ARCHITECTURE>.zip
Architecture specific flashable zip files.
Busybox-<VERSION>-YDS-<ARCHITECTURE>.tgz
Consists of pre-compiled busybox binaries.
Not flashable
Busybox-installer-<ARCHITECTURE>.bin
Executable files for installing busybox without rebooting in recovery mode. See 2nd post for more details.
Not flashable
Source code (zip, tar.gz)
Source code files automatically generated via Github releases.
Not flashable
For older versions refer to my androidfilehost, drive, mediafire or sourceforge folders.
Toolchains used for building these binaries can be found here (host arch -> x86_64).
For official busybox source and changelog refer here.
Do report how these work out for you, as most of the testing has been done on emulators.
You can request any applet in this thread. If it does not affect the size of the whole binary or there are enough users backing it, I'll add it in the next release.
When reporting please attach the BusyBox-YDS-installer.log, it should be in either /sdcard, /data or /cache.
Source:
https://github.com/yashdsaraf/busybox
https://sourceforge.net/p/busybox-yds/code

Op
bbx.conf:
Allowed options in bbx.conf are,
installdir=<path>
Change the directory for installing busybox to <path>. If <path> is not a valid directory, then the installer will fall back to the default installation directory.
Note: Any older busybox installation in the supplied directory will be cleaned.
Warning: Please use this option only if you are absolutely sure about what you are doing.
e.g installdir=/data/local/xbin
​
selinux=[0|1]
Controls the selinux support in busybox.
E.g To disable SELinux support
Code:
selinux=0
To enable SELinux support
Code:
selinux=1
​
noclean
If supplied, the installers will skip cleaning any previous busybox installations.​Sample:
To install busybox in /data/local/xbin without cleaning previous busybox installations with SELinux support enabled, following would be a valid bbx.conf file
Code:
installdir=/data/local/xbin
noclean
selinux=1
Note: Busybox cleaner only reads the installdir option and cleans busybox in that directory
Self extracting executables:
All the .bin files in the download link in the above post are self extracting executables. They can install busybox directly from a terminal without rebooting in recovery.
Usage:
Install any terminal app.
Get root privileges,
Code:
su
E.g if you have the installer for ARM downloaded in sdcard, run this
in the terminal,
Code:
sh /sdcard/Busybox-installer-arm.bin
And watch the magic happen.
Options:
-h | --help
Show help message.​ -i | --interactive
Run script in interactive mode.​-nc | --noclean
Do not clean previous busybox installation(s) (IF ANY).​-oc | --onlyclean
Clean previous busybox installation(s) (IF ANY) and exit.​ If supplied, all other options are ignored except installdir.​--selinux=[es|o]
Enable or disable selinux support in busybox.​--installdir=<path>
Install busybox in <path>.​Tip: To clean busybox in a custom directory, run the installer in onlyclean mode and set installdir to the custom directory which needs to be cleaned.
e.g. to clean busybox in /data/local/xbin run the installer as
Code:
sh <script_name> -oc --installdir=/data/local/xbin

@YashdSaraf
Thanks for new thread
"[TOOL][BIN]busybox flashable for all architecture via recovery"
I will remove "Latest" and add info that is flashable via recovery.
I will change the thread title in

Nice work .
Keep it up !!!
Sent from my E2303 using XDA Free mobile app

bovirus said:
..Thanks for new thread....
Click to expand...
Click to collapse
is the issue mentioned here addressed? @YashdSaraf, hope you read my pm.

@YashdSaraf had a quick question. I have been using your busybox zips since you've staying building and i first want to say thank you. My question is when i use the busybox unistaller zip or busybox cleaner with your zip it says that it removes 0 symlinks and when i use stericson busybox zip it says that I'm removing 3xx plus symlinks. I was just wondering wondering why his and osmosis show that binaries were symlinked and yours showed that 0 were? I want to lastly say though that your zip worked and busybox was installed and worked correctly. I like some of the extra binaries yours offers do just a curious question thanks.
Sent from my Nexus 6P using Tapatalk

m0han said:
is the issue mentioned here addressed? @YashdSaraf, hope you read my pm.
Click to expand...
Click to collapse
I did, I'm sorry I was too busy switching to a new OS. Anyways, I've got a couple of ideas over what might've gone wrong. I'll pm you the updated installers as soon as I'm done for testing. :good:
skulldreamz said:
@YashdSaraf had a quick question. I have been using your busybox zips since you've staying building and i first want to say thank you. My question is when i use the busybox unistaller zip or busybox cleaner with your zip it says that it removes 0 symlinks and when i use stericson busybox zip it says that I'm removing 3xx plus symlinks. I was just wondering wondering why his and osmosis show that binaries were symlinked and yours showed that 0 were? I want to lastly say though that your zip worked and busybox was installed and worked correctly. I like some of the extra binaries yours offers do just a curious question thanks.
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
I did not update the uninstaller after systemless root was introduced so it must be looking only in the /system partition for busybox. I'll upload the updated uninstaller today.
Thanks for your support.

YashdSaraf said:
.....I'll pm you the updated installers as soon as I'm done for testing.....
I did not update the uninstaller after systemless root was introduced....
. I'll upload the updated uninstaller today.......
Click to expand...
Click to collapse
got your pm. will test the updated installer and revert by pm.
is this 'the updated uninstaller'? can this be used in 'any setup'?

m0han said:
got your pm. will test the updated installer and revert by pm.
is this 'the updated uninstaller'? can this be used in 'any setup'?
Click to expand...
Click to collapse
Yes the one attached in the OP is the latest one. It will clean busybox in /system/bin, /system/xbin, /su/bin, /su/xbin.
So yeah it can be used in 'any setup'.:good:

@YashdSaraf
Are there any news about busybox for ARM and 64boit Android SO (like 5.1.)?

YashdSaraf said:
.....I'll pm you the updated installer......
Click to expand...
Click to collapse
...will test the updated installer and revert .....
your zip worked well, i think. thanks.

86_64 for zenfone 2 Z00A?

@YashdSaraf
Thanks for sharing mate. really appreciated. :good:
PM sent
Cheers,
UITA

@YashdSaraf
thanks for your busybox.
I had some problems to install it (I tried arm/arm64/all zip file withS elinux).
Every time the installation end with error "Wrong architecture".
My build propri content about cpu is
# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
# use ro.product.cpu.abilist instead.
ro.product.cpu.abi=arm64-v8a
ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=arm64-v8a
To install I had to use previous zip file (1.24.1) where you not have archictecture check and replace 1.24.1. busybox with busybox extracted by 1.24.2 zip.
Where can i get the error log of your script? It show just only /data...
Please check your script.
Thanks.

@YashdSaraf Could you update busybox to 1.24.2?

@exodius48
All busybox files in first post are version 1.24.2.
@YashdSaraf
Please add a note in first post about the vesrion of busybox.

bovirus said:
@exodius48
All busybox files in first post are version 1.24.2.
Click to expand...
Click to collapse
Sorry for asked it. I couldn't find busybox version on 1st post, also on the tittle.

@exodius48
In the first post there are various Download links with all busybox for all platforms.

OK... the BusyBox app on the play store had an update to 1.24.2.
When I install the update from 1.24.1 to 1.24.2, it states that it installed successfully, it doesn't reflect it.
It still shows that 1.24.1 is installed.
I tried wiping the dalvik cache before and after as well as reinstalling the app and it still reflects 1.24.1.
Also, it displays that 1.24.2 will be installed in the system xbin but, doesn't.
Thank you.

bovirus said:
@YashdSaraf
thanks for your busybox.
I had some problems to install it (I tried arm/arm64/all zip file withS elinux).
Every time the installation end with error "Wrong architecture".
My build propri content about cpu is
# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
# use ro.product.cpu.abilist instead.
ro.product.cpu.abi=arm64-v8a
ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=arm64-v8a
To install I had to use previous zip file (1.24.1) where you not have archictecture check and replace 1.24.1. busybox with busybox extracted by 1.24.2 zip.
Where can i get the error log of your script? It show just only /data...
Please check your script.
Thanks.
Click to expand...
Click to collapse
Hey,
I think the reason for failure was that the script could not detect the /data partition.
Please try these zips instead.
arm arm64
There should be a BusyBox-YDS-installer.log in either /sdcard, /data or /cache, whichever your device supports.
Do attach it when reporting back.:good:
Ibuprophen said:
OK... the BusyBox app on the play store had an update to 1.24.2.
When I install the update from 1.24.1 to 1.24.2, it states that it installed successfully, it doesn't reflect it.
It still shows that 1.24.1 is installed.
I tried wiping the dalvik cache before and after as well as reinstalling the app and it still reflects 1.24.1.
Also, it displays that 1.24.2 will be installed in the system xbin but, doesn't.
Thank you.
Click to expand...
Click to collapse
I'm not sure what are you talking about. I'm not related whatsoever to any play store busybox installer apps. Try one of the installers from the op to install 1.24.2 busybox.

Related

[TOOLS][ZIPS][SCRIPTS] osm0sis' Odds and Ends [Multiple Devices/Platforms]

osm0sis' Odds and Ends -- Misc./Batch Tools, Flashable Zips, Scripts, etc.
General Information
In a nutshell, I just wanted a single thread to gather links to some of my other, larger projects, but also serve as a spot I could put some smaller scripts and zips I've created that I don't think merit their own separate threads. This is partially for my own sanity and will hopefully make it easier for others to find some things as well. A lot of the stuff here was developed with the GN, N4, N5, N7s or N5X, OP5/T, OP6/T, OP7Pro/T, OP8Pro/T or OP9Pro (my devices) and Windows in mind, but could generally be applicable to most devices either out-of-the-box or with some slight modification. If you see something that inspires you, go ahead and mod it, just let me know and give me some credit somewhere. If anyone would like to know the specifics of what's in a particular script that I haven't already linked to more information on, just let me know and I'll post that in here as well.
Note: Older zips with a "cwm-" prefix are NOT only for the now-defunct ClockworkMod Recovery, the prefix was used to denote a flashable zip before I adopted Chainfire's "UPDATE-" prefix. Please use a currently maintained recovery, like TWRP, for all zips to ensure the best compatibility/results.
My development work on my many projects comes out of my free time, so if you enjoy this project or anything else I've done on xda, please consider sponsoring my ongoing work using my GitHub Sponsors profile. For a one-time donation you can hit the donate link from my profile. Thank you for your support!
Misc./Batch Tools
AnyKernel3 (many devices) - link
AnyKernel was a simple template for an update.zip that could apply any kernel to any ROM, regardless of ramdisk to reduce the chance of any issues arising from the custom kernel pairing. The drawback to this is that some kernels require modifications to the ramdisk to enable/set up kernel features, and in the old AnyKernel format there was no way to do this. AnyKernel3 pushes the format even further by allowing kernel developers to modify the underlying ramdisk for kernel feature support easily using a number of included command methods along with properties and variables to customize the install experience.
APK-Patcher (many devices) - link
A proof-of-concept, simplifies APK modification to make it easier for modification creators to keep creating. Using JesusFreke's brilliant bak/smali and iBotPeaches' excellent apktool, modified to run on-device along with the various binaries required, allows on-the-fly APK modifications to be applied via recovery, to whatever ROM APK is present, taking the constant update burden off of the modification creator. The zip is smart and automated, using the APK name to run all the various parts involved for complicated patches and is extensible to any number of APKs in a single zip.
Android Image Kitchen (many devices) - link
A collection of Windows/Android ports of the necessary Linux utilities for Android image (kernel+recovery) mod work, and my own automation script to unpack, edit and repack the ramdisk. Other guides/scripts exist but none of them are universal for target device, compression and/or developed for Windows/Android. Now also Linux builds to bring my improved featureset back to where it came from, recently extended to macOS as well. Has been extremely useful for me in my messing around with kernel ramdisks.
ADB Screenshot (many devices) - attached
Take screenshots while in recovery. Useful for development of recovery apps or error reporting. Original method had lots of different threads around with the general method for various devices but I figured out a couple tricks required for getting it working on the Galaxy Nexus and then automated the process. Tested and confirmed working with both pixel formats of CWM and TWRP. More information in this GN Q&A FFmpeg thread. New method uses fb2png and should work on all ARM devices.
ADBsync sdcard Backup (many devices) - attached
Backs up the entire sdcard so that you can have a complete snapshot of your device when you make periodic backups, and be able to restore things exactly as they were. Automates the sync process of Renate NST's great adbsync utility which makes only newer files get pulled, significantly decreasing backup time for the sdcard compared to "adb pull". Original version posted in the old adbsync thread. Defaults for devices with /data/media/ internal sdcards (Nexus devices, etc.), but is easily customizable to backup other mountpoints or backup via ADB over WiFI.
Flashable Script Zips
TWRP A/B Retention Module script (many devices) - link
We need an interoperable root ecosystem again. A/B and system-as-root were a big setback to the root community in this respect. To help alleviate this issue, this atypical Magisk script zip "module" will keep TWRP installed to both slots when flashed from Magisk Manager after an A/B OTA has installed in the background, but before you use Manager to install Magisk to inactive slot.
Nexus BootUnlocker script (GN, N4, N5, N7 '13, N10) - attached
I don't know about everyone else but sometimes I find I've rebooted into the bootloader only to realize I've forgotten to unlock it in segv11's excellent BootUnlocker App beforehand. Well, I decided to make a BootUnlocker Script for my Galaxy Nexus so I could just boot to recovery quickly, unlock, then adb reboot-bootloader (or use my Reboot To Bootloader script below) to get back without having to fully boot the OS to make the change. Also extremely useful in the case you aren't able to boot. As with the app there is no data loss like there would be with fastboot, allowing you to relock for safety. Originally posted in the GN EDIFY Scripting thread. Modified for the newer Nexus devices and combined into a single Nexus BootUnlocker zip with tamperbit reset support added using information from the BootUnlocker App Dev thread. For newer devices using Factory Reset Protection (N6 and later), the BootUnlocker Script can't directly toggle the lockstate due to new security tokens, but it does now toggle the ability to use "fastboot oem unlock" without needing a booted device.
N7 BootUnlocker script (N7 '12) [creation guide] - link
The Nexus 7 2012 is a special case. Per-device encryption of an entire partition makes it impossible to support the N7 '12 in a simple root app, or flashable zip as above, however using my guide and included script you can now create a working BootUnlocker Script Zip for your specific device. As with the above scripts there is no data loss like there would be with fastboot, allowing you to relock for safety.
sdcard Fix Permissions script (many devices) - attached
A little flashable zip script to fix ownership and permissions of files and directories on the sdcard to what they would be if Android OS had put them there itself, since some apps can't access pushed files that have root.root as owner/group. This is useful when restoring to your sdcard backup, as with my ADBsync sdcard Backup batch script above, since generally, pushed files get root.root from adb shell and higher permissions than usual. Also a solution for a bug where sdcard files get lower permissions somehow, resulting in similar access problems. Currently written for devices with /data/media/ internal sdcards (Nexus devices, etc.), but could easily be modified for other mountpoints. No longer required on Oreo since it fixes these itself at boot.
Recovery SLAM script (many devices) - link
Recovery "Simple Legacy Auto-Mount" (SLAM!) is for devices that have been updated to SAR, but there are older zips that break in TWRP because they rely on the mounts occuring a certain way, especially during a ROM OTA. Recovery SLAM mounts them more as the zips would expect, generally allowing them to proceed. Most useful for premounting /system before a legacy zip with my FlashAfterUpdate addon.d script.
SUmount script (many devices) - attached
Another tool for the toolkit of anyone using Chainfire's SuperSU or topjohnwu's Magisk systemless root, this simple flashable zip script toggles the mounting of the su.img, magisk.img and magisk_merge.img while in recovery to allow easier access to the /su, /magisk and /magisk_merge filesystems, simplifying manipulating it via ADB shell, AROMA Filemanager or TWRP's terminal/file manager. Especially useful to anyone who uses su.d/post-fs-data.d scripts or can't boot due to some issue with a user addition in /su/su.d, /su/bin or a Magisk module.
unSU script (many devices) - link
While experimenting with Chainfire's brilliant SuperSU systemless root, I discovered that uninstalling the older style system-modifying root through his app (<2.60) didn't restore all of the modified system files correctly, so I wrote this script to do so and aid in people wanting to unroot from recovery. Expanded to support uninstallation of Koush's SuperUser, phh's Superuser, SuperSU Systemless (su.img and BINDSBIN), Magisk, LineageOS addonsu and custom ROM su binaries.
Adreno Systemless Installer script (N5, N6, N7 '13) - link
For use with Qualcomm's official updated preview GPU drivers packages for Adreno 3xx/4xx-powered Nexus stock images. This is a different frontend to take whatever device zip from Qualcomm is in the same directory as it (also searching /sdcard), then unpack and install it as a Magisk module or into the SuperSU systemless root /su filesystem, instead of the usual /system.
Kernel MultiROM Injector script (many devices) - attached
Intended for use in Chainfire's excellent FlashFire app to automate re-injecting the current boot image ramdisk with Tasssadar's brilliant MultiROM's trampoline bootmenu; this avoids having to do this as an extra step in MR-TWRP following an OTA, ROM Delta or SuperSU update. Should work for all EMMC devices with MultiROM installed.
GN PIT Editor script (GN) - link
Dumps and alters the Galaxy Nexus' Partition Information Table (PIT) to reclaim unneeded space from the /cache partition and add it to /system to allow for larger ROMs and GApps packages to make continued support for Lollipop+ easier. The resulting file is byte-for-byte identical to those created by external tools like PIT Magic, so that it may be flashed back to the device in Odin Mode to complete the repartitioning.
Kernel Emergency Reset script (many devices) - link
Basically a go-to cure-all for custom kernel users experiencing issues after an upgrade due to old settings left over in a kernel control app (eg. franco.Kernel updater, Trickster, etc.), or problematic init.d/userinit.d scripts. It's also useful if you just want to make sure you're running clean defaults without conflicts.
Reboot To Bootloader script (all devices) - attached
Those who preferred using CWM may have noticed a couple of things missing that the other popular custom recovery, TWRP, has built-in. One of these is a file explorer/manager, which is answered by amarullz' brilliant AROMA Filemanager. Another thing I found myself wanting was a way to reboot back to the bootloader once I'm in recovery, so I created this very very simple flashable zip script. (No longer required on CWM >=6.0.3.5). Note: Once in the bootloader, "Start" will boot you back to recovery. Not sure why, but it's not a big deal, just reboot normally from recovery at that point.
Flashable Installer Zips
Flashlt Installer (many devices) - attached
Installs my Flashlt script to allow easy flash and dump of boot, recovery and radio/modem (possibly others) EMMC or MTD partitions while booted, and trimming of null characters from files. Also installs a script zip that makes flashing boot.img (kernel), recovery.img, and radio.img/modem.img (baseband) files via recovery simple. It aims to save the average user the hassle of repacking their own image zip, or using the command-line or fastboot to flash it. Place an appropriately named file in the same directory as the zip and flash away! Should work on all devices with normal partition naming ("boot", "recovery" and "radio" or "modem") which accept Android standards-compliant images (including a/b slot devices like Pixel). Extremely handy when used with amarullz' brilliant AROMA Filemanager, and/or my Android Image Kitchen: Mobile Edition (linked above).
Busybox Installer (all devices) - attached
A byproduct of building my own static busybox compiles in all Android architectures for my AIK-mobile package, I figured I might as well offer them up separately as well since there weren't any providers making Android x64 builds when I was researching. Detects device (ARM/64, x86/_64, MIPS/64) to install the busybox binary, cleans up symlinks from any previous install and generates new ones. Detects and supports SuperSU/Magisk systemless installs. Please read the release post about applet inclusion and special features.
nano Terminal Editor Installer (many devices) - attached
An installer to push my own static Android ARM build of the nano editor and required files to /system/xbin and /system/etc/terminfo, with a wrapper adding a --term option to try terminfo profiles more easily. Detects and supports SuperSU/Magisk systemless installs. Can then be used from Terminal while booted. When flashed in recovery also allows temporary recovery use by pushing a script to /sbin/nano with the required setup, so you can trigger it from adb shell or TWRP Terminal. Makes it extremely easy and worry-free to tweak and mod on the go, knowing you can edit the faulty build.prop or startup script if something goes wrong.
adb + fastboot Installer (many devices) - attached
Marshmallow removed adb from the /system/bin directory. For those wanting this functionality back, here's an installer to push static compiles of adb and fastboot to /system/xbin, with a wrapper to point adb to the correct HOME directory and set TMPDIR for compatibility. Detects and supports SuperSU/Magisk systemless installs. Can then be used from Terminal while booted.
Nexus Media Installer (many devices) - attached
Custom ROMs usually don't include Google ringtones/notifications/system sounds and bootanimation, instead including numerous terrible sounds and often less-than-desirable visuals. This installs the media from old Nexus devices systemlessly (SuperSU and Magisk supported), or to system with an addon.d script to survive a ROM update or dirty flash, and using the zip name (also reading from /data/.nexusmedia) to allow user choice.
mtd-utils Installer (many devices) - attached
mtd-utils (flash_erase, nanddump, nandwrite) are necessary for mod work on a number of Android devices using mtd/char devices instead of the more standard emmc/block devices, and where the busybox versions have been less reliable in the past (especially where it doesn't include flash_erase), using the official suite is preferable. The older ARM builds available on XDA were about a decade old, so I worked out how to configure and cross-compile from the latest source. Detects and supports SuperSU/Magisk systemless installs. Can then be used from Terminal while booted
ZipSigner + Zip Installer (many devices) - attached
Signing zips and APKs on-device has always been a tricky proposition due to memory requirements of the old SignApk.jar, running a jar on an Android device, and other complications for script-based zips. Android has always been missing a zip binary (for unzip see my Busybox Installer). ZipAlign is also handy if you do APK work. To remedy this once and for all, here's an installer to push my dexed version of topjohnwu's brilliant zipsigner.jar and static ARM compiles of zip and zipalign to /system/xbin, with a wrapper to run zipsigner with Android's dalvikvm. Detects and supports SuperSU/Magisk systemless installs. Can then be used from Terminal while booted.
odex Script Installer (all devices) - attached
Based on the great work and binaries from this thread, a simple installer to push my odex script along with the required dexopt-wrapper and zip binaries to /system/xbin and set the appropriate permissions. Automates the procedure to odex any apk or jar from the commandline to potentially improve performance. Dalvik runtime (KitKat and below) only. Also uses cut from busybox.
N5X/6P BLOD Workaround Injector (N5X, N6P) - link
When, unfortunately, my Nexus 5X was recently stricken with the abominable Bootloop of Death, I looked into the well-publicized workaround and turns out it was all contained in the ramdisk and cmdline of a Android image. This is the perfect application of AnyKernel2, so I made an AK2 add-on zip to patch both the current boot and recovery partitions with all the current workarounds to help others afflicted by this issue to hopefully regain their data/device as easily as possible. Linked is the Nexus 5X thread, the Nexus 6P thread may be found here.
N7'13 TWRP flo2flox Injector (N7 '13) - link
The Nexus 7 2013 (flo) has seen a bit of a resurgence with official Lineage 18.1 support repartitioned as "flox". Since official TWRP is still automatically being built only for flo and this isn't compatible with flox, and the minor changes required for flox support were a great application of AnyKernel3, this zip automates the patching process so making official TWRP from flo2flox is easy for all going forward.
GN Synapse Support Injector (GN) - link
This AK2 kernel add-on for the Galaxy Nexus injects support for the Synapse tweaking app into the current boot partition ramdisk, including all the Synapse interfaces for the GN I've maintained since the Franco Kernel and DirtyV Kernel days.
GN Recovery Color Correction Injector (GN) - link
The aging screen on the Galaxy Nexus was looking pretty rough in recovery until I discovered the recently added new OMAP kernel color correction was also present in the most recent TWRP recovery versions. So this add-on zip uses AK2 to patch the current recovery partition ramdisk to add the command to reduce that green/yellow SAMOLED nastiness.
Kernel init.d Support Injector (many devices) - attached
An experimental proof-of-concept. Following from great ideas by Captain_Throwback in my AnyKernel2 thread and using script from my Flashlt script above, this AK2 zip will inject basic init.d bootscript support into any kernel ramdisk on any emmc device with normal partition naming and using the Android bootable image standard, without having to bloat a ramdisk using a busybox binary. This zip is also signed, so could potentially be used with non-Nexus stock recovery on a locked bootloader.
CMSetup Fix for GApps Installer (many devices) - attached
Installs a su.d script fix to work around the CyanogenMod/LineageOS 13 ROM issue of a broken Quick Settings pull-down when CMSetupWizard is removed as part of a GApps installation. Removing CMSetupWizard is useful because it allows Google's SetupWizard to grant apps default permissions, so the workaround automatically executes the only required command at the appropriate time following first boot. Requires a SuperSU/Magisk installation (for su.d/post-fs-data.d support). Flash after the SuperSU/Magisk zip and your GApps.
Dev Team init.d Pack Installer (all devices) [see "950iosettings, etc." below] - link
A simple installer I wrote to create the /system/etc/init.d/ directory, extract the latest init.d scripts as published by the "Franco's Dev Team" tuning collective (of which I was a member), then set correct owner, group and permissions to the entire init.d directory. If you are a developer and would like to include these tunables/scripts in your kernel or ROM please provide credit. A lot of time and effort has gone into this project and that's all we ask.
Scripts
950iosettings + 875mntsettings + 925vmsettings + 975experimental init.d scripts (all devices) [with Franco's Dev Team] - links
Also available bundled in an installer. The scheduler tunables have already gained a bit of attention/adoption on various devices and kernels, but this is the init.d script I wrote to set the new custom scheduler tunables values as "default" by an independent loop, sleeping in the background and detecting each time the scheduler is changed. There is no effect on idle drain or deep sleep. The settings included are the complete work of the "Franco's Dev Team" (or "Team Franco") tuning collective, of which I was a member. We strove to perfect the scheduler, vm and various other settings for the smoothest and fastest experience available. The collective was: malaroth, osm0sis, joaquinf, The Gingerbread Man, pkgnex, Khrushy, shreddintyres. If you are a developer and would like to include these tunables/scripts in your kernel or ROM please provide credit. A lot of time and effort has gone into this project and that's all we ask. Lollipop(+) updated versions now also available through the continued excellent work of pkgnex.
999-flashafterupdate.sh addon.d+addon.d-v2 script (many devices) - attached
For ROMs that don't have "Flash After Update" support built into their delta/update process. During an upgrade, this script will flash zips from an sdcard directory, with several options (listed in the script header) for displayed output, after all other addon.d backup/restore actions have completed. This can be used to flash SuperSU and then an AnyKernel2 kernel on LineageOS, for example. Only zips that specifically support addon.d-v2 can be supported on A/B devices. See this how to for instructions for use with A/B devices. Unzip once downloaded and place in /system/addon.d/ with rwxr-xr-x (755) permissions.
98-twrp_ab.sh addon.d-v2 script (many devices) - attached
Allows you to keep TWRP installed in a boot partition through A/B OTAs with Magisk installed by copying the TWRP ramdisk from the current slot to the updated one, before Magisk's addon.d-v2 script patches it. Requires a current Magisk installation since we need the tools and Magisk's the only way to ensure a working addon.d-v2 environment across ROMs at the moment. Unzip once downloaded and place in /system/addon.d/ with rwxr-xr-x (755) permissions.
97-dumpimages.sh addon.d+addon.d-v2 script (many devices) - attached
For ROMs with boot.img, etc. inside an OTA payload.bin or otherwise inaccessible, it dumps the updated chosen partitions before further modifications (TWRP, Magisk, etc.), saving it to /sdcard/Download/boot.img or to/from other customizable locations at the top of the script. Unzip once downloaded and place in /system/addon.d/ with rwxr-xr-x (755) permissions.
00-omnirootfix.sh addon.d-v2 scipt (many devices) - attached
OmniROM appears to include 69-gapps.sh automatically in its /system/addon.d directory despite not shipping with any GApps; when not rooted this doesn't appear to present a problem, but really this is only because the script doesn't have enough permissions to run how it's supposed to since Omni's sepolicy doesn't let addon.d-v2 work correctly. Once Magisk is installed, providing more privileges to the addon.d-v2 update_engine, Omni's 69-gapps.sh would remove important system files during an A/B OTA when no GApps were installed, so this script will simply prevent that for those wanting to run Omni minimally and with root. Remove the .txt extension once downloaded and place in /system/addon.d/ with rwxr-xr-x (755) permissions.
00-resizesystem.sh addon.d script (many devices) - attached
One common solution for aging devices is to resize the /system partition so that it can hold newer, larger ROMs and, of course, GApps packages. On devices where the /system partition has been resized to hold larger GApps packages, but the ROM in use has system.dat format zips with no resizing functionality, the extra space would get lost in a ROM delta flash, breaking things when GApps attempted to restore. This script will resize the system partition to its maximum before the GApps restore occurs on EMMC-based devices with standard partition naming. Remove the .txt extension once downloaded and place in /system/addon.d/ with rwxr-xr-x (755) permissions.
10-extract-lineage-kernel.sh addon.d script (many devices) - attached
Nowadays with systemless root and other boot.img mods out there, it's good to have a backup of your ROM's unmodified boot.img handy in case you want to do a clean flash of your boot partition. Since LineageOS moved their update zips to a /data/data subdirectory that made this harder to get to, I automated the procedure as an addon.d script so that the newest gets extracted on each update. The output directory may be changed by editing the script. Remove the .txt extension once downloaded and place in /system/addon.d/ with rwxr-xr-x (755) permissions.
999-customkernel.sh addon.d script (many devices) - attached
Addon.d is awesome at restoring your GApps, root app, and other things after a ROM Delta, update, or dirty flash, but of course this can leave a lot of stuff out that you'd also have to re-flash (see below for a personal addon.d script you can modify to cover anything else you want to save). This script aims to help remedy the issue for custom kernel users on EMMC-based devices with standard partition naming by dumping the current kernel as part of the addon.d backup process, and then restoring it after the ROM has flashed its included kernel. Remove the .txt extension once downloaded and place in /system/addon.d/ with rwxr-xr-x (755) permissions. This is deprecated by my FlashAfterUpdate addon.d script, above.
logohack.sh (GN) - link
Galaxy Nexus bootloader image replacement hack script. Inspired by bitdomo's brilliant imgdata tool and replicating the functionality of Ezekeel's abandoned, broken paid Logo Me app, this script improves upon the app version by working on all Galaxy Nexus bootloaders and on-the-fly, to allow replacement of the Google logo and lock images within the sbl partition. Remove the .txt extension once downloaded and place in /system/bin/ or /su/bin/ with rwxr-xr-x (755) permissions. It can then be run from the Terminal.
flash_image (many devices) - attached
MTD devices require a little extra finesse when flashing partitions from the command prompt and multiple commands, versus MMC devices, for which we can just use the dd command both ways. I wrote this little script to simplify the process for myself in my MX Box tinkering. It parses /proc/mtd so you only need to enter the partition name. It requires _n0p_'s excellent MTD-Utils compiled for Android, and uses grep and cut from busybox. Remove the .txt extension once downloaded and place in /system/xbin/ with rwxr-xr-x (755) permissions. It can then be run from the Terminal.
getprio (all devices) - attached
Android doesn't allow you to check the priority (or "niceness") of a process with the getpriority command as you would with normal Linux, and busybox doesn't provide this functionality either, so I wrote this reasonably simple script to allow you to check the niceness of a process. Some kernels have been experimenting with increasing the priority of com.android.systemui for smoothness, so this command can be used for testing different levels and whether the renice command set it correctly. Remove the .txt extension once downloaded and place in /system/xbin/ with rwxr-xr-x (755) permissions. It can then be run from Terminal with either the pid (default), class or a class name search string. Uses pidof and pgrep from busybox.
gappsintegrator init.d script (many devices) - link
ROM GApps Auto-Integration of /data/app GApps into /system, complete with libs (unlike Titanium Backup), for Jelly Bean through Marshmallow. It should process things early enough in the boot that afterwards Dalvik will immediately do the cleanup ("Android is upgrading..."), much like following an OTA. An initial GApps installation is one requirement and there are some important notes for support of Lollipop and above. Intended for ROMs with a busybox installation. Can also remove libs from and zipalign the integrated APKs if those binaries are present in the ROM.
lmkwhitelist init.d script (all devices) - link
Users running ROMs or kernels with extremely aggressive custom lowmemorykiller (lmk) driver settings may notice their launcher redrawing frequently. Some kernels/ROMs also include an exclusion for this by making stock (or the included) launcher unkillable, however that still leaves all the 3rd party launchers out there that people use. I wrote this init.d script with a community created list of the most common launchers to make whichever one is installed unkillable. This also has instructions for how to set up init.d scripts. If your launcher isn't included in the list, you can modifiy it by adding the application class name (from the Play Store URL) to the list within quotes, separated by spaces. Also part of the 975experimental Franco's Dev Team init.d script, linked above.
dalvik2cache init.d script (all devices) - link
Bind mounts the dalvik-cache directory to the cache partition. Useful on devices where the cache is sizable and unlikely to be used for OTAs (custom ROM, etc.), and the data partition is not. Every little bit counts!
settingsdump.sh (all devices) - attached
In comparing vm settings from various kernels and ROMs to see what's out there, I wrote this script to generate a list of the values of all the relevant sysfs files and directories. Now expanded to cover cpu and governor as well. Remove the .txt extension once downloaded. To run it, assuming you just put it in /sdcard/, open Terminal Emulator and type: "sh /sdcard/settingsdump.sh" (without quotes). It will output the file to /sdcard/r*-output.txt where * is the revision of the kernel you're running. This makes it easier to compare what's changed between different nightlies, for example.
Other
BootUnlocker app (many devices) [with segv11] - link
With a number of users researching and contributing the bootloader lockbit and tamperbit offsets in threads around xda and to the development thread for seg11's excellent BootUnlocker app, I have begun making beta builds with these new devices added. With hopes of adding any/all that can be, it now supports all the older Nexus devices, OnePlus devices and several others. We are accepting Pull Requests and collaborators for further device/design updates. Check my original revival post for more details.
G-Box Midnight MX2 g18ref ROM, recovery and kernel osmods (MX Box) [with BenniBenassi & relol] - link
I bought one of these unbranded Android TV boxes and was immediately determined to tweak it as much as possible following my work on the Galaxy Nexus. Flashing the official Matricom stock ROM over the generic included one I also discovered the recovery didn't have any A/V output to my old CRT TV. I set out to dump the kernel and recovery images, fix the recovery images and tweak the kernel defaults for the most performance.
Holo Stock Notification Icons for Notification Toggle (many devices) - link
This was likely my first post ever on xda. It is a "Notificon" pack for j4velin's fantastic Notification Toggle App, bringing a seamless stock look to this indespensibly useful app. Also a great way to get back to Settings easily from the notification shade since Android 4.2, and add shutdown/reboot menu functionality to stock/vanilla ROMs.
My GN Kernel Settings + 900colorsettings init.d script (GN) - link
I was being asked a fair amount for my kernel settings over in the GN f.K thread where I helped out, so I posted them up. I also put up an init.d script for setting color values on boot, which can drastically change the outcome on older panels, and at least makes custom values seamless. Instructions for how to set up init.d scripts are included.
Galaxy Nexus Baseband Collection: maguro - i9250 / M420 / SC-04D Radios (GN) [with josteink] - link
Original thread author josteink moved on to other devices and asked me to take over the thread. Lots of great information on the GN radios, posted alphabetically by region and chronologically by the build string date I found embedded in the images. Huge respect and massive thanks to josteink for seeing the need for a baseband thread almost as soon as the Galaxy Nexus was launched, way back in December 2011, and maintaining it diligently.
TK GApps (many devices) [with TKruzze] - link
After helping TKruzze with some of the concept and script work for his famous Paranoid Android Google Apps packages (PA GApps 2.0), we decided to collaborate again for his return to XDA after a much-needed hiatus, with me doing the thread setup and management with DevDB, and a Q&A section so things don't get overwhelming for those trying to follow along. The main thread remains locked and can be subscribed-to for those wanting notification only when there's a new GApps release, and the Q&A functioned as the main discussion thread where people can help each other. Much of the script is the same from PA GApps but TKruzze has added some impressive new features, made many fixes and revamped a large portion of the documentation. I also continued as an adviser and submitted script when needed.
Nexus Louder Audio Improvement Patch (GN, N4, N5, N7 '12, N7 '13) [with Misledz] - link
One of my earliest forays into EDIFY scripting, I wrote the flashable zip install/revert scheme for this great volume boost mod by Misledz. The scripts check to see if the mod is already installed and if so recommends you flash the version-specific revert that goes with it. More on that in the Intelligent EDIFY thread. During install the script also backs up the ROM files it replaces so that you don't need to reflash your whole ROM if something goes wrong, just use the revert to restore the backups. I eventually rewrote this completely in shell script with a Universal install/revert, that detects which files to backup and leaves a list for itself to revert. I also wrote automation batch scripts for Misledz as the "Louder Build Farm" to simplify his work for all the versions of the mod he maintains for various devices, linked in the knowledge base below. GN/Dev thread linked; Other links can be found there.
Payload-Dumper-Go for Android Magisk Module (many devices) [with ssssut] - link
payload-dumper-go arm compile and wrapper for use extracting from payload.bin on-device.
Git for Android Magisk Module (many devices) [with Termux] - link
Hacked arm64 git commands for use on booted Android.
Google Experience XML Magisk Module (many devices) [with Google] - link
Hacked Google Nexus/Pixel/Android One sysconfig feature xml entries for use on non-Google devices.
Digital Wellbeing Add-on Magisk Module (many devices) [with Google & Open GApps] - link
Digital Wellbeing for Android 12L and 13 GApps that don't properly support it (like MindTheGapps).
Model Mod Magisk Module (many devices) - link
Experiment to append _SN to the existing device model to get CTS passing again after the September 2021 server-side SafetyNet changes, (superceded by kdrag0n's excellent Universal SafetyNet Fix module).
Xposed Framework Installer Zip (many devices) [with rovo89 & Tungstwenty] - link
When JB4.3 broke all previous root methods I made this simple frontend script to install rovo89's brilliant Xposed Framework for modding ROMs until they could release a new version themselves. Xposed Framework files and the install.sh used are the work of rovo89 and Tungstwenty; I have only created a recovery flashable zip and shell script to function as an alternative frontend for the framework installation process. Then updated to mimic the APK installation and allow devices with /system write protection like HTC's S-ON to install the framework. (Deprecated as of Xposed 2.5).
BBCode for my xda Signature (n/a) - link
Last and definitely least. A number of people have asked me about the formatting of my signature, so here are some simple BBCode tricks and workarounds I thought others might like too. Keep in mind that my signature can be significantly larger because of my RC status.
Enjoy!
Questions, comments and feedback welcome.
Credits & Thanks: All authors of any included binaries and libraries for their amazing work. Anyone who's helped me with these projects along the way.
Disclaimer: Naturally, you take all the responsibility for what happens to your device when you start messing around with things.
Knowledge Base
Links to information/research posts I've made and other experiments.
----
avbtool-arm (zip package) - link
AOSP's BootSignature.jar for AVB v1 was relatively simple to run on-device for boot.img modifying flashable zips like SuperSU and AnyKernel2 but avbtool for AVB v2 is written in Python, so that makes things a bit trickier. For experimentation I whipped up a little wrapper script to run avbtool on-device with an actual Python interpreter.
Omni SoundPacks (and Nexus Stock pack) - link
My suggested expansion to the Omni SoundPacks feature to allow it to cover all SystemUI sounds.
OnePlus FingerPrint Material Icons (Information) - link
My preferred fingerprint icon for the in-screen OP6T sensor using Zacharee1's excellent OPFPControl app.
----
Complete Shell Script Flashable Zip Replacement + Signing Documentation (Reference) - link
Using a shell script instead of an update-binary in flashable zips can make them universal for architecture and put a lot more power in the hands of the developer. This reference documents all of the analogous functions myself and others have written to make this easy.
Booted Zip Flashing Shell Setup Script (Reference/How-To) - link
My implementation of booted zip flashing, originally for AnyKernel2 in Franco Kernel Updater (now Franco Kernel Manager) and since expanded to support AK3's ability to be flashed from anywhere and support most other flashable zips on devices that allow remounting /.
Unified ext4/f2fs ramdisk + ROM installer (Reference) - link
Supporting multiple filesystems like ext4 and f2fs in a custom kernel boot.img ramdisk required some work before custom ROMs were updated to do this themselves and use fallback fstabs. This is the roll-up post gathering all the changes necessary for someone to add this pre-official support to their ramdisk, kernel and ROM installers.
FlashFire Recipe Book (Reference/How-To) - link
Just a quick reference of common tasks (OTA flashing, etc.) for people figuring out how to use Chainfire's brilliant flashing app.
personal addon.d (How-To/Template) - link
I was tired of having to redo a number of tasks (remove files, backup Nexus sounds and replace the AOSP ones, etc.) to get my device back to where I wanted it after flashing a newer nightly, so I wrote an addon.d script to do it all for me. Provided if anyone wants to modify it for their own personal setups.
KBox2: Set Up A Build Environment On Android (How-To) - link
Very cool Linux-like command prompt environment on Android. I originally had it set up as a native build environment with rudimentary git support. You can follow my steps to do the same.
Keeping SafetyNet Passing With Incremental Google OTA on Virtual A/B Devices (How-To) - link
Post-reboot checks added to the incremental OTA process for Virtual A/B devices using Google's servers made it impossible to remain rooted throughout the OTA process, but following these instructions you can complete the OTA then re-root without SafetyNet catching you.
Cygwin-Linux Cross-Compiler (How-To) - link
Compiling from Cygwin with a Linux target required some fixes to the toolchain, so I detailed them for future reference.
N4/N5/N7 '13 Qualcomm Optimized Bionic/Dalvik Patch Comparisons (updated zips) - link
Using Qualcomm optimized files on Snapdragon devices improves performance greatly on KitKat. Especially good on Nexus devices or AOSP ROMs. I took the time to dissect the required files and see what worked best.
AIK Build Farm (desktop shell script) - link
The Cygwin shell script "build farm" I wrote for my Android Image Kitchen project to perform all of the cross-compiles required for the mobile and Linux versions. Allows someone to setup the repos from scratch and build.
Louder Farm (zip packages) - link
The Nexus Louder project was a pretty massive system file modifcation undertaking. This details my work to make building the patch zips easy for co-dev Misledz, and includes the farm packages at various stages.
----
N7 '13 Bootloader cracking (Information) - link
Sat down with my parents' Nexus 7 2013 (before I got my own) over Christmas and cracked the bootloader for unlock support via my Nexus BootUnlocker Script zip and later the official BootUnlocker App.
N7 '13 Unbricking (Information) - link
Instructions I put together for recovering from a hard brick (bad bootloader flash usually), via the exposed Qualcomm/Marshall London "HS-USB Diagnostics 9006" mode.
Default System Alarm Setting Script (Information) - link
A script snippet function to allow easily changing the default alarm sound on ROMs that hide this ability, like OnePlus' OxygenOS.
SELinux Audit2Allow Script (Information) - link
A script snippet for turning SELinux audits in a logcat into allow statements ready for supolicy or magiskpolicy.
Partition Dumping Script (Information) - link
A script snippet for dumping all non-userland partitions from any eMMC device, useful for bootloader lockstate hacking.
GN Partition Information Table (PIT) Research (Information) - link
Wanting to push the GN as far as possible, several remaining users came together to discuss how it could be repartitioned to add more space to /system to better support Lollipop+ and I contributed a large amount of R&D over several posts throughout the thread which resulted in the PIT Editor script zip (posted above). Could be useful for other devices using PITs as well.
GN/N7 '12 tunables post (deprecated) (Reference) - link
The list of supported basic tunables on franco.Kernel for the Galaxy Nexus and Nexus 7 2012 back when those were my primary supported devices.
GN scheduler tunables HZ scale (Information) - link
The Galaxy Nexus scheduler (and other) tunables opperate on an odd scale due to the the device's HZ value in the source being weird. This post experiments with that and finding the method/equation behind it.
LMK boot timing (Information) - link
The Android lowmemorykiller module default tunables go through a bizarre sequence during boot, so I experimented and came up with a script to allow setting alternates as soon as possible.
LMK Launcher Whitelist/Niceness settings reversion (Information) - link
Setting oom_adj values and changing the niceness on launchers and systemui improved responsiveness and helped avoid these important processes being killed by LMK. Then I noticed sometimes they spontaneously reset; experimentation followed.
MTD partition flashing (Reference) - link
My MTD-based MX Box set-top device gave me a few hours of headaches until I figured out how to dump and flash the boot (kernel) partition correctly. This details my experiments and the correct procedure I discovered.
nano Android static build instructions (Reference) - link
A little documentation of all the dirty tricks I used to get the nano terminal editor utility to build for Android from the official git repo source.
mtd-utils Android static build instructions (Reference) - link
A little documentation of all the dirty tricks I used to get mtd-utils to build for Android from the official git repo source.
Pixel Launcher bind mount instructions (Reference) - link
I was annoyed that on stock Nexus 5X and 6P Pixel Launcher wasn't available and when sideloaded lost the Google Feed pane, so I replaced Google Now Launcher with Pixel Launcher using bind mounts.
Netflix broken DRM workaround instructions (Reference) - link
Custom Nexus 7 2013 ROMs Nougat+ have all had issues with Netflix due to some peculiarities of the DRM libraries the ROMs use, but some found that intentionally semi-breaking DRM using files from other devices allows Netflix to work again, but this broke Google Play Movies. I did some more testing, resolved the Play Movies issue and wrote up how to install the single needed replacement library either to system or with a systemless bind mount.
----
Thanks for the interest! More to come, I'm sure!
What can I say...
SUBSCRIBED
Sent from my Galaxy Nexus
Far superior
thanks
Franco Team always made a great work .... Keep it up.
Thanks for these great useful infos!
Bookmarked, subscribed and rated a well deserved 5 stars :good:
Thanks for sharing. Very useful.
Nice...
Envoyé depuis mon Galaxy Nexus avec Tapatalk
Nice collection osmosis
Many thanks osm0sis, to you and all the team for all your contributions Almost feel as though I know you since I've been hanging round GNex and N7 franco.Kernel threads for so long and if you pop up on the N4 thread it's like seeing an old friend I'm mostly quiet, but really appreciate all you do :thumbup:
Sent from my Nexus 4 using Tapatalk 2
Subscribed... Thanks dude...
-3StarsAndaSun
Subscribed. Thanks
Thanks back to you, everyone! I've learned a hell of a lot about Linux and Android in the year since I got my GN, and I mostly have xda to thank for that, even though I've always been the type to tinker and Google things. Still lots more to learn though! But, at the very least I guess nobody can say I haven't been busy since becoming a RC, huh?
Nice to see all these settings are adopted by others, also the interactive tuneables are used in ak kernel now.
Verstuurd van mijn Nexus 7 met Tapatalk
Subscribed :good: !
New version of testvalue.sh up. I added the input value to the output.txt file to make it easier to read since it starts at 0. Right now we're trying to work out the equation for the scale of certain cfq and deadline tunables on the GN, which is a bizarre one:
7, 15, 23, 31, 39, 46, 54, 62
Increases by 8s but occasionally (on the 5th jump, though sometimes 6th) it increases by 7.
Edit: Every 3rd increase of 7 occurs on the 6th instead of the 5th.
Edit 2: Stats genius of the group, @pkgnex worked out what the trick was; dropping the decimals once calculated.
So in Excel: y=TRUNC(x*7.8125,0)
:good:
The "why" of the GN tunables working this way, with a value of 125/16 is a very good question. No ideas there, personally. Something to do with the GN having a HZ value of 128 (where on others it's 100 or even 200) I'd assume, but I don't see the direct connection.
This was very handy to know though, because the cfq+deadline source requires the number of jumps (x) to hardcode the values, not the actual desired numbers like you'd expect.
Perfect!!!
Very interesting
Created a getprio script last night for use in /system/xbin as a runnable script to check the niceness of a process. It's up in the 2nd post now. It attempts to make up for Android not having "getpriority", and not displaying the niceness in "top" or "ps" like it would on mainstream Linux.
Code:
usage: getprio [-p] <pid> | -c <class> | -s <search string>
note - class name search will only use the top result
So you can either -p the numeric pid of a process if you know it (this is the default so the -p argument is optional), -c the class name of the process (eg. com.android.systemui), or -s a search string using part of the class name (eg. systemui). If there is more than one result for the search only the top result will be returned so if you are trying something like "-s mms", you'll only see the system mms process and not com.android.mms until you get more specific with "android.mms" or something. It's likely you've got a lower level process if you get the response "Warning: empty class name!" so that's your tip your search was too broad. Naturally, processes must be running in order to return info as well. :good:
Edit: ps -p will display niceness on Android, but it's not ideal if you want it only for a specific process like with getpriority. Thanks boype.

[MOD] Project Direct Inject (v3.2.6) (CPU Tuner*RNGD*Speed) (2.3.3 - 4.2.2)

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
PROJECT DIRECT INJECT
Exit_Only said:
Welcome to the world of direct injection, Its been unavailable for your android smartphone...UNTIL NOW. This tweak package takes your android device to a whole new level of awesomeness by direct injecting high octane scripts into your turbocharged engine.
This is a collection of scripts from multiple developers repacked into one package. Big thanks to all the developers involved.
Click to expand...
Click to collapse
This mode is incompatible with some devices\firmwares or create various system problems! Make a nandroid backup before installing.
General Q & A Section:
Q.) How can I tell if this is actually working or not?
A.) Open Terminal Emulator and type this command...
Code:
su
directinject
Q.) How can I see if rambooster work properly?
A.) Open Terminal Emulator and type this command.
Code:
su
rambooster
Q.) How cand I see if entropy working properly?
A.) Open Terminal Emulator and type this command...
Code:
su
entro
Q.) How can activate RNGD and entro binaries?
A.) Open Terminal Emulator and type this command...
Code:
su
entropy
Q.) How do I turn on entropy?
A.) Open Terminal Emulator and type this command...
Code:
su
entropy_on
Q.) How can I stop entropy?
A.) Open Terminal Emulator and type this command...
Code:
su
entropy_off
Q.) How do I uninstall it?
A.) Download the uninstall, you put on your card and then flash the file.
Code:
su
uninstall
reboot
Q.) Can I use DirectInject and Crossbreeder?
A.) Yes, you can.In the first time disable entropy (on DirectInject) then install Crossbreeder.
Q.) How do I install NOS Control?
A.) NOS Control installs like any .apk
Q.) How can I get CPU Tuner on my device?
A.) Open Terminal Emulator and type this command...
Code:
su
cputuner
GENERAL WARNING: Do NOT I repeat DO NOT use ANY other tweaks with this package. There are only two approved scripts that are compatible with this, Seeder Entropy and Cross breeder. If you choose to do so after reading this you do so AT YOUR OWN RISK. If you ask bout other tweaks in my thread YOU WILL BE IGNORED.
WHAT IS NEEDED TO INSTALL Project Direct Inject:
1.) Root access (su binary required)
2.) Busybox v1.20.4+ w/ run-part support (busybox required)
3.) Need to be on 2.3.3+ gingerbread or higher
4.) Terminal Emulator app app installed
5.) Enough space in your /system partition (10 mb available minimum)
If you do not meet these requirements then DO NOT USE IT!!!
WHAT IS NEEDED FOR CPU TUNER:
1.) Need a fully unsecured boot.img (Look inside "default.prop", if it says "ro.secure=0" then your kernel meets this requirement, if it says "ro.secure=1" then cputuner WILL NOT work!!!)
2.) Your need a kernel that supports max overclock freq of 1.3ghz and a min freq of 384mhz.
3.) Need a kernel that has these 3 governors (Conservative, Ondemand, and Performance)
4.) On HTC Sense ROMs you need to disable per flock (Setcpu will do this for you)
If you don't meet ALL these requirements then do NOT attempt to use CPU tuner!!!
Installation
1.) Make sure you meet the requirements above
2.) Download the latest version of Project Direct Inject
3.) Boot into recovery (TWRP or CWM doesn't matter)
4.) Make a nandroid backup
5.) Flash inside cwm recovery
6.) Reboot
7.) Press thanks button me and Exit_Only
APK Direct Inject Control
What i need to install this app:
Terminal Emulator
Project Direct Inject
Direct Inject is an application that gathers in one place all orders of Project Direct Inject
Ryuinferno said:
Behold.....
THE NOS Controller!!! Since many of you find it troublesome to key in commands every time, I wrote up a damn simple app to save those finger punches!!! Well, I am currently limited by my knowledge of Java, this is the best I can do for now (Requests? Be prepared, I won't attend to any as I can't add more features yet...more learning to do...sorry... )
But, take note that you will need to install the latest version of 4cyl Turbo v0.5.7_r2 w/ 250 shot NOS first and have Terminal Emulator installed before using this app! Do not be silly and think that this app is gonna do everything for you!
The app is very simple and straightforward, so no instructions will be given here...enjoy!
Click to expand...
Click to collapse
Download Direct Inject Control: Click Here
About the Tweaks:
8 init.d scripts total (11 init.d scripts if you opt for NOS Entropy, zRAM, and Int2Ext)
Zipalign /data & /system apps on each boot ( With detailed Logging of Activities)
Calibrates Battery automatically (make sure your battery is at 100% before flashing)
NOS Entropy with Light, Moderate, and Aggressive Governors (Optional during install, Moderate is default governor)
Ext4 Tweaks
Zero UI Lag
Maxed out speed & Performance
Disables most logging activities
GPS enhancements (USA/CANADA/MEXICO/ALASKA Only)
Sqlite3 for Jellybean (Complied from CM10.1 Source)
4.2.2 Binaries (Better app processing, Complied from CM10.1 Source)
Disables logcats
Get your Privacy back (No internet redirects)
Lots of kernel tweaks (Disabled most kernel sleeps and Adjusted Linux values)
Extended Reboot Commands
VM heap tweaks
Net speed tweaks
Ext4 Perfect Remount
Outstanding battery life
Sqlite3 Reindexed and Vacuumed (If you see errors in db files please ignore, this is normal operation)
RAM booster and Media Server Killer binary (Very Aggressive RAM Recovery tool)
4Cyl Turbo Binary (Exit_Only Exclusive)
Stable relase:
Download v.3.2.6: Click here
Code:
Fixed the three remaining bugs in v3.2.5_t9 and removed the touchscreen tweak as it was causing screen issues on some devices!!!
Download v3.2.4: Click Here
Code:
v3.2.4 - Fixed ALL bootloops on ALL devices
Added seperate flashable zips for Sqlite3 Binaries in SECOND POST BELOW OP
Removed Max Freq mod in CPU Tuner
Removed needed interactive Gov and now using Ondemand Gov
Updater script now backups and restores CronMOD int2ext scripts by default
Updater script now backups and restores CM init.d scripts for Selinux and Userinit
Fixed ALL remaining bugs
Added new entropy scripts for on & off Functions
Updater no longer removes Crossbreeder during install process
Added Sqlite3 Database Optimizer Script (YOU NEED TO FLASH THE REQUIRED SQLITE BINARY IN THE SECOND POST BELOW THE OP)
Fixed Deepsleep script to work correctly without errors
Much more im sure I am forgetting!!!
Download v3.2.2: Click here
Code:
v3.2.2 - Fixed All Boot Looping issues on ALL DEVICEs
Fixed Bootlooping on HTC Sense Devices
Removed Zipalign on boot script and binary
Added BRAND NEW Cpu Tuner script and binary
Pick between three different profiles (Battery, Performance, or Balanced)
Fixed Battery drain on single core devices
Adjusted Minfree values to be more aggressive
Fixed Assert Error from test releases
Read Ahead set to 3072kb
Updated Logging engine
Plenty more I am forgetting!!!
Download v3.2.1: Click here
Code:
Lots of upgrades to cputuner with new CPU core log engine
Added brand new move dalvik script
Much more coming later!!!
Download v.3.0.0: Click here
Code:
v3.0.0: Started over with complete rebuild
Must lighter and much faster
Installs correct busybox to /xbin
Only 2 binaries now 'directinject' & 'rambooster'
Updated rambooster + added init.d script to run ram booster every 45 minutes
Auto runs zipalign every 2 days or 48 hours
Patched rngd binary for better entropy generation without killing battery life
Adjusted Linux values
Brand new interval script
Brand new iptable rebuild script
Much much more!!!
Download v.1.0.2: Click here
Code:
v1.0.2: Fixed image issue
Added newest code to entire project
Added new functions to sqlite scripts
Added new warnings during install
Download v.1.0.0: Click Here
Code:
v.1.0.0. A new world, a new script
[B]FIRST RELEASE OF PROJECT DIRECT INJECT[/B]
Download v0.7.0: Click here
Code:
v0.7.0: Added new and improved DNS caching (Similar to crossbreeder)
New init.d script that automatically activities DNS caching
Added new DNS tweaks for build.prop
My new custom 'dnshelp' binary that will help you use dnsmasq binary
Modified rambooster (Two custom options 'Moderate' & 'Aggressive')
Fixed Adj minfree script to work right
Much much more I am forgetting
Download v0.6.0: Click here
Code:
vo.6.0. Adjusted sysctl values
Made sysctl tweaks optional
Updated 4cylturbo binary to include optional install pieces
Updated install.sh with new code and new backups
Added bash and nano binaries along with bash, nano, & terminfo folders for /etc (Two diff versions)
Added sqlite3 and script (Two diff versions)
Fixed bash and nano not working correctly
Updated uninstall.sh to restore more stock items and delete more stuff
Adjusted hedge values
Added in optimized RAM tweaks (much better ram management vs v0.5.7-r2)
Fixed multiple script errors and adjusted values
Full zip size is much bigger (7.03mb)
Other stuff I'm sure I am forgetting. THIS IS A MAJOR UPDATE.
Download v0.5.7r2: Click here
Code:
v0.5.7r2 Adjust sysctl.conf correctly this time
Removed disable vsync
Removed cron (These newer versions of busybox don't support "ENABLE_CRON" so script is useless)
Fixed logging on scripts
Adjusted vm values slightly
Download v0.5.7r1: Click Here
Code:
v0.5.7r1 - Added extended reboot scripts
Fixed root issues
Fixed greenify issues
Updated install script
Added uninstall script (This will remove nos 100% from your device)
Updated directions inside zip file
Removed some sysctl commits
New performance boosters added
Download v0.5.6: Click her
Code:
v0.5.6: - Reverted back some scripts
Removed Fix Permissions script
Fixed up install.sh script (Thanks Poo)
Fixed root issues on Samsung Galaxy S Advance
Download v0.5.5: Click here
Code:
This version should solve problems with freezes and root loss.
Download v0.5.4_r1: Click here
Code:
v0.5.4_r1: - Fixed random reboots some people were having (myself included)
Made more stuff optional during install
Fixed root access issue some users experience (I never had this issue so I need feedback)
Updated ad blocker
Updated logging engine
Much smoother and zero lag
Download v0.5.4: Click here
Code:
v0.5.4: - THIS IS ONLY EXECUTIBLE VIA TERMINAL EMULATOR OR SCRIPT MANAGER.
THIS IS NOT NOT NOT RECOVERY FLASHABLE
Added init.d script to add init.d support if your ROM/Kernel does not support it already (Optional during Terminal install)
RAMBooster Binary is now much more Aggressive at clearing RAM
Updated 4Cylturbo binary with code changes
Fixed ALL Logs and Script Errors
NOS Entropy Governor is moderate by default instead of light
Removed All Code Errors from Sysctl Config
Added 'S' to beginning of all scripts to support Samsung Galaxy S 1 Owners (You guys are so old skool :P )
Added int2ext script (Thanks to Cronicory for original)(WARNING: YOU MAY HAVE TO FORMAT YOUR SD CARD TO USE THIS SCRIPT. YOU CAN OPT OUT OF THIS DURING INSTALL)
Logcat disabling script is now 100% Optional during install (YOU CAN NOW KEEP LOGCATS ACTIVE)
Added Bash and Nano Shell Binaries (COMES IN HANDY FOR BASH SHELL SCRIPTS LIKE CRON)
Download v0.5.2: Click here
Code:
v0.5.2: - THIS IS NOW A FLASHABLE ZIP AGAIN
Fixed /data logs for scripts
Fixed most script errors
Adjusted a few things here and there
More to come later
Download v.0.5.1: Clcik here
Code:
v0.5.1: - Fixed logging errors
Fixed ALL install.sh errors
Added Team Kernelizers build.prop injector script (Thanks RErick & Decialman)
Build.prop injector is now a option in install.sh
Added auto reboot to install.sh (SOME DEVICES WILL NOT ALLOW THIS TO WORK, SOME WILL HAVE TO REBOOT MANUALLY)
Fixed all init.d script errors
Updated 4cyl turbo engine logger
Added new directions to README_users.txt
Will add more as I remember it
KNOWN ISSUES & BUGS:
1.) WiFi tethering DOES NOT work when using this tweak package!!! There is no solution to this problem and I am not trying to find a solution, sorry for the inconvenience!!!
CURRENT WORKARUND: Flash the newest crossbreeder!!! This will fix your borked tethering!!!
Uninstal
Code:
su
uninstall
reboot
Standard Disclaimer: Flash at your own risk. Myself nor XDA is responsible for any damage this thing may cause you.
For this wonderful work we must thank Exit_Only
Original thread: Click here
enricogrim said:
Hi,
I have an old version of NOS, before installing a newer version it's better I uninstall the old one or install the new one directly?
thank you very much
Click to expand...
Click to collapse
You can just install the new one (through recovery or terminal depending on the release version) since the installer replaces it's own old/invalid files
Sent from my GT-I9070 using xda premium
enricogrim said:
Hi,
I have an old version of NOS, before installing a newer version it's better I uninstall the old one or install the new one directly?
thank you very much
Click to expand...
Click to collapse
Exactly what he said. 4cyl turbo has implemented a script that deletes all files init.d that you have and replaces them. For a new installation, whether it is installed by CWM or Terminal is not required before uninstallation, just install the new version.
Did what u said...follwed every step..said yes to every promt...still after rebooting when i type su 4cylturbo or rambooster..it says doesnot exist..where did i go wrong...
PS I'M A USER!!
Sent from my GT-I9070 using xda app-developers app
kanidevil666 said:
Did what u said...follwed every step..said yes to every promt...still after rebooting when i type su 4cylturbo or rambooster..it says doesnot exist..where did i go wrong...
PS I'M A USER!!
View attachment 1959685
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
this mean don't install this mod correct
just try again and put the folder install on SDCARD or SDCARD0
kanidevil666 said:
Did what u said...follwed every step..said yes to every promt...still after rebooting when i type su 4cylturbo or rambooster..it says doesnot exist..where did i go wrong...
PS I'M A USER!!
View attachment 1959685
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
Try v0.5.2 instead since it's flashable and see if it works.
Flash it in TWRP/CWM and I suggest you mount system first before flashing the zip. Also, as always don't forget your nandroid backup If it did work, then you can proceed to install the latest version through terminal if you want to.
Damn mounting/unmounting always confuses me...By mounting the system do u mean mount or unmount..
Coz i think in cwm it shows like this
"A Blue Tick and it shows unmount storage...and a blank box when its shows mount storage"
So just tell which 1 should i go with, tick or untick
And after flashing it, will the terminal command "4cylturbo" respond??
Sent from my GT-I9070 using xda app-developers app
kanidevil666 said:
Did what u said...follwed every step..said yes to every promt...still after rebooting when i type su 4cylturbo or rambooster..it says doesnot exist..where did i go wrong...
PS I'M A USER!!
View attachment 1959685
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
For v0.5.4 follow these instructions
Code:
1.) DOWNLOAD NEWEST VERSION, IF YOU WANT TO USE NOS ENTROPY THEN PLEASE REMOVE SEEDER OR CROSSBREEDER FIRST, YOU CAN FIND THE NEEDED UNINSTALL SCRIPTS IN SEEDERS OR CROSSBREEDERS THREAD. USE XDA SEARCH TO FIND IT.
2.) DOWNLOAD TERMINAL EMULATOR APP FROM GOOGLE PLAY STORE... (IF YOU ALREADY HAVE IT THEN SKIP THIS STEP)
3.) EXTRACT "install" FOLDER FROM /sdcard FOLDER INSIDE ZIP AND PUT IT ON YOUR ACTUAL "/sdcard"...
4.) EXIT OUT OF WHAT EVER FILE EXPLORER YOU ARE USING...
5.) OPEN THE TERMINAL EMULATOR APPLICATION...
6.) TYPE THIS COMMAND IN TERMINAL EMULATOR...
[B]
su
sh /sdcard/install/install.sh
^
There is a space here!!![/B]
FOLLOW THE PROMPTS AND CHOOSE WHAT YOU WANT INSTALLED!!!
7.) REBOOT YOUR DEVICE FOR ALL MODS TO TAKE AFFECT... (Rebooting is a REQUIREMENT, Failure to reboot WILL cause random app force closings)
8.) ENJOY THE SPEED AND PERFORMANCE :D
This script hangs phone and creates problem in phone UI
Sent from my GT-I9070 using xda app-developers app
ramansehra said:
This script hangs phone and creates problem in phone UI
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
What ROM and what version of 4cyl you use?
Very good, Great job
Enviado desde mi GT-I9070 usando Tapatalk 2
I'm currently using LightJB 1.2 with co core 6.0.
. 0.4.2 version of 4cylturbo works good with me, but this version hangs my phone to black screen while using.
Sent from my GT-I9070 using xda app-developers app
kanidevil666 said:
Did what u said...follwed every step..said yes to every promt...still after rebooting when i type su 4cylturbo or rambooster..it says doesnot exist..where did i go wrong...
PS I'M A USER!!
View attachment 1959685
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
Have you updated your busybox?
Sent from my GT-I9070 using xda app-developers app
v5.2
not able to flash through recovery method
Bhaji eh recovery naal ni hona,
Tuhanu terminal emulator te jake command type karni paini aa
Sent from my GT-I9070 using xda app-developers app
sarabjit singh said:
not able to flash through recovery method
Click to expand...
Click to collapse
The file is named 'NOT FLASHABLE'.You have to install it via terminal emulator.
Sent from my GT-I9070 using xda premium
flash
ramansehra said:
Bhaji eh recovery naal ni hona,
Tuhanu terminal emulator te jake command type karni paini aa
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
v0.5.2: - THIS IS NOW A FLASHABLE ZIP AGAIN
read 1st page carefully
---------- Post added at 06:57 PM ---------- Previous post was at 06:53 PM ----------
rushilkr said:
The file is named 'NOT FLASHABLE'.You have to install it via terminal emulator.
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
v0.5.2: - THIS IS NOW A FLASHABLE ZIP AGAIN
IF USING FLASHABLE VERSION Find the flash able zip file on your sdcard then flash it.
7.) Boot out of recovery [ONLY FOR FLASHABLE VERSION]
read 1st page carefully
sarabjit singh said:
v0.5.2: - THIS IS NOW A FLASHABLE ZIP AGAIN
read 1st page carefully
---------- Post added at 06:57 PM ---------- Previous post was at 06:53 PM ----------
v0.5.2: - THIS IS NOW A FLASHABLE ZIP AGAIN
IF USING FLASHABLE VERSION Find the flash able zip file on your sdcard then flash it.
7.) Boot out of recovery [ONLY FOR FLASHABLE VERSION]
read 1st page carefully
Click to expand...
Click to collapse
Read the title of this thread.Its about v 0.5.4 .It is NOT flashable.
Sent from my GT-I9070 using xda premium
Datico said:
Very good, Great job
Enviado desde mi GT-I9070 usando Tapatalk 2
Click to expand...
Click to collapse
ramansehra said:
I'm currently using LightJB 1.2 with co core 6.0.
. 0.4.2 version of 4cylturbo works good with me, but this version hangs my phone to black screen while using.
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
I had the same problem too. A new version came out, hopefully all issues resolved. Check OP!
sarabjit singh said:
not able to flash through recovery method
Click to expand...
Click to collapse
Only version v0.5.2 is with flash method.
Flash method:
Code:
1.) Make sure you meet the requirements above
2.) Download the version of NOS FLASH
3.) Boot into recovery (TWRP or CWM doesn't matter)
4.) Make a nandroid backup
5.) Find the flashable zip file on your sdcard then flash it.
6.) Boot out of recovery
To me it worked without problems.
0.5.2
Grady22 said:
I had the same problem too. A new version came out, hopefully all issues resolved. Check OP!
Only version v0.5.2 is with flash method.
Flash method:
Code:
1.) Make sure you meet the requirements above
2.) Download the version of NOS FLASH
3.) Boot into recovery (TWRP or CWM doesn't matter)
4.) Make a nandroid backup
5.) Find the flashable zip file on your sdcard then flash it.
6.) Boot out of recovery
To me it worked without problems.
Click to expand...
Click to collapse
i tried 0.5.2v dude but not succeed

[MODULE] Detach3 - Detach Market Links

Detach3
Introduction
This Magisk module is for detaching apps from the Google Play Store.
It removes your defined packages from the 'Manage apps and device" section and disables them from auto-updates.
Installation
Flash module in Magisk Manager only.
Not necessary to reboot after flashing this module.
This module is designed to flash as many times as you like.
It is configured with a *configuration file. You can create one before flashing this module to define your package(s) or the default one will be used instead, which detaches YouTube by default.
Add your package name(s) you would like to detach to the configuration file, with each package name on a new line.
You can add more package names to your configuration file or the default one at any time, then simply just flash module again to apply it. Again, no need to reboot or any other user interaction needed.
Read the log that Magisk Manager displays when flashing the module, it displays the detached package(s) for confirmation.
*Configuration file: /storage/emulated/0/Android/detach.cfg
Reattach
https://forum.xda-developers.com/t/module-detach3-detach-market-links.3447494/post-84951411
Scheduler
https://forum.xda-developers.com/t/module-detach3-detach-market-links.3447494/post-84981039
Uninstallation
Uninstall with Magisk and reboot.
Troubleshooting
Follow uninstallation method. After reboot open playstore, navigate to the 'Manage apps and device' section so it can populate and then re-flash the module.
Still have an issue? Post your problem in detail and upload your Magisk installer log, found in your Download directory after saving it ( Shown here ).
Changelog
Spoiler: Click to expand
v3.00
- Initial release
v3.01
- Disabled Fallback broadcast
v3.02
- Disable auto-update for detached apps
- Disable playstore running in background
- Added uninstall script to revert changes
v3.03
- Updated sqlite3 binary
- Added support for x86 and x64
v3.04
- Added package check for configuration file
- Minor alterations
v3.05
- Recompiled sqlite3 binaries
- Improved device platform check
- Added database check
- Added the default detach.cfg file
- Minor alterations
v3.06
- Improved installer checks
- Fixed inflating uninstall script error
- Tidied installer script
- Added reattach feature*
* Comment out package name(s) in detach.cfg to reattach.
v3.07
- Fixed minor install.sh error on Android 11
- Improved some installer logic
- Added scheduler feature*
*Termux and Termux:API apks need to be installed beforehand for scheduler
v3.08
- Fixed playstore update log error on some devices
- Fixed script not applying package names with the same string of characters
- Fixed minor installer check for checking packages
- Fixed termux-api binary check
- Disabled package checks on some devices
- Added option to open playstore with scheduler notification
- Added option to open configuration file with scheduler notification
- Added option to flash module with scheduler notification
v3.10 - Note: Disable scheduler and uninstall previous version before installing this version.
- Removed package check (Some users have had issues, reboots etc.)
- Removed scheduler (Not needed for now)
- Removed unnecessary coding
- Added new method to prevent detached apps repopulating
- Added disabling of Play store trackers
- Other minor alterations in installer script
- Cleaned up installer script for new method
v3.11
- Added ignore GET_USAGE_STATS in AppOps
v3.12
- Updated sqlite binaries
- Removed disabling of fallback receiver
- Added disabling of alarm manager background service
v3.13
- Updated sqlite binaries
- Added ignore RUN_ANY_IN_BACKGROUND in AppOps
- Added ignore RUN_IN_BACKGROUND in AppOps
- Disabled App Discovery Service
Frequenly Asked Questions
Spoiler: Click to expand
Q. Can I use the old detach.txt?
A. No, I decided to ditch it. It now uses a new method explained in the installation section.
Q. Where is the boot script installed?
A. No boot script is needed for detaching, everything is done while flashing the module.
Q. Does this break safetynet?
A. No, it doesn't conflict with safetynet at all.
Q. Why shouldn't I re-enable Play Protect?
A. It will interfere with the module's purpose.
Q. Will having Play Protect disabled, open me up to vulnerabilities?
A. No, the playstore scans their market apk's after developers upload them.
Q. I usually install after-market apks (modified ones) and I think play protects me from this?
A. You should scan your unknown apk with Total Virus.
Q. How do you find a package name?
A. Magisk Manager lists your apps with the package name underneath each one, in the Magisk Hide list.
Q. What Magisk version is needed?
A. The module template is designed for Magisk v20.4+
Q. Do I need to uninstall previous version before updating?
A. No, unless stated. Just flash updated version.
Q. Do auto-updates still work for all my other apps that aren't detached?
A. Yes, auto-update and other notifications etc still work.
Download
See attached below -- detach-3.xx.zip
Previous versions
Detach Market Links for Theme Ready Apps *
Introduction
This Mod is for detaching apps from the Google Play Store that are included in the Theme Ready Apps zip and/or aroma installer from Team Black Out for CMTE and Substratum theme engines.
*Now also includes majority of all themed apps by Team Black Out by using an optional txt file.
The purpose is that updates will not show in your update list and also in update notifications from the Google Play Store.
This allows you to auto-update or the ability to use the update all button without the worry of updating Theme Ready Apps which will break your themes for those apps updated.
The Google apps that are detached if you're not using the optional txt file are Gmail, Google App, Google Plus, Hangouts, YouTube and Gboard (Google Keyboard).
Installation
Flash Mod in recovery, no need to wipe anything but if using SuperSU systemless mode or Magisk, flash this mod afterwards.
No need to flash again in-between ROM updates if using SuperSU systemless mode or Magisk or if your ROM supports addon.d scripts.
To detach more themed apps, place the detach.txt file either on root of your sdcard or internal storage and remove the comment from the apps you wish to detach and then flash Detach.zip
You can also use the optional detach.txt file to just selectively detach Theme Ready Apps.
If you don't use the supplied detach.txt file, only Theme Ready Apps will be detached.
To add your own custom packages (apps), read here > https://forum.xda-developers.com/showpost.php?p=72194332&postcount=147
Uninstallation
Rename detach.txt on sdcard to detach.remove, flash Detach.zip again and reboot.
This will remove all files related to installation, including the txt and custom file and restores all market links.
Note
If not using SuperSU or Magisk, you need to have init.d support.
The configured script doesn't execute until after 60 seconds when boot has completed, this also includes the remove script too.
This Mod has been tested by myself on Android 6 and 7.
You still have the ability to update your Theme Ready Apps via Google Play Store but you'll need to use the search function instead.
Changelog
v1.0
- Initial release
v1.1
- Changed detach method
v1.2
- Disabled service for database
v1.3
- Bug fixes
v1.4
- Added static sqlite binary
v2.0
- Added themed apps to detach with configuration txt file (optional)
v2.1
- Cleaned up installation script
- Added mod removal option
v2.2
- Magisk compatible (systemless installation)
- SuperSU systemless mode compatible (systemless installation)
- Fixed init.d detection
- Fixed market links reappearing
- Updated detach.txt (added Wallpapers, Pixel Launcher, Capture (GoPro))
v2.3
- Updated script and detach.txt (added Gboard, Clock, Camera, Google Connectivity Services, Google VR Services, Google Play Services)
v2.4
- Updated script and detach.txt (added Google Carrier Services and the ability to add custom packages)
v2.5
- Fixed market links reappearing
v2.6
- Main script updated for removal process
- Disabled code for a playstore service that no longer needs to be disabled
- Removed Contacts, Phone and Photos from default install
Thanks @hinxnz, I'll try the newest one.
Report 1.3: My theme ready gapps were detached except Google Calendar. I installed Black Google Calendar from TBO. Is there something I can do for this?
sunanulh said:
Thanks @hinxnz, I'll try the newest one.
Report 1.3: My theme ready gapps were detached except Google Calendar. I installed Black Google Calendar from TBO. Is there something I can do for this?
Click to expand...
Click to collapse
I was thinking about adding more themed apps to detach but would have to either use a config file on sdcard for example or probably better to make an aroma version but I would need all the package names first.
hinxnz said:
I was thinking about adding more themed apps to detach but would have to either use a config file on sdcard for example or probably better to make an aroma version but I would need all the package names first.
Click to expand...
Click to collapse
I think a "fulfilled" config file is simpler. So the users have just to add/remove '#' symbol.
For the name of the apps, maybe you can ask to TBO.
Cheers
hinxnz said:
I updated mod, see if it works for you now & I made a thread for it too > http://forum.xda-developers.com/and...detach-market-links-theme-ready-apps-t3447494
Click to expand...
Click to collapse
It's still not working on Stock rooted N. Thanks for trying.
Glad I saw your post that you put this thread up!
I downloaded 1.3 and flashed it and rebooted and waited for two minutes, but YouTube is still showing an update.
cmo220 said:
It's still not working on Stock rooted N. Thanks for trying.
Click to expand...
Click to collapse
Could you call script manually with Terminal Emulator and post output
RED ZMAN said:
Glad I saw your post that you put this thread up!
I downloaded 1.3 and flashed it and rebooted and waited for two minutes, but YouTube is still showing an update.
Click to expand...
Click to collapse
But the first version still works for you?
YouTube hasn't been updated for awhile AFAIK, what version is showing an update?
Are the other theme ready apps showing in your 'My apps & games' list?
Do you have any apps in your 'Wishlist', found in side menu?
hinxnz said:
Could you call script manually with Terminal Emulator and post output
But the first version still works for you?
YouTube hasn't been updated for awhile AFAIK, what version is showing an update?
Are the other theme ready apps showing in your 'My apps & games' list?
Do you have any apps in your 'Wishlist', found in side menu?
Click to expand...
Click to collapse
I couldn't get a /su.d folder so I put it in /system/su.d, which was already there and working. Here is the output.
angler:/ $ su
angler:/ # /su.d/99-detach.sh
sush: /su.d/99-detach.sh: not found
127|angler:/ # /system/su.d/99-detach.sh
angler:/ # Component {com.android.vending/com.google.android.finsky.services.DailyHygiene$DailyHygieneService} new state: disabled
CANNOT LINK EXECUTABLE "sqlite3": cannot locate symbol "u_setDataDirectory_55" referenced by "/system/xbin/sqlite3"...
Aborted
CANNOT LINK EXECUTABLE "sqlite3": cannot locate symbol "u_setDataDirectory_55" referenced by "/system/xbin/sqlite3"...
Aborted
And a bunch more of the same error.
The first version? I've deleted the previous versions .zips.
I've installed 1.0, 1.2, and 1.3.
Youtube has been showing this way for about a week, even after reboots.
11.32.53 is what's showing on Google Play, I've got 11.29.55 installed from TBO Theme Ready Apps v 21.
com.google.android.youtube
Showing up in the My apps & games list as installed...
Gmail
Google App
Google+
Google Photos
Hangouts
Wishlist, yes, I've got several.
RED ZMAN said:
The first version? I've deleted the previous versions .zips.
I've installed 1.0, 1.2, and 1.3.
Youtube has been showing this way for about a week, even after reboots.
11.32.53 is what's showing on Google Play, I've got 11.29.55 installed from TBO Theme Ready Apps v 21.
com.google.android.youtube
Showing up in the My apps & games list as installed...
Gmail
Google App
Google+
Google Photos
Hangouts
Wishlist, yes, I've got several.
Click to expand...
Click to collapse
Could you call script in Terminal Emulator and post output too.
For example:
Code:
su
/system/su.d/99-detach.sh
I don't think I've used terminal emulator except for twice since the G1, so I'm not sure if I did this right.
[email protected]:/ $
[email protected]:/ $ su
system/su.d/99-detach.sh <
sush: /system/su.d/99-detach.sh: not found127|[email protected]:/ #
hinxnz said:
Could you call script in Terminal Emulator and post output too.
For example:
Code:
su
/system/su.d/99-detach.sh
Click to expand...
Click to collapse
Is there any reason you are using a dynamically linked sqlite in your zip? the error the user is getting is because of that I believe. Idk I would try to use a static sqlite binary. Ill attach one so you/someone can have, but in case anyone is curious how to quickly compile sqlite3 statically ill post it in the spoiler tags below.
oh and just to note, I forgot to rename it from sqlite3 to sqlite before uploading
Im not going to explain the lines though, pretty straight forward imho
/opt/androideabi is my ndk toolchain prefix
Code:
mkdir sqlite3-static
cd sqlite3-static
wget https://sqlite.org/2016/sqlite-amalgamation-3140100.zip
unzip sqlite-amalgamation-3140100
cd sqlite-amalgamation-3140100
export PATH=$PATH:/opt/androideabi/bin
cp $(ANDROID_BUILD_TOP)/bionic/libdl/libdl.c .
cp /opt/androideabi/sysroot/usr/include/android/dlext.h .
cp /opt/androideabi/sysroot/usr/include/dlfcn.h .
arm-linux-androideabi-gcc -static -I./ -L./ -ldl *.c -o ../sqlite3
cd ../
file ./sqlite3
Surge1223 said:
Is there any reason you are using a dynamically linked sqlite in your zip? the error the user is getting is because of that I believe. Idk I would try to use a static sqlite binary. Ill attach one so you/someone can have, but in case anyone is curious how to quickly compile sqlite3 statically ill post it in the spoiler tags below.
oh and just to note, I forgot to rename it from sqlite3 to sqlite before uploading
Im not going to explain the lines though, pretty straight forward imho
/opt/androideabi is my ndk toolchain prefix
Code:
mkdir sqlite3-static
cd sqlite3-static
wget https://sqlite.org/2016/sqlite-amalgamation-3140100.zip
unzip sqlite-amalgamation-3140100
cd sqlite-amalgamation-3140100
export PATH=$PATH:/opt/androideabi/bin
cp $(ANDROID_BUILD_TOP)/bionic/libdl/libdl.c .
cp /opt/androideabi/sysroot/usr/include/android/dlext.h .
cp /opt/androideabi/sysroot/usr/include/dlfcn.h .
arm-linux-androideabi-gcc -static -I./ -L./ -ldl *.c -o ../sqlite3
cd ../
file ./sqlite3
Click to expand...
Click to collapse
Thank you Surge! :highfive:
Surge1223 said:
Is there any reason you are using a dynamically linked sqlite in your zip? the error the user is getting is because of that I believe. Idk I would try to use a static sqlite binary. Ill attach one so you/someone can have, but in case anyone is curious how to quickly compile sqlite3 statically ill post it in the spoiler tags below.
oh and just to note, I forgot to rename it from sqlite3 to sqlite before uploading
Im not going to explain the lines though, pretty straight forward imho
/opt/androideabi is my ndk toolchain prefix
Code:
mkdir sqlite3-static
cd sqlite3-static
wget https://sqlite.org/2016/sqlite-amalgamation-3140100.zip
unzip sqlite-amalgamation-3140100
cd sqlite-amalgamation-3140100
export PATH=$PATH:/opt/androideabi/bin
cp $(ANDROID_BUILD_TOP)/bionic/libdl/libdl.c .
cp /opt/androideabi/sysroot/usr/include/android/dlext.h .
cp /opt/androideabi/sysroot/usr/include/dlfcn.h .
arm-linux-androideabi-gcc -static -I./ -L./ -ldl *.c -o ../sqlite3
cd ../
file ./sqlite3
Click to expand...
Click to collapse
Cheers, thanks and yeah that's definitely the reason
Super idea, this would of been good a few months ago when google pushed their framework update and it broke some apps that i kept from updating,,, @Shaftamle google keyboard is the main on one, thank you
3GotoM ym morf tneS
Version 1.4 works for me now on 7.0. Thanks everyone!
Installed version 2.0 earlier today and seems to be working perfectly. Nothing showing needing updated.
Thanks!
How to add Black Google Calendar and Black Keep in the list?
sunanulh said:
How to add Black Google Calendar and Black Keep in the list?
Click to expand...
Click to collapse
Just remove the comments from those two as well as the other theme apps you flash.
Here's an example, theme ready apps, calendar and keep will be detached.
Code:
Contacts
Gmail
Google App
Google Plus
Hangouts
Phone
Photos
YouTube
#Inbox
#Duo
#Dropbox
#PushBullet
Calendar
Keep
#Telegram
#Swiftkey
#Translate
I have tried installing your script... And no matter how I go about... I cannot get the script to populate the su.d directory like it should...
And... Since I don't understand your flashable... I can't pull what I want out of it...
Could you explain how to install said script without recovery?
Thanks

[MODS][SCRIPTS] Zackptg5's Misc Projects

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
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.
Updated mods for new unity 2.2
Also added option to notification_helper remover to remove libvolumelistener.so
@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
HemanthJabalpuri said:
@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
Click to expand...
Click to collapse
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 said:
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)
Click to expand...
Click to collapse
Thanks for quick reply...
But I dont have a pc sir...
HemanthJabalpuri said:
Thanks for quick reply...
But I dont have a pc sir...
Click to expand...
Click to collapse
Build script is for Linux. I'll try building later today
HemanthJabalpuri said:
Thanks for quick reply...
But I dont have a pc sir...
Click to expand...
Click to collapse
Here you go, latest bash stable compiled for kitkat (API=19) (and newer) arm devices
Zackptg5 said:
Here you go, latest bash stable compiled for kitkat (API=19) (and newer) arm devices
Click to expand...
Click to collapse
Thanks a lot for your time..
and Happy New Year...
but I just place in xbin without any other files?
i.e., /system/etc/bash/bashrc
/system/etc/bash.bash_logout
/system/etc/bash.bashrc
are not needed?
HemanthJabalpuri said:
Thanks a lot for your time..
and Happy New Year...
but I just place in xbin without any other files?
Click to expand...
Click to collapse
Right. Then chmod 0755 it
Zackptg5 said:
Right. Then chmod 0755 it
Click to expand...
Click to collapse
/system/etc/bash/bashrc
/system/etc/bash.bash_logout
/system/etc/bash.bashrc
are not needed?
I saw these files in your main zip v1.8.4
HemanthJabalpuri said:
/system/etc/bash/bashrc
/system/etc/bash.bash_logout
/system/etc/bash.bashrc
are not needed?
Click to expand...
Click to collapse
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
Added zip and zipalign binary build repos
Updated bash to v5.0 stable
Zackptg5 said:
Updated bash to v5.0 stable
Click to expand...
Click to collapse
API 19?
also why nanodroid bash is 4.*mb and yours is 1.*mb?
HemanthJabalpuri said:
API 19?
also why nanodroid bash is 4.*mb and yours is 1.*mb?
Click to expand...
Click to collapse
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)
the Kernel Sepolicy Patcher dont work for j5 pro android 8.1 twrp says error 1 when try to install
tutibreaker said:
the Kernel Sepolicy Patcher dont work for j5 pro android 8.1 twrp says error 1 when try to install
Click to expand...
Click to collapse
Log?
That all the rom installed busybox, and i try 2 versions of it and Same results
tutibreaker said:
That all the rom installed busybox, and i try 2 versions of it and Same results
Click to expand...
Click to collapse
Can you save the actual recovery log so I can see the cause of the error? After flashing zip, go to advanced -> copy log

External sdcard rw permission enabler plus extras [Module]

External sdcard rw permission enabler plus extras
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The latest magisk modules v4.4 & ( v5.0 located page #7 ) is for Android 6 to 11 . Providing External Sdcard write access permissions, It can add quick access links in root directory to your external sdcard. Works on single or multiple partition sdcard filesystem's.
Adds ntfs support to most devices from Android 6 to 10 , an including exfat support from Android 6 to 8. Supports usbotg for Android 6 up on compatible devices.
All sdcard & otg mounting an symlinks methods are technically unique an first of their kind here. No one else cared enough to put in the time needed to add this back to android after removed from Marshmallow an above . So it takes great effort to find universal techniques for most/all devices.
So devices configurations will vary.
READ BELOW LOOK FOR LATEST UPDATES.
Some Info
Dual linkage from the system storage and media_rw directories.
Links are made to root dir & mnt dir.
Link 1 in root - external_sd
Link 2 in mnt - sdcard1
Both links utilize external read & write permission for access by apps requested.
Example
Titanium backup can use both these points for storage access for backups to sdcards.
NOT FOR USE WITH ADOPTABLE STORAGE SDCARD SETUP
INSTALL
Flash zip in recovery an reboot.
Magisk module users v4.1 an above flash in magisk.
If using v4.2 up uninstall module before updating versions or if re-flashing module again when option for ntfs & exfat support are chosen.
If using v4.4 , uninstall an install is supported in both magisk manager and recovery.
Note
init.d support or magisk is needed
First zip uses init.d support.
Second zip v4 an higher uses magisk support.
Some apps may need you to grant them access to external storage, others may ask to direct them to the path which can easily be found rite in root folder and also mnt folder - ( this is found in root folder. )
Locations example
Path in root directory are :
/external_sd
/mnt/sdcard1
/usbotg
/mnt/usbotg
Some devices may only support one location for their external sdcard in /storage because their is no /mnt/media_rw folder. Module will detect the correct available location to create dual symlinks.
Volume Deamon info:
What is vold (Volume Daemon) that most Android OS support , why this module uses a custom type when selected (vold posix) option on install ;
http://strayinsights.blogspot.com/2018/05/android-external-storage-support-volume.html?m=1
####### UPDATED #######
LATEST UPDATE , V4.4 - FOR MAGISK USER
# AUTO INSTALL #
-External Sdcard access
-Permissive on install
-Sepolicy patches on install
Some changes below;
:Note for custom vold only (vold posix option when using boot patch):
Best success for using custom vold will be achieved in recovery mode install .
For devices that supports vold an sdcard binaries only, this is auto checked when vold posix is selected .
# Change log: v4.4
.added support for recovery install an uninstall of module.
.added custom vold safety protection auto uninstall on failure to fully boot.
added full driver support from Android 6 to 10 , for both the 32 & 64 bit variety.
.added additional upgrades to sdcard an usbotg mount & symlinks methods .
.added additional configurations for write access to devices on Android 11 OS.
.added options to choose internel or external app install location for supporting devices.
.added usbotg symlinks an direct folder support in root dir.
.added some other big systematic changes to setup.
.added full uninstall module an boot image patch by re flashing module if installed.
Click to expand...
Click to collapse
LATEST UPDATE , V4.3 - FOR MAGISK USER
# AUTO INSTALL #
-Permissive on install
-Sepolicy patches on install
NOTE:
Use Boot Patch if module didn't work for you with SD link option.
Warning make or have a backup of your ROM to flash if you use custom vold option.
What does vold do? It's the core mount management for most Android devices that mounts internal , external & usb/otg storage devices. Custom vold adds the custom binaries that most non custom rom lacks for mounting ntfs sdcards an otg storage devices. Do to the nature of how it works for full reasons unknown when changing vold binary its a 10℅ chance the device may decide not to full boot an need to be dirty flash to restore start up. So still try with caution .
# Many upgrades some added changes are below #
# Change log: v4.3
.added newer sdcard an usbotg mount & symlinks methods .
.added additional configurations for write access to devices that dont have even basic setups.
.added back options to choose busybox on install only if wanted.
.added some other systematic changes.
.
Click to expand...
Click to collapse
How does this module work ? Some more info can be found here
https://forum.xda-developers.com/showpost.php?p=83054737&postcount=76
UPDATE , V4.2 - FOR MAGISK USER
# AUTO INSTALL #
-Permissive on install
-Sepolicy patches on install
-Modded busybox on install
-Apps install location set to external storage
NOTE:
Use Boot Patch an also try it with the custom vold options if module didn't work for you with SD link option. V4.2 only
# Many upgrades some added changes are below #
# Change log: v4.2
.added new latest magisk install template with selection.
.added advance techniques for sdcard symlinks - Optional
.added custom boot.img patch if symlinks failed to create in root - Optional
.added custom vold binary for some devices on Android 6-9 - Optional
.added ntfs & exfat full support for Mediatek devices, also qcom support in Android 8-9 64bit only - Optional
.added mounting & symlinks support for multiple partitions on sdcards, all links & folders made in root. Exfat, Vfat, Ntfs, Ext4 & ( F2fs if kernel supported )
.added usbotg ntfs & exfat mount support on boot.
.added install & uninstall options in magisk manager when flashing zip to undo any changes.
.
Click to expand...
Click to collapse
How does this module work ? Some more info can be found here
https://forum.xda-developers.com/showpost.php?p=83054737&postcount=76
UPDATE , V4.1 - FOR MAGISK USER
INSTALL
Within Magisk Manager App ONLY {Not Recovery}
In the Modules Tab using the yellow plus sign button at bottom of modules tab , locate where you download an saved this zip (downloads folder most likely).
NOTE
When installing Follow the on srceen instructions , volume key check should be selected quickly on startup test or installer will exit. (Will just have to restart installer if so)
Info
-System remounted RW
-Provides full Permissive mode -Optional
-Provides Invert back Selinux Enforcing mode -Optional
-Sepolicy internal & external sdcard Platform.xml patch for rw permissions to system files & directories on some devices
-Provides app backup access write permissions an quicker access to external_sd mounted in root dir.
-Example.. titanium backup can use external sdcard link in root folder or /mnt/sdcard1 to store backup files..
-Custom Magisk installer
-Custom modded busybox -Optional
-Custom Ext.sdcard dual mounts -Optional
-Can be used alone with only write sdcard access installed systemless
-Systemless altering (patching) of files .
Custom install selection v4.1 options
-Choose android version on install to select custom sepolicy injection on boot.
-Choose Permissive on install
-Choose Selinux Enforcing on install
-Choose None to leave selinux as is on install
-Choose Modded app2sd busybox on install
-Choose Symlink Dual ExternalSD on install
-ExternalSD write access by default on install , can run it standalone if no other options are selected.
-Any Options install will be listed in magisk within module tab.
Uninstall or disable ExternalSD module within Magisk module tab or custom recovery.
# After first beta version 4 lagacy install for Magisk.
# Change log: v4.1
- New Template install.
.added new latest magisk install template with selection.
.added sepolicy patch - Android version - Optional install.
.added permissive mode - Optional install.
.added busybox modded app2sd version -Optional install.
.added sdmount for symlinks - Optional install.
.added external Sd write access enabler' Standalone mode - if no options selected on install.
.script - adjustments in post-fs-data.sh for file backups, file sed an patching.
.script - adjustments in sdmount.sh for better mounting & optimized bootcomplete start execution for creating symlinks & automatic file deletion on magisk module removal.
Click to expand...
Click to collapse
Update v4.1
# first magisk module build date;
11/04/2020
Uninstall - For older Magisk v4 & init.d support installs
Flash first top zip again once to remove mod with init.d support
Flash bottom v4 magisk uninstall for magisk .
Disclaimer
You choose to install anything on your devices the decision is always your , xda is not responsible for your actions on your device & either am i, if you have doubt about something ask questions about it first.
Latest Updated (04/10/2020)
Including Latest Magisk support, version v4.4
Thanks to :
@Techguy777 for helping with testing device compatibility.
Hopefully you find this useful.
Please Give Your Feed Back!
It takes devs time to create mods for You but it take nothing for You to hit LIKE BUTTON!! ?
Report errors to developers we cant know if to continue updates or to correct anything we don't read minds
NEED HELP PERSONALLY:
Telegram - https://t.me/Ziona242
Let me know which device it doesn't work for
Magisk supported?
Sent from my TECNO CX Air using Tapatalk
---------- Post added at 08:38 AM ---------- Previous post was at 08:37 AM ----------
I don't want to tamper my system if it's not systemless
Sent from my TECNO CX Air using Tapatalk
Mickey03 said:
Magisk supported?
Sent from my TECNO CX Air using Tapatalk
---------- Post added at 08:38 AM ---------- Previous post was at 08:37 AM ----------
I don't want to tamper my system if it's not systemless
Sent from my TECNO CX Air using Tapatalk
Click to expand...
Click to collapse
Will make one for magisk tomorrow, this version uses initd support but how its setup you can install an uninstall easily without a trace .
Ok, I will wait. Just infom me here!
Sent from my TECNO CX Air using Tapatalk
Mickey03 said:
Ok, I will wait. Just infom me here!
Click to expand...
Click to collapse
No problem
Updated
 @Mickey03
Ziona said:
No problem
Updated
@Mickey03
Click to expand...
Click to collapse
Which one is the Magisk version? The last one or the middle?
Sent from my TECNO CX Air using Tapatalk
@Ziona The Magisk version can't be installed. I think u are using old template. Can u use the official latest template or Unity 5.0 or the newer Magisk Manager Extended template by @Zackptg5 please?
I tried to install on latest Magisk canary and installation ended with error
Sent from my TECNO CX Air using Tapatalk
Mickey03 said:
@Ziona The Magisk version can't be installed. I think u are using old template. Can u use the official latest template or Unity 5.0 or the newer Magisk Manager Extended template by @Zackptg5 please?
I tried to install on latest Magisk canary and installation ended with error
Sent from my TECNO CX Air using Tapatalk
Click to expand...
Click to collapse
I'll try an update that one for you but it works on lastest stable magisk v20.4
What Android version you on?
Updated @Mickey03
dianamavrilk said:
Magisk version for android pie not work for mie its beta version
Click to expand...
Click to collapse
Did you try the standard version with init.d support to test if it works on your device on pie. If not you can flash it once again an it will uninstall easily. Then send your devices info.
dianamavrilk said:
nit.d support version it no no work also for mre . good job bat its beta version not stable
for moment nothing works for android 9 pie. may phone HTC U12+ android 9 magisk stable 20.4 end magisk 20.1 castom site edxposed
p.s insayd zip istall lSDCard
name=Ext_Sd RW & Symlink Enabler
version=v4 (beta)
versionCode=40
author=Ziona @xda developers
description=Enables external SDCard write access for your Apps on Marshmellow, Nougat, Oreo, and maybe Pie !
maybe Pie ! not work
Click to expand...
Click to collapse
Ok will look into this
Ziona said:
I'll try an update that one for you but it works on lastest stable magisk v20.4
What Android version you on?
Click to expand...
Click to collapse
I am not using latest Magisk 20.4, I am using the latest canary.
I am running on Android 7.0
Sent from my TECNO CX Air using Tapatalk
dianamavrilk said:
running on Android 7.0 end 8.0 work very well .you don't have special permission to access))
root permissions ent LACKY PATCHER suffisent probleme permissions since android 9 pie
Click to expand...
Click to collapse
Could you write this more clearly i didn't understand it all fully.
Hey try the update.
 @Mickey03
@Ziona Your module completely disturb Xposed. Xposed becomes disabled internally after your module installation and ur module also doesn't work. I didn't get any symlink for my sdcard at the root and /mnt first. Sorry
Btw do u have Telegram account? If u have, We can chat there and move ur module to the next level.
Sent from my TECNO CX Air using Tapatalk
Mickey03 said:
@Ziona Your module completely disturb Xposed. Xposed becomes disabled internally after your module installation and ur module also doesn't work. I didn't get any symlink for my sdcard at the root and /mnt first. Sorry
Btw do u have Telegram account? If u have, We can chat there and move ur module to the next level.
Sent from my TECNO CX Air using Tapatalk
Click to expand...
Click to collapse
Module works well for all my devices
Do you know if a module in xposed is unstable and disabling both my module an xposed.
In magisk module tab did you see External Sdcard write access w/ symlinks. - SDlink, next to android version or busybox by v4.1 depending which options you choose?
Whats your telegram
dianamavrilk said:
running on Android 7.0 end 8.0 work very well .you don't have special permission probleme since pie 9.0
i don't understand why you don't access i have full access to remove apk to sd card
Click to expand...
Click to collapse
That's what am thinking if something is creating a problem for him with xposed With the first methods. Xposed is buggy on some systems.
But i will be posting a magisk update in a few minutes, because that was the wrong one uploaded its for Samsung. Sorry ? @Mickey03
Ok, Thanks! What about Telegram?
Sent from my TECNO CX Air using Tapatalk
---------- Post added at 07:04 PM ---------- Previous post was at 07:04 PM ----------
@Ziona Also add [Magisk] in the zip name
Sent from my TECNO CX Air using Tapatalk
Mickey03 said:
Ok, Thanks! What about Telegram?
Sent from my TECNO CX Air using Tapatalk
---------- Post added at 07:04 PM ---------- Previous post was at 07:04 PM ----------
@Ziona Also add [Magisk] in the zip name
Sent from my TECNO CX Air using Tapatalk
Click to expand...
Click to collapse
Its up!
To make it fit just added - Mv4.1 to the end.
TG Number # ?
Ziona said:
Its up!
To make it fit just added - Mv4.1 to the end.
TG Number # ?[/QUOTE @MIkesew1320 on Telegram. You can send me a PM or give me ur username, I can send u a PM.
Sent from my TECNO CX Air using Tapatalk
---------- Post added at 07:31 PM ---------- Previous post was at 07:28 PM ----------
Ziona said:
Its up!
To make it fit just added - Mv4.1 to the end.
TG Number # ?
Click to expand...
Click to collapse
I hope it doesn't conflict with Xposed and working fine. Let me try it..... Tnx!
Sent from my TECNO CX Air using Tapatalk
Click to expand...
Click to collapse
Confirmed! Working like a charm!
Btw, Can u add another symlink for usb otg at /root please?
Sent from my TECNO CX Air using Tapatalk

Categories

Resources