yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Could you guys please confirm whether this version works for you? I just tested this version and it works fine on my mi 4 running 7.1.1. Do tell if it doesn't work, and we'll debug it further. :)

https://github.com/yashdsaraf/bb-bot/releases/tag/v1.26.2-YDS-53

No wipe needed, just flash the installer of your choice directly from a custom recovery (TWRP recommended) or FlashFire (try flashing with TWRP instead if this method doesn't work). :good: Here's the latest release

https://github.com/yashdsaraf/bb-bot/releases/tag/v1.26.2-YDS-53

Edited: [MENTION=5933297]adriansticoid[/MENTION] [MENTION=7072203]pleasetouchmenot[/MENTION] [MENTION=6306270]ainurrofiq[/MENTION]
[Android Software/Hacking General [Developers Only]] ainurrofiq:
The link is broken.

And if I flash previous build from TWRP it said The is corrupted.
[Android Software/Hacking General [Developers Only]] bovirus:
The link is not broken

https://github.com/yashdsaraf/bb-bot/releases/tag/v1.26.2-YDS-53

Pelase don't use copy/past text link. Click on the link.

Which previous busybox version /post the date relase) was reported by WTRP has broken?

For all

If we want to help [MENTION=5423715]YashdSaraf[/MENTION] to help us please post ALWAYS clearly which build date is your YSD busybox.

This info is mandatory for support.

Thanks.
[Android Software/Hacking General [Developers Only]] pleasetouchmenot:
Man, thankyousomuch for fixing. Already tried that latest BB (12/02/17) you gave and flashed it. Root Explorer is now working. Thankyou! ?
[Android Software/Hacking General [Developers Only]] Xennet:
[MENTION=5423715]YashdSaraf[/MENTION]

Tried flashing ur latest busybox update.

Ended with error..

Log attached

Running Oxygen Os Stock v4.0.3 on oneplus3t

Magisk 11.1 installed with magisk su root. Busybox YDS 1.26.1 installed.

Something mentioned about a magisk folder being not accessible

No such folder is der in t system directory

Log:

#Fri Feb 24 05:19:37 CST 2017

#Ignore umount errors!

================================================

BusyBox 1.26.2-YDS arm (Stable: 03 Feb/17)

-----by YashdSaraf@XDA-----

================================================

Mounting /system --

Checking Architecture --

Looking for => 'arm', found => 'arm64-v8a'

64 bit architecture detected --

Checking if busybox needs to have SELinux support --

SELinux support is ENABLED --

Systemless root detected --

mkdir: can't create directory '/magisk/phh/bin': No such file or directory

***Abort!!***

Cause: Installation directory /magisk/phh/bin is not accessible

Quitting installer -- Check /sdcard/BusyBox-YDS-installer.log for errors
[Android Software/Hacking General [Developers Only]] Xennet:
[MENTION=5423715]YashdSaraf[/MENTION]

By root checker, busy box installation details are attached..
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Please try out the installers from the updated link in the op.

I didn't update the op till now as the link in the op doesn't have signed installers. However there haven't been any reports till now regarding unsigned zips, so it seems they're safe to install (for now), I'm working on signed installers, I'll update the op with them as soon as I'm done. :)
[Android Software/Hacking General [Developers Only]] msx680x0:
Hi. There is an issue with 'date' of your busybox.

$ date --> Wed Mar 1 11:19:20 CET 2017 ***ok***

$ busybox date --> Wed Mar 1 10:19:20 UTC 2017 ***bad*** (utc by default?)
[Android Software/Hacking General [Developers Only]] adarshadhungel1:
Which which busybox will the busybox cleaner remove. I have preinstalled busybox in my rom. I want to remove it because that busybox is not allowing me to install v4a drivers
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=7519794]ad.[/MENTION]

Sorry but I didn't udnerstand the relation between busybox and v4a drivers.

Which type of driver and about which function?

Please describe it with details.
[Android Software/Hacking General [Developers Only]] adarshadhungel1:
Busybox is needed to install the v4a driver. But with present busybox Drivers are not getting installed.

According to the message displayed The reason for not being able to install is busybox might to broken or wrong
[Android Software/Hacking General [Developers Only]] bovirus:
What v4a driver are talking? The driver to connect the device to teh PC? Or other driver?

Busybox normally is nor related to PC driver installation.
[Android Software/Hacking General [Developers Only]] adarshadhungel1:
It is not related to pc. Here is the link to v4a app. It is an audio effect.

Here is the link to the thread

https://xdaforums.com/showthread.php?t=2191223
[Android Software/Hacking General [Developers Only]] mauam:
Hi [MENTION=7519794]ad.[/MENTION]

You should read always the OP. As stated in the OP "(Cleans BusyBox in /system/bin,/system/xbin,/su/bin,/su/xbin,/magisk/phh/bin)". Make a backup, just in case (you should always do, before flash anything) & try it.
[Android Software/Hacking General [Developers Only]] krkhaha:
Can I flash this on touchwiz Rom 6.1?
[Android Software/Hacking General [Developers Only]] dolbylogic:
OTA Survival

[MENTION=5423715]YashdSaraf[/MENTION] is it possible to make this busybox OTA survival? or is it already OTA survive? Thanks
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Thanks for reporting, I'll look into the issue ASAP.

Currently the installer does not take care of OTA survival. It seems like a good feature to add though. I'll see what I can do. :good:

Sorry for the late reply, I was busy with my exams. :)
[Android Software/Hacking General [Developers Only]] DesertRose65:
I wanted to install Viper4Android. That app needs to install BusyBox on 'su/xbin' folder. But i can't install BusyBox to 'su/xbin' folder. When i select installing folder to su/xbin, it saying 'su/xbin does not exist ...' in BusyBox app. I am trying install BusyBox to another locations, it's installing but Viper4Android is not working... Help please?
[Android Software/Hacking General [Developers Only]] ze7zez:
Not for stock recovery?

LG L9 II, stock ROM, stock recovery, rooted by superuser from chainfire.

-- Install /cache ...
Finding update package...
Opening update package...
Verifying update package...
E:footer is wrong
E:signature verification failed
Instalation aborted.
[Android Software/Hacking General [Developers Only]] k1ks:
Very good busybox.

Keep your good work.
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=3811709]yashd[/MENTION]sraf

Where can I get the busybox build on latest beta source availble on github?

Could you pelase create a a sample script for menuconfig to compile the busybox for ARM 32/64bit & SElinux 32/64bit from the source?
[Android Software/Hacking General [Developers Only]] YashdSaraf:
You can head over to https://github.com/yashdsaraf/bb-bot/tree/testing

This a build bot I've written which compiles, packages and releases busybox using Github releases API, it's not complete yet, but it does the job pretty well. You can fork it and make some minor modifications to build the latest busybox source (mainly change this line to the busybox repo url). Be sure to turn on Travis CI for your fork and fork the testing branch or else you'll run into zip signing issues.

Config files for my busybox builds are,

Normal - https://github.com/yashdsaraf/busybox/blob/master/conf_no_selinux

SELinux - https://github.com/yashdsaraf/busybox/blob/master/conf_selinux
[Android Software/Hacking General [Developers Only]] daitalos:
Excellent job !! Thank you very much
[Android Software/Hacking General [Developers Only]] Tecalote:
[MENTION=5423715]YashdSaraf[/MENTION] On Huawei Devices with Stock Nougat (except Custom Roms) it seems Busybox is only installable and working if the path is set to /vendor/xbin or vendor/bin.

It wasn't a problem in Marshmallow...

Do you think it would be possible to add those paths to the installer?

I think it's maybe difficult - but maybe there's a way to setup path for this cases manually with a command in TWRP Terminal before flashing your zip?

Best Regards - I like your Busybox very much and thanks for this great work :)
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Hey, I'll add a functionality to set a custom installation path in a file before installation.

I'm also working on a self extracting executable which just has to be executed from a normal terminal (no need to reboot into recovery anymore!), it has options to set custom install path, enable or disable selinux mode, noclean mode (only install don't clean previous installations), onlyclean mode (only clean, do not install) and an interactive mode which allows to set all the above options in a skeleton cli.

I'll post it soon, most probably tonight :D
[Android Software/Hacking General [Developers Only]] k1ks:
Very good suggestion.

I'm on N with B378 EVA-L09. My busybox is in system/bin/**

Not issue at all , All my scripts works.
[Android Software/Hacking General [Developers Only]] Tecalote:
That's interesting.. Did you flash the Busybox from [MENTION=5423715]YashdSaraf[/MENTION] with TWRP?

Are you rooted with phh superuser or SuperSU?
[Android Software/Hacking General [Developers Only]] k1ks:
Root with Phh. I tried with zip in TWRP but miss something.

[MENTION=5423715]YashdSaraf[/MENTION] : Your bb is good but on N . Something is wrong in your bb .

Example , Skynet cant mount rw with your bb and it can with another PS
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=8186286]Thomas Horton[/MENTION]

Please read carefully first post.

This thread is only about Yashdsaraf busybox.

Is not about KingoRoot, Root, and Nexus 6.

Please post in the specific thread.

You request here is OT (Off Topic).
[Android Software/Hacking General [Developers Only]] soh3l:
Plz uninstaller links?
[Android Software/Hacking General [Developers Only]] Sczar:
Its in the first post (busybox cleaner)
[Android Software/Hacking General [Developers Only]] soh3l:
I see, thanks a lot...
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Guys try out the offline self extracting executable installers. You don't need to reboot in recovery mode to use them. Check the second post for more info. :)

You can now set the option for a custom installation directory in bbx.conf.

Just add

installdir=<path>

<path> being the directory where you'd like to install bb

and place it in either /sdcard, /data or /cache.:D

Edit: [MENTION=3813765]dolbylogic[/MENTION] OTA survival support is enabled as well, all the relevant files in /system are backed up and restored after OTA update. :)
[Android Software/Hacking General [Developers Only]] Tecalote:
Great :cowboy: Thank you very much!!
[Android Software/Hacking General [Developers Only]] martyfender:
I am on Android 5.1.1. how do I run the new installer? When I try to open it in Total Commander, I get an open with dialog. What do I choose? When I choose the package installer I get a parsing error. I've always used the TWRP recovery flashable zip in the past, with no problems, as long as I mounted the system first in recovery. It appears that the recovery flashable one still has the older, 1.26.2 version, or is it updated also?

Thanks

Update: Sorry I hadn't scrolled down far enough, to the second post about installing it in the terminal.

The command didn't work until I changed: sh /sdcard/Busybox-installer-arm.sh, to sh /sdcard/Busybox-installer-arm.bin. I'm on x86 and my path is different, but it is the change to .bin that finally worked.

sh /my path/file name.bin
[Android Software/Hacking General [Developers Only]] edgarf28:
I'm getting an Segmentation fault with the new version (with both flashable zip and bin installer) on my Mi5 running Global ROM 7.4.14

The busybox binary gets extracted to /system/xbin but there are no symlinks

The only message in Busybox-YDS-installer.log is segmentation fault

Also getting the same segmentation fault message when I type 'busybox' in an terminal emulator app.
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Thanks for reporting, I'll try to reproduce the error on a 7.1.1 device ASAP. :good:
[Android Software/Hacking General [Developers Only]] kr0m*:
On Android 5.0 mtk arm64 same result (segmentation fault).

Enviado do meu SISWOO i7 através de Tapatalk
[Android Software/Hacking General [Developers Only]] Windowscratcher:
Can confirm, Honor 8 running Android 7.0 and rooted, getting segmentation faults when running the installer.

EDIT: Ran the installer in recovery terminal, and tried to install to /system/bin, no segmentation faults.
[Android Software/Hacking General [Developers Only]] YashdSaraf:
I've found the error. The toolchain is at fault here, apparently aarch64-uClibc without selinux libs works just fine (so if you all disable selinux support in the installer, busybox should install normally) but segfaults when selinux libs are included. I think I know a way to resolve this, I'll post the fixed bins today. :)

Edit: I've tried using glibc (with static nss) as well as uClibc both with (fp-armv8), the glibc one didn't segfault but gave unable to resolve errors in lookup utils whereas the uClibc one segfaulted every time whenever busybox was built with SELinux support.

So till the time Aarch64 support in buildroot is improved, I'm (for now) falling back to arm binaries for arm64 devices. The installers and zips would still contain arm64 bins if anyone needs them.
[Android Software/Hacking General [Developers Only]] 8zabi:
Hi,

I am using Nexus 6 with always the latest LineageOS 14.1. I have a problem: your busybox OTA survival script deletes the su application in /system/xbin and restoring su as a symlink to busybox. So root (and maybe other things, that are overwritten) is not working anymore. Today I noticed this for the second time. If I delete the 88-busybox.sh file, then dirty flashing LineageOS and then your Busybox-1.26.2-YDS-UNIVERSAL.zip everything is ok.
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Thank you for reporting the error, I have located the code snippet responsible for this. I'll make the necessary changes and release the fixed OTA script ASAP.:)

Edit: @8zabi I've fixed the issue, kindly check and report if it works for you. (Link in the op)
[Android Software/Hacking General [Developers Only]] 8zabi:
Thanks :good:. I will test it tomorrow, when the next weekly comes out for my device.
[Android Software/Hacking General [Developers Only]] 8zabi:
The fixed script is working, I have just flashed the weekly build. The applets and the su binary survived the process.
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

Thanks for your continuous developing

I propose you to enhance the download button using red color (instead green), a bigger font and unique phrase all enhanced in first post like this

---- Original

Download: Click Here

---- My proposal

Download latest version
[Android Software/Hacking General [Developers Only]] Sourav95:
If I want to install busybox in /sbin through installer and terminal...what should my commands be???
[Android Software/Hacking General [Developers Only]] veez21:
Put this in bbx.conf

installdir=/sbin
[Android Software/Hacking General [Developers Only]] Sourav95:
I can't understand.
[Android Software/Hacking General [Developers Only]] dolbylogic:
[MENTION=5423715]YashdSaraf[/MENTION] - Thank you for including the OTA survival on you Busybox. Thank you for making my request a reality.... :D:D:D
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

Could you please update first post with info about Last update: it's 9 May 2017 (not 27/April).

Could you please enhance DOWNLOAD button as I explained here (more visible and clear)

https://xdaforums.com/showpost.php?p=72274477&postcount=279

Thanks.
[Android Software/Hacking General [Developers Only]] martyfender:
I agree about the download button, however, if you read the changlog, it does show a date of 27/April.
[Android Software/Hacking General [Developers Only]] bovirus:
Please click on DOWNLOAD button.

You go to https://github.com/yashdsaraf/bb-bot/releases/tag/v1.26.2-YDS-201705092106

And you can se that build is v1.26.2-YDS-201705092106 that it's 09.05.2017 - 21:06
[Android Software/Hacking General [Developers Only]] YashdSaraf:
To install busybox using the terminal, run

sh <script_name> --installdir=/sbin

However this might not work, as /sbin is not user writable in some devices. :)

I appreciate the support :)

Updated. Thanks for the feedback!:good:
[Android Software/Hacking General [Developers Only]] white7561:
Can install this to Magisk enabled device? And do the mount BusyBox to /xbin on the Magisk Settings? Thanks
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

I believe that my proposal for download link

"Download latest version" string with big text in red - instead like now "Click" in black and "here" in green

is more visible in the context of first post.
[Android Software/Hacking General [Developers Only]] skulldreamz:
Didn't mean to thank your post...
[Android Software/Hacking General [Developers Only]] Miustone:
[MENTION=5423715]YashdSaraf[/MENTION] I'm using Your Busybox now for a while and it's just the best One after testing almost all out there. I've added Credits to You on My new Projects WebSite here: https://sites.google.com/view/inlightning/info since i want to keep Your Busybox in My Patch.

I would be glad if You would list us under Your Users on the first Post as Inlightning Org (Will be our Domain soon).

Keep it up Mate, You're a doing important Work here! Thanks!
[Android Software/Hacking General [Developers Only]] ale5000:
[MENTION=5423715]YashdSaraf[/MENTION]

Hi, what is the compatibility?

Does it work on all versions of Android from 2.2 to 7.1.2?
[Android Software/Hacking General [Developers Only]] YashdSaraf:
I test all the releases on android api versions ranging from 14 to 25, and I just successfully tested the latest release on an avd running android 2.3 (api 9) (that's the lowest api available for download BTW).

Although, be warned, the offline self extracting installers won't work on lower APIs as the shells in earlier android versions don't have the required commands. Anyway, the busybox binary itself works as expected. Hope this helped :)
[Android Software/Hacking General [Developers Only]] ale5000:
Yes, it helped a lot.

I just need the binary, in the next version I will add it and link to you.

---------- Post added at 20:02 ---------- Previous post was at 19:58 ----------

[MENTION=5423715]YashdSaraf[/MENTION]: Another thing just if you know, is there something to compress in zip format that have the same compatibility (and architecture support if possible) of your busybox and that it is open source?
[Android Software/Hacking General [Developers Only]] YashdSaraf:
You can use info-zip's zip binaries, look here: https://github.com/opengapps/opengapps/tree/master/scripts/infozip-resources

They are compiled by me using the same toolchains as busybox, so they should have the same architecture support. Although, the above link consists of bins only for x86 and arm archs, if you decide to go with them, I'll compile one for mips as well over the weekend. :good:

Alternatively if you need more compression formats, you might want to go the 7zip way, they provide a 7za binary which supports zip compression in addition to many others. You can use the toolchains available here to build these or I'll build the bins for you over the weekend. :)
[Android Software/Hacking General [Developers Only]] ale5000:
Sorry for the late reply but I was busy, if you can build 7za it would be nice.

Thanks in advance.

PS: I never heard about mipseb, do you know what is the difference between mips and mipseb and how can be detected in a flashable zip?
[Android Software/Hacking General [Developers Only]] YashdSaraf:
mipseb stands for MIPS Big Endian architecture. Mobile devices only use little endian architectures, so you don't need to detect mipseb in a flashable zip.

AFAIK, it is used in some routers, maybe some other embedded devices as well. I was requested to build busybox for mipseb a while ago and I still get a few downloads for mipseb, so I continue to support it. :p
[Android Software/Hacking General [Developers Only]] ale5000:
[MENTION=5423715]YashdSaraf[/MENTION]: The fix is included but I have discovered because it was failing.

I run a shell script using "/tmp/busybox ash script.sh", inside the shell script it use unzip.

I was expecting it to use the working unzip inside the busybox instead it use the broken one on the phone.

How can I tell it to prefer all the internal tools?
[Android Software/Hacking General [Developers Only]] pleasetouchmenot:
[MENTION=5423715]YashdSaraf[/MENTION] can you please check my BB log? I'm on Nougat 7.1.2 using SuperSU 2.82 SR1. First time i've seen the "grep: write:" and the "losetup" on my log. Is that an error?
[Android Software/Hacking General [Developers Only]] YashdSaraf:
I can think of at least 2 ways to do that,

1. Install bb to a directory and prepend it to the PATH env variable.

2. (Not at all a recommended approach, but it works) Alias all busybox commands with busybox prepended to them. Something like this

for i in $(busybox --list)
do alias $i="busybox $i"
done

It seems to be a shell specific error. The line of code causing it detects the device architecture and it indeed detected the right architecture, coming to the losetup error, it means the loop device is busy and cannot be deleted (not something to fret about). I'd say these can be safely ignored. :)

Here you go, https://www.androidfilehost.com/?fid=745425885120740261

I've successfully tested all of them on emulators.
[Android Software/Hacking General [Developers Only]] RSDamasceno:
Hello! Is it possible to make this project compatible with the latest versions of Magisk?
[Android Software/Hacking General [Developers Only]] bovirus:
I believe that busybox is no related to compatible problem with Magisk.

Busybox is a tool that just need a customr ecovery.
[Android Software/Hacking General [Developers Only]] skulldreamz:
BusyBox and a custom recovery have nothing to do with each other
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

- Busybox 1.27.0 (beta)

https://www.busybox.net/

Could please create a build based on it?
[Android Software/Hacking General [Developers Only]] YashdSaraf:
BB v1.27.0 released (download link in op), please test and report if any errors are encountered. :)

Thanks for the heads up [MENTION=637263]bovirus[/MENTION].
[Android Software/Hacking General [Developers Only]] martyfender:
Thanks for a great busybox installer. I use the busybox x86 version, flashed through twrp

Maybe this has been fixed in a recent version. If so, I haven't checked.

A few versions back when I attempted to flash it in twrp it would fail. I found out by going to mounts in twrp and selecting system, then flashing, that it always succeeds. I now always do this for new versions, but I thought I would point it out in case the installer script is still the same.

Nextbook ares 8A Intel Cherry Trail tablet x86 Android 6.0.1

Could you please clarify this for me?

Thanks
[Android Software/Hacking General [Developers Only]] k1ks:
Hi.

It has been a long time.

installed successfully .

All seems ok .
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Could you please provide the installation log? It should be at /sdcard/BusyBox-YDS-installer.log, I need to be able to reproduce the error to some level to debug it. :D
[Android Software/Hacking General [Developers Only]] martyfender:
Apparently it is working ok with newer versions because I reflashed the version you released yesterday without mounting the system first and it there are no errors in the log. I first started using your bb about a year ago 1.24 or 25, not sure. that is when I had problems with it.