1. Displays all the emulators currently running:
ADB devices
2. Install the application:
adb install-r 123.apk
3. Get the files in the emulator:
adb pull <remote> <local>
4. Write the file to the emulator:
adb push <local> <remote>
5. Enter the shell mode of the simulator:
adb Shell
6. Unloading apk package:
adb shell
CD Data/app
RM 123.apk
Exit
ADB uninstall 123.apk
adb install-r 123.apk
7. View the ADB command Help information:
adb Help
8. 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 123.apk
9. Get Administrator privileges:
adb root
10, copy file:
copy a file or directory to device:
adb push <source> <destination> </DESTINATION></SOURCE>&NBSP
such as: ADB push update.zip/sdcard/
copy a file or directory from the device:
adb pull <source> <destination></destination></source>
such as: adb pull/sdcard/update.zip .
11. Obtain a list of instances of the currently running device and the status of each instance:
ADB devices
12. #CD System/sd/dataEnter the specified folder within the system
CD..Return to the top level directory
CD.. /..Return to the top level two directory
CDGo to your personal home directory
CD ~user1Go to your personal home directory
CD-Return to the last directory where
#LS //list displays the current folder contents
#Rm-r xxx //delete the folder with the name xxx and all the files inside it
#RM xxx //delete file xxx
#rmdir xxx //delete xxx folder
# mkdir-p xxx //recursively create folder for XXX
# CP [options] [source file] [destination file ],-d Copy a shortcut/-r copy a directory/-i to an existing file, ask whether to overwrite
# mv [options] [source file] [destination file ],-u The destination file is present and will be moved if the source file is newer than the target file/-i For an existing file, ask whether to overwrite it;
#Cat Common Command, which is to view the contents of a file and display it on the screen.
More is also used to view the contents of a file. When the contents of the file too much, a screen can not occupy, use more when a screen after reading press the space bar to continue to see the next screen. After reading all the content, you will exit. If you want to quit early, just press the Q key.
Less is the same as more, but better than the more good can be turned upside down. The SPACEBAR can also be paged, while pressing the "J" key can be moved downward (click to move down one line) and press "K" key to move up. When you use more and less to view a file, you can click the "/" key and then enter a word carriage return so that you can find the word. If you have more than one word, you can press the "N" key to display the next. Alternatively, you can press "/" instead of "?" In the same word as word, the only difference is that "/" is searched down the current line, and "?" is to search up the current line
Android--------------several adb common commands