Android debug bridge (ADB)

Source: Internet
Author: User

ADB(AndroidDebug Bridge) YesAndroidProvides a common debugging tool that enables you to manage devices orMobile phone SimulatorOfStatus. You can also perform the following operations:
1. quickly update devices or mobile phone SimulatorsCodeSuch as application or Android system upgrade;
2. Run on the deviceShellCommand;
3. Manage the ports on the device or mobile phone simulator;
4. Copy or paste files on the device or mobile phone simulator;

The following are some common operations:
1,InstallApplication to simulator:
ADB Install
Unfortunately, Android does not provide Uninstall Command of the application. You can only manually Delete :
ADB Shell
CD/data/APP
Rm app.apk
2. Enter the device or simulator'sShell:
ADB Shell
You can access Shell Environment, in this Linux Shell , You can execute various Linux In addition, if you only want to execute one Shell Command, you can use the following method:
ADB Shell [Command]
For example: ADB Shell Dmesg prints the kernel debugging information.
3. Release Port:
You can set any port number Host Request port to the simulator or device. For example:
ADB Forward TCP: 5555 TCP: 8000
4. Copy an object :
You can copy files to a device or from a device,
Copy a file or directory to the device or simulator:
ADB Push
For example: ADB Push test.txt/tmp/test.txt
Copy a file or directory from a device or simulator:
ADB Pull
For example: ADB Pull/addroid/lib/libwebcore. So.
5. Search for simulator/device instances:
Obtain the list of running Simulators/devices and the status of each instance:
ADB Devices
6. view the bug report:
ADB Bugreport
7. Record wireless communication logs:
In general, there are a lot of wireless communication logs and there is no need to record them during operation, but we can still set the record through the command:
ADB Shell
Logcat-B radio
8. Get the device ID and serial number:
ADB Get-Product
ADB Get-serialno
9. Access the database sqlite3
ADB Shell
Sqlite3

Http://www.androidcn.net/wiki/index.php/Reference/adb

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.