1.ADB devices: View the device that is currently connected.
2.ADB Shell: Enter the shell mode of Android.
3.echo 3>/proc/sys/vm/drop_caches: Clear the system cache.
4.exit: Exit adb shell
5.ADB Install xxx.apk: Installs the xxx.apk on the phone. If you are operating on a simulator, ensure that the simulator is turned on.
ADB install [-r] [-S] <file>: Install APK package with file name to emulator. where r means reinstalling the APK package, s means installing the APK package onto the SD card and installing it into the phone's memory by default.
6.ADB push d:\myfile.txt/sdcard/: Upload the myfile.txt of the D drive on the computer to the root of the sdcard on the simulator
7.ADB Pull/sdcard/file.txt D:\ : Upload the File.txt file from the emulator sdcard root directory to the root of the computer D drive
8.RM sdcard/myfile.txt: Remove the file.txt file from the emulator sdcard root directory
9.ls Data/app: This command is used in the shell environment, and when you enter Shell mode, the command is used to query all installed application names within the phone. If you are operating on a simulator, ensure that the simulator is turned on.
10.ls data/data: This command is also used in the shell environment, when entering shell mode, the command is used to query all installed programs in the phone's package name, usually the name of the domain name, such as Com.andorid.xxx. If you are operating on a simulator, ensure that the simulator is turned on.
11.ADB uninstall xxxx: This command is used to uninstall the installed programs in your phone. Uninstall the parameter that follows is the package name of the program that you want to unload, depending on the results of the query in Data/data above or running the program to determine the package name through Logcat information.
12.ADB logcat: This command is used to query the program log. If you are operating on a simulator, ensure that the simulator is turned on.
13.PS: If you want to run the ADB command directly in any directory, the usual way is to add the Adb.exe directory to the path.
14.top: Real-time view of CPU and memory usage.
Android commonly used commands (reprinted, follow their own perfect)