How to protect data in SQLite database?

I want to make an sqlite driven database app on Android devices where should I place (securely) a 17+ Mb file so it is accessed only by the app and not by users?

  • I am trying to develop a (phone) hierarchical drilldown paid app (database book). The database is essential for the app, and is downloaded from the net. But I want it to be secure, because for example if I put the data to sdcard they might be accessible to everyone with an sdcard reader. What are my options here? I can estimate that the app might go someday (in the next 2 years) over 20/40mb or if I develop a tablet version I might add other features inside the database (bloating it more).

  • Answer:

    Hi You may want to encrypt the database, thats your best bet. Even , if the database is within the /data folder of the application , it can be accessed on rooted phones.

Khurram Samad at Quora Visit the source

Was this solution helpful to you?

Other answers

Android Comes up with SQLite database you find example and demo for better explaination on SQLite at http://www.pavanh.com/2013/11/sqlite-database-with-cursoradapter.html

Pavan Deshpande

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.