Android app security checklist before you publish on Google Play
An Android app runs on a phone you do not control, and anyone can download and take it apart. Assume that, and use this checklist before you publish.
1. Data stored on the phone
Files and settings on a phone can be read on a rooted device or from a backup.
- Do not store passwords, tokens or personal data in plain text.
- Use the Android Keystore and encrypted storage for anything sensitive.
- Review whether app backup should be allowed for your data.
2. Keys and secrets inside the app
Anything inside the app file can be found by decompiling it.
- Do not hard-code API keys, passwords or private keys.
- Keep real secrets on your server and let the app ask the server.
- Decompile your own release build with a tool such as JADX and search it for strings that look like keys.
3. Network traffic
Data should travel only over encrypted connections.
- Allow HTTPS only and switch off clear-text traffic.
- Check that the app rejects invalid certificates.
- For high-risk apps, consider certificate pinning.
4. Permissions
Every permission is a risk and a question from your users.
- Ask only for permissions you really need.
- Ask at the moment the feature is used, and explain why.
- Remove permissions that came from old libraries.
5. Exported components and links
Screens and services that are open to other apps can be abused.
- Mark components as not exported unless another app genuinely needs them.
- Validate everything that arrives through deep links and intents.
- Do not trust data sent in from other apps.
6. Web views
A web view is a browser inside your app.
- Turn on JavaScript only when needed and only for trusted pages.
- Do not allow file access from web content.
- Load only content you control.
7. Logs and debug code
Logs often leak more than you expect.
- Remove debug logging from release builds.
- Never log tokens, passwords or personal details.
- Make sure the release build is not marked as debuggable.
8. Release build and signing
The version you publish should be the hardened one.
- Use code shrinking and obfuscation for release builds.
- Use Google Play App Signing and protect your upload key.
- Keep the signing key and the keystore out of the repository.
9. Login and payments
Do not put trust in the app.
- Confirm purchases on your server with Google Play's verification, not only on the phone.
- Make the server enforce every rule, because the app can be modified.
- Use short-lived tokens and allow them to be revoked.
10. The backend the app talks to
Most real damage comes through the API, not the app.
- Test the API for access-control problems and exposed data.
- Apply rate limits and monitoring.
- Treat the app as an untrusted client.
11. Updates and support
Security is not a one-time job.
- Set a sensible minimum Android version.
- Keep libraries up to date.
- Have a way to force an update if a serious bug is found.
Want us to test it for you?
We test web apps, APIs and mobile apps with your written permission, and send a plain-language report with fixes.
Request a security test