1. display all android platforms in the system:
Android list targets
2. Display All AVD (simulators) in the system ):
Android list AVD
3. Create an AVD (simulator ):
Android create AVD -- name -- Target Platform ID
4. Start the simulator:
Emulator-AVD name-sdcard ~ /Name. IMG (-skin 1280x800)
5. Delete AVD (simulator ):
Android Delete AVD -- name
6. Create an sdcard:
Mksdcard 1024 M ~ /Name. img
7. AVD (simulator) Location:
Linux (~ /. Android/AVD) Windows (C: \ Documents ents and Settings \ Administrator \. Android \ AVD)
8. Start ddms:
Ddms
9. display all currently running simulators:
ADB Devices
10. Run the following command on a simulator:
Abd-s simulator serial number command
11. Install the application:
ADB install-R application .apk
12. Get the files in the simulator:
ADB pull <remote> <local>
13. Write a file to the simulator:
ADB push <local> <remote>
14. Enter the shell mode of the simulator:
ADB Shell
15. Start the SDK, documentation, and instance Download Manager:
Android
16. Upload the APK package:
ADB Shell
CD Data/APP
Rm APK package
Exit
ADB uninstall APK package MAIN package name
ADB install-r APK package
17. view the ADB Command help information:
ADB help
18. view log information in the command line:
ADB logcat-s label name
19. The commands followed by the ADB shell mainly come from:
Source code \ System \ core \ toolbox directory and source code \ frameworks \ base \ cmds directory.
20. delete system applications:
ADB remount (re-mount the system partition to make the system partition writable ).
ADB Shell
CD system/APP
RM *. APK
21. Get administrator permissions:
ADB Root
22. Start activity:
ADB shell am start-N package name/package name + class name (-N class name,-A action,-d date,-M mime-type,-C category, -E ).
23. Release Port:
You can set any port number as the request port from the host to the simulator or device. For example:
ADB forward TCP: 5555 TCP: 8000
24. copy a file:
You can copy files to or from a device,
Copy a file or directory to the device or simulator:
ADB push <source> <destination> </source>
Example: ADB push test.txt/tmp/test.txt
Copy a file or directory from a device or simulator:
ADB pull <source> <destination> </source>
For example, ADB pull/addroid/lib/libwebcore. So.
25. Search for simulator/device instances:
Obtain the list of running Simulators/devices and the status of each instance:
ADB Devices
26. view the bug report:
ADB bugreport
27. Record wireless communication logs:
In general, there are a lot of wireless communication logs and there is no need to record them during operation, but we can still set the record through the command:
ADB Shell
Logcat-B radio
28. Obtain the device ID and serial number:
ADB get-Product
ADB get-serialno
29. Access the database sqlite3
ADB Shell
Sqlite3
# Cd system/SD/Data // enter the specified folder in the system
# Ls // the contents of the current folder are displayed in the list
# Rm-r XXX // delete a folder named XXX and all its files
# Rm XXX // delete file xxx
# Rmdir XXX // Delete the xxx folder