flexible
flexible

Reputation: 11

- ddms] transfer error: open failed:Permission denied

I get a trouble when learning android Data-Persistence. I changed the daenter image description hereta/data/com.flexible.filepersistencetest/files/data permission to 777. But I still can't pull it to my PC.

when I try to delete Nexus_5_API_24.avd 's permission of Read-Only, the Read-Only will be back. It really exaust me. Any advice is ok, thank you very much!

Upvotes: 1

Views: 1722

Answers (1)

Jay
Jay

Reputation: 21

  1. change file permissions.

    snapshot terminal

    C:\Android\sdk\platform-tools> adb shell 
    generic_x86:/ $ su
    generic_x86_64:/ # chmod -R 777 /data 
    generic_x86_64:/ # exit
    
  2. run the below commands under the terminal in 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
    
  3. open cmd windows.

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

    or use "pull" button button bull

Upvotes: 1

Related Questions