Android的日食DDMS - 无法访问数据/数据​​/电话上拉文件 [英] Android eclipse DDMS - Can't access data/data/ on phone to pull files

查看:123
本文介绍了Android的日食DDMS - 无法访问数据/数据​​/电话上拉文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在测试我的应用程序,我用模拟器和我自己的手机,看看是否一切工作正常。我的应用程序也将数据写入到共享preferences和一个文本文件中。

While testing my apps, I use emulators and my own phone to see if everything is working ok. My apps are also writing data to shared preferences and a text file.

我可以通过从我的仿真器提取数据的 DDMS 在Eclipse这样我就可以读我的电脑上的数据文件,但是当我尝试打开过的文件夹 DDMS 我的手机上,没有任何反应。我点击的数据文件夹,然后什么也没有发生。

I can pull the data from my emulators through the DDMS in eclipse so I can read the data files on my computer, but when I try to open those folders through the DDMS on my phone, nothing happens. I click the data folder and nothing happens.

我的手机扎根。有什么办法,我可以从我的手机拉文件?我知道Android保持这些文件夹私人,但必须有办法。模拟器就是办法的太慢了。

My phone is rooted. Is there any way I could pull the files from my phone? I know that Android keeps these folders private, but there must be a way. The emulator is just way too slow.

推荐答案

设备,你可以这样做:

On rooted device you can do this:

  1. 开启CMD
  2. 键入亚行外壳
  3. preSS'允许'的设备
  4. 搭配chmod 777 /数据/数据​​/数据​​/data/data/com.application.pacakage /data/data/com.application.pacakage / *
  5. 转至DDMS视图在Eclipse
  1. Open cmd
  2. Type 'adb shell'
  3. su
  4. Press 'Allow' on device
  5. chmod 777 /data /data/data /data/data/com.application.pacakage /data/data/com.application.pacakage/*
  6. Go to the DDMS view in Eclipse

在此,你应该能够浏览设备上的文件。

After this you should be able to browse the files on the device.

如果返回权限被拒绝

设置> 开发人员选项> Root权限> 应用程序和亚行

这篇关于Android的日食DDMS - 无法访问数据/数据​​/电话上拉文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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