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