ADB推送命令android模拟器
我正在尝试将 python 库导入 SL4A。据我了解,最简单的方法是将python库的压缩文件(egg文件)导入到SD卡中,然后导入到SL4A中。由于我还没有 Android 设备,因此我正在使用模拟器。每当我尝试使用 adb push 命令推送压缩文件夹时,都会弹出一条错误消息,指出设备未连接。如何将压缩文件推送到模拟器的 SD 卡中,然后通过 SL4A 访问它?我想在 SL4A 的命令行中使用该库中的命令。
谢谢 !
I am trying to import a python library into SL4A. From my understanding, the easiest way to do this is to import the zipped files (egg files) of the python library into the SD Card and then import it into SL4A. Since I do not have an android device yet, I am working with the emulator. Whenever I try to push the zipped folder using the adb push
command, it pops out an error saying the device is not connected. How do I push zipped files into the SD Card of an emulator and then access it via SL4A ? I want to use the commands in that library in the command line in SL4A.
Thanks !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以创建自己的 SD 卡映像,将文件放入其中,然后挂载到模拟器中。
要创建图像,您可以使用
mksdcard; <文件>
:mksdcard 1024M sdcard1.iso
。之后,您需要挂载SD卡:mount -o Loop sdcard1.iso /mnt/cdrom/
。下一步:复制文件,umount /mnt/cdrom/
并指向虚拟机属性中的映像。You can create your own sdcard image, put files on it and after that mount in emulator.
To create image you can use
mksdcard <size> <file>
:mksdcard 1024M sdcard1.iso
. After that you need to mount sdcard:mount -o loop sdcard1.iso /mnt/cdrom/
. Next step: copy files,umount /mnt/cdrom/
and point to image in virtual machine properties.