Recently, you can summarize some of the commonly used ADB commands and commands to access SQLite.
1. List all Android versions
Android list targets
2. List all AVD (simulator)
Android List AVD
3. Start DDMS
Ddms
4. Displays all the emulators currently running:
ADB devices
5. copy files to the phone
ADB push <windows source file path > < mobile target path >
6. export files from your phone
ADB Pull < Phone source file path > < system directory path >
7. Install the App
ADB install [-r] [-s] <apk file path >
-R Forced installation
-S mount to SDcard
8. Uninstall the App
ADB Uninstall < package name >
ADB uninstall–k < package name > plus-k parameter for uninstalling software but preserving configuration and caching files
9. Restart ADB
ADB kill-server
Abd Start-server
10. View ADB command Help information
ADB Help
11. View the log information on the command line
ADB logcat-s label Signature
12. Remove the System application:
ADB remount (re-mount the system partition so that the system partition is re-writable).
ADB shell
CD System/app
RM *.apk
13. Get Administrator Privileges
ADB root
14. 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 Extended data, etc.).
15. Enter the shell mode of the simulator:
ADB shell
16. Accessing the database SQLite3
ADB shell
#ls
#cd xx/xx//Enter the specified folder
#sqlite3 xx.db//Enter XX database
Sqlite>.tables//List What tables XX databases have
Sqlite>.header On|off//Output If column name is displayed
Sqlite>select * from table name;
Sqlite>.separator ""//Set the delimiter between each column at output
Sqlite>.quit//Exit Sqlite3
17. Exit the Shell
#exit
Android ADB command