ADB Usage
ADB (Android Debug Bridge) is a command-line tool used for communication between a computer and an Android device. It supports app installation, debugging, file transfer, log viewing, and device control via USB or network.
Install ADB
Visit the link ADB Download and select the corresponding platform to download the ADB software.
Verify the ADB Environment
Open Terminal in the ADB folder directory and enter adb. If the relevant command descriptions of ADB are output, the environment is normal.

Basic ADB Commands
shell
# View currently connected devices
adb devices
# If multiple devices are detected
adb -s [device ID] [other commands]
# Install an APK file
adb install xxx.apk
# Transfer files:
# Transfer files from PC to the device's SDCard
adb push [PC file path] /sdcard
# Download files from the device to PC
adb pull [file path on device]
# Enter the shell environment
adb shell
# Restart the device
adb reboot