在android开发时,使用adb shell 进行sqlite调试,出现“sqlite3 not found”错误信息。原因是手机里面/system/xbin/目录下没有sqlite3。从模拟器中pull一个出来,再push到手机中。具体方法如下:
First lets mount $ adb shell$ su# mount -o remount,rw /system
in another terminal change directory (cd) to where $ ls
Now back to the other shell lets copy and change permissions of the binary # cat /sdcard/sqlite3 > /system/bin/sqlite3
Now lets mount back # mount -o remount,ro /system
And now we can use sqlite3 from shell: # sqlite3 /data/data/com.telly/databases/fun.db
You can always pull Start an emulator and then from a terminal $ adb pull /system/xbin/sqlite3
|
"sqlite3 not found"
最新推荐文章于 2016-05-06 14:10:32 发布