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.
If you got some problem of finding your app package there, See another screen-shot below.And find app as directed there.
Solution 3:
Steps :
- Open Android Device Monitor.
- 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 isdata/data/Your-Application-package/databases/Your-db-file
- 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"