# Upload file(s) from computer to phone:
adb push <LOCAL SOURCE> <REMOTE LOCATION>
# Download file(s) from phone to computer:
adb pop <REMOTE SOURCE> <LOCAL LOCATION>
# Create directory on phone:
adb shell mkdir <NAME>
# Remove directory on phone:
adb shell rm <TARGET DIRECTORY>
# Remove file(s) on phone:
adb shell rm -f <TARGET FILE>
# Copy file(s) on phone:
adb shell cpy <SOURCE> <TARGET>
# List files on phone:
adb shell ls
# Install package (apk file):
adb install <APK FILE>
# Uninstall package:
adb uninstall <PACKAGE NAME>
# 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
adb logcat -s <tag>
我经常使用的 adb logcat -s -d [TRACE] > log.txt
常用的ADB命令
最新推荐文章于 2023-11-04 00:15:00 发布