Android 使用adb shell命令时出现sqlite3 : not found 问题 解决方法
2014-06-03 10:43
976 查看
在Android开发中,使用 adb shell 下的 sqlite3 命令来查看操作SQLite数据库时,遇到了 [ sqlite3 : not found] 问题。
网上找了下问题的原因——模拟器或真机中的 /system/xbin 目录下少了sqlite3 这个文件。
解决方法,步骤如下:
(1)让/system文件夹可读写
#adb shell
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
(2)导入所需的sqlite3文件到/system/xbin目录。
(可以新建个模拟器,从/system/xbin中导出sqlite3,即可得到sqlite3文件;或者从另外一个有sqlite3文件的机器中导出获得)
# adb push sqlite3 /system/xbin
(3)修改 sqlite3 权限
# chmod 4755 /system/xbin/sqlite3
(4)设置 /system为只读文件
# mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
(5)至此,就可以使用 sqlite3 命令来操作 SQLite 数据库了。
网上找了下问题的原因——模拟器或真机中的 /system/xbin 目录下少了sqlite3 这个文件。
解决方法,步骤如下:
(1)让/system文件夹可读写
#adb shell
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
(2)导入所需的sqlite3文件到/system/xbin目录。
(可以新建个模拟器,从/system/xbin中导出sqlite3,即可得到sqlite3文件;或者从另外一个有sqlite3文件的机器中导出获得)
# adb push sqlite3 /system/xbin
(3)修改 sqlite3 权限
# chmod 4755 /system/xbin/sqlite3
(4)设置 /system为只读文件
# mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
(5)至此,就可以使用 sqlite3 命令来操作 SQLite 数据库了。
相关文章推荐
- Android 使用adb shell命令时出现sqlite3 : not found 问题 解决方法
- DOS命令下使用sqlite3 命令中文乱码的解决办法(用adb shell 查看出现中文乱码)
- 【Android开发】使用adb命令发现手机中sqlite3 not found的解决办法
- 使用adb shell 出现bash: adb: command not found...问题的解决方法
- Android开发中使用adb shell命令出现sqlite3 : not found 问题
- Android开发中使用adb shell命令出现sqlite3 : not found 问题
- android 2.2及以上使用adb出现“sqlite3:not found”解决办法
- [问题]mac执行adb命令出现adb: command not found解决方法
- Android开发中使用adb shell命令出现sqlite3 : not found 问题
- Android开发中使用adb shell命令出现sqlite3 : not found 问题
- Android开发中使用adb shell命令出现sqlite3 : not found 问题
- Android开发中使用adb shell命令出现sqlite3 : not found 问题
- 命令行下使用javah命令生成.h文件,出现“错误: 无法访问android.app.Activity 找不到android.app.Activity的类文件”的解决方法
- 最新Android 出现Please ensure that adb is correctly located at问题的解决方法
- 执行命令mm出错以及运行adb shell出现insufficient permissions for device错误的解决方法
- 命令行下使用javah命令生成.h文件,出现“错误: 无法访问android.app.Activity 找不到android.app.Activity的类文件”的解决方法
- Ubuntu使用JDK命令出现 程序 XXXX已包含在下列软件包中 问题的解决方法
- 最新Android 出现Please ensure that adb is correctly located at问题的解决方法
- adb连接Android 4.2.2版本手机时出现offline或unauthorized问题的解决方法
- 最新Android 出现Please ensure that adb is correctly located at问题的解决方法