1. 程式人生 > >How To Debug Android By Adb

How To Debug Android By Adb

You can use the adb commands pull and push to copy files to and from an emulator/device instance. Unlike the install command, which only copies an APK file to a specific location, the pull and push commands let you copy arbitrary directories and files to any location in an emulator/device instance.

  • You can use this to copy file or directory from the emulator or device:
 $adb pull <remote> <local>
  • You can use this to copy file or directory to the emulator or device:
 $adb push <remote> <local>


Note:In the commands, <local> and <remote> refer to the paths to the target files/directory on your development machine (local) and on the emulator/device instance (remote). For example:

 $adb push /work/tools/adb.txt /system