標籤:
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.
sumount -o remount,rw /systemln -s /data/data/com.keramidas.TitaniumBackup/files/sqlite3 /system/xbin/sqlite3mount -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.
如何設定Android手機的sqlite3命令環境 TitaniumBackup