FORUMS
Remove All Ads from XDA

[TOOL][BIN]BusyBox Recovery Flashable Zips **ALL-ARCHS**

176 posts
Thanks Meter: 551
 
By YashdSaraf, Senior Member on 30th March 2016, 10:26 PM
Post Reply Email Thread
Update 06-Sep/17: Busybox v1.27.2 released (Complete changelog: here)
arm64 selinux builds segfault on most devices, so (for now) use either arm64 non selinux bins or arm (32 bit) selinux bins.
(No need to do anything if you're using the latest installers)
For more info see: https://forum.xda-developers.com/sho...;postcount=273

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
The Following 154 Users Say Thank You to YashdSaraf For This Useful Post: [ View ] Gift YashdSaraf Ad-Free
 
 
30th March 2016, 10:26 PM |#2  
OP Senior Member
Flag Mumbai
Thanks Meter: 551
 
Donate to Me
More
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.
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=[(y)es|(n)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
The Following 28 Users Say Thank You to YashdSaraf For This Useful Post: [ View ] Gift YashdSaraf Ad-Free
30th March 2016, 10:56 PM |#3  
Senior Member
Thanks Meter: 626
 
More
@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
The Following User Says Thank You to bovirus For This Useful Post: [ View ] Gift bovirus Ad-Free
31st March 2016, 11:52 AM |#4  
k1ks's Avatar
Senior Member
Thanks Meter: 5,632
 
Donate to Me
More
Nice work .
Keep it up !!!

Sent from my E2303 using XDA Free mobile app
The Following User Says Thank You to k1ks For This Useful Post: [ View ] Gift k1ks Ad-Free
2nd April 2016, 12:42 PM |#5  
m0han's Avatar
Senior Member
Thanks Meter: 1,035
 
More
Quote:
Originally Posted by bovirus

..Thanks for new thread....

is the issue mentioned here addressed? @YashdSaraf, hope you read my pm.
The Following User Says Thank You to m0han For This Useful Post: [ View ] Gift m0han Ad-Free
2nd April 2016, 01:43 PM |#6  
skulldreamz's Avatar
Senior Member
Flag Baltimore, MD
Thanks Meter: 1,179
 
Donate to Me
More
@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
2nd April 2016, 04:57 PM |#7  
OP Senior Member
Flag Mumbai
Thanks Meter: 551
 
Donate to Me
More
Quote:
Originally Posted by m0han

is the issue mentioned here addressed? @YashdSaraf, hope you read my pm.

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.

Quote:
Originally Posted by skulldreamz

@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

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.
The Following 7 Users Say Thank You to YashdSaraf For This Useful Post: [ View ] Gift YashdSaraf Ad-Free
4th April 2016, 07:03 AM |#8  
m0han's Avatar
Senior Member
Thanks Meter: 1,035
 
More
Quote:
Originally Posted by YashdSaraf

.....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.......

got your pm. will test the updated installer and revert by pm.
is this 'the updated uninstaller'? can this be used in 'any setup'?
4th April 2016, 07:55 AM |#9  
OP Senior Member
Flag Mumbai
Thanks Meter: 551
 
Donate to Me
More
Quote:
Originally Posted by m0han

got your pm. will test the updated installer and revert by pm.
is this 'the updated uninstaller'? can this be used in 'any setup'?

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'.
The Following 5 Users Say Thank You to YashdSaraf For This Useful Post: [ View ] Gift YashdSaraf Ad-Free
4th April 2016, 05:11 PM |#10  
Senior Member
Thanks Meter: 626
 
More
@YashdSaraf
Are there any news about busybox for ARM and 64boit Android SO (like 5.1.)?
5th April 2016, 11:49 AM |#11  
m0han's Avatar
Senior Member
Thanks Meter: 1,035
 
More
Quote:
Originally Posted by YashdSaraf

.....I'll pm you the updated installer......

...will test the updated installer and revert .....

your zip worked well, i think. thanks.
Attached Thumbnails
Click image for larger version

Name:	BB-1.24.2_YDS.jpg
Views:	9284
Size:	167.5 KB
ID:	3708159  
Post Reply Subscribe to Thread

Tags
32/64 bit, arm/x86/mips, busybox 1.27.2, flashable zips, magisk
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes