If you want to use ADB directly in the DOS interface, you need to add tools and Platform-tools in the ANROIDSDK installation directory and add it to the environment variable path.
View current devices (including real machines and emulators): ADB devices
Start/close adb service: adb start-server and ADB kill-server
Installer (when there is only one device): adb install **.apk
Written in the program (only one device): adb uninstall Com.*.* (package name)
Start logcat:adb logcat/adb logcat>< file path >
Restart device: ADB reboot
Uploading files to the device: ADB push <pc-side file path > < mobile-side file path >
Download file to PC: ADB pull < Mobile end file path > <pc side file path >
Select a device to execute the command:
D: Real machine e: simulator S: Serial number
ADB [-d|-e|-s < serial number;] <command>
Enter Shell interface: adb shell
Shell operations (as with the Linux shell command):
PS: View the current process status (sometimes using this to get the PID of the application name we know)
ls: List of files in the presentation directory
DF: Disk Management Directory
Top: View current Resource Usage
Kill: End Process or application
Dumpstate: System Resource Information
Procrank: Memory usage monitoring
Dumpsys: System Resource Information
Some common commands of the ADB