shell - Copy folder from Android app to local Windows directory -
i'm trying use android adb command prompt
copy folder inside app container local windows folder. device running android 5.1.1 , not rooted.
adb pull
or cp
aren't working. how can copy folder?
the following approaches aren't working:
approach 1
adb shell adb pull /data/data/droidsample.droidsample/files/metrolog/metrologs c:/temp/test
error: device not found
inside shell can't see adb pull
. see here.
approach 2
ddms can't access data
folder.
approach 3
adb shell run-as droidsample.droidsample cp /files/metrolog/metrologs/ c:/temp/test
cp: /files/metrolog/metrologs/: no such file or directory
approach 4
adb shell run-as droidsample.droidsample cp /data/data/droidsample.droidsample/files/metrolog/metrologs/ c:/temp/test
cp: /data/data/droidsample.droidsample/files/metrolog/metrologs directory (not copied).
this not working.
approach 5
adb shell run-as droidsample.droidsample chmod 777 /files/metrolog/metrologs exit exit adb pull /data/data/droidsample.droidsample/files/metrolog/metrologs c:/temp/test adb shell run-as droidsample.droidsample chmod 700 /files/metrolog/metrologs
remote object '/data/data/droidsample.droidsample/files/metrolog/metrologs' not exist
so this isn't working.
approach 6
adb shell mkdir /sdcard/tmp cp /data/data/droidsample.droidsample/files/metrolog/metrologs /sdcard/tmp
cp: /data/data/droidsample.droidsample/files/metrolog/metrologs: permission denied
this not working.
approach 7
the thing half work this
adb exec-out run-as droidsample.droidsample cat "files/metrolog/metrologs/log - 20160509.log" > c:/temp/test/test.log
but here don't original file , have know exact file name. additionally, loose line breaks , have each file. not want.
so i'm running out of ideas. how can access internal stored files , copy them over?
you're trying gain read access /data partition on actual android device. such thing not possible without root access, if app folder yours. reason permissions read /data partition not granted , cannot granted, unless you're using emulator. on emulator, default admin privileges developer, can access data partition read , write. on actual device cannot. not adb, not ddms.
so speaking, requires access files under /data not going work. whether sue cp command or pull command. moment kernel reads beginning of path starts /data/... says: oops, no can do.
Comments
Post a Comment