简体   繁体   English

Android Studio-Android设备监视器的文件资源管理器不起作用

[英]Android Studio - Android Device Monitor's File explorer not working

I have just learnt using preferences in Android. 我刚刚学习了在Android中使用preferences For debugging purpose I need to access the preferences files. 出于调试目的,我需要访问首选项文件。 I googled and found the default location of the preference file and also how to access it via Android Device Monitor. 我在Google上搜索并找到了首选项文件的默认位置,以及如何通过Android设备监视器访问它。

Somehow I am not able to open any folders under the File explorer tab of the Android device monitor. 我无法以某种方式在Android设备监视器的“文件资源管理器”标签下打开任何文件夹。 They just aren't responding. 他们只是没有回应。 I tried waiting for ADM to load and tried again but no success. 我尝试等待ADM加载,然后重试,但没有成功。 (Double click on folder is not working, STRANGE!) (双击文件夹无效,STRANGE!)

Do we need to configure before using it? 使用之前需要配置吗? I am using Android studio. 我正在使用Android Studio。 Any help would be appreciated. 任何帮助,将不胜感激。 Attaching image 附加图片 Android设备监视器屏幕截图

Finally I found how to make it work. 最后,我找到了使它工作的方法。

goto run -> location where your adb is goto run->您的adb所在的位置

Ex: C:\\Program Files (x86)\\Android\\android-sdk\\platform-tools 例如:C:\\ Program Files(x86)\\ Android \\ android-sdk \\ platform-tools

type adb root , Enter (Your phone must have root) 输入adb rootEnter (您的电话必须具有root)

If this doesn't work, install this app on your phone: [root] adbd Insecure or its free alternative here ( update: link broken now ). 如果这不起作用,您的手机上安装这个应用程式: [根] adbd不安全或者其自由选择在这里更新:现在的链接断开 )。

Get more info at http://forum.xda-developers.com/showthread.php?t=1687590 http://forum.xda-developers.com/showthread.php?t=1687590上获取更多信息。

您将需要使用仿真器或拥有扎根电话才能使用所有功能。

Root your device and open adb shell and change the permissions as: root您的设备并打开adb shell并将权限更改为:

$ adb shell $ adb shell
$ su $苏
1|root@android:/ # chmod -R 777 data/ 1 | root @ android:/#chmod -R 777数据/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM