从Android模拟器sdcard中导出文件
环境
Eclipse Indigo + Android 2.2
问题
Android模拟器中使用微信,微信好友向我发送图片,保存后想导出到电脑磁盘中。
解决
使用adb pull命令。
[plain]
adb pull <remote> [<local>] - copy file/dir from device
adb pull 模拟器路径 [电脑磁盘路径,可选,不填表示导出到当前目录] –从设备中拷贝文件或者目录
adb pull <remote> [<local>] - copy file/dir from device
adb pull 模拟器路径 [电脑磁盘路径,可选,不填表示导出到当前目录] –从设备中拷贝文件或者目录
比如从/sdcard/tencent/MicroMsg/Camera目录中导出图片到D盘,可以使用如下命令:
[plain] view plaincopyprint?adb pull /sdcard/tencent/MicroMsg/Camera D:\
adb pull /sdcard/tencent/MicroMsg/Camera D:\
操作日志
[plain]
C:\Users\Wentasy>adb -help
Android Debug Bridge version 1.0.26
-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <serial number> - directs command to the USB device or emulator w
ith
the given serial number. Overrides ANDROID_SERI
AL
environment variable.
-p <product name or path> - 易做图 product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices - list all connected devices
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number
is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number
is specified.
Using this ocmmand with no additional arguments
will disconnect from all connected TCP/IP devic
es.
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
&
补充:移动开发 , Android ,