Can anyone access what is inside Assests folder?

廉价感情. 提交于 2019-12-12 02:08:19

问题


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:

  1. Include the DB file into the assest folder and use it.
  2. 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:

  1. can anyone retrieve the DB data from the .apk file or from anywhere else ?
  2. 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.


回答1:


Yes, If you have a .db file or any other file in your asset directory of .apk file then anyone can access 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.



来源:https://stackoverflow.com/questions/7816792/can-anyone-access-what-is-inside-assests-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!