[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)


http://www.yunqa.de/delphi/doku.php/products/sqlitespy/index

zip file download

Reference URL


https://stackoverflow.com/questions/11598152/how-do-i-pull-the-sqlite-database-from-the-android-device

Previous post

Next post