The Adb (Android Debug Bridge) acts as a debug bridge.
With ADB, we can easily debug Android programs via Ddms in Eclipse. ADB uses ports such as the socket TCP 5554 to communicate with the IDE and QEMU, and by default ADB will daemon the associated network ports, so the ADB process will run automatically when we run eclipse.
ADB is a tool in the Android SDK that allows you to manipulate the Android emulator or real Android devices (such as G1 phones) directly. Its main functions are:
* Shell running the device (command line)
* Manage port mappings for emulators or devices
* Upload/download files between computer and device
* Install the local APK software to the simulator or Android device
ADB is a client-server program where the client is the computer you use to operate, and the server side is the Android device.
ADB command:
1. View Device *ADB devices
This command is to view the currently connected device, the Android device connected to the computer, or the emulator will list the display
2. Installing the Software
*adbinstall <apk file path, this command installs the specified APK file on the device
3. Uninstalling the Software
*adbuninstall < software name >
*adbuninstall-k < software name >
If you add the-K parameter to uninstall the software but retain the configuration and cache files
4. View ADB version
*ADB version
5. View commands
*adb–h
Android Test--adb command