How to Merge Busybox and Toybox on Android Marshmallow

Busybox and Toybox are softwares that provides several stripped-down Unix tools in a single executable file. For long Android has used Busybox for several command line utility scripts, but with Android 6.0 Marshmallow Toybox has been merged into Android.

However, this change may create conflict with your Android scripts since Toybox only offers around 170 applets/command, while Busybox supported around 390. There are some other things as well that Busybox does better than Toybox, take a look at the quick list of differences between Busybox and Toybox by developer enkidu70 over at xda:

  • Toybox offers around 170 applets/command, busybox around 390!
  • TB version of head & tail do not really work. BB version does!
  • BB whoami does returns “whoami: unknown uid 0” instead of “root”
  • BB “mount -o rw,remount” does not work on my devcie. TB ones does…

These are just the few differences discovered so far, but there are some more and (of course) none of us want to be bothered by them. So thanks to enkidu70, who created a recovery flashable script to merge Toybox and Busybox together, combining best of both and making sure that there are no conflicts in-between.

You can grab the Busybox/Toybox merger script from the download link below and simply flash it over via TWRP recovery. But before you do that make sure you check the prerequisites mentioned by the developer below:

Prerequisite: Make sure Busybox and Toybox are already installed on your device! (At least busybox + toybox binary have to be located in /system/bin and/or /system/xbin.)

Note: If you already have Busybox installed instead of Toybox on your ROM, then you don’t need this script and should NOT use it.

Also, before you download/install the merger script from the link below, make sure you take a full TWRP backup of your device.

[icon name=”download” class=”” unprefixed_class=””] Download Busybox/Toybox Merger Script (.zip)

Don’t forget to say thanks to enkidu70 for the merger script.

Happy Androiding!

via xda

Posted by
Shivam Malani

Shivam is our resident designer and web developer who also enjoys writing. He loves to meditate, drive on the freeways and hunt for snipers during his Call Of Duty playtime. Email: [email protected]