1、在PC环境下启动一个模拟器(不是手机)
2、查看模拟器 /systen/xbin是否有sqlite3命令
adb shell
cd /system/xbin
ls
3、把模拟器 /system/xbin/sqlite3命令文件从模拟器拷到PC上
adb pull /system/xbin/sqlite3 e:/eclipse
4、关闭模拟器,把Android手机连接到PC
5、获取Android手机 /system 文件夹的读取权限
adb shell # mout -o remout, rw -t yaffs2 /dev/block/mtdblock3 /system(根据自己的设备网上很多人的设备是这个)
6、把PC上的e:/eclipse/sqlite3文件拷到Android手机的/system/xbin/目录下
adb push e:/sqlite3 /system/xbin
若是提示permission denial
adb shell
chmod 777 system/
cd system
chmod 777 xbin
然后执行上面的 push
若是还是不行就直接 到eclipse DDMS filter explore 下面 /system/xbin
把所用的数据直接从电脑上拖到 /system/xbin 下面
7、修改Android真机/system/xbin/sqlite3命令的权限
adb shell
chmod 4755 /system/xbin/sqlite3
然后输入sqlite3
进入到sqlite就可以了。
Titanium Backup installed, Set the variable
%SQLITE3 to "/data/data/com.keramidas.TitaniumBackup/files/sqlite3".
I actually copied the titanium backup sqlite3 binary to system/xbin and it has been working for me since.
A symlink is an alternative solution, if you want the binary in your PATH (/system/xbin) and your system-rom is nearly full.
For example there is only 200KB free space left in the /system of my Nexus 7 after installing Lollipop + SuperSu + Busybox.
su mount -o remount,rw /system ln -s /data/data/com.keramidas.TitaniumBackup/files/sqlite3 /system/xbin/sqlite3 mount -o remount,ro /system
Symlink has only 53 B and the binary has 300 KB.
Use the attached sqlite3...extract & copy it to the /system/xbin folder...give execute permissions [0755] and it should work
http://forum.xda-developers.com/attachment.php?attachmentid=2246063&d=1378751634
After copying file, you need to reboot.