Skip to content

Instantly share code, notes, and snippets.

@mistrydarshan99
Created June 23, 2015 09:52
Show Gist options
  • Save mistrydarshan99/c3bcf90c3c67a254a26f to your computer and use it in GitHub Desktop.
Save mistrydarshan99/c3bcf90c3c67a254a26f to your computer and use it in GitHub Desktop.
Android get Database file from internal device memory
/*** Dababase device ma thi bahar kadhva *****/
http://stackoverflow.com/questions/19194576/how-to-view-the-sqlite-database-in-device-android
1.)View Database filename :
=============================
adb -d shell "run-as com.yourpackge.name ls /data/data/com.yourpackge.name/databases/"
2.)Copy Database file to SDCard :
=================================
adb -d shell "run-as com.yourpackge.name cat /data/data/com.yourpackge.name/databases/filename.sqlite > /sdcard/filename.sqlite"
3.)Pull Database file to PC :
==============================
adb pull /sdcard/filename.sqlite
To get file from device and save in particualr location in pc
==============================================================
adb pull /data/data/net.tutorial.crypto/files/classified_file.txt C:\Users\Pavel\Downloads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment