google / adb-sync

Apache License 2.0
1.08k stars 169 forks source link

Permission denied #26

Closed mcanonic closed 5 years ago

mcanonic commented 6 years ago

Hi, I've wrote a dummy app that creates files. With adb-sync I would try to keep track of change on the files creates. But the following command:

./adb-sync --dry-run --emulator --reverse /data/user/0/com.example.mex.dummyapp/files ./backup/ I got this permission denied error: Sync: local ./backup//files, remote /data/user/0/com.example.mex.dummyapp/files Scanning and diffing... ls: /data/user/0/com.example.mex.dummyapp/files: Permission denied No files seen. User error? Total: 0 bytes

How can I fix this issue?

Thanks, M

mcanonic commented 6 years ago

My bad: I had to run adb root M

divVerent commented 5 years ago

Yeah, that's probably the only thing we can do for now.