拉从genymotion模拟器一个数据库到本地磁盘模拟器、磁盘、数据库、genymotion

2023-09-05 08:43:13 作者:迷人的小混蛋

我使用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)