BusyBox for Android NDK Magisk Module
Maintained by renowned developer osm0sis, BusyBox for Android NDK is the essential Swiss Army Knife of command-line tools. Statically compiled with the latest Android NDK to provide over 300 POSIX utilities for shell scripting, root automation, and power-user workflows.
Why Toybox Is Not Enough for Power Users
Stock Android includes a minimalist shell utility called toybox. While sufficient for basic OS tasks, toybox lacks standard POSIX flags, advanced regular expression support in sed/awk, stream compression tools, and network binaries. BusyBox NDK provides a complete, desktop-grade GNU/Linux command environment systemlessly.
Popular Applets Included (300+ Total)
Text & Stream Filtering
awk, sed, grep, egrep, cut, tr, head, tail, diff, patch, sort, uniq, wc, fold
Archiving & Compression
tar, gzip, gunzip, bzip2, xz, unxz, lzma, unlzma, zip, unzip, cpio, ar
Filesystem & Storage
fdisk, blkid, mkfs.ext4, fsck, e2fsck, mount, umount, losetup, dd, df, du
Networking & Diagnostics
wget, curl, nc (netcat), ping, traceroute, netstat, ifconfig, route, arp, nslookup
Installation & Shell Verification
- Download the latest release of BusyBox for Android NDK from osm0sis (GitHub Releases).
- Flash the zip in Magisk App -> Modules -> Install from storage.
- Reboot your device.
- Open Termux or an ADB shell to verify installation:
BusyBox Verification CLI# Check BusyBox version and built-in applet list $busybox --help
Architecture: Toybox vs BusyBox in Android Shell Scripting
Beginning with Android 6.0 Marshmallow, Google replaced Android's traditional Toolbox utility with toybox. While Toybox meets basic single-binary requirements for AOSP system boots, it is notoriously stripped of advanced POSIX flags. Critical utilities like awk lack multi-field record parsing, sed lacks extended regular expression options (-E/-r), and network utilities like curl or wget are completely absent from the base system.
osm0sis's BusyBox for Android NDK is compiled as a standalone, multi-architecture PIE (Position Independent Executable) binary linked directly against the Android NDK libc (bionic). It automatically detects your processor architecture (ARM64, ARMv7, x86_64, or x86) and deploys optimized symlinks into /data/adb/modules/busybox-ndk/system/bin. Magisk's systemless overlay injects this directory into the system PATH without modifying the read-only system partition.
| Command-Line Capability | Stock AOSP Toybox | BusyBox for Android NDK |
|---|---|---|
| Total Utility Applets | ~75 basic utilities | Over 300+ full POSIX tools |
| Regex & String Processing | Minimalist regex syntax | Full GNU-compatible sed, awk, grep |
| Network File Transfer | None (Requires separate binary) | Built-in wget, nc, tftp, traceroute |
| Archive Management | Basic tar / gzip | tar, bzip2, xz, lzma, zip, unzip, cpio |
Using BusyBox in Magisk Boot Scripts
For module developers creating service.sh or post-fs-data.sh scripts, always prepend BusyBox to your script's execution path to guarantee deterministic behavior across all OEM skins (One UI, HyperOS, ColorOS):
Related Guides & Next Steps
Explore interconnected tutorials, module guides, and developer references related to this topic:
MagiskSU CLI Reference
ToolExecute root commands with Mount Master mode (--mount-master).
Universal GMS Doze
ModuleOptimize Google Play Services idle battery consumption.
Best Magisk Modules Directory
CatalogExplore our full curated catalog of top Magisk modules.
Checked against official upstream repository osm0sis/busybox-ndk on Magisk v30.7 (February 23, 2026).