How can I extract the database of an application from an android device through an adb shell command?
Databases are stored in files, mostly on internal storage, in App's data directory like :
/data/data/com.example.myapp/mydb
so you can do
adb pull /data/data/com.example.myapp/mydb
Then you can use some software to open that file, and work with data base. To place it back:
adb push <new file> /data/data/com.example.myapp/mydb