← All articlesMobile applications

Android security before release: the checks that matter

Before releasing an Android application, review its security. Vulnerabilities can expose confidential data, allow unauthorized access and cause other problems. This article covers the areas to check and the steps that help reduce risk.

Review network communication

Confirm that the application uses secure connections. Network Security Configuration defines certificate trust rules and whether unencrypted HTTP is permitted. HTTPS addresses found in APK strings do not establish that every request is secure: configuration and actual behavior also matter.

Do not disable TLS certificate validation in a production build. If you use certificate pinning, plan backup keys and an update process: a restrictive configuration can break connectivity when a certificate changes. Pinning alone does not replace other security controls.

Store data securely

Keep private data in the application’s designated internal storage. Do not put secrets in publicly accessible files, logs, collected crash reports or backups without reviewing their policies. This helps prevent confidential information from leaking.

Analyze the actual APK

Static APK analysis maps potential problems and dependencies. Dynamic testing on a dedicated device checks which requests actually run and how the application behaves. A URL found through static analysis is not proof that the application calls it.

Before analysis, record the package name, versionName, versionCode, source and file hash. Otherwise, a team can fix a problem in one build and release another. Tie every result to a specific artifact from your CI or official delivery channel.

Check permissions and components

Check whether permissions and exported components are necessary for the application’s real features. An exported component can receive calls from other applications; understand which data and operations it exposes and which restrictions it applies. The presence of that setting alone does not prove a vulnerability.

Training example: data in a diagnostic log

Consider a fictional example: the delivery app “Route” continues to write a test address and test token into a diagnostic log after switching from debug to release. Before launch, the team runs its own test scenario, removes those values and repeats the test. The example illustrates why a release build needs careful review.

A practical security review plan

Record the package name, versionName/versionCode, actual build hash and source. Obtain the APK from your own CI or an official channel. Keep a table of findings, where each was observed, its risk and the remediation task. Prioritize privileged keys, private data and server-side access failures before reviewing configuration and permissions.

Remember the backend API

The application is a server client. A hidden button or a purchase check on the device does not protect a server operation. The server must independently verify the user, object permissions and the rules for granting access. Do not embed a privileged server key in an APK: a build can be inspected. A public SDK identifier is not necessarily a secret; assess its actual permissions and restrictions.

For the web part of your product, you can start with a free website security audit. Assessing the actual Android build and testing behavior on a device are separate tasks; this guide helps your team prepare for them.

Sources and documentation

  1. Android Developers: Improve your app’s security
  2. Android Developers: Network security configuration
  3. OWASP: Using the Mobile Application Security Verification Standard
CheckMyApp

Check your application’s security.

Enter your web application address and email. Get a free preliminary report and choose the depth of analysis.

Check for free