How do I pull the sqlite database from the android device?

Viewed 47510

How do I pull the sqlite database from the android device like emulator?

10 Answers

You can use Android Device Monitor to pull it. Go to Tools -> Android -> Android Device Monitor

  1. Select your device from the left list.
  2. Select FileExplorer tab
  3. Expand data-> data -> "yourpackageName" -> databases
  4. Select your databaseFile and on the top right click on this icon save icon pull a file form a device.
  5. Save it on your desk then use this tool to open it: http://sqlitebrowser.org/

You can skip all those middle stages with one command.

In your PC shell run:

adb -d shell 'run-as <package_name> cat /data/data/<package_name>/databases/<db_name>' > <local_file_name>
Related