I would like to view the contents of the databases. Is there a chrome SQLite extension which I can use to view the contents of the database. I am doing this to ensure there is not compromise of data when the app runs on my clients' Chrome browser through arc welder. My understanding is that since the file system is virtual and the apps are sandboxed there shouldn't be a way to view the contents of the database.
我想查看数据库的内容。是否有chrome SQLite扩展,我可以使用它来查看数据库的内容。我这样做是为了确保当应用程序通过弧焊机在我的客户的Chrome浏览器上运行时,数据不会受到损害。我的理解是,由于文件系统是虚拟的并且应用程序是沙盒的,因此不应该有办法查看数据库的内容。
1 个解决方案
#1
0
EDIT: Yes, as far as I can see (just tested), you only can debug/monitor (with DDMS) your app while running on a VM or a real device.
编辑:是的,据我所知(刚刚测试过),您只能在VM或真实设备上运行时调试/监控(使用DDMS)您的应用程序。
So what works (without DDMS):
那么什么有效(没有DDMS):
- Open JavaScript console (chrome://inspect/#apps)
-
plugin.shell('adbd')
in Chrome -
adb pull /data/data/your.package.name/databases/name.db
in Terminal
打开JavaScript控制台(chrome:// inspect / #apps)
Chrome中的plugin.shell('adbd')
终端中的adb pull /data/data/your.package.name/databases/name.db
Old Answer (with DDMS):
旧答案(使用DDMS):
If it is sufficient to just get a snapshot of your data, you can use DDMS. You can run in directly from console
如果仅获取数据快照就足够了,您可以使用DDMS。您可以直接从控制台运行
./your-sdk-root/tools/ddms
- Select your running device or VM
- Open
Device -> File Explorer
- Your can pull the DB from
data/data/your.package.name/databases/name.db
选择正在运行的设备或VM
打开设备 - >文件资源管理器
您可以从data / data / your.package.name / databases / name.db中提取数据库
After pulling the DB you can open this file directly with sqlite3
command or any 3rd-party tool like https://github.com/sqlitebrowser/sqlitebrowser
拉动DB后,您可以使用sqlite3命令或任何第三方工具(如https://github.com/sqlitebrowser/sqlitebrowser)直接打开此文件
#1
0
EDIT: Yes, as far as I can see (just tested), you only can debug/monitor (with DDMS) your app while running on a VM or a real device.
编辑:是的,据我所知(刚刚测试过),您只能在VM或真实设备上运行时调试/监控(使用DDMS)您的应用程序。
So what works (without DDMS):
那么什么有效(没有DDMS):
- Open JavaScript console (chrome://inspect/#apps)
-
plugin.shell('adbd')
in Chrome -
adb pull /data/data/your.package.name/databases/name.db
in Terminal
打开JavaScript控制台(chrome:// inspect / #apps)
Chrome中的plugin.shell('adbd')
终端中的adb pull /data/data/your.package.name/databases/name.db
Old Answer (with DDMS):
旧答案(使用DDMS):
If it is sufficient to just get a snapshot of your data, you can use DDMS. You can run in directly from console
如果仅获取数据快照就足够了,您可以使用DDMS。您可以直接从控制台运行
./your-sdk-root/tools/ddms
- Select your running device or VM
- Open
Device -> File Explorer
- Your can pull the DB from
data/data/your.package.name/databases/name.db
选择正在运行的设备或VM
打开设备 - >文件资源管理器
您可以从data / data / your.package.name / databases / name.db中提取数据库
After pulling the DB you can open this file directly with sqlite3
command or any 3rd-party tool like https://github.com/sqlitebrowser/sqlitebrowser
拉动DB后,您可以使用sqlite3命令或任何第三方工具(如https://github.com/sqlitebrowser/sqlitebrowser)直接打开此文件