CCCPaste

Cross Compile Busybox for ARM Android

#required dependences
sudo apt install gcc-arm-linux-gnueabi libncurses5-dev gawk

#get source
apt-get source busybox
#or
apt-src install busybox #this will also get all needed dependencies
#or  https://busybox.net/downloads/
cd busybox-*

#configure
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- defconfig
#set static
echo "CONFIG_STATIC=y" >> .config
#compile
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j $(nproc)
#check compiled
file busybox

#push to phone/tablet
adb push busybox /data/local/tmp/

#setup links for use
adb shell "/data/local/tmp/busybox --install -s /data/local/tmp/"

#run shell with links to busybox programs
adb shell "export PATH=$PATH:/data/local/tmp;sh"