Chapter 5: Android Databases

One of the most basic questions about Android security and mobile security in general is, “What information should you store on a device, and where can you store it securely?” Ideally, you would not store or cache anything on the device. But if someone doesn’t have any mobile service—for example, when on an airplane without wi-fi—then you’re going to cause some frustration if this person can’t log into the app for a number of hours. In this chapter we’ll talk about where you can store data and how using the wrong permissions can allow other apps to read your data. Finally, we’ll explain how to write data securely to an SD card as well as a SQLite database.

Get Bulletproof Android™: Practical Advice for Building Secure Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.