问题
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.
回答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