我必须将一些外部文件从我的电脑复制到我的 AVD。似乎这是可能的,特别是通过 ADB 使用以下命令:> adb push "C:/_tmp_filestocopy""/sdcard"
,它现在正在复制,但速度相当慢,当我说相当慢,我的意思是非常慢。例如,一个 50MB 的文件花费了我不到 20 分钟的时间。因此,我的问题是:是否有更快的方法可以将文件从 PC 传输到 AVD?我在某处读到过,您可以在 Linux 中从 AVD 挂载 sdcard.img
。不幸的是,我运行的是Windows。也许我现在可以尝试 VirtualBox 或 VMWare。另外,我见过 Quick ADB Pusher,但我怀疑它只是使用 ADB 命令行,但带有 GUI。它实际上更快,还是只是 GUI 后面的命令行?
最佳答案
您可以尝试以下操作:
1) Create an sdcard image file when setting up the android emulator. Make sure the file is big enough to store all the data you want the emulator to access.
2) Mount the sdcard image file on Windows ( just like you would mount a ISO image ). Check this link http://heatware.net/windows-xp/how-to-mount-an-isobinuifimg-image-in-windows/
3) After doing this, you should have some sort of external or virtual disk accessible from your file browser.
4) Copy all your stuff to the virtual image.
5) Unmount the image from the system.
6) Fire up the emulator. It should see all the data on the sdcard.
在 GNU/Linux 上会容易得多,因为您可以使用一个命令挂载/卸载 img。
祝你好运!
关于android - 在 PC 和 AVD 之间快速传输文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13417457/