使用的Nexus One无法访问数据的文件夹中DDMS的文件浏览器!
我有我的Nexus One与USB连接。
I have my Nexus One connected with the USB.
当我访问DDMS的文件资源管理器,如果我点击Data文件夹的小加名附近的数据消失2-6秒钟,然后重新出现,但该文件夹的数据的contenct是不显示!
When I visit the File Explorer of the DDMS, if I click on the "data" folder the little plus near the name "data" disappear for 2-6 seconds and then reappear but the contenct of the folder "data" is not showed!
下面一些其他的信息:
-
文件夹数据具有权限drwxrwx - X
the folder data has permissions drwxrwx--x
我的电脑的操作系统为Windows XP
the OS of my PC is Windows XP
Eclipse的诉3.5.2
Eclipse v. 3.5.2
Android的SDK 1.6
Android SDK 1.6
如果该adbd守护进程以root权限运行,你可以浏览/使用亚行基于工具的数据,如DDMS的文件资源管理器或亚行的shell。
If the adbd daemon is running as root, you can browse /data using adb-based tools such as the DDMS file explorer or the adb shell.
如果不是的话,你可以直接通过其全路径名访问/几个文件数据和它的孩子,但您无法浏览(或CD到)大部分的文件夹,包括/数据本身。
If it's not, you can access a few files under /data and its children directly by their full path names, but you cannot browse (or 'cd' to) most of the folders, including /data itself.
生根作为一个非官方的过程意味着不同的事情,并产生不同的结果 - 也就是说,adbd可能会或可能不会以root身份运行。
"rooting" as an unofficial process means varying things and produces varying results - ie, adbd may or may not run as root.
如果ro.secure设置为0的启动脚本,如/init.rc,adbd将作为root运行,但可能不会在用户设备上是个好主意。它被设置为0在模拟器上,这就是为什么你可以浏览/数据存在。
If ro.secure is set to 0 in the startup scripts such as /init.rc, adbd will run as root, but that may not be a good idea on a user device. It is set to 0 on the emulator, and that's why you can browse /data there.
最后,请注意/init.rc通常包含在封装到内核中的ramdisk映像 - 你真的不能编辑它在手机上,但将有图像脱机修改,重新把它添加到内核,并重新闪烁它们。但如果你有某种形式合作的苏黑客您可以临时更改的属性,然后重新启动adbd。
Finally, note that /init.rc is usually contained in a ramdisk image packed onto the kernel - you can't really edit it on the phone but would have to modify the image offline, re-attach it to the kernel, and re-flash them. Though if you have some sort of working 'su' hack you may be able to change the property temporarily and restart adbd.