一,
创建一个和真机sdk版本相同的模拟器。(注意:如果sqlite3版本不一致会出现错误)
CANNOT LINK EXECUTABLE: cannot locate symbol "sqlite3_enable_load_extension" referenced by "sqlite3"...
adb pull /system/xbin/sqlite3 e:/
二,
关闭模拟器,连接真机。
adb push sqlite3 /sdcard/
三,
将系统挂载为可写
adb shell su mount -o remount,rw /system
四,
移动sqlite3到bin目录
cat /sdcard/sqlite3 > /system/bin/sqlite3 chmod 4755 /system/bin/sqlite3
关闭系统可写权限
mount -o remount,ro /system
六,
验证
输入sqlite3
系统显示
sqlite version 3.7.11 2012-03-20 11:35:50成功!