yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

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
[Android Software/Hacking General [Developers Only]] k1ks:
Nice work .

Keep it up !!!
[Android Software/Hacking General [Developers Only]] m0han:
is the issue mentioned here addressed? [MENTION=5423715]YashdSaraf[/MENTION], hope you read my pm.
[Android Software/Hacking General [Developers Only]] YashdSaraf:
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:

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. :)
[Android Software/Hacking General [Developers Only]] 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'?
[Android Software/Hacking General [Developers Only]] YashdSaraf:
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:
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

Are there any news about busybox for ARM and 64boit Android SO (like 5.1.)?
[Android Software/Hacking General [Developers Only]] m0han:
...will test the updated installer and revert .....

your zip worked well, i think. thanks.
[Android Software/Hacking General [Developers Only]] 24imelqui:
86_64 for zenfone 2 Z00A?
[Android Software/Hacking General [Developers Only]] UpInTheAir:
[MENTION=5423715]YashdSaraf[/MENTION]

Thanks for sharing mate. really appreciated. :good:

PM sent

Cheers,

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

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.
[Android Software/Hacking General [Developers Only]] exodius48:
[MENTION=5423715]YashdSaraf[/MENTION] Could you update busybox to 1.24.2?
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5210243]exodius48[/MENTION]

All busybox files in first post are version 1.24.2.

[MENTION=5423715]YashdSaraf[/MENTION]

Please add a note in first post about the vesrion of busybox.
[Android Software/Hacking General [Developers Only]] exodius48:
Sorry for asked it. I couldn't find busybox version on 1st post, also on the tittle.
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5210243]exodius48[/MENTION]

In the first post there are various Download links with all busybox for all platforms.
[Android Software/Hacking General [Developers Only]] Ibuprophen:
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.
[Android Software/Hacking General [Developers Only]] YashdSaraf:
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:

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.:)
[Android Software/Hacking General [Developers Only]] m0han:
i could not get My Backup Pro working with this. so, i booted into recovery and ran the cleaner. it removed '0' applets. i then installed Busybox-1.26.1-YDS-ARM.zip and used the cleaner again to check. it removed 395 applets. in short, only Busybox-1.26.1-YDS-ARM.zip works for me. pics & logs attached.

#Thu Jan 12 10:19:45 PAKST 2017

#Ignore umount errors!

mknod: /dev/block/loop0: File exists

#Thu Jan 12 10:20:32 PAKST 2017

#Ignore umount errors!

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

BusyBox 1.26.1 arm (Stable: 07 Jan/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 --

mknod: /dev/block/loop0: File exists

Cleaning up older busybox versions (if any) --

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

View attachment 4000481 View attachment 4000482
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Yes the installer I attached in the earlier post doesn't seem to install properly, because the hackaround I used to fix the unzipping errors messed up the xz compressed bins (;-_-)

Anyways, thanks to [MENTION=6404745]MastahF[/MENTION] I think I have a way, I'll upload the updated zips here to test as soon as I'm home. :)
[Android Software/Hacking General [Developers Only]] jugoslavpetrovic:
Thanks
[Android Software/Hacking General [Developers Only]] suyonk:
If i want to update to newer version ? What should i do ? Thanks ?
[Android Software/Hacking General [Developers Only]] 24imelqui:
For arm64, zenfone selfie with Phh Superuser RR M ROM the right busybox is Busybox-1.26.1-YDS-ARM.zip?
[Android Software/Hacking General [Developers Only]] skulldreamz:
Yeah the installer will detect which architecture of arm your chip is
[Android Software/Hacking General [Developers Only]] 24imelqui:
thanks
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=3811709]yashd[/MENTION]Sraf

Pelase take care that MEGA link in first post

MEGA - http://bit.ly/bbMEGA0701

report a warning message

Please modify the script reporting always the info about the latest update about buysbox.

Ex. you released two versions (07.01.02017 and 08.01.2017) and in the version of 08.01.2017 the script report 07.01.2017.

It's important that the script reflect always the release date to sure that you are using the specific date version.

The info reporetd by the script is the only easy way to check the version date of busybox.

Thanks.
[Android Software/Hacking General [Developers Only]] skulldreamz:
Dude chill, [MENTION=5423715]YashdSaraf[/MENTION] is working on it alright. Patience is a virtue...
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=4542027]skulldreamz[/MENTION]

Please read carefully my post.

I didn't ask any relase date.

Is just a proposal to improve the project.
[Android Software/Hacking General [Developers Only]] skulldreamz:
I apologize if it sounded harsh, it's just that he is working very hard on it.
[Android Software/Hacking General [Developers Only]] bovirus:
@ skulldreamz

I know it very well.

I tried to help him with test and proposing simple improvemnts that can help him and the users.
[Android Software/Hacking General [Developers Only]] skulldreamz:
So if you are helping him with testing and you already know what he is doing then why did you ask him again?
[Android Software/Hacking General [Developers Only]] YashdSaraf:
I always update the date in the scripts to reflect the latest release. The issue there was that I finished building the zips on 7th but didn't get the time to upload until 8th when I was on the road. Hence, the conflicting versions.

Also that warning message seems to appear whenever sharing MEGA links using bit.ly, I think I'll discontinue uploading to MEGA and find a better mirror. :)

And please chill out guys, all your contibutions have been invaluable and I deeply appreciate all of them. :D

Lastly, I apologize for the delay in releasing fixed installers, I have been busy adding a md5 checksum feature in the installer, I'll upload them ASAP.
[Android Software/Hacking General [Developers Only]] mauam:
BB 1.26.2 is out:cool:
[Android Software/Hacking General [Developers Only]] Ibuprophen:
My recommendation would be to use the Android file host website. Much faster and more flexible.

I use it for my project releases and the ability to use their FTP uploading is a great tool.
[Android Software/Hacking General [Developers Only]] m0han:
op says 'AndroidFileHost - http://bit.ly/bbAFH0701'
[Android Software/Hacking General [Developers Only]] YashdSaraf:
I have added the code to ignore linking the applets already present in the system when installing with magisk and phh su, this should fix those issues concerning common system applets, e.g reboot and id.

Do test and report how it works out for you. :good:

I have switched to a new zip signing method, thanks to [MENTION=6404745]MastahF[/MENTION], also now the installer ignores that unzip error, instead it carries on and errors out only if the bins were not extracted properly.

Please test and report if it works. :)
[Android Software/Hacking General [Developers Only]] exodius48:
As i said before, you're genius. :highfive:

Your busybox 1.26.2 working fine without any issues on my device. My previous bugs like id & failed to reboot recovery from TE finally fixed in this release. :victory::victory::victory:
[Android Software/Hacking General [Developers Only]] Evgen_17:
I wonder, why the latest universal busybox 1.26.2 has 394 applets and the old version 1.25.1 installs 397 applets? It's no so important; for me everything works fine for me with both versions; just interesting.
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Yes the 1.26 update does not include these applets

depmod
insmod
lsmod
modprobe
rmmod
svc

and includes one additional applet

ipneigh

This was changed in the default config of busybox and since my config files are default configs with some android specific changes, I didn't touch the changes. :p

The excluded applets are anyways included by default in android in /system/bin and it is safer to use them instead of busybox's applets.

Still if someone needs these applets, do tell :).
[Android Software/Hacking General [Developers Only]] jcfunk:
[MENTION=5423715]YashdSaraf[/MENTION]

Maybe it's just me?

#Mon Jan 16 09:37:19 CST 2017
#Ignore umount errors!
================================================
BusyBox 1.26.2 arm (Stable: 15 Jan/17)
-----by YashdSaraf@XDA-----
================================================

Mounting /system --
Checking Architecture --
Looking for => 'arm', found => 'armeabi-v7a'
32 bit architecture detected --
Checking if busybox needs to have SELinux support --

SELinux support is ENABLED --
Cleaning up older busybox versions (if any) --
Found in /system/xbin --
Total applets removed => 385 --

Extracting Binary to /system/xbin --
unzip: zip flags 1 and 8 are not supported
Checking md5sums of extracted bins --

***Abort!!***
Cause: Error while unzipping /sdcard/Download/Busybox-1.26.2-YDS-ARM.zip to /system/xbin
Quitting installer -- Check /sdcard/BusyBox-YDS-installer.log for errors
umount: can't umount /system: Device or resource busy

UPDATE:

Yes, it's just me. Or at less my recovery. I updated to unofficial twrp and busybox installs just fine.
[Android Software/Hacking General [Developers Only]] Evgen_17:
And what should i do, if i do not have "depmod" and "modprobe" in my stok BIN-folder? I use custom kernel on my phone, shall i use older version of you build or just take nessesary bin's from old versions. I do not clearly understand the needed of that bins in my room :rolleyes:
[Android Software/Hacking General [Developers Only]] exodius48:
Include all is better i think. :D
[Android Software/Hacking General [Developers Only]] johnb380:
Guys stop... The excluded are already in your system. This is why developers stop sharing when users start not picking pointless things. Flash the zip thank the OP and move on with your life.

Thanks OP I appreciate the work!

---------- Post added at 11:55 PM ---------- Previous post was at 11:51 PM ----------

@yashdsaraf also need to ask. Is there something in these zips that would somehow disable logd and or logging and ability to generate logs after flashing this?

Just curious as I can not seem to get logging enabled and this is the last zip in my flashing process that I haven't examined thoroughly.

Any info will be appreciated. Thanks again!
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Included the missing applets. :good:

Well the installer does redirect all the stdout and stderr output to the Busybox-YDS-installer.log, but the installer is a shell script which executes as a child process, so it should not affect the logging.

This is the only reason I think the installer might have interrupted logging, although, if this far fetched guess is right, all the logging should continue in Busybox-YDS-installer.log:silly:.

You can check it out, but I'm pretty sure my installer's not the reason. :)
[Android Software/Hacking General [Developers Only]] Evgen_17:
[MENTION=5423715]YashdSaraf[/MENTION], thank you for the last update, works awesome!
[Android Software/Hacking General [Developers Only]] Roamingnome3:
Works on HTC m9 Verizon running resurrection remix 574 . Flashed after I set selinux to permissive and no issues to speak of .

Awesome work. I appreciate it. ?
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

Installation failed on Infocus V5 M808

Log

#Fri Jan 27 16:09:16 TAIST 2017

#Ignore umount errors!

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

BusyBox 1.26.2-YDS arm (Stable: 18.01.2017)

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

Extracting Binary to /su/xbin --

unzip: zip flags 1 and 8 are not supported

Checking md5sums of extracted bins --

***Abort!!***

Cause: Error while unzipping /external_sd/Busybox-1.26.2-YDS-ARM-20170118.zip to /su/xbin

Quitting installer -- Check /sdcard/BusyBox-YDS-installer.log for errors
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Could you please confirm whether earlier installers were working. The only thing changed on the installer side is the signing process and it's the only logical culprit which might have broken the installation.
[Android Software/Hacking General [Developers Only]] carlosggb:
[MENTION=5423715]YashdSaraf[/MENTION] , Simply the BEST Busybox Package!!!

Using it on my Rom DTUX CORP ROM: V7.2 REVELATIONS

Thank you for your dedication!
[Android Software/Hacking General [Developers Only]] topjohnwu:
[MENTION=5423715]YashdSaraf[/MENTION], sorry that I was busy with other stuff and haven't provided much info for you, but since v1.25.1, all your selinux applets cannot work at all.

I'm not sure if this is limited to Nougat (I have no devices not on 7.0 or 7.1, so can't test now), but this is preventing me from upgrading the BusyBox within Magisk to newer versions. I was stuck at 1.25.0, which doesn't contain the fix to prevent FlashFire crashing and that quite annoying.

If you need more info, please tell me and I'll do my best to assist you :)

Thanks!

Here is the output of the results:

flounder:/data/local/tmp $ ./busybox64-sel-1250
BusyBox v1.25.0.YDS (2016-08-21 11:11:04 IST) multi-call binary.
.
.
.
flounder:/data/local/tmp $ ./busybox64-sel-1250 getenforce
Enforcing
flounder:/data/local/tmp $ ./busybox64-sel-1262
BusyBox v1.26.2.YDS (2017-01-17 13:49:33 IST) multi-call binary.
.
.
.
flounder:/data/local/tmp $ ./busybox64-sel-1262 getenforce
Disabled <----- Failing to detect selinux status, causing all selinux applets not working
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Thank you very much for reporting, can't believe I missed something this big.

I have nougat running on my device and I can confirm the SELinux applets DO NOT work.

I have a theory of what might've gone wrong since 1.24.2, I'll test it and report back here.
[Android Software/Hacking General [Developers Only]] KaMyKaSii:
I do not have any logs to attach, but a while ago (a month or less) I tested your Busybox (1.26 I think) on Android 6.0 and after that selinux became disabled
[Android Software/Hacking General [Developers Only]] topjohnwu:
Hello, nice to know you might have the idea to fix it :)

Do you have an ETA? Not to rush you, I just need to decide whether postpone the Magisk update to wait for your update, or release the update with the old busybox (but it'll break FlashFire :( )

Again, thank you very much for your busybox!
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Hey, I'm attaching the fixed binaries here, but if you need the flashable zips, I'll upload those later today.

ARM 32 bit - https://dl.dropboxusercontent.com/s/b34gvxssyair4ht/busybox-arm-sel

ARM 64 bit - https://dl.dropboxusercontent.com/s/2mhysrewbcra6o3/busybox-arm64-sel

Edit: Do tell if you need binaries for other archs as well. :)
[Android Software/Hacking General [Developers Only]] topjohnwu:
Ahh nice, I also need x86 and x86_64, but you can take your time.

I can wait for your complete release, I'm not in rush :D

BTW, I saw you have some issues with zip signing, here is a guide that might help you out :)

https://xdaforums.com/android/software-hacking/dev-complete-shell-script-flashable-zip-t2934449
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Yeah I referred to that and talked to osm0sis and MastahF about it. Now I use the signing method used by OpenGApps which seems to work for the most part:p.
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Updated the op with links to fixed busybox builds. Do tell if they do not work for you. :)
[Android Software/Hacking General [Developers Only]] exodius48:
[MENTION=5423715]YashdSaraf[/MENTION]

I can't install your busybox on Magisk 11.1, always get error like this:

#Thu Feb 9 06:03:35 THAIST 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 --
mknod: /dev/block/loop0: File exists
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

Please look into it!
[Android Software/Hacking General [Developers Only]] Tecalote:
What I think is:

Magisk include already this Busybox - thats why it is not necessary to install.

You can enable Busybox in Magisk Manager Settings
[Android Software/Hacking General [Developers Only]] exodius48:
Y i know, but i only test install busybox on magisk 11
[Android Software/Hacking General [Developers Only]] m0han:
v1.26.2 Issue

the rom i now use comes with superuser v1.0.3.3 and busybox v1.22.1 integrated. thinking i'd upgrade to v1.26.2, i flashed your latest arm zip. but, it appears i lose busybox. when i dirty-flash the rom, i get busybox back and mybackup pro app runs fine.

if i unroot using the zip file provided by the rom dev, i am able to get your busybox v1.26.2 installed, but, mybackup pro app throws up problems. is this something you can fix? in any case, i'd like to know your thoughts on this issue. thanks.

View attachment 4037159View attachment 4037160View attachment 4037161View attachment 4037167
[Android Software/Hacking General [Developers Only]] YashdSaraf:
I've located the error, will update this post with links as soon as they're done uploading.

Those sush errors refer to the custom shell installed by SuperSU and from taking a quick look at the unroot zip you attached it seems /system/bin/sh is not restored after uninstalling SuperSU, hence the sush errors.

If I'm right, the attached unroot.zip should work. :good:

EDIT: @exodius48 Please check if these installers work for you

https://github.com/yashdsaraf/bb-bot/releases/tag/v1.26.2-YDS-53
[Android Software/Hacking General [Developers Only]] exodius48:
[MENTION=5423715]YashdSaraf[/MENTION]

It work bro, tested on android 7.1.1

#Mon Feb 13 06:45:40 THAIST 2017
#Ignore umount errors!
================================================
BusyBox 1.26.2-YDS arm (stable: 12 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 --
mknod: /dev/block/loop0: File exists
Cleaning up older busybox versions (if any) --
Extracting Binary to /system/xbin --
Checking md5sums of extracted bins --
Setting up applets --
Adding common system users and groups --
Unmounting /system --

All DONE! -- Check /sdcard/BusyBox-YDS-installer.log for more info

Great update, thanks bro.
[Android Software/Hacking General [Developers Only]] TotallyAnxious:
delete
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

Thanks for BB 1.26.2 12.01.2017

https://github.com/yashdsaraf/bb-bot/releases/download/v1.26.2-YDS-53/Busybox-1.26.2-YDS-ARM.zip
[Android Software/Hacking General [Developers Only]] pleasetouchmenot:
Root explorer is not working on latest BB update ? keeps crashing when i try to open
[Android Software/Hacking General [Developers Only]] adriansticoid:
Broken installation. Happened to me too. Try to open Terminal, it will crash too.
[Android Software/Hacking General [Developers Only]] pleasetouchmenot:
Flashing BB. Feb.3 update fixes the RE problem.
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5933297]adriansticoid[/MENTION] [MENTION=7072203]pleasetouchmenot[/MENTION]

Please when you post, to post ALWAYS which version & date is your busybox..

Please check the latest version on first post and use this.

Latest stable is 03.02.2017. Latest update is 12.02.2017.
[Android Software/Hacking General [Developers Only]] pleasetouchmenot:
I will. Sorry for posting as such. I'm using latest stable 03/02 now and it fixed my problem.
[Android Software/Hacking General [Developers Only]] suyonk:
If i want to update my busybox through this,what must i do ? Wipe cache or dalvik cache or something else? Thanks ?