如何設定Android手機的sqlite3命令環境 TitaniumBackup

來源:互聯網
上載者:User

標籤:

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.