简体   繁体   English

adb pull / push在Android模拟器上非常慢

[英]adb pull/push is very slow on android emulator

Has anyone tried to push/pull large files(more than 20MB) to/from an android Emulator target? 有没有人试图将大型文件(超过20MB)推入/拉出Android Emulator目标? When I did the adb push/pull operation, it is ridiculously slow. 当我执行adb推/拉操作时,它的速度非常慢。

The average speed is 75 KB/s. 平均速度为75 KB / s。 Oh my, that was the speed of my high school network 15 years ago. 哦,我的那是15年前我的高中网络的速度。 But the Emulator target is just on my hard drive, then why is adb push/pull so slow? 但是Emulator目标只是在我的硬盘上,那么为什么adb推/拉这么慢?

Thanks! 谢谢!

Arthur 亚瑟

With a 4.0.3 emulator image, I get transfer speeds of a ~17MB file that are 20-40 times faster than what you cite. 使用4.0.3仿真器映像,我得到的〜17MB文件的传输速度比您引用的速度快20-40倍。 Hence, the issue is more of your development environment and not something intrinsic to the Android emulator. 因此,问题主要出在您的开发环境上,而不是Android模拟器固有的问题。

I got it. 我知道了。 If I use adb push/pull, it is actually using TCP/IP to connect my PC and the android virtual machine. 如果我使用adb push / pull,则实际上是在使用TCP / IP连接PC和android虚拟机。 Now I have found a software that can mount the sdcard.img to a virtual hard drive(I am using Windoze), then everything is fine. 现在,我找到了可以将sdcard.img挂载到虚拟硬盘驱动器的软件(我正在使用Windoze),然后一切正常。 The speed of file operations on sdcard.img is as fast as on a real hard drive. sdcard.img上文件操作的速度与真实硬盘上的速度一样快。 The software is named ImDisk. 该软件名为ImDisk。

Arthur 亚瑟

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM