Unable to use adb pull to retrieve application database file using adb pull

S Sumeet Singh 3 years 4 months ago
97 1 0

Hi,

I am trying to develop an application for Zebra TC56 Android devices. My app uses a couchbase on device database. Now for development purposes I need to be able to pull the database file off the device to my computer so that I can inspect the data in it.

My problem is using adb pull I get Permission denied errors.

What I have tried till now

adb shell run-as pull /data/data//files/myDb.cblite2

This ends up giving nothing or permission denied error.

Is there a specific way to access application files for development purposes on Zebra devices without rooting into the device ?

Please Register or Login to post a reply

1 Replies

D Dmitry Prokhorov

Hello Sumeet,

Could you please to try a following command on your device:
adb exec-out run-as cat files/myDb.cblite2 > myDb.cblite2

Dmitry Prokhorov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies

CONTACT
Can’t find what you’re looking for?