任何人都可以访问 Assets 文件夹中的内容吗?
我想为某公司开发一个应用程序。该应用程序主要是特定数据库中的搜索工具。
我有两种方法来开发此应用程序:
- 将 DB 文件包含到
assest
文件夹中并使用它。 - 使用 API 进行搜索。 (我的搜索工具有一个API。你可以使用浏览器搜索数据库)。
我更喜欢第一个选择。问题是我的客户希望未经授权的各方无法访问他们的数据库文件。他们对这个问题非常严肃。
如果我使用第一个选项开发应用程序:
- 任何人都可以从 .apk 文件或其他任何地方检索数据库数据吗?
- 如果我将 DB 文件放入
assest
文件夹中,它是否不安全?
如果答案是肯定的,那么我可以避免让最终用户使用互联网在我的工具中进行搜索吗?我可以避免使用选项 2 吗?即有没有安全的方法来包含数据库而不用担心我提到的安全问题?
提前致谢。
I want to develop an application for some company. The application is mainly a search tool in a specific database.
I have two ways to develop this application:
- Include the DB file into the
assest
folder and use it. - search using API. (My search tool has an API. And you can search the DB using the browser).
I prefer the first option. The problem is my customer want their DB files to not be accessible by unauthorized parties. They are very serious about this issue.
If I developed the app using the first option:
- can anyone retrieve the DB data from the .apk file or from anywhere else ?
- Is the DB file NOT secure if I put it into the
assest
folder ?
If the answers are YES, then can I avoid making end-user use the internet to search in my tool? Can I avoid using option 2? i.e. Is there any secure way to include the DB without worrying about the security issue I mentioned ?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,如果您的 .apk 文件的
资源目录
中有 .db 文件或任何其他文件,那么任何人都可以通过解压 .apk 文件来访问它
。但是,如果您询问其他应用程序,那么它不会访问您的应用程序的 .db 文件,该文件是您的包私有的。
Yes, If you have a .db file or any other file in your
asset directory
of .apk file then anyone canaccess it by unpacking the .apk file
.But If you ask about other application then its not access your application's .db file which is private to your package.