This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

pulling a file from application user directory

Hello forum,

Am trying to copy a file that got created under /data/user/0/com.benchmark.app/files/ directory. Have tried the following methods, but no luck

Method1: Using adb pull

adb pull /data/user/0/com.benchmark.app/files/test1.bin
Permission denied

Method2: Using run-as to copy to /data/local/tmp or other directory

adb shell;

run-as com.benchmark.app cp /data/user/0/com.benchmark.app/files/test1.bin  /data/local/tmp/

cp: /data/local/tmp/test1.bin: Permission denied

Is there any other alternate options to get this file without rooting the device.

Thank you,

rchakena