从genymotion sd卡访问文件

时间:2021-01-18 18:57:19

I have been using genymoton for quite some time now.

我使用genymoton已经有一段时间了。

Could someone pls. tell me if there is a way by which I can access the files present in the sd card of genymotion emulator?

有人能告诉我是否有一种方法可以让我访问genymotion模拟器的sd卡中的文件吗?

Currently I have to upload them to google driver and then download on windows.

目前我需要将它们上传到谷歌驱动,然后在windows上下载。

4 个解决方案

#1


84  

You can use shared folder for that. It is well explain on this Google+ post.

您可以为此使用共享文件夹。在这篇谷歌+文章中有很好的解释。

Here is the brief:

这是短暂的:

  • Go to your VirtualBox VM setting / Shared folder tab
  • 转到虚拟框VM设置/共享文件夹选项卡
  • Add a shared folder with the folder you want to shared, and check the "auto mount" option
  • 将共享文件夹添加到要共享的文件夹中,并检查“自动挂载”选项
  • Start your VM as usual from the Genymotion software
  • 像往常一样从Genymotion软件启动VM
  • Your shared folder is available in the /mnt/shared directory (multiple shared folders are supported)
  • 共享文件夹在/mnt/共享目录中可用(支持多个共享文件夹)

#2


85  

This is also possible using the Android Device Monitor. You already have this if you have the Android SDK installed. This method works for all connected devices, including emulators like genymotion.

这也可以使用Android设备监视器。如果安装了Android SDK,就已经有了这个功能。该方法适用于所有连接的设备,包括像genymotion这样的仿真器。

In Android Studio, click the icon that says Android Device Monitor in the toolbar. 从genymotion sd卡访问文件 (This is also available from Eclipse or you can just type monitor in the command line after moving to the tools folder of your installed sdk)

在Android Studio中,单击工具栏中显示Android设备监视器的图标。(这也可以从Eclipse获得,或者您可以在迁移到所安装sdk的tools文件夹后在命令行中键入monitor)

In the Android Device Monitor, go to the File Explorer tab. 从genymotion sd卡访问文件 Make sure you have a device selected on the left side.

在Android设备监视器中,转到File Explorer选项卡。确保在左边选择了一个设备。

Find the desired file and select it. 从genymotion sd卡访问文件 For the sdCard you might need to open the storage folder and open the sdcard there.

找到所需的文件并选择它。对于sdCard,您可能需要打开存储文件夹并在那里打开sdCard。

Click the button on top that says "Pull a file from the device". 从genymotion sd卡访问文件 Make sure you select Pull, not Push. Unless if you want to put new files on your device ofcourse.

点击上面写着“从设备中取出文件”的按钮。确保你选择的是拉,而不是推。除非你想在你的设备上添加新文件。

Save the file to your computer... 从genymotion sd卡访问文件 and voila! The file from your genymotion is now among your other files on your computer. Ready to be used however you like.

将文件保存到您的计算机上…瞧!来自genymotion的文件现在是你电脑上的其他文件之一。随时准备被使用,不管你喜欢什么。


Or alternatively you can also use a third party app like airdroid or any advanced file explorer to exchange files between your device and your computer. (For installing third party apps you either need to find the apk or flash gapps on your genymotion first and go to the play store.)

或者你也可以使用第三方应用,比如airdroid或任何高级文件浏览器,在你的设备和电脑之间交换文件。(要安装第三方应用程序,你需要先在genymotion上找到apk或flash gapps,然后去play store。)

#3


3  

Another way that I adopted, just install EsFileEx on genymotion. Grab your files that you want to copy from e.g

我采用的另一种方法是,在genymotion上安装EsFileEx。把你要拷贝的文件拿走

/sdcard/WhatsApp/media/dp.jpeg 

Swipe to LAN, here you can see your local machine as 10.0.3.2 or any IP. Here you can access your shared folder/drive of local machine/PC, past copied file here and you done!

滑动到LAN,在这里您可以看到您的本地机器是10.0.3.2或任何IP。在这里,您可以访问您的共享文件夹/驱动器的本地机器/PC,过去复制的文件在这里和您做!

NOTE! R/W permission should be set on shared folder/drive of local machine/PC

注意!R/W权限应该设置在本地机器/PC的共享文件夹/驱动器上

#4


0  

You can use the eclipse with the ADT plugin and browse the file system like any other android virtual emulators. I have been using this for a while, but eclipse crashes at some times.

您可以与ADT插件一起使用eclipse,并像其他任何android虚拟模拟器一样浏览文件系统。我已经使用了一段时间,但是eclipse有时会崩溃。

#1


84  

You can use shared folder for that. It is well explain on this Google+ post.

您可以为此使用共享文件夹。在这篇谷歌+文章中有很好的解释。

Here is the brief:

这是短暂的:

  • Go to your VirtualBox VM setting / Shared folder tab
  • 转到虚拟框VM设置/共享文件夹选项卡
  • Add a shared folder with the folder you want to shared, and check the "auto mount" option
  • 将共享文件夹添加到要共享的文件夹中,并检查“自动挂载”选项
  • Start your VM as usual from the Genymotion software
  • 像往常一样从Genymotion软件启动VM
  • Your shared folder is available in the /mnt/shared directory (multiple shared folders are supported)
  • 共享文件夹在/mnt/共享目录中可用(支持多个共享文件夹)

#2


85  

This is also possible using the Android Device Monitor. You already have this if you have the Android SDK installed. This method works for all connected devices, including emulators like genymotion.

这也可以使用Android设备监视器。如果安装了Android SDK,就已经有了这个功能。该方法适用于所有连接的设备,包括像genymotion这样的仿真器。

In Android Studio, click the icon that says Android Device Monitor in the toolbar. 从genymotion sd卡访问文件 (This is also available from Eclipse or you can just type monitor in the command line after moving to the tools folder of your installed sdk)

在Android Studio中,单击工具栏中显示Android设备监视器的图标。(这也可以从Eclipse获得,或者您可以在迁移到所安装sdk的tools文件夹后在命令行中键入monitor)

In the Android Device Monitor, go to the File Explorer tab. 从genymotion sd卡访问文件 Make sure you have a device selected on the left side.

在Android设备监视器中,转到File Explorer选项卡。确保在左边选择了一个设备。

Find the desired file and select it. 从genymotion sd卡访问文件 For the sdCard you might need to open the storage folder and open the sdcard there.

找到所需的文件并选择它。对于sdCard,您可能需要打开存储文件夹并在那里打开sdCard。

Click the button on top that says "Pull a file from the device". 从genymotion sd卡访问文件 Make sure you select Pull, not Push. Unless if you want to put new files on your device ofcourse.

点击上面写着“从设备中取出文件”的按钮。确保你选择的是拉,而不是推。除非你想在你的设备上添加新文件。

Save the file to your computer... 从genymotion sd卡访问文件 and voila! The file from your genymotion is now among your other files on your computer. Ready to be used however you like.

将文件保存到您的计算机上…瞧!来自genymotion的文件现在是你电脑上的其他文件之一。随时准备被使用,不管你喜欢什么。


Or alternatively you can also use a third party app like airdroid or any advanced file explorer to exchange files between your device and your computer. (For installing third party apps you either need to find the apk or flash gapps on your genymotion first and go to the play store.)

或者你也可以使用第三方应用,比如airdroid或任何高级文件浏览器,在你的设备和电脑之间交换文件。(要安装第三方应用程序,你需要先在genymotion上找到apk或flash gapps,然后去play store。)

#3


3  

Another way that I adopted, just install EsFileEx on genymotion. Grab your files that you want to copy from e.g

我采用的另一种方法是,在genymotion上安装EsFileEx。把你要拷贝的文件拿走

/sdcard/WhatsApp/media/dp.jpeg 

Swipe to LAN, here you can see your local machine as 10.0.3.2 or any IP. Here you can access your shared folder/drive of local machine/PC, past copied file here and you done!

滑动到LAN,在这里您可以看到您的本地机器是10.0.3.2或任何IP。在这里,您可以访问您的共享文件夹/驱动器的本地机器/PC,过去复制的文件在这里和您做!

NOTE! R/W permission should be set on shared folder/drive of local machine/PC

注意!R/W权限应该设置在本地机器/PC的共享文件夹/驱动器上

#4


0  

You can use the eclipse with the ADT plugin and browse the file system like any other android virtual emulators. I have been using this for a while, but eclipse crashes at some times.

您可以与ADT插件一起使用eclipse,并像其他任何android虚拟模拟器一样浏览文件系统。我已经使用了一段时间,但是eclipse有时会崩溃。