Due to work needs, often to connect the mobile phone and use the ADB to do some operations, found that the shell function is very good, but in castration state, the most obvious one is, the implementation of a number of commands, the directory appeared some of the-p,-l, 755, such as the file, people are very More obviously, some of the Linux-friendly third-party tools that move to Android can't be implemented at all. So it's a way to get Android devices to support a fully functional shell. The most direct thing here is to install the BusyBox.
What is BusyBox
BusyBox is a single executable implementation of standard Linux tools. BusyBox contains a few simple tools, such as Cat and Echo, and includes larger, more complex tools such as grep, find, Mount, and Telnet. Some people call BusyBox the Swiss Army Knife in the Linux tool. Simply put, BusyBox is like a large toolbox that integrates many of the tools and commands that compress Linux.
How to install BusyBox
1, Root mobile phone, the installation of ADB
It's a must! Search the Internet and there will be many versions of the root tutorial. The ADB is free to download and configure one, and the command line knocking on the ADB can respond.
2, download the latest version of the BusyBox
Go here: busybox.net
There are latest at the bottom, download a busybox-armv6l or busybox-armv7l.
3, installation
If, like me, is installed under Windows, then you can win+r open cmd, enter the ADB.
ADB root
ADB remount
This goes into root mode, and then push the busybox binaries to the phone.
ADB push Busybox/data/busybox
Then go to shell mode and install BusyBox
ADB shell
#cd Data/busybox
#./busybox–install
Last step Add environment variable
#export Path=/data/busybox: $PATH
OK, then enter the LS again, is it not the same as before?