adb 常用指令

2011年9月6日 星期二 0 意見
# Upload file(s) from computer to phone:
    adb push
# Download file(s) from phone to computer:
    adb pop
# Create directory on phone:
    adb shell mkdir
# Remove directory on phone:
    adb shell rm
# Remove file(s) on phone:
    adb shell rm -f
# Copy file(s) on phone:
    adb shell cpy
# List files on phone:
    adb shell ls
# Install package (apk file):
    adb install
# Uninstall package:
    adb uninstall
# Show the console of Android with debug information (remember to plug the cable with the device):
    adb logcat
# Check which devices are connected:
    adb devices
# Kill the adb tool (useful if it crashes):
    adb kill-server