Adb pull database from android device

2.4k Views Asked by At

I know how to pull db from android device through adb but i have got few samsung device like S4 adb is not working. when I run

run-as packagename

It says package does not exist and it works in other devices. Any idea why it is happening like that??

1

There are 1 best solutions below

1
On

You can also get the db file from Eclipse/studio

  • Open DDMS ==> File explorer tab
  • Move to /data/data/your packagename/databases
  • Select the required .db file and press pull button. (You will find it on top right corner of file explored) and save the file at required location

(OR)

Go to command prompt

c:> adb pull /data/data/your packagename/databases/dbfilename.db  savefilelocation(ex: /username/Desktop/x.db)