Device management tool: Debug bridge ADB details, debug bridge adb details

Source: Internet
Author: User

Device management tool: Debug bridge ADB details, debug bridge adb details
1. Introduction
ADB, short for Android Debug Bridge, is a debugging tool that comes with the Android SDK. It can be used to directly manage Android devices or simulators.
Features we mainly use:
1) run the shell command of the device.
2) Manage the port ing of the simulator or device ???????????)
3) upload and download files between computers and devices
4) install the local apk software on the simulator or Android device.
ADB is a client-server program. The client is used to operate a computer and the server is an Android device. To use ADB, you must first enable the adb debugging function on your mobile phone. Step: set-developer option-adb debugging. (If you do not have the developer option, you need to choose "Settings"> "version" and click "android version" or "third-party version" developed by the mobile phone manufacturer. You may need to insert a SIM card to use this function ).
2. Common commands
1) view the device adb devices to display all android devices currently connected to the computer, including Simulators
2) install the software adb install and install the developed apk on your mobile phone. For example, adb install D: // aa.apk.
3) uninstall the software adb uninstall <software package name> adb uninstall-k <software package name> Add release -konly software, but keep the configuration and data in the software environment. Here, the installation is followed by the. APK file, and the package name of the software is uninstalled.
4) log on to the adb shell
Adb shell Add Directly run the device command, which is equivalent to executing the remote command. For example, the adb shell ls command is used to list all files in the current location. The adb shell command is used to connect to the device and then the ls command returns the same result.
Dab shell devicename connects to the specified device. Only one device devicename can be empty.
5) copy files from the computer to the device adb push <local computer file path> <remote android mobile phone storage file path>
6) download the file from the device to the computer adb pull <path of the remote android device file> <path of local computer file storage>
7) display the help information adb help
8) connect to the device adb connect <device ip> to Enable usb connection to the device without wifi.
Steps:
1. confirm that the pc of the local machine is not connected to any adb device, including usb and simulator. That is, the list is blank after the adb devices command is used. This is easier to press the code later.
2. Connect the android mobile phone to wifi and view the ip Address: settings --> Wireless Network --> wlan settings --> advanced options --> ip address such as 192.168.2.11
3. Run ping 192.168.2.11 in the command of the local machine. If the ping is successful, the connection can be established.
4. Run adb connect 192.168.2.11.
If the connection is successful, you can continue the subsequent operations. If the connection fails, as shown in:
Unadble to connect to 192.168.2.11: 5555
It may be due to a problem with the listening port of the device. You can execute the following command on the mobile terminal:
Su // get root permission
Setprop service. adb. tcp. port 5555 // set the listening port. The port can be customized. For example, 5554,5555 is the default port.
Stop adbd // disable adb
Start adbd // restart adb
Mobile phone terminal programs can download Android terminal simulator mobile phone terminal adb is not enabled by default
Prerequisites: the mobile phone can obtain the root permission.
9) disconnect the current adb kill-server
Experience Sharing
Sometimes we may not like some apps in ROM and want to uninstall them. However, the android system does not uninstall the built-in ROM software. You can also use adb to uninstall the software at this time. The steps are as follows:
1) first obtain the root permission of the mobile phone
2. Download android_db.rar and decompress it to % windir/% System32.
3) connect your mobile phone to the data cable, open cmd on your computer, and enter the following command:
Adb remount
Adb shell
Su
After the execution is complete, you will see:
* Daemon not running. Staring it now *
* Daemon started successfully *
4) the Linux Command mode is followed. Enter:
Cd system/app
And then enter ls to press Enter.
At this time, the list shows all the files in the system/app, that is, some ROM integrated software.
5) Delete the rm file name.
In addition, do not delete files that you do not know at will to avoid problems with your mobile phone. <

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.