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

以下为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

转载于:https://www.cnblogs.com/chinahnzhou/p/miui_install_sqlite3.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值