Android eclipse DDMS - 无法在手机上访问数据/数据/以拉取文件 [英] Android eclipse DDMS - Can't access data/data/ on phone to pull files

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

问题描述

在测试我的应用程序时,我使用模拟器和我自己的手机来查看是否一切正常.我的应用还将数据写入共享首选项和文本文件.

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.

我可以通过 eclipse 中的 DDMS 从我的模拟器中提取数据,这样我就可以读取我计算机上的数据文件,但是当我尝试通过 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.

我的手机已root.有什么办法可以从我的手机中提取文件吗?我知道 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.

推荐答案

rooted 设备上,您可以这样做:

On rooted device you can do this:

  1. 打开cmd
  2. 输入adb shell
  3. su
  4. 在设备上按允许"
  5. chmod 777/data/data/data/data/data/com.application.package/data/data/com.application.package/*
  6. 转到 Eclipse 中的 DDMS 视图

在此之后,您应该能够浏览设备上的文件.

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

获取数据库:

  1. chmod 777/data/data/com.application.package/databases/data/data/com.application.package/databases/*

<小时>

如果它在 su 上返回 permission denied

转到Settings > Developer Options > Root access > Apps and ADB

Go to Settings > Developer Options > Root access > Apps and ADB

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

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