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.binPermission 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
adb exec-out run-as <package> tar -c <dir> > local.tar
HI Pete,
I was trying this out and was able to successfully get the local.tar on to host. But tar -xvf command is not able to untar it neither on host nor on device.
Any suggestions on how to untar it?