2

I have a non-rooted Nexus 5 on Android 5.1. I've tried multiple solutions described here Android ADB access to application databases without root in order to pull a debugable app database from the file system, but to no avail. Has anybody managed to make it work on 5.1 ?

When trying to copy to sdcard, I get cp: /sdcard: Permission denied

When trying to pull the file directly, I get remote object '/data/data/packagename/databases/name.db' does not exist

Community
  • 1
  • 1
Bogdan Zurac
  • 6,348
  • 11
  • 48
  • 96
  • It is now that you've updated your answer in that question thread. Going to copy-paste your updated answer here for posterity. – Bogdan Zurac Aug 10 '15 at 10:56

1 Answers1

3

This question has been successfully answered by Alex P here - android adb, retrieve database using run-as

Here's a quick look at the answer:

the command for Android 5.0+ to save /data/data/package.name/databases/file would be:

adb exec-out run-as package.name cat databases/file > file
Community
  • 1
  • 1
Bogdan Zurac
  • 6,348
  • 11
  • 48
  • 96