[Android] Extracting SQLite files with ADB

Writing time : 2017-08-10 21:25:57

Extracting SQLite files with ADB

Extract SQLite files

If you want to extract and check the SQLite file used in Android App, use the command below.

adb shell "run-as package-name chmod 666 /data/data/package-name/databases/filename"  
adb exec-out run-as package-name cat databases/filename > save_filename  
adb shell "run-as package-name chmod 600 /data/data/package-name/databases/filename"  

Enter the package name in pakcage-name
Enter the sqlite file name in filename
Enter the file name to be saved in save_filename

SQLite GUI Tool recommended (SQLiteSpy)


zip file download

Reference URL


Previous post

Next post