拉从genymotion模拟器一个数据库到本地磁盘 [英] pull a database from genymotion emulator on to local disk

查看:168
本文介绍了拉从genymotion模拟器一个数据库到本地磁盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用genymotion对我的开发,当我创建一个数据库,我不能看到它在genymotion模拟器DDMS文件夹。

I am using genymotion for my dev and when I create a database I can't see it in DDMS folder of genymotion emulator.

在谷歌上搜索我能看到亚行外壳的数据库,但不知道怎么的数据库来拉我的本地磁盘查看数据。

When searched on google I am able to see the database on adb shell but don't know how to pull the database to my local disk to view the data.

任何人都可以请让我知道这个过程。

Can anyone please let me know the process.

在此先感谢

推荐答案

您可以(也)将其复制到共享文件夹拉从设备中的数据到主机:

You can (also) pull the data from your device to your host by copying it to a shared folder:

adb shell su 0 cp /data/data/<package.name>/databases/<database.name> /mnt/shared/

下面是中如何设置共享文件夹:

Here is how to setup the shared folder:

      
  • 转到您的VirtualBox虚拟机设置/共享文件夹标签
  •   
  • 添加共享文件夹要共享的文件夹,并选中自动安装选项
  •   
  • 在开始你的虚拟机像往常一样从Genymotion软件
  •   
  • 您的共享文件夹中的/ mnt /共享目录中(多重共享文件夹支持)
  •   
  • Go to your VirtualBox VM setting / Shared folder tab
  • 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
  • Your shared folder is available in the /mnt/shared directory (multiple shared folders are supported)

这篇关于拉从genymotion模拟器一个数据库到本地磁盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆