android - - ddms] 传输错误 : open failed:Permission denied

标签 android

我在学习 android Data-Persistence 时遇到了麻烦。 我改变了 da enter image description here ta/data/com.flexible.filepersistencetest/files/data 权限为 777。但我仍然无法将它拉到我的电脑上。

当我尝试删除 Nexus_5_API_24.avd 的 Read-Only 权限时,Read-Only 将恢复。 这真的让我筋疲力尽。 任何建议都可以,非常感谢!

最佳答案

  1. 更改文件权限。

    snapshot terminal

    C:\Android\sdk\platform-tools> adb shell 
    generic_x86:/ $ su
    generic_x86_64:/ # chmod -R 777 /data 
    generic_x86_64:/ # exit
    
  2. 在 Android studio 集成的终端下运行以下命令。

    C:\Android\sdk\platform-tools> adb shell 
    generic_x86:/ $ 
    generic_x86:/ $ exit 
    $ adb root 
    restarting adbd as root
    $ adb shell 
    generic_x86:/ # exit
    
  3. 打开 cmd 窗口。

    C:\Android\sdk\platform-tools> adb pull /data/data/xxxx C:\Android\sdk\platform-tools 
    

    或使用“拉”按钮 button bull

关于android - - ddms] 传输错误 : open failed:Permission denied,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43708065/

相关文章:

android - 检查当前是否显示 XML 布局?

android - 如何使用 libgdx HttpRequest 和 HttpResponseListener 从网页保存图像?

android - 激活 proguard 时 Gradle 构建失败

安卓 : Add delay to Alert Dialog

android - DDMS 不在设备上显示程序数据

android - 如何使用android management api管理个人资料?

android - 在 eclipse Android 包中找不到 installLocation 标识符

java - 如何在 firebase android 中查询类似云函数中的数据库触发器

android - 有关如何使用软按钮而不是物理音量控件显示 Chromecast 音量 slider 的示例代码

java - AddView错误,只显示第一个元素