The use of ADB on tablet or Android phones is very convenient. Next I will introduce the use of ADB and some common commands.
1, connect
With the ADB cable, one end connected to the PC's USB, one end of the tablet or mobile phone adb, of course, to ensure that the line is not a problem, and can not be too long.
2, tablet or phone settings
Enter the system, choose Settings-Application-Develop-USB debug, let its debug mode selected, of course, different system settings of different paths, their own groping under the path.
3,PC machine adb settings
First, enter the command:
$ADB devices
See if there is a similar device, such as 0123456789ABCDEF.
If not, restart ADB using the following command.
$sudo adb kill-server
$sudo adb start-server
Remember, if this is not the root user, be sure to use sudo,
Then use the ADB devices to see if any device is connected.
If not, then I do not know how to do.
If you are connected, you can look at the common commands of the ADB:
1. View the 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
$ADB Install <apk file path >
This command installs the specified APK file on the device (if it is an overlay installation, add the-r parameter after install)
3. Uninstalling the Software
$ADB Uninstall < software name >
$ADB uninstall-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
$ADB Shell
$ADB Shell <command Command >
This command will log into the device's shell.
The following add <command command > will be run directly on the device command, equivalent to executing a remote command
5. Send files from the computer to the device
$ADB Push < 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
$ADB Pull < 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
$ADB Help
This command will display the Help information
8. Restart ADB
$ADB reboot
File ~/.android/adb_usb.ini
Use of the ADB command under Linux