Use of ADB shell and busybox

Source: Internet
Author: User

1. Install busybox

Busybox is a single executable implementation of standard Linux tools. Busybox contains some simple tools, such as CAT and ECHO, and some larger and more complex tools, such as grep, find, mount, and telnet. Some people refer to busybox as the Swiss army knife in the Linux tool. In short, busybox is like a big toolbox, which integrates many Linux tools and commands.

0. First, you need to give the mobile phone to the root user. The specific tutorial is not provided here. There are many online courses.

1. Root mobile phone

2. Download and install root Explorer

3. Download busybox

4. After the download, connect the mobile phone with the data cable and copy the extracted busybox to the root directory of the SD card (or other directories, you can remember ). Use root explorer to browse to/sdcard, find busybox, long press, and select copy from the menu.

5. Browse to the/system/xbin/directory and click the remount R/W button in the upper-right corner of the screen (the new version of root explorer is Mount R/W, and press it anyway, can be pasted ),

Click the paste button under the screen.

6. After the copy is complete, press/system/bin/Under busybox, select permission, and set the permission to the first and third hooks of group others.

7. In this case, you can use the busybox command. For example, if there is no clear screen command before, you only need to enter busybox clear to implement the clear screen function. To use the full ls, you only need to enter busybox ls. However, adding a busybox before each installation is too troublesome, so we need to continue to complete the installation.

Enter ADB shell to enter/system/xbin

Input

Busybox -- install

Common Errors:

1. If such an error occurs during installation,

Busybox:/bin/zcat: no such file or directory

Busybox:/sbin/zcip: Invalid cross-devicelink

The installation path is not entered. The correct example is busybox -- install/system/xbin.

2. If such an error occurs,

CP:/system/xbin/busybox: Read-Only filesystem

The permission is not set correctly.

TIPS:

1. There are ash, hush, and sh shells in busybox. Enter ash or hush in the command line. You can select the command you just entered by pressing the up/down key as in bash.

2. the Android system itself has ls commands, and busybox also has ls. When LS is input, the android LS is called. Do you need to add a busybox to the front every time you want to use the LS of busybox? No. You can use the alias command.

Alias ls = 'busybox ls'

Similarly, commands such as CP and MV can be done in this way. You can also modify/init. RC.

2. Obtain ADB shell Root

ADB Shell

Enter Su on the terminal

Go back to your phone and ask if you want to grant unknow permissions -- run

Return to the terminal and enter root.

The START character has been changed #

References:

C85002.2 why titanium backup cannot be used during flushing! How to install busybox! Http://www.in189.com/thread-158175-1-1.html

Install busybox for Android -- complete bash shell http://www.cnblogs.com/xiaowenji/archive/2011/03/12/1982309.html

Another way: http://wenku.baidu.com/view/ed08e51a227916888486d7d0.html

Several tools:

Root Explorer:

Http://bbs.gfan.com/attachment.php? Aid = assist % 3d

Busybox:

Http://download.csdn.net/detail/sxsj333/3756739

Extended learning:

Android ADB shell command Daquan http://www.ihei5.com/thread-145553-1-1.html

How to obtain IP address in Android simulator and how to use adbshell http://blog.163.com/z_hongc/blog/static/2136400120113176460523/ in multiple Simulators

Android uses ADB command to install uninstall software http://rangyang163.blog.163.com/blog/static/37743758201142433056273/

Http://blog.csdn.net/herryz/article/details/6072817

Change the doscommand line default path: http://tech.sina.com.cn/s/2004-10-27/1651448276.shtml


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.