To make things a litle easier here a few tips using the terminal emulator:
- Automatically starting a root shell - in this case the ash shell
Edit Preferences --> (Shell) Command Line
/system/bin/su -c "busybox ash -"
- Setting path as the Initial Command
Edit Preferences --> (Shell) Initial Command
# it s a good opportunity to add aliases as well:
export PATH=/system/bin:$PATH; alias ll="busybox ls -alk"
- Creating Busybox symlinks
So far only a few toolbox symlinks are pre-installed. For easy access of all busybox tools lets create symlinks.
Existing toolbox symlinks won't be replaced by this method. If you wish to use only busybox remove the toolbox links before.
# remount the system partition to have write access
busybox mount -o remount,rw -t ext4 /dev/block/mmcblk2p10 /system
# change directory to the system binaries
# creating busybox symlinks
busybox --help | busybox grep 'Currently defined functions:' -A90 | busybox grep '^\s.*,' | busybox tr , '\n' | busybox xargs -n 1 busybox ln -s busybox