Android -ddms]传输错误:打开失败:;拒绝许可

Android -ddms]传输错误:打开失败:;拒绝许可,android,Android,我在学习android数据持久性时遇到了麻烦。 我将data/data/com.flexible.filepersistencetest/files/data权限更改为777。但我还是不能把它拉到我的电脑上 当我尝试删除Nexus_5_API_24.avd的只读权限时,只读将返回。 这真让我恼火。 任何建议都可以,非常感谢 更改文件权限 在Android studio integration的终端下运行以下命令 C:\Android\sdk\platform-tools> adb sh

我在学习android数据持久性时遇到了麻烦。 我将data/data/com.flexible.filepersistencetest/files/data权限更改为777。但我还是不能把它拉到我的电脑上

当我尝试删除Nexus_5_API_24.avd的只读权限时,只读将返回。 这真让我恼火。 任何建议都可以,非常感谢

  • 更改文件权限

  • 在Android studio integration的终端下运行以下命令

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

    C:\Android\sdk\platform-tools> adb pull /data/data/xxxx C:\Android\sdk\platform-tools 
    
    或者使用“拉”按钮


  • 我已经解决了。这是因为我没有模拟器的根。
    C:\Android\sdk\platform-tools> adb pull /data/data/xxxx C:\Android\sdk\platform-tools