如何通过镀铬弧焊机部署Android应用程序的数据库?(How do I view the database of an android app when deployed through chrom

编程入门 行业动态 更新时间:2024-10-18 14:24:22
如何通过镀铬弧焊机部署Android应用程序的数据库?(How do I view the database of an android app when deployed through chrome arc welder?)

我想查看数据库的内容。 是否有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 Terminal

Old 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.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

更多推荐

本文发布于:2023-07-25 05:46:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1256821.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:镀铬   应用程序   焊机   数据库   view

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!