eclipse 如何从 Genymotion 的 android 模拟器访问文件 /data/data?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18951449/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:12:26  来源:igfitidea点击:

How to access file /data/data from android emulator from Genymotion?

androideclipsegenymotion

提问by mrhands

I love using Genymotion emulator with such brilliant speed to load Android. It has very wonderful speed but still have some instability performance.

我喜欢以如此出色的速度使用 Genymotion 模拟器来加载 Android。它具有非常出色的速度,但仍然有一些不稳定的表现。

How I can access file in /data/data/in Genymotion emulator from file explorer in Eclipse? I know that in this device has also installed Superuser permission so I can use this application in root condition. But how I can access this from file explorer?

如何从 Eclipse 中的文件资源管理器访问Genymotion 模拟器中/data/data/中的文件?我知道在这个设备上也安装了超级用户权限,所以我可以在 root 条件下使用这个应用程序。但是我如何从文件资源管理器访问它?

I know such operation using adb-shelland then basic terminal command also. I have successfully with this method but I want access this through file explorer from eclipse so I can easily pull from emulator.

我知道使用adb-shell和基本终端命令进行此类操作。我已经成功地使用了这种方法,但我想通过 eclipse 的文件资源管理器访问它,这样我就可以轻松地从模拟器中提取。

采纳答案by LokiDroid

As of now the only way to access data/data folder on the GenyMotion emulator is by using adb shell commands. Since the emulator is running inside Oracle VirtualBox, direct access to the storage is a security issue and therefore you wont be able to find it through explorer or eclipse. The VM saves the storage in .vmdk file format. Which is a virtual machine disk format. The data/data folder is somewhere deep inside that file.

到目前为止,访问 GenyMotion 模拟器上的 data/data 文件夹的唯一方法是使用 adb shell 命令。由于模拟器在 Oracle VirtualBox 内运行,直接访问存储是一个安全问题,因此您将无法通过资源管理器或 eclipse 找到它。VM 以 .vmdk 文件格式保存存储。这是一种虚拟机磁盘格式。data/data 文件夹位于该文件的深处。

Click here! To learn more about .vmdk file format.

点击这里!了解有关 .vmdk 文件格式的更多信息。