我想查看数据库的内容。 是否有chrome SQLite扩展,我可以使用它来查看数据库的内容。 我这样做是为了确保当应用程序通过弧焊机在我的客户的Chrome浏览器上运行时,数据不会受到损害。 我的理解是,由于文件系统是虚拟的并且应用程序是沙盒的,因此不应该有办法查看数据库的内容。
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.
最满意答案
编辑:是的,据我所知(刚刚测试过),您只能在VM或真实设备上运行时调试/监控(使用DDMS)您的应用程序。
那么什么有效(没有DDMS):
打开JavaScript控制台(chrome:// inspect / #apps) Chrome中的plugin.shell('adbd') 终端中的adb pull /data/data/your.package.name/databases/name.db旧答案(使用DDMS):
如果仅获取数据快照就足够了,您可以使用DDMS。 您可以直接从控制台运行
./your-sdk-root/tools/ddms 选择正在运行的设备或VM 打开Device -> File Explorer 您可以从data/data/your.package.name/databases/name.db拉动DB后,您可以使用sqlite3命令或任何第三方工具(如https://github.com/sqlitebrowser/sqlitebrowser)直接打开此文件
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.
So what works (without DDMS):
Open JavaScript console (chrome://inspect/#apps) plugin.shell('adbd') in Chrome adb pull /data/data/your.package.name/databases/name.db in TerminalOld Answer (with DDMS):
If it is sufficient to just get a snapshot of your data, you can use DDMS. You can run in directly from console
./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.dbAfter pulling the DB you can open this file directly with sqlite3 command or any 3rd-party tool like https://github.com/sqlitebrowser/sqlitebrowser
更多推荐
发布评论