flutter sqlite database storage location

I found the solution that works on Android. It is possible to extract the database file by using adb.

  1. Connect the phone via USB
  2. use the adb shell
  3. type run-as *mypackage*.*app-name*
  4. you are in the /data/data/*mypackage*.*app-name* folder
  5. cd into the databases folder
  6. copy the database file (i.e. cp doggie_database.db /storage/self/primary/Documents)

Use these 2 articles as reference:



CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top