android開發中遇到sqlite3 not found

來源:互聯網
上載者:User

今天發現小米中竟然沒有sqlite3, 敲入命令竟然是sqlite3:not found錯誤

解決方案:

1)掛載 /system目錄為可讀寫

>adb shell

# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

2)把sqlite3 push到裝置中

> adb push sqlite3 /system/xbin

3)修改許可權

# chomd 4755 /system/xbin/sqlite3

// 非常非常重要的測試 試著執行sqlite3看是否能執行,如果不能執行則需要把sqlite3的依賴庫檔案再push到裝置中, 如果sqlite3可以正常執行則不用push libncurses.so(此庫檔案是從2.3.5中提取,不保證都能用,經測試4.0.3上可用.如果不肯用,大家方可自行建立虛擬機器,從虛擬機器中提取)

# sqlite3

> adb push libncurses.so /system/lib

4)還原 /system為唯讀

#mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system

 

注: 相關檔案在壓縮包中

下載:http://www.bkjia.com/uploadfile/2012/0410/20120410110318587.rar
 


 

have fun :)

 

摘自  單騎

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.