пятница, 3 апреля 2015 г.

How to install sqlite on android via adb


1) Download binary
http://sqlite.ptsoft.org/sqlite3-3.7.16.bin

2) rename to sqlite3
3) open terminal

adb push sqlite3 /data/local/tmp/

adb shell
su
mount -o remount,rw /system
cat /data/local/tmp/sqlite3 > /system/bin/sqlite3
chmod 4755 /system/bin/sqlite3
mount -o remount,ro /system


* /data/local/tmp/   -- path can change, it works for me

Based on
http://stackoverflow.com/questions/3645319/why-do-i-get-a-sqlite3-not-found-error-on-a-rooted-nexus-one-when-i-try-to-op/5022363#5022363