小米、MIUI、sqlite3: not found--miui安装sqlite3

时间:2024-03-30 22:05:19

以下为miui安装sqlite3的教程:

1.从AVD中将sqlite3导入到PC的D:\android目录下(AVD的版本需要和手机操作系统的版本相同)。

#adb pull system/xbin/sqlite3 D:\android

2.将D:\android\sqlite3复制到sd卡中。

3.打开手机,关闭USB数据存储(如果不关闭USB数据存储,则在命令行下无法访问到SD卡中的数据)。

4.将/system处于挂载状态,使可读写。

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

5.将sd卡的sqlite3拷贝到system/xbin下。

#adb shell
#su
#cat /mnt/sdcard/sqlite3 > /system/xbin/sqlite3

6.给sqlite赋予权限。

#adb shell
#su
#cd system/xbin
#chmod 4755 sqlite3

7.验证是否成功。

shell@android:/system/xbin # sqlite3
sqlite3
SQLite version 3.7.11 2012-03-20 11:35:50
Enter ".help" for instructions
Enter SQL statements terminated with a ";"

参考网址:

http://whutec.sinaapp.com/2012/12/android-install-sqlite3/

------------------------------------------------------------------------------------------------------

C:\Users\Jason>adb devices
List of devices attached
217f1db5 device
emulator-5554 device

adb -s emulator-5554 shell