yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] alecxs:
i have tested this app and it says busybox not installed (which is not true). so forget these apps and just type "which busybox" in Terminal or adb shell. please note the installer is written for TWRP, so it may fail when flashed from Magisk. if you know location then just place the binary there and create the symlinks, no installer needed for this

if you have installed Magisk Manager then just deactivate core-only mode and install the busybox module from osm0sis (see above link on this page)
[Android Software/Hacking General [Developers Only]] MAOQ:
No program works fine and even good.

If the program writes that there is no BusyBox and then, including in the system / xbin folder, BusyBox is also missing.

On the contrary, YDS BusyBox is made under Magisk (see the script).

It’s not a problem to do with hands, I’ll try, but why do not want to install BusyBox from YDS? Here is what you need.

Magisk Core is always disabled, never touch.

Did not try BusyBox from osm0sis, maybe installed or vice versa.

There are more applets on BusyBox from YDS, that's why I want to install this.)
[Android Software/Hacking General [Developers Only]] alecxs:
the installer does detect magisk.img and install (YDS) busybox successful, your problem is with Magisk. clean the folder and re-install

according to the documentation busybox is located /data/adb/magisk (or /data/adb/modules) and mounted to /sbin/.magisk

i don't use magisk at all, can't help you much. i am not even sure if there exist xbin (/data/adb/modules/<id>/system/xbin maybe where id=bbxyds?) on my SuperSU systemless root location is /su/xbin/busybox (that's why i asked for location)

you wrote you are rooted with Magisk but don't have Magisk installed, in this case magisk.img is (probably) not mounted to /data/adb (or Magisk is in core-only mode which mean all modules are disabled/ not "loaded" by default)
[Android Software/Hacking General [Developers Only]] MAOQ:
May be. I remember in the firmware itself was the old Magisk and does not work normally. I updated 20.4 from above and started working.

Well try to reinstall.

Magisk to reinstall on clean?

I have not been using SuperSu for a long time. Firstly, support has already been discontinued and there are few opportunities.

MQ. In general, I tried to reinstall Magisk (I uninstalled it using the patch and reinstalled Magisk from scratch) and unfortunately failed to install. As always, BusyBox v1.29.2 is not installed. But, I wanted to test the old version and BusyBox v1.25.0 is installed.

So something is wrong in the v1.29.2 archive.

... or do you think the problem is in Magisk itself?

Yes, it’s even more interesting when I installed BusyBox v1.25.0 everything was fine, but then I decided to install BusyBox v1.29.2 on top and after rebooting, it wasn’t installed and BusyBox v1.25.0 was uninstalled (as if Cleaner had installed). :)

Yesterday we asked in a profile topic (like who has the same firmware) and they said there, yes they have the same thing. Installation is in error.
[Android Software/Hacking General [Developers Only]] jcfunk:
sm command is not part of busybox, it's an android command. From what I've seen sm is for Marshmallow's new Adoptable storage feature that lets you turn your removable SD card option into a more or less permanent (and no longer removable) part of the device

/sbin

is from initrd of the boot.img, probably using systemless su. Seems from your other post about having /su

Also adb is not part of busybox, it's an android command.
[Android Software/Hacking General [Developers Only]] Neo-Android:
work fine
[Android Software/Hacking General [Developers Only]] m0han:
'super complete' Busybox

[MENTION=5423715]YashdSaraf[/MENTION], congrats on this:
[Android Software/Hacking General [Developers Only]] ShapeShifter499:
[MENTION=5423715]YashdSaraf[/MENTION] are you working with [MENTION=4470081]topjohnwu[/MENTION]? I'm not sure if it was compiled by [MENTION=4470081]topjohnwu[/MENTION] or if that person just got it from you but that binary has a wget issue. "wget" is giving me a "bad address" error, seems the issue with "bad address" is down to which libc is compiled against. As suggested by the following three posts https://github.com/guardianproject/l...mment-75177581 https://stackoverflow.com/a/26976653 and http://lists.busybox.net/pipermail/b...il/075469.html Can you check if you are compiling against bionic instead of libc?
[Android Software/Hacking General [Developers Only]] YashdSaraf:
You can get around the "bad address" error by creating /etc/resolv.conf with a valid dns server in it.

For e.g doing this

echo "nameserver 8.8.8.8" >> /etc/resolv.conf

should get wget working.

I checked out the links you sent, (1st and 3rd are down). I can use bionic instead of uClibc and glibc, but that would require me to use ndk which doesn't support many of the applets and flags, also it'll increase the size of the binaries way too much.

I will however try to look into a more permanent solution for the above error. :)
[Android Software/Hacking General [Developers Only]] ShapeShifter499:
I would have to figure out how the "magisk systemless root" works so I can incorporate /etc/resolv.conf into it. I cannot just "echo "nameserver 8.8.8.8" >> /etc/resolv.conf" can I? Wouldn't that cause "SafetyNet" to fail?
[Android Software/Hacking General [Developers Only]] YashdSaraf:
I'm not familiar with the working of magisk, but I can assure you resolv.conf will not mess with any of your systemless functions. It's just providing a valid dns server to whatever utility is depending on it. Also the command I gave would "append" not "overwrite" the existing resolv.conf (if any) so in my opinion it shouldn't do any harm:good:.
[Android Software/Hacking General [Developers Only]] ShapeShifter499:
Had to remount /system as read-write to create the file but using /etc/resolv.conf seems to work. I never knew wget relied on this file when it's compiled differently because it's always "just worked" in the past.
[Android Software/Hacking General [Developers Only]] jcfunk:
[MENTION=5423715]YashdSaraf[/MENTION]

Here's an error log

Tried to install on LG G3 with twrp 3.0.2.0

error happens with ARM and Universal install files

#Thu Aug 4 23:30: o55 CDT 2016
#Ignore umount errors!
Archive: /external_sd/Busybox-1.25.0-YDS-ARM.zip
unzip: zip flags 1 and 8 are not supported

Error while unzipping /external_sd/Busybox-1.25.0-YDS-ARM.zip to /system/xbin
[Android Software/Hacking General [Developers Only]] YashdSaraf:
unzip error

Users who have been facing the following error while installing the busybox flashable zips

unzip: zip flags 1 and 8 are not supported

It seems the unzip binary in many recoveries does not support compression level flags, so I've made these alternative zips.

Kindly test the attached zips and report back which one or both of them worked.:)

http://afh.co/c/arm-alt1

http://afh.co/c/arm-alt2
[Android Software/Hacking General [Developers Only]] jcfunk:
Tested both worked for me
[Android Software/Hacking General [Developers Only]] mauam:
First of all, thank you so much for your work:cool: I added your thread to my signature, hope you don't mind:laugh: Keep it up:good:
[Android Software/Hacking General [Developers Only]] mahdif62:
Does this work with Android N preview 5?
[Android Software/Hacking General [Developers Only]] Tecalote:
Permission 555 instead of 755

[MENTION=5423715]YashdSaraf[/MENTION] I have flashed the 1.25.0 on my Huawei p8 and then the Root Check says the busybox is correctly installed - but with the permissions 555 - should it not 755?

There is another one on xda, which shows 755... Before I had 1.24.2 yds, don't remember yet how the permission was.
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

I propose some improvements in the first post.

Busybox 1.25.0 is unstable (beta) version. For this reason

- Please indicate in the description and in the file name the beta condition (ex. busybox-1.25.0-ARM-beta.zip).

- Please leave in first post also the stable version (1.24.2) files.

Thanks.
[Android Software/Hacking General [Developers Only]] YashdSaraf:
It does not matter much on android as busybox is an executable. The permissions 775 (rwxrwxr-x) means that the file can be overwritten whereas 555 (r-xr-xr-x) means that there are no write permissions so the file cannot be overwritten, but it can be replaced or removed (might require the -f argument of the 'rm' command). So I went with the more conservative permissions. This does not affect the working of the binary in any way.
[Android Software/Hacking General [Developers Only]] Tecalote:
Thank you very much for your answer. Now I understand that everything is okay and working well :)
[Android Software/Hacking General [Developers Only]] Kamal363:
Hye... how to install manually...?? Using twrp 3020 get this>>> #Sat Sep 3 18:03:54 THAIDT 2016

#Ignore umount errors!

mkdir: can't create directory '/su': File exists

Archive: /external_sd/ADM/Archives/Busybox-1.25.0-YDS-ARM.zip

unzip: zip flags 1 and 8 are not supported

Error while unzipping /external_sd/ADM/Archives/Busybox-1.25.0-YDS-ARM.zip to /su/xbin

EDIT : its working now... with ~alt1~ link... Thx....

Send from SM G900F xXx 5.2 Odex Boeffla 2.1 beta4 Twrp 3.0.2-0
[Android Software/Hacking General [Developers Only]] TechNova:
Is this busybox STERICSON Binaries?.....
[Android Software/Hacking General [Developers Only]] skulldreamz:
No, there from the official busybox.net source located under source in the op
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5188005]TechNova[/MENTION]

There is a specifc thread for busybox with Stericsson binary.

Please take (my opinion) this busybox (by Yashdsfarf) are more powerful and optimized (32/64bit - SELinux on or off) than standard Stericsson binary (only 32bit not SELinux).

Stericsson binary has also less commands than Yashdsaraf binary.
[Android Software/Hacking General [Developers Only]] TechNova:
Ohh...i wasn't knowing that..

Well, thanks for telling me :)
[Android Software/Hacking General [Developers Only]] MAOQ:
Hello. The guys and you can add some lines to the beginning, before installing 1.2.5.0 remove the old version 1.2.4.2? \/

>>>

ui_print("Installation BusyBox ...");

run_program("/sbin/busybox", "mount", "/system");

run_program("/sbin/busybox", "mount", "-o", "rw,remount", "/system", "/system");

run_program("/sbin/busybox", "mount", "-o", "rw,remount", "/", "/");

package_extract_dir("busybox", "/tmp/busybox");

run_program("/sbin/busybox", "unzip", "/tmp/busybox/busybox.zip", "META-INF/com/google/android/*", "-d", "/tmp/busybox");

run_program("/sbin/busybox", "sh", "/tmp/busybox/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/busybox/busybox.zip");

Generally you should install version 1.25.0 firmware to Android 5.1.1 or 1.24.2 best to leave? custom of the Note 5, device Note 4. o_O
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

busybox release officially busybox 1.25.1.

Could yyou please update your package? Thanks.

Please consider to add in each package the instruction to remove previous busybox version installed (please check the post before this one).
[Android Software/Hacking General [Developers Only]] veez21:
[MENTION=5423715]YashdSaraf[/MENTION] , when I flash the zip on FlashFire, it doesn't print anything :)

I don't know if you care but i know you can do it
[Android Software/Hacking General [Developers Only]] YashdSaraf:
I've got a lot on my plate right now, but I'll update it in a day or two max. Also all my installers remove the previous busybox versions installed in /system as well as systemless /su. The installer prints the info about the applets being removed.

I'll look into it as soon as I can. Thanks for reporting.

All the installers attached in OP clean the /system and /su for any previous busybox binaries as well as their applets. The installer prints the info about removing these applets.

Also all my busybox builds are tested on emulators running android versions as old as 4.0.3 and as new as 7.0.1. It is entirely the user's choice to use whatever version of busybox as desired. Although, I would recommend to use the latest busybox version for any important bug fixes.
[Android Software/Hacking General [Developers Only]] veez21:
:good:
[Android Software/Hacking General [Developers Only]] Benik3:
Great info! :)

BTW is there anyway, how to tell the installed, that I want to use systemless busybox? I wanted to use it with systemless SU, but in the ROM BB is now in system/xbin and the zip always also install into system/xbin (and what I looked into BusyBox checker, it wants SuperUser in /system/xbin/su even it's not here....)
[Android Software/Hacking General [Developers Only]] MAOQ:
When installed version 1.24.2 was not a problem but the version 1.25.0 does not set. It seems to have sh script file, but does not work (ie, do not appear in the system). Okay, you wait to the last 1.25.1 (course for rekaveri, arm). :)
[Android Software/Hacking General [Developers Only]] Assenssins:
:good:
[Android Software/Hacking General [Developers Only]] YashdSaraf:
For systemless installations, SuperSU creates a file name "su.img" in the /data or /cache partition. My installer detects a systemless installation if this file is present. Please check if you have the file, if you don't, you either have a normal(non systemless) SuperSU installation or SuperSU wasn't properly installed.

I'm sorry I don't quite follow you. The installer is not wiping the old busybox installations? or is it something else?

In any case of error, please attach the BusyBox-YDS-installer.log

Fixed :)
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

I believe that you have to update your sign with version 1.25.1 (now is 1.25.0) :)
[Android Software/Hacking General [Developers Only]] leo.riv:
[MENTION=5423715]YashdSaraf[/MENTION]

I think Busybox-1.25.1-YDS-ARM not properly install in my system

View attachment BusyBox-YDS-installer.log
[Android Software/Hacking General [Developers Only]] MAOQ:
I'm sorry for my bad English language is all ok. That put this and BusyBox v1.25.1 appeared: http://xdaforums.com/attachment.php?attachmentid=3901770&d=1476283939 Thank you for your reply. :)
[Android Software/Hacking General [Developers Only]] Chinaboy5216:
[MENTION=5423715]YashdSaraf[/MENTION], thanks for the update.

Universal flash went flawless, as usual :)
[Android Software/Hacking General [Developers Only]] veez21:
It was fixed:good:

No errs
[Android Software/Hacking General [Developers Only]] tupac4u:
Thanks for the update
[Android Software/Hacking General [Developers Only]] exodius48:
[MENTION=5423715]YashdSaraf[/MENTION] Add some mirrors please, AFH down

Finally i can download it after retry for severals hours.

But, i htink it not installed properly. I get segmentation fault on log. I check busybox on terminal, i get error FATAL:kernel too old.
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=3192543]exodius[/MENTION]

CPU Type? ARM 32 or 64bit? Android OS version?
[Android Software/Hacking General [Developers Only]] exodius48:
64 bit. Android 6.0.1
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5210243]exodius48[/MENTION]

Could you pelase test this

https://drive.google.com/open?id=0ByL-fx0GbfuidEdZTXBhdG5McVU

It's the buysbox Stericsson 1.25.1 update package via recovery (mod) with inside busybox binary replaced by YDS 64bit Selinux busybox binary file.
[Android Software/Hacking General [Developers Only]] exodius48:
Sorry, i don't like buysbox by Stericsson. It has less applets. YDS version is better. :D

Better waiting for YDS to fix his busybox.
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5210243]exodius48[/MENTION]

Is not busybox binary of Stericsson.

The script inside the ZIP is coming from Stericsson busybox.

The binary file of busybox is YDS 64bit SELinux (original busybox by Stericsson is only 32bit and not SELinux).

It means that the dfference vs original YDS package is only the installation script.
[Android Software/Hacking General [Developers Only]] Tecalote:
No applets in su/xbin (systemless)

[MENTION=5423715]YashdSaraf[/MENTION], your busybox 1.25.1 installs after flashing only the busybox binary, no applets.

First I cleaned busybox with your cleanup zip.

After I flashed 1.25.1

Huawei p8, arm64, systemless root. (su/xbin/)

With 1.25.0 the applets are there...
[Android Software/Hacking General [Developers Only]] exodius48:
I'm using systemless root, the script inside does not support it. It will install busybox inside /system rom.
[Android Software/Hacking General [Developers Only]] Tecalote:
After flashing again 1.25.1 no applets!

Screenshot and Log
[Android Software/Hacking General [Developers Only]] kr0m*:
Same here android 5.0 x64.

Enviado do meu i7 através de Tapatalk
[Android Software/Hacking General [Developers Only]] skulldreamz:
Is anyone else having any issues with root explorer just freezing not showing anything like this after flashing 1.25.1?

https://goo.gl/photos/PrXXJncQMLS5MQg87

https://goo.gl/photos/1dydcre6ZP1g1P9X6

The installer log is pictured in the above links, having some issues with my phone uploading the log, apologies...

On the latest stock build for 6p with systemless root and Franco kernel 34
[Android Software/Hacking General [Developers Only]] leo.riv:
[MENTION=5423715]YashdSaraf[/MENTION]

Thanks for Fix

After flashing Busybox-1.25.1-YDS-ARM{FIXED} now it's working perfectly

#Sun Jan 18 03:47:56 PAKDT 1970
#Ignore umount errors!
================================================
BusyBox 1.25.1 arm (Stable: 07 Oct/16)
-----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 --
mknod: /dev/block/loop0: File exists
Cleaning up older busybox versions (if any) --
Found in /su/bin --
Total applets removed => 332 --

Extracting Binary to /su/xbin --
Setting up applets --
Adding common system users and groups --
Unmounting /system --

All DONE! -- Check /sdcard/BusyBox-YDS-installer.log for more info
[Android Software/Hacking General [Developers Only]] YashdSaraf:
It was the new toolchain with gcc 6.2 I was trying, apparently aarch64 arch doesn't support kernel headers greater than v3.10.x.

Anyways, it's fixed now (thanks to [MENTION=5350323]leo.riv[/MENTION] and [MENTION=4542027]skulldreamz[/MENTION] for testing). I'm updating the OP with new download links.

Also, as AndroidFileHost is really slow for some users, I'm adding some mirror links, hope they help.

Thanks for all your support and patience. :)
[Android Software/Hacking General [Developers Only]] skulldreamz:
[MENTION=5423715]YashdSaraf[/MENTION] Your the man, everything is running flawless, I know how busy you are and still find the time to stay up to date with this thread. I think it's safe to say thanks from all of us here at xda
[Android Software/Hacking General [Developers Only]] m0han:
mega is blocked here and afh doesn't open. please share another direct link. thanks.
[Android Software/Hacking General [Developers Only]] skulldreamz:
https://www.dropbox.com/s/21r45exj3dp188k/Busybox-1.25.1-YDS-ARM{FIXED}.zip?dl=0

Here ya go, this is the Arm[Fixed].zip
[Android Software/Hacking General [Developers Only]] exodius48:
Great job. Finally working now.

Sorry for lately report. Hehe
[Android Software/Hacking General [Developers Only]] m0han:
thanks. but, i'd quoted the post that referred to 'ARM{FIXED}', which is what i need.
[Android Software/Hacking General [Developers Only]] skulldreamz:
Then the one I linked you to is the correct one. It's for arm and his script will determine your architecture and install the correct binary.
[Android Software/Hacking General [Developers Only]] m0han:
thanks for the info. i now see new links in the op. got ARM (md5: d385182ebe9c59a4736829467d88df25) from here. still curious to know from [MENTION=5350323]leo.riv[/MENTION] what he meant by 'ARM{FIX}'.
[Android Software/Hacking General [Developers Only]] leo.riv:
Here's the link - https://dl.dropboxusercontent.com/s/02vn62xib544hre/Busybox-1.25.1-YDS-ARM{FIXED}.zip
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5350323]leo.riv[/MENTION]

The link

https://dl.dropboxusercontent.com/s/02vn62xib544hre/Busybox-1.25.1-YDS-ARM{FIXED}.zip

and the file (19.08,2016) on first post are the same files or the ARM-fixed version is another step up version?
[Android Software/Hacking General [Developers Only]] leo.riv:
same file it is AMR64bit
[Android Software/Hacking General [Developers Only]] exodius48:
Just asking, does this busybox support Nougat 7.0?
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Yes it should. :good:
[Android Software/Hacking General [Developers Only]] exodius48:
I think you need to edit your signature. Yours busybox has been updated to 1.25.1. :p
[Android Software/Hacking General [Developers Only]] m0han:
Error (401) It seems you don't belong here! Check out our Help Center and forums for help, or head back to home. :confused:
[Android Software/Hacking General [Developers Only]] YashdSaraf:
OP has all the latest download links. That link was just for the testers and I discontinued it as the testing is done.

Please refer to the OP, it will always have the latest links.
[Android Software/Hacking General [Developers Only]] topjohnwu:
[MENTION=5423715]YashdSaraf[/MENTION]

First of all, thanks for providing such complete busybox!! This busybox prevents me from a lot of headache, and it plays an essential role in Magisk!

I'd like to report that in the latest Busybox in OP (v1.25.1), all selinux features are broken (using sel version)
[Android Software/Hacking General [Developers Only]] veez21:
yeah, it also aborts on twrp 2.8 below, i should probably post logd but u think this is related to your issue(selinux)
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Thanks for reporting. Can I get some sort of logs and the architecture your devices support?

Similar issue was faced by some opengapps users, but they were all using x86 arch devices.

If you guys have the same arch, maybe I already have a fix. :D
[Android Software/Hacking General [Developers Only]] veez21:
it actually it only happens on me if i flash on twrp 2.8 and down, twrp 3 is okay
[Android Software/Hacking General [Developers Only]] Tecalote:
First of all also many thanks for your excellent busybox!

It would be good to know if the newest one works also with TWRP 2.8.x.x. Because for the Huawei P8 is since marshmallow no full functional TWRP available. One is based on 2.8.7.0. (the official TWRP 2.8.7.x don't work with Android 6.0) The other one comes from china and is based on 3.0.2.0. None of the modified ones are official and full functional. So, some people uses the one, others the other one. The newest busybox should in this case also work with TWRP 2.8.7.x

That's why I ask. Thanks :)
[Android Software/Hacking General [Developers Only]] YashdSaraf:
I just tested the arm busybox build flashed with TWRP 2.8.7.0 and it is working.

Do report back if it does not work for you.

Also, if you haven't any stable recovery support, I recommend trying flashfire :)
[Android Software/Hacking General [Developers Only]] Tecalote:
Okay, I will test and report back. I want integrate your busybox in my next Rom for the P8 (MM) (arm64).

During testing I try it with both TWRPs.

Thanks :)