adb shell 命令查看android 应用程序 创建的 sqlite 数据库

来源:互联网 发布:淘宝怎么淘到好衣服 编辑:程序博客网 时间:2024/04/29 08:46

通过 adb shell 可以执行sqlite3 命令,android 通过 sqlite3 tool 提供此功能,比如 .dump 输出数据库表的内容,.schema输出 某个表的存储过程等。

例子:

adb connect remote_ip:5555

 adb shell

//打开应用程序创建的数据库

sqlite3  /data/data/packetge_name/databases/test.db

SQLite version 3.3.12
Enter ".help" for instructions
.... enter commands, then quit...
sqlite> .exit