You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ "$OSTYPE"=="linux-gnu" ]];then
slitebrowser ~/Temp/${DB}elif [[ "$OSTYPE"=="darwin"* ]];then
open -a sqlitebrowser ~/Temp/${DB}elseprintf"Unknown os type : $OSTYPE"fi
本文旨在抛出如题问题,并提供Feeder项目中的解决方案,希望大家一起讨论一起提升。
效果
在终端输入命令
![image](https://github.com/zhangsr/Image/blob/master/Screen%20Shot%202015-11-26%20at%2018.58.09.png?raw=true)
弹出数据库浏览的可视化界面:
![image](https://github.com/zhangsr/Image/blob/master/Screen%20Shot%202015-11-26%20at%2018.59.10.png?raw=true)
原理
通过adb将app对应的数据库文件拷贝到pc目录,然后调用pc上的数据库浏览软件打开。
实现
1 定义变量
2 权限更改,拷贝文件到外部方便读取的目录,如/sdcard/
3 清除旧数据库文件,将当前新的数据库文件从Android设备拉取到pc目录,这里放在~/Temp/下
4 根据不同的操作系统,选择不同的数据库浏览软件打开
源码
完整脚本源码:inspect_db.sh
如果拉取了Feeder项目,也可以编译运行 Feeder app 到 Android 设备中,像效果图那样执行脚本,数据库界面就出来了。
The text was updated successfully, but these errors were encountered: