Reputation: 790
I need to access the file contents on my Android Emulator. Whenever I run the DDMS it doesn't show any contents. I already tried:
1) Restarting ADB (adb kill and start) 2) Running the command as an Admin.
Upvotes: 2
Views: 3110
Reputation: 153
I have the same problem I change my emulator from api 24 to api 23 and then its work.
In fact i add new emulator and change my emulator to api 23 and its work.
Upvotes: 3
Reputation: 118
In terminal you can use:
adb -d shell "run-as com.yourpackage cat /data/data/com.yourpackage/databases/dbname.sqlite > /sdcard/dbname.sqlite"
to extract your database to sdcard folder
Upvotes: 1