Skip to content Skip to sidebar Skip to footer

Copy Sqlite Db File From Android Terminal To Windows Os

I want to copy the sqlite database from data/data/[package name]/databases/ to Windows Operating system. Currently, I am inside Android Terminal shell of Android studio and my curr

Solution 1:

Since your device is not rooted, you cannot do this from outside of the application. If it's your application, you can add a temporary routine into the application to copy the database to public storage, then use adb or MTP to copy the file to your Windows computer.

Or, you can just root your device.

Solution 2:

See below attached image. * To pull any file(note here you can pull only file,not folder). -> As you can see just select your device from Device tab (On left). -> Then Goto File Explorer tab and find path of your database.

As in image you can see I have open database directory of com.android.browser package application.

enter image description here

If you got some problem of finding your app package there, See another screen-shot below.And find app as directed there.

enter image description here

Solution 3:

Steps :

  1. Open Android Device Monitor.

enter image description here

  1. Make sure your device is online & if your device is online, you will see like this in left side (Available device). Choose your device & in the centre at File Explorer tab, you can see the db file exists. The path is data/data/Your-Application-package/databases/Your-db-file

enter image description here

  1. In the right top side, click Pull once you selected your db file and save it with extension .sqlite.

Post a Comment for "Copy Sqlite Db File From Android Terminal To Windows Os"