在adb shell下执行sqlite3访问数据库出现/system/bin/sh: sqlite3: not found
2012-04-12 10:36
579 查看
今天在adb shell下执行sqlite3访问数据库时出现/system/bin/sh: sqlite3: not found提示,原因是在/system/xbin目录下没有sqlite3文件,需要从外部把sqlite3文件push进来,可能还需要libncurses.so库文件。
首先,把sqlite3文件push到/system/xbin目录下,如果遇到如下提示,执行adb remount命令,然后再把sqlite3文件push到/system/xbin目录下:
执行结果为:
然后修改sqlite3文件的权限:
进入adb shell模式下,找到要打开的数据库文件,执行sqlite3命令,如果出现如下错误,则需要把libncurses.so 文件push到/system/lib目录下:
执行结果如下:
然后再执行sqlite3命令访问数据库,现在就可以对数据库进行查询了:
用到的资源
http://download.csdn.net/detail/ygc87/4219518
首先,把sqlite3文件push到/system/xbin目录下,如果遇到如下提示,执行adb remount命令,然后再把sqlite3文件push到/system/xbin目录下:
执行结果为:
然后修改sqlite3文件的权限:
进入adb shell模式下,找到要打开的数据库文件,执行sqlite3命令,如果出现如下错误,则需要把libncurses.so 文件push到/system/lib目录下:
执行结果如下:
然后再执行sqlite3命令访问数据库,现在就可以对数据库进行查询了:
用到的资源
http://download.csdn.net/detail/ygc87/4219518
相关文章推荐
- adb shell进入时执行的/system/bin/sh的原码
- 没有lib,导致执行命令时出现“/bin/sh: ./iwconfig: not found”
- Android—adb shell—/system/bin/sh: ./executer: No such file or directory
- 解决应用程序执行时出现“-/bin/sh: ./xxx: not found”
- Android 使用adb shell命令时出现sqlite3 : not found 问题 解决方法
- 在android系统命令行中执行arm linux程序,出现/system/bin/sh: .xxx No such file or directory问题
- Android 使用adb shell命令时出现sqlite3 : not found 问题 解决方法
- ansible执行shell模块和command模块报错| FAILED | rc=127 >> /bin/sh: lsof: command not found和| rc=2 >> [Errno 2] No such file or directory
- 用代码复制Android虚拟机里的文件遇到system/bin/sh: adb: not found&system/bin/sh: pull: not found
- 执行shell脚本出现bin/bash: bad interpreter: No such file or directory
- 71、shell中crontab中执行命令的特殊性,/bin/sh
- linux 用notepad++编写shell脚本出现/bin/sh^M: bad interpreter: 没有那个文件或目录l的解决方案
- Android手机Mac OSX下执行adb shell提示device not found解决方法
- adb,sqlite3访问真机数据库的解决方案
- 执行 shell 出现bin/bash: bad interpreter: No such file or directory
- 执行 adb shell 命令出现 ADB server didn't ACK 错误
- Ubuntu下安装PyQuery出现:ERROR: /bin/sh: 1: xslt-config: not found
- DOS命令下使用sqlite3 命令中文乱码的解决办法(用adb shell 查看出现中文乱码)
- 安卓root或adb下执行shell命令,滑动时出现断断续续,有时执行有时不执行,同一个点不重合的问题
- adb 使用sqlite3查看数据库时提示 sqlite3 not found