yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] FallenOcean:
Everytime I'm flashing the latest version of Busybox (v1.28.0), it reboots and won't complete the installation. I have Moto G4 Play XT1601 with Android 8.1
[Android Software/Hacking General [Developers Only]] zputnyq:
Hello guys,

I have a problem with installed busybox, whether busybox from this thread or any other busybox, this problem causes my device stuck at boot sometimes. The problem is busybox sometimes unable to be detected.

Does anyone know a solution for this problem?
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5228018]zputnyq[/MENTION]

I think that not depend by busybox but your ROM.

Please ask in the thread of your device.
[Android Software/Hacking General [Developers Only]] zputnyq:
finally I can fix it by myself

yes, that's not the busybox, but some missing lib files that caused it.

thanks for your response
[Android Software/Hacking General [Developers Only]] Tecalote:
[MENTION=5423715]YashdSaraf[/MENTION] I have only a suggestion - perhaps you change it with next release if it make sence? :)

I have seen, your flashable Busybox-1.28.0-YDS-UNIVERSAL.zip use for Magisk install the old path /data/magisk.img - but topjohwu changes the path to /data/adb/magisk.img. On the place /data/magisk.img is now

only the symlink to

/data/adb/magisk.img.

However, Busybox flashing is working if there is already Magisk Root installed and rebooted. In this case your flashable Busybox will be installed as it should as Magisk Module.

Not so, if integrate your Installer into a ROM Script. In this case your Busybox will be installed to /system/xbin and not as Magisk Module, because it cannot find Magisk Root with the symlink data/magisk.img (before Magisk is not already rebooted - which is after Rom Installation first time...)

Many Thx for your work :good:

Edit: I tried by myself just changing some Lines in META-INF update-binary (Line: 322 to 335) and changed it to:

if [ -f /data/[B]adb[/B]/magisk.img ]
then
ui_print "Magisk detected --"
ui_print "Extracting module.prop --"
unzip -o "$BBZIP" module.prop >/dev/null
error "Error while extracting files"
MAGISKBIN=/data/[B]adb[/B]/magisk
MOUNTPATH=/magisk
IMG=/data/[B]adb[/B]/magisk.img
if $BOOTMODE
then
MOUNTPATH=/dev/magisk_merge
IMG=/data/[B]adb[/B]/magisk_merge.img
fi

Repacked it and flashed it, and it works included in ROM updater-script
[Android Software/Hacking General [Developers Only]] dr.ketan:
[MENTION=5423715]YashdSaraf[/MENTION]

Hi, When I was using script

sh /sdcard/Busybox-installer-arm.bin

on magisk to install busybox (No issue with recovery) it driving me crazy by breaking titanium backup. So today I dig it and found that in spite of you have blacklisted 'su' applet, still it binds to su in system/xbin and that makes titanium issue.

I have confirmed by unlink and then it fixed Titanium back.

BTW Thanks for busybox to XDA community.

Regards

Dr.Ketan
[Android Software/Hacking General [Developers Only]] k4rn8g3:
How to check busybox version using terminal ??

I want to integrate the busybox version line to my script..

Something like this ..

"You have busybox version xxxxxxxxx installed in ur system"

as the output...

Can someone help me here.. ??
[Android Software/Hacking General [Developers Only]] bovirus:
Type

busybox

and you can see the busybox help and the busybox version.
[Android Software/Hacking General [Developers Only]] k4rn8g3:
Thanks ..

But thats what i didnt want to do..

Basically i am creating some tweaking script like lspeed by paget96 and i want to display the busybox version installed in the system..

Anyway i can do that in a terminal script ??
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=6428255]QwertySDuos2[/MENTION]

I believe that your request it OT here.

Is not a thread about script/tweak/etc.
[Android Software/Hacking General [Developers Only]] ale5000:
Just run busybox from the script to show version or to just show the line with the version you can use:

busybox | head -1
[Android Software/Hacking General [Developers Only]] k4rn8g3:
I understand that it is not a script/tweak thread..

Just thought it would be okay to ask here since it is related to busybox..
[Android Software/Hacking General [Developers Only]] esgie:
You can use

busybox | head -1 | cut -f 2 -d ' '

EDIT: Sorry, I missed that it was already answered.

Anyway, the additional 'cut' part will let you display only the version number alone.
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

Busybox stable v. 1.28.1 released.

Please if you can to update your busybox. Thanks.
[Android Software/Hacking General [Developers Only]] k4rn8g3:
Where did u get it ??
[Android Software/Hacking General [Developers Only]] martyfender:
The source is here on the official BusyBox site, but yds has not built it for release yet.

https://www.busybox.net/
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=8126387]martyfender[/MENTION] [MENTION=6428255]QwertySDuos2[/MENTION]

On busybox site are always available the source and not the compiled version.

Yashdsaraf use the sources.
[Android Software/Hacking General [Developers Only]] alecxs:
since version 1.28.1 you can download binaries directly from source. unfortunately it is not the selinux version
[Android Software/Hacking General [Developers Only]] Allen_Walker:
You can check BB here ;)

https://github.com/yashdsaraf/bb-bot/releases/tag/v1.28.1-YDS-201802191311

But I try install BB thought Magisk manager and it's folder xbin is empty (bb not installed in terminal check's)

P. S. It's problem comfortable with Magisk 16.0, 1.28.0 also not work as magisk module in 16.0
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=7437408]Allen_Walker[/MENTION]

Thanks for the info.

It's important that the availability of new stable 1.28.1 busybox version should be explained in the first post (the post where all users are looking for this info).

[MENTION=5423715]YashdSaraf[/MENTION]

Please update first post with about busbox 1.28.1

Please update changelog file

https://github.com/yashdsaraf/busybox/wiki/Changelog

with info about release of 1.28.0 and 1.28.1

Thanks.
[Android Software/Hacking General [Developers Only]] martyfender:
I am using Magisk 16.0 with Magisk Manager 5.6.1 and flashed the pre-release 1.28.1 through TWRP and the binary appears to installed in /sbin/.core/mirror/bin/, and the applets in /system/xbin. Also, /sbin/.core/bbxyds/system/xbin.

In the Magisk Manager under modules it shows up as Busybox v1.28.1-YDS.

If you read the past changelog info, it is no longer recommended to install it through the Magisk Manager.
[Android Software/Hacking General [Developers Only]] Allen_Walker:
If I install BB through TWRP, when it's not install as magisk module, and install BB in system/xbin.

Magisk not support already?

You need flash BB in TWRP after delete BB module in magisk manager.
[Android Software/Hacking General [Developers Only]] martyfender:
[MENTION=7437408]Allen_Walker[/MENTION] I don't understand your English translation.

Are you asking a question?
[Android Software/Hacking General [Developers Only]] Allen_Walker:
I found solution. :fingers-crossed:
[MENTION=6870018]Tecalote[/MENTION] helped me and BB working as Magisk Module.
[Android Software/Hacking General [Developers Only]] martyfender:
For me, when I flash it in TWRP, it is installed as a Magisk Module.
[Android Software/Hacking General [Developers Only]] martyfender:
[MENTION=5423715]YashdSaraf[/MENTION] Are there still bugs to be addressed in the pre-release v1.28.1 version, before it is moved to release status?
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Sorry for the delay guys, the bb-bot build is failing for some reason. :mad:

I'll publish the update as soon as I figure out the fix. :)
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Update BB 1.28.1

Busybox is updated to v1.28.1.

I'm really sorry for the delay and many thanks for the patience. :)
[Android Software/Hacking General [Developers Only]] bovirus:
Thanks for your activity.

I propose to remove busybox version from your sign (your sign will ever ok).

Please update changelog in https://github.com/yashdsaraf/busybox/wiki/Changelog
[Android Software/Hacking General [Developers Only]] martyfender:
Thank You. I flashed this to because I wasn't sure if there were any changes in it vs. the 2 pre-release versions you had out, previously. Were there any changes?
[Android Software/Hacking General [Developers Only]] YashdSaraf:
The pre-release versions are test releases for me to check whether the build system is working fine. The latest release and the latest pre-release versions are pretty much the same except for the fact that the stable channel releases are published on sourceforge as well. I do recommend sticking to stable channel to avoid unwanted adverse effects. :D
[Android Software/Hacking General [Developers Only]] daitalos:
Nice work again

until 7.1.2 works correctly for me

Thanks !
[Android Software/Hacking General [Developers Only]] Fif_:
A couple of bugs/unpatched Linux paths do remain in BusyBox v1.28.1.YDS (2018-03-06 17:11:01 UTC):

busybox awk 'BEGIN { system("ls"); exit(0); }'

fails because awk uses /bin/sh as its shell, it should use /system/bin/sh.

diff <( echo 1 ) <( echo 2 )

fails because diff writes temporary files to /tmp, it should use /data/local/tmp instead.

Also, the date applet doesn't use the system timezone but always uses UTC, I don't know how to patch that one.
[Android Software/Hacking General [Developers Only]] k4rn8g3:
I dont know of the other two but the date applet works fine in the latest stable release...
[Android Software/Hacking General [Developers Only]] Fif_:
I beg to differ:

u0_a64@fif-oneplus5 ~ $ busybox-sel date
Sun Mar 18 20:35:30 UTC 2018
u0_a64@fif-oneplus5 ~ $ toybox date
Sun Mar 18 13:35:33 PDT 2018
u0_a64@fif-oneplus5 ~ $ busybox-sel | head -n 1
BusyBox v1.28.1.YDS (2018-03-06 17:11:01 UTC) multi-call binary.
u0_a64@fif-oneplus5 ~ $
[Android Software/Hacking General [Developers Only]] k4rn8g3:
Hmm.. Tested it again to see that u r right ..

I was talking about the 'date' command from toybox..

(Not so good with this stuff lol !!!)

But it's kinda okay to have it like that..

Coz toybox gives us the local date and busybox has UTC..

Unless u r using it in some flashable zip or other project like it...
[Android Software/Hacking General [Developers Only]] Fif_:
Well I'd use it in scripting if it were working. Right now I'm using the OmniROM busybox binary because it integrates better with Android than this version. But I'd rather use this more recent busybox than the old 1.21 that Omni ships.

The date applet has the --utc flag if you want UTC.
[Android Software/Hacking General [Developers Only]] martyfender:
I noticed that in [MENTION=4470081]topjohnwu[/MENTION] 's latest commit today for Magisk, that he has updated to BusyBox 1.28.2, that he compiled from the source. I am speculating that maybe this version may have some fixes in it that may be relevant at least to Magisk. It is not shown as released yet on the BusyBox site, but the source is there to be compiled.

Anyone have any thoughts on this?

Thanks
[Android Software/Hacking General [Developers Only]] martyfender:
I see that BusyBox 1.28.2 stable has been released.
[Android Software/Hacking General [Developers Only]] Kywrosaki:
The problem of installing the busybox as part of the firmware, before installation of the bysebox is installed magisk, then the busybox is installed, but it is not installed in the working folder magisk and in the folder xbin, why?why does not find the working folder of the magisk, why does not mount the image of the magisk and install the hard drive into the working folder of the magisk? This is when the firmware is installed first. I hope you can correct this omission. Thank you. ROM MIUI 9, Android 5.1.1,busybox 1.28.2
[Android Software/Hacking General [Developers Only]] martyfender:
Where did you get v1.28.2? YDS has not released a version yet as a flashable zip. Did you download the source from busybox.net and compile it yourself and create a Magisk compatible version?
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

Busybox team released Busybox 1.28.2 stable.

Please update your busybox.
[Android Software/Hacking General [Developers Only]] ale5000:
[MENTION=5423715]YashdSaraf[/MENTION]

Hi,

can you please sign the executables with bsign?
[Android Software/Hacking General [Developers Only]] anonyo:
Hello,

Can someone help me, I am trying to install BB through TWRP, but getting error. My device is Moto X4, Android 8.0.0, rooted using Magisk. Log file attached.

Thanks
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Looks like the installer errored out when appropriate installation directory for magisk was not found. I'm working on an improved magisk-compatible installer right now, that should fix this issue. Till then you might want to create a bbx.conf file in /sdcard with this line in it

installdir=/system/xbin

and reflash the zip. This will install busybox to /system/xbin.

Thanks for reporting.
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Any particular reason for this?

Please note that the executables will be installed on devices using android versions ranging from gingerbread to oreo on all the architectures available so it needs to be thoroughly tested with these variables.
[Android Software/Hacking General [Developers Only]] ale5000:
Because I'm starting to add signature verification in my various tools where possible and BusyBox is the most important component.

So being sure (and verify every time) that it is the original, not tampered version, is important; at least for me.
[Android Software/Hacking General [Developers Only]] anonyo:
For now, I am using busybox by osm0sis found here, https://xdaforums.com/showthread.php?t=2239421, but will keep a lookout for your updated version. Thanks.

Addendum: I am looking for a shell command that will give me the device up time and sleep time. Till android MM, the command "uptime" used to show up time, idle time, and sleep time, but since nougat and oreo, that command only shows up time, no sleep time. So, was wondering if there is any linux command that is available in the busybox that will give me the sleep time as well (idle time not required).

Thanks
[Android Software/Hacking General [Developers Only]] martyfender:
I see that 1.28.3 stable has been released on busybox.net
[Android Software/Hacking General [Developers Only]] martyfender:
[MENTION=5423715]YashdSaraf[/MENTION] , will your next release be 1.28.2 or 1.28.3, since the 1.28.3 stable has been released on busybox.net?

Thanks
[Android Software/Hacking General [Developers Only]] RSDamasceno:
1.28.3: https://github.com/yashdsaraf/bb-bot/releases
[Android Software/Hacking General [Developers Only]] YashdSaraf:
Update BB 1.28.3

Updated busybox to v1.28.3

The installers are once again magisk compatible, i.e through recovery as well as the magisk manager app. I've updated the toolchains for arm and x86 (both 32 and 64 bit ones) to GCC v7 and the arm64 busybox segfaulting problem is fixed now. Please test and report how this release works out for you guys. :)

Update 18:00 UTC - Sorry for the delay guys, the builds are failing due to sourceforge, I'm disabling sourceforge releases for now.

Update 18:13 UTC - Okay the builds are up on github releases. :)

I looked into bsign, apparenty it only supports 32 bit ELF bins, so that's a no go in my case. But I'll be happy to sign the bins with gpg keys if that helps, do let me know. :good:
[Android Software/Hacking General [Developers Only]] martyfender:
On the device in my signature, I initially installed through the Magisk Manager. All seemed good until I rebooted. In the modules section it showed the module would be installed on another reboot. 2 reboots later, it still showed this message.

I rebooted to twrp, installed there and deleted the cache and dalvik cache, then finally rebooted to success.
[Android Software/Hacking General [Developers Only]] YashdSaraf:
What's the magisk version your running? Also could you please get me the log.
[Android Software/Hacking General [Developers Only]] sdeft:
64-bit version working fine so far on mi a1:)
[Android Software/Hacking General [Developers Only]] martyfender:
The latest v16.3 from here:

https://xdaforums.com/apps/magisk/unofficial-magisk-v10-beta-built-t3521901

[MENTION=3306843]kantjer[/MENTION] is doing the current builds with [MENTION=4470081]topjohnwu[/MENTION] 's latest commits on github

https://github.com/kantjer/MagiskFiles

Here is the log after I reflashed it in TWRP. On 3 other devices of the same hardware, different ROM builds I didn't bother on those devices to try through Magisk Manager, since flashing through TWRP has always worked for me.

I have attached a Magisk install log failure on a second device through Magisk Manager where it just outright failed with an error.. I had uninstalled through the Manager. Maybe I should have used your busybox cleaner instead of removing it through the Magisk Manager.

On that same, other device, same hardware, I just reflashed in TWRP again with no problems.

For now, I will stick with flashing in recovery.

Thanks
[Android Software/Hacking General [Developers Only]] ale5000:
Yes, it would be nice, thanks.
[Android Software/Hacking General [Developers Only]] martyfender:
was able to duplicate the problem with installing the 1.28.3 update through the Magisk Manager by first reflashing the 1.28.1 in TWRP then rebooting. I then installed the 1.28.3 in the Magisk Manager by going to modules, hit the + to flash it. I then hit the reboot button in the install window.

On reboot I again opened Magisk Manager, went to the module window where it showed: under busybox by YashdSaraf: in red: module will be updated on next reboot.

I rebooted and opened it again and that message still shows. Attached is the BusyBox-YDS-installer.log.

UPDATE: If you need any other info, let me know.

Thanks
[Android Software/Hacking General [Developers Only]] ale5000:
[MENTION=5423715]YashdSaraf[/MENTION]

printf used inside "busybox bash" (Busybox v1.28.3 no selinux) fail inside a recovery in a ARMv7 phone.

Any idea of what it can be?
[Android Software/Hacking General [Developers Only]] alecxs:
probably TWRP issue? does it work when you type "/system/xbin/busybox printf" without bash directly?
[Android Software/Hacking General [Developers Only]] daitalos:
Nice work thanks for update

I'm using until 7.1.x + susr5
[Android Software/Hacking General [Developers Only]] martyfender:
I was wondering if the logs I provided shed any light on what the problem may have been when I tried to install from the Magisk Manager vs. flashing the zip in TWRP?

Thanks
[Android Software/Hacking General [Developers Only]] daitalos:
tried 1.28.3 in 8.1 aosp Nexus7 flo & works properly
[Android Software/Hacking General [Developers Only]] boostermbkking:
Hello [MENTION=5423715]YashdSaraf[/MENTION], I'm trying to flash this busybox v1.28.3 from twrp 3.2.1-0 on my S8 (SM-G950F) but it Stuck on "- Found /data/adb/magisk.img" at 80% and I need to reboot by vol- and power button, I use stock kernel patched for Oreo from superr kitchen and latest magisk 16.4, how I can fix this?

EDIT: I have added the log (#Ignore umount errors!)
[Android Software/Hacking General [Developers Only]] jkeuclid:
Just flashed Oreo 8.0 on my S7 G930F and BB fails verification on Root Checker Pro, ideas? here's the error fro RCP:

"BusyBox binary file was not found in the system defined environment PATH"

I've always gone with /sbin/supersu/xbin with no issues...

Got to thinking and from some research, do we need to change the default install dir on BB for it to work on Oreo? I've never had install nor verification (Root Checker Pro) issues on Nougat.

Update: I solved it by installing in /system/xbin but read it can also be installed in /system/bin, would like some clarification on this either way.
[Android Software/Hacking General [Developers Only]] zain.ahmad:
as magisk dev dropped some 64 bit libs i guess so it is not working on newer update if you use older magisk works fine
[Android Software/Hacking General [Developers Only]] pokepokepoke:
What theme is that :)
[Android Software/Hacking General [Developers Only]] mirfatif:
~# busybox-YDS id -un
0id: unknown ID 0

~# busybox-xyz id -un
root

[MENTION=5423715]YashdSaraf[/MENTION] You may consider modifying code of id, whoami, ps etc. and use

fstat + /proc fs

instead of reading /etc/passwd and /etc/group etc. to get rid of Android incompatibility with NSS.

SELinux applets are a good addition.
[Android Software/Hacking General [Developers Only]] martyfender:
[MENTION=5423715]YashdSaraf[/MENTION] I see that 1.28.4 stable has been released. I look forward to your next release.

Thanks
[Android Software/Hacking General [Developers Only]] pepe_k:
I have the same problem :(
[Android Software/Hacking General [Developers Only]] [B]lack[S]hadow:
I have arm64 device so can I flash the flashable arm or the universal?
[Android Software/Hacking General [Developers Only]] Tecalote:
Both of them are working on arm64, universal is for all architectures and arm includes arm64.

But take a look with Filemanager first (if you have Magisk Root), if the folder xbin does exist in /system. If you have the directory /system/xbin everything is fine.

Some Firmwares don't have this folder last time. Then you would get a Bootloop after flashing Busybox.

This is permission problem from Magisk to create the folder xbin.

Osm0sis solved this problem with his Busybox with choosing another path (solved since 1.28.3):

https://xdaforums.com/showpost.php?p=76431287&postcount=1807

I don't know if the actual Busybox by [MENTION=5423715]YashdSaraf[/MENTION] doing the same.

Haven't tested currently on Firmware without xbin folder, but some months ago with 1.28.1

No problem if you are rooted with SuperSU, cause Busybox use another install directory.
[Android Software/Hacking General [Developers Only]] alecxs:
fsck applet does not work because fsck.ext4 is missing. maybe you have time to add this in next version. https://android.stackexchange.com/questions/69629/fsck-auto-no-such-file-or-directory
[Android Software/Hacking General [Developers Only]] bovirus:
@ YashdSaraf

Any plan for busybox 1.28.4?

If I have a Linux machine how can update your source to compile busybox 1.28.4?
[Android Software/Hacking General [Developers Only]] martyfender:
In the mean time, you can do as I have and use [MENTION=1143630]osmosis[/MENTION] 's busybox 1.28.4, which has been out for some time. I installed the Magisk Module version of it. Apparently the author, YDS doesn't have any available time to do it now and I respect that.
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=5423715]YashdSaraf[/MENTION]

Any news?

How can compile myself the new busybox with your source?
[Android Software/Hacking General [Developers Only]] alecxs:
[MENTION=637263]bovirus[/MENTION]

TWRP still uses v1.22.1 - whats wrong with busybox v1.28.3, which applet does not work for you? kinda version hunter? :confused:

there is a thread from 7175 (you should have subscribed) where you can read how YashdSaraf did it..

short version

busybox have menuconfig, should be easy

enable Busybox Settings -> Build Options -> Build Busybox as a static binary (no shared libs)
[Android Software/Hacking General [Developers Only]] bovirus:
[MENTION=7285913]aIecxs[/MENTION]

Could you please compile it (you have the knowledge to do that in the right way) and post the busybox version?

Thanks.
[Android Software/Hacking General [Developers Only]] dkionline:
There is 1.29.0 on busybox.net
[Android Software/Hacking General [Developers Only]] bovirus:
It's unstable version. For me it's better to wait the stable version (1.29.1?)
[Android Software/Hacking General [Developers Only]] martyfender:
On github there are signs activity in recent weeks and adding 1.29.0:

https://github.com/yashdsaraf/busybox/commits/master