Hi guys
How can I add BusyBox to my (custom) ROM?
My ROM is based on the rootedupdate.zip version 1.21.405.2 with superuser 2.1.
I hope anybody can help me.
Well, this kitchen - http://forum.xda-developers.com/showthread.php?t=633246 has an option to add busybox to a ROM. You could either look at the 'add_busybox' script and figure out how it works or just use the kitchen.
I use this kitchen in the version 0.51.
I don't see a option to add BusyBox in the menu..
At the folder "scripts" is a script called add_busybox.
But how can I add it to my ROM?
Thank you for your help.
EDIT: It's a Desire ROM.
nickiberli said:
I use this kitchen in the version 0.51.
I don't see a option to add BusyBox in the menu..
At the folder "scripts" is a script called add_busybox.
But how can I add it to my ROM?
Thank you for your help.
EDIT: It's a Desire ROM.
Click to expand...
Click to collapse
I stand corrected. You are right. There is no option in the menu for that. However, if you select #2 (add root permissions), it will optionally add busybox. If that doesn't work for you, you can try different things...
1) look through the 'add_busybox' script and see what it does
2) find a ROM that has busybox installed, and see if you can tell how they added it
After looking at the script myself, it looks like it just copies the busybox binary to /system/xbin and then does some needed mods to the update-script.
yeah, busybox is just a binary
$ busybox
BusyBox v1.16.2 android full (2010-03-28 22:34:45 EDT) multi-call binary.
It simply contains many basic binaris in it.
wget, for example, is busybox wget
Hi, when installing Busybox with Stericsson Installer it allow to choose between system/bin or system/xbin to install it, which one to choose and why ? What's the difference ?
I have another question, sorry but I don't want to make another thread.
SuperSU has an option "Survival Mode" that says that we must disable it before Nandroid Backup, what happends if I forgot to disable it ?
Thanks for your help, sorry if it was already asked (search results didn't help me).
For the installation paths, i dont really think it matters whether you put it in either of the above.
About survival mode, again i say it does not really matter whether you disable it or not. Your nandroid backup will go smooth.
Some developer can explain it to you in detail if any of the above really matters.
Sent from my LG-E730 using Tapatalk 2
Ok, thanks.
If anyone has more infos your welcome.
I always install to /system/xbin because you then don't overwrite the symlinks of the tools that point to toolbox (Android's poor version of coreutils). On the other hand, if you'd rather have the Busybox tools as default then install to /system/bin.
Regarding survival mode: AFAIR file system corruption (at least with my U8800pro) because CWM doesn't know how to remove the immutable attribute off the su binary, so I'd make sure it's off when restoring.
qwerty12 said:
I always install to /system/xbin because you then don't overwrite the symlinks of the tools that point to toolbox (Android's poor version of coreutils). On the other hand, if you'd rather have the Busybox tools as default then install to /system/bin.
Regarding survival mode: AFAIR file system corruption (at least with my U8800pro) because CWM doesn't know how to remove the immutable attribute off the su binary, so I'd make sure it's off when restoring.
Click to expand...
Click to collapse
Neither in htc wildfire nor in lg optimus sol disabling the survival is important. I have flashed and restored a hundred times but nothing happened..
Sent from my LG-E730 using Tapatalk 2
Well, I think this is definitely new so I put this right here: just downloaded Stericson's BusyBox Pro installer from Play Store (as usual) to my Moto X Play on 6.0 Marshmallow and it is asking for the unusual default installation path of "/su/bin". As discussed here, "system/xbin" or "system/sbin" are usually the preferred installation paths for BusyBox, so this change simply got me stuck in the process thinking where to install BusyBox. My first thought is that BusyBox is 'auto-choosing' where to be installed according to system characteristics and I should go on, make my life easier and just install where it is asking me to, but... I don't know. Does somebody have a similar experience?
CNK80Q3MX said:
Well, I think this is definitely new so I put this right here: just downloaded Stericson's BusyBox Pro installer from Play Store (as usual) to my Moto X Play on 6.0 Marshmallow and it is asking for the unusual default installation path of "/su/bin". As discussed here, "system/xbin" or "system/sbin" are usually the preferred installation paths for BusyBox, so this change simply got me stuck in the process thinking where to install BusyBox. My first thought is that BusyBox is 'auto-choosing' where to be installed according to system characteristics and I should go on, make my life easier and just install where it is asking me to, but... I don't know. Does somebody have a similar experience?
Click to expand...
Click to collapse
I am having the same question.. I have viewed each of the 4 directories using a root file explorer and noticed /bin /xbin and su/bin su/xbin all contain ifferent files so im not sure if doing that helped me o confused me more. Lol but im not sure it matters ,well im sure it makes differences but I cant find a difference other than some symlinks may be rewritten and handled by busybox instead of androids tool box.... Once again that means nothing to me without knowing what exactly androids tool.box is... I know a couple tool boxes but unfortunantly this is not one, ... So if anyone has a link to explain this or an educated opinion that would be great! Thanks..
Also looking for this answer rn.. haven't found it yet.. this is my first look, from experience I believe MM build is recognized and BusyBox recommends install location based on Android Version. I'll look for a more definitive answer and post if I find.
Shagerty said:
Also looking for this answer rn.. haven't found it yet.. this is my first look, from experience I believe MM build is recognized and BusyBox recommends install location based on Android Version. I'll look for a more definitive answer and post if I find.
Click to expand...
Click to collapse
UPDATING: I'm wondering that being MM, Busybox installer chooses su/bin path automatically (some suggest "su/xbin", which is not present in stock MM, hence installer su/bin choice) in order to make Busybox "systemless". SuperSu actually does the same. Though I'm pretty sure about this, I'm also looking for confirmation. Since this thread and its early answers even date back to 2012 when there was no MM and "systemless" stuff wasn't that popular (I assume) they point to install Busybox in "system/xbin" or "system/bin"...
babylonbwoy said:
Hi, when installing Busybox with Stericsson Installer it allow to choose between system/bin or system/xbin to install it, which one to choose and why ? What's the difference ?
Click to expand...
Click to collapse
It really doesn't matter where you install either system/bin or system/xbin.........it always symlink to other as example if you install to system/bin then it'll symlink to system/xbin and vice versa
Mainak007 said:
It really doesn't matter where you install either system/bin or system/xbin.........it always symlink to other as example if you install to system/bin then it'll symlink to system/xbin and vice versa
Click to expand...
Click to collapse
I think it's a little bit too late, thread is from 2012.
I'm done with all that now, no more flashing rom, no more bootloader unlock.
I used to get all the flagship but I didn't change since XZ5 Dual.
babylonbwoy said:
I'm done with all that now, no more flashing rom, no more bootloader unlock.
I used to get all the flagship but I didn't change since XZ5 Dual.
Click to expand...
Click to collapse
Why??.......do you frightened of bricking device??????
You can get all smartphone firmware Here
:highfive::fingers-crossed:
babylonbwoy said:
I think it's a little bit too late, thread is from 2012.
Click to expand...
Click to collapse
And I gave the answer for other who will visit the forum next time:angel:
Mainak007 said:
And I gave the answer for other who will visit the forum next time:angel:
Click to expand...
Click to collapse
thanks, I'm currently looking for pros and cons of intalling to:
/system/xbin
/system/bin
/sbin
custom path
I've read that one of those paths was temporary installation and that on next reboot it would be deleted. I want to installit permanent.
Robert4321 said:
thanks, I'm currently looking for pros and cons of intalling to:
/system/xbin
/system/bin
/sbin
custom path
I've read that one of those paths was temporary installation and that on next reboot it would be deleted. I want to installit permanent.
Click to expand...
Click to collapse
Doesn't matter..... Install anywhere and symlink to others
Mainak007 said:
Doesn't matter..... Install anywhere and symlink to others
Click to expand...
Click to collapse
Just install it to any folder in $PATH and execute it as any other command.
Code:
echo $PATH
Robert4321 said:
thanks, I'm currently looking for pros and cons of intalling to:
/system/xbin
/system/bin
/sbin
custom path
I've read that one of those paths was temporary installation and that on next reboot it would be deleted. I want to installit permanent.
Click to expand...
Click to collapse
Banking / payment apps are looking in 3 mentioned paths to detect whether Android got rooted or not: hence best is to install BB to custom path.
BusyBox Pro says that it can is unsuccessful at installing in the /system/xbin folder on my Moto G Stylus 5G, I don't suppose anyone could explain to me why this keeps happening could they? Also, I don't have the option to install to /system/sbin either. The only options I have are /system/xbin, /system/bin, and custom. But when I install and reboot i have to reinstall BusyBox Pro again. I noticed in the settings tab that you can have busybox, on every boot, reinstall to /sbin....how is this possible if you install to /bin? also, how can I get it to install to /xbin? there is also another option that says busybox will, on every boot, be removed from /sbin as long as busybox has been installed to /bin or /xbin, but the feature I'm speaking of assists kernels that re-install busy box to /sbin on every boot.....OMG!!! Which option do I choose? Or should I not choose any, and just reinstall each time i boot up, which will be very tedious.....Please HELP!!!..... Also, should I choose Smart Install? Or just use install without the Smart Install option ticked? Sorry I see there are similar posts here, but I don't really understand where I would install if i chose to install to a custom path, which is why I'm asking such questions if it seems repetitive I apologize. Thanks in advance!
I have BB 1.18.4 still from the old doomlord kit, installed into system/xbin, and I noticed that some mods/tweaks/apps require it installed in /xbin, while others need it into /bin. So my question is, if I use Busybox Installer to install the 1.20.2 to both folders, will it harm my device having two busyboxes installed at the same time?
You could install it in xbin and then symlink it to bin.
Sent from my Nexus 7
Err, how to symlink it? I find something like console commands searching around, but i don't know where to put them =(
I think you have some learning to do.
You can install busybox in both directories. The order of directories in $PATH will prevent issues with having it installed twice.
Sent from my Nexus 7
Thanks, I'll go directly with the double install then.
Just one more thing that just happened, I usually use Busybox Installer for that, but when I select the installation for the right version, before dowloading the install files, it stops and says I have a bad internet connection, even tho my 3G works perfectly. Did anyone else experience this?
BillGoss said:
I think you have some learning to do.
You can install busybox in both directories. The order of directories in $PATH will prevent issues with having it installed twice.
Sent from my Nexus 7
Click to expand...
Click to collapse
Yeah, I know this is old thread, but I have some related questions: if busybox is already installed in system/bin by kingroot, why should I install a binary update in system/xbin as busybox installer wants to do by default? If it is in both paths, which one is going to do the job? or... Why do I actually want to have two busybox copies in two separate directories if I "can" have just one? And last: most people suggest to install busybox in system/xbin, so why kingroot choose to do it in system/bin?...
Man quetion.. I'm curious what the answers are to these please!..
hello
Today was the first time I joined.
DisasterROM_v8 bugs will tell.
Was a supersu DisasterROM_v7 DisasterROM_v8 do not have su and superuser privileges error appears.
Rom developers solve problems related supersu by Please
8.0 7.0 original rom the xbin su was not xbin busybox and su-related files.Re-upload please.
Xbin 7.0 and 8.0 below screen syaseun comparison photos.
I'm sorry, but I've used Google translate.
Can write well by the developers who made Erom!
Installed su binary and supersu can not be installed.
Problems.!
Reflash any other compatible kernel. Something like Philz kernel : http://forum.xda-developers.com/showthread.php?t=1877270
jl10101 said:
Reflash any other compatible kernel. Something like Philz kernel : http://forum.xda-developers.com/showthread.php?t=1877270
Click to expand...
Click to collapse
I have a solution.
1. Download http://downloadandroidrom.com/file/tools/SuperSU/CWM-SuperSU-v0.99.zip and put on sd card
2. Reboot into recovery
3. flash this zip
4. In recovery go to advanced, and Fix permissions
5. Reboot and enjoy your rom with working superuser
6. Run Google play and let the supersu app to update
I wanted to install andrax or kali nethunter but I can't install busybox to /system, when I try to install busybox(meefik) it gaves me this:
### BEGIN INSTALL
Remounting /system to rw ... done
Copying busybox to /system/xbin ... fail
Changing permissions for busybox ... fail
Copying ssl_helper to /system/xbin ... fail
Changing permissions for ssl_helper ... fail
Removing old applets ... done
Installing new applets ... fail
### END
And if I try to manually move the busybox to /system/xbin it says that there isn't enough space(via MiXplorer)
And I tried with Stericson busybox and It would show that there is only 6 mb on /system, after pressing install it would say that it is not installed and then crash.
Please help.
same thing happened to me So I installed busybox from the magisk module
Kritikumarb said:
same thing happened to me So I installed busybox from the magisk module
Click to expand...
Click to collapse
Busybox for android NDK?
Edit: cause that one is broken for me
I'm having the same problem, Im unable to move apps to the system it says that I don't have space.
I need help cos I need to make some apps in the system
elefantex said:
I'm having the same problem, Im unable to move apps to the system it says that I don't have space.
I need help cos I need to make some apps in the system
Click to expand...
Click to collapse
I downgraded to miui 11 pie cause Android Q is buggy and unstable
The Bluetooth is broken, busybox and /system
root first with latest magisk canary
exodius48 said:
root first with latest magisk canary
Click to expand...
Click to collapse
Not needed, android 10 is very unstable
The solution is to downgrade to pie
Now everything works
I tried using custom roms but probably the android Q firmware for poco f1 is broken or incomplete
AxelStrife said:
Not needed, android 10 is very unstable
The solution is to downgrade to pie
Now everything works
I tried using custom roms but probably the android Q firmware for poco f1 is broken or incomplete
Click to expand...
Click to collapse
Lol,, I always use busybox NDK on android 10, no problms so far. The problem is memeUI itself. :laugh: