FORUMS
Remove All Ads from XDA

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

141 posts
Thanks Meter: 359
 
By YashdSaraf, Senior Member on 30th March 2016, 09:26 PM
Post Reply Email Thread
Update 12-Feb/17: Bug fix in installers. (Complete changelog in 2nd post)

Hello XDA,

I've been building busybox for android for sometime now.
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 388 applets included in the normal and 400 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 either /su/xbin if systemless root is detected or /system/xbin after cleaning older busybox binaries and their symlinks from the device (if any).

Code for mounting the su.img and running in embedded mode is borrowed from the SuperSU project.

All Archs busybox installer flashable zip detects the architecture and installs busybox accordingly.

SELinux status is automatically detected by the installers.

This can be overridden (before flashing the zips) by creating a file named "bbxselinuxenabled" to force enable the SELinux support or "bbxselinuxdisabled" to force disable the SELinux support in busybox in either /sdcard, /data or /cache whichever is suitable.

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
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 be trying my best to help you with any bugs or exceptions you might face.

Download: Click Here
  • All the attached installers will wipe any previous busybox installations found in /system or /su
  • 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)
For those who'd like to install them manually, the Tars in the above links contain all the binaries.

Busybox Cleaner (Cleans BusyBox in /system/bin,/system/xbin,/su/bin,/su/xbin,/magisk/phh/bin)
Caution: Removing busybox may break functionality of some mods or apps.

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-yd...i/master/tree/
The Following 100 Users Say Thank You to YashdSaraf For This Useful Post: [ View ] Gift YashdSaraf Ad-Free
 
 
30th March 2016, 09:26 PM |#2  
OP Senior Member
Flag Mumbai
Thanks Meter: 359
 
Donate to Me
More
Op
Changelog:
Code:
Feb 12/2017
- Fix incorrect checking of magisk dirs in installer script

Feb 03/2017
- Fix SELinux applets not working on higher android versions
- Fix installer to mount both magisk and su images to clean older bb versions

Jan 18/2017
- Add the missing applets after 1.26 update
(depmod, modprobe, lsmod, rmmod, insmod)

Jan 15/2017
- Update busybox to v1.26.2
- Add md5 checking functionality in the installers
- Do not install existing applets in the system when using
with magisk and phh su
- Switch to a new zip signing method (Thanks to @MastahF)
(This hopefully fixes the unzip: zip 1 and 8 not supported
 error)

Jan 07/2017
- Update busybox to v1.26.1

Jan 03/2017
- Update busybox cleaner (Magisk and phh su compatible)

Jan 02/2017
- Update busybox to v1.26.0
- Add magisk and phh superuser support
- Update wolfssl to 3.10.0 (ssl_helper)

Oct 18/2016
- Update busybox to v1.25.1
- Update ssl_helper bins to WolfSSL (3.9.10)
- Update all the toolchains to gcc 6.2.0
- Fix no installer output when using FlashFire
- Changed toolchain target arch from MIPS32 to MIPS32r6
for MIPSEB busybox (Do test and report if it doesn't work)

Aug 25/2016
- Add -d and -f flags for sync applet
- Fix "unzip: zip flags 1 and 8 not supported" error
- Update ssl_helper bins to wolfssl 3.9.8
- Installer now adds common users and groups for
  better recognition of file and directory ownerships.
- MIPS busybox compiled with gcc 6.1.0

Jun 27/2016:
- Update BusyBox to 1.25.0
- Merge 32 and 64 bit installers
- Update ssl_helper bins to wolfssl 3.9.6 (mipseb too!)

Jun 21/2016:
- (Probable) Fix for unicode char support
- Add support to install applets as wrapper scripts if symlinking fails
- Update uninstaller to detect and remove applets installed as wrapper scripts

May 21/2016:
- Fix https support for wget (with ssl_helper using wolfssl)

May 09/2016:
- Merge normal and selinux builds and enable auto detection according to
the android version
- Optimize busybox cleaning time in the installers

Apr 11/2016:
- Add alternate builds for people facing errors with
 the usual builds for ARM

Apr 06/2016:
- Add busybox installers for 64 bit devices
- Update AIO zip with the same

Apr 03/2016:
- Add Cleaner

Mar 31/2016:
- Initial Release
The Following 20 Users Say Thank You to YashdSaraf For This Useful Post: [ View ] Gift YashdSaraf Ad-Free
30th March 2016, 09:56 PM |#3  
Senior Member
Thanks Meter: 520
 
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, 10:52 AM |#4  
k1ks's Avatar
Senior Member
Thanks Meter: 5,614
 
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, 11:42 AM |#5  
m0han's Avatar
Senior Member
Thanks Meter: 959
 
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, 12:43 PM |#6  
skulldreamz's Avatar
Senior Member
Flag Baltimore, MD
Thanks Meter: 1,177
 
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, 03:57 PM |#7  
OP Senior Member
Flag Mumbai
Thanks Meter: 359
 
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 6 Users Say Thank You to YashdSaraf For This Useful Post: [ View ] Gift YashdSaraf Ad-Free
4th April 2016, 06:03 AM |#8  
m0han's Avatar
Senior Member
Thanks Meter: 959
 
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, 06:55 AM |#9  
OP Senior Member
Flag Mumbai
Thanks Meter: 359
 
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 4 Users Say Thank You to YashdSaraf For This Useful Post: [ View ] Gift YashdSaraf Ad-Free
4th April 2016, 04:11 PM |#10  
Senior Member
Thanks Meter: 520
 
More
@YashdSaraf
Are there any news about busybox for ARM and 64boit Android SO (like 5.1.)?
5th April 2016, 10:49 AM |#11  
m0han's Avatar
Senior Member
Thanks Meter: 959
 
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:	4634
Size:	167.5 KB
ID:	3708159  
Post Reply Subscribe to Thread

Tags
32 bit, 64 bit, all archs, busybox 1.26.2, recovery flashable
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes