When we're brushing Android phones, we need the ADB tools, but even some of the most often-flashing ones don't necessarily know what the ADB means. If you want to know what the ADB is and want to know what the ADB commands are, let me introduce you.
The ADB is all called Android Debug Bridge, which literally means Android debug bridging, simply put, it is the Android system provides a set of tools, through which we can set up a computer to connect to the phone channel, and then on the computer to send some instructions to the phone, Complete some of the work we need to do.
The ADB is the role of the Debug bridge. With ADB we can debug the Android program via DDMS in Eclipse, which is the Debug tool. ADB has a special way of working, using ports such as the socket TCP 5554 to communicate with the IDE and QEMU, 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 andriod 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.
The ADB command on the PC side
Several commands commonly used by ADB
1. View Device adbdevices
This command is to view the currently connected device, the Android device connected to the computer, or the emulator will list the display
2. Install the software Adbinstall
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, the software is uninstalled but the configuration and cache files are preserved.
4. Log in to the device shell
Adbshell
This command will log into the device's shell.
The subsequent add will be to run the device command directly, equivalent to executing the remote command
5. Send files from the computer to the device
Adbpush < Local path > < remote path >
Use the push command to copy files or folders on your computer to your device (mobile)
6. Download files from the device to the computer
Adbpull < remote path > < local path >
Use the pull command to copy files or folders on your device (phone) to your local computer
7. Display Help information
Adbhelp
This command will display the Help information
8. re-mount the file system
ADB remount
9. Restart your phone
ADB reboot
10. Get the Run log
ADB logcat
ADB Common operations commands