Static vs Dynamic Analysis: What Your Android Security Scan Actually Does
Two complementary methods that together give you a fuller picture — one examines what the app contains, the other observes what it does.
The core difference
Static analysis examines an Android app package without running it. Dynamic analysis observes the app while it runs on a device. Both look for security problems, but they look in different places and produce different kinds of evidence.
Neither method is complete on its own. Static analysis can tell you what the app is configured to allow; dynamic testing tells you what the app actually does. The most useful security assessments use both and are honest about where coverage ends.
Static analysis: what it examines
Static analysis starts by unpacking the APK. The process inspects several layers of the app:
- The manifest. Which activities, services and content providers are exported? Which permissions does the app request? Exported components that bypass authentication, or dangerous permissions the app does not need, are worth investigating.
- Network security configuration. Does the app allow cleartext HTTP traffic? Which certificate authorities does it trust? A permissive configuration is a signal — it shows what the app allows, not necessarily what it does.
- Compiled code. Static analysis tools like jadx decompile the app and search for patterns: hardcoded API keys or credentials, use of deprecated cryptographic algorithms, insecure random number generation, logging that may expose sensitive data.
- Third-party libraries. Which dependencies does the app bundle? Known-vulnerable library versions can introduce risk regardless of how carefully the app's own code is written.
Static analysis does not require a device, an account or an authorized runtime session. It can start as soon as you have the app package, making it a practical first step for any assessment.
What it cannot tell you. Static analysis observes what an app contains and what it is configured to permit. It cannot confirm that a vulnerable code path is actually reachable during normal use, that a permissive configuration is ever exercised, or that sensitive data you can see in decompiled code actually reaches a network connection. Those questions need dynamic testing.
Dynamic analysis: what it observes
Dynamic analysis requires a compatible device — physical or emulated — with the app installed, an authorized scope and active test execution across the workflows you want to cover. The app runs; the testing infrastructure observes.
- Network traffic. A proxy like mitmproxy captures the app's actual network communication during testing. This confirms whether cleartext traffic occurs, which endpoints the app calls, what data it sends and whether TLS is properly validated.
- Authentication behavior. Does the session expire correctly? Can authentication steps be skipped? Dynamic testing lets you exercise auth flows directly and observe whether the app enforces its own security policies.
- Runtime data handling. Instrumentation tools like Frida can inspect how the app handles data while it runs: what gets logged, what stays in memory, how cryptographic operations are performed in practice.
- UI and workflow coverage. An agent-assisted test can navigate the app's interface, exercise workflows and observe the security-relevant behavior those journeys trigger.
What it cannot tell you. Dynamic testing only covers the paths you exercise during the test session. If a workflow was not reachable — because it required a feature flag, a specific account type or an external system — it was not tested. Those gaps belong in the report.
Why you need both
Consider a common scenario: static analysis flags a network security configuration that allows cleartext HTTP. That is a finding worth investigating. Dynamic testing then captures the app's actual network traffic during an authorized session. If no cleartext requests appear for the workflows exercised, the configuration is permissive but the behavior was not observed. If cleartext requests do appear — especially with sensitive data — that is a confirmed finding, not a signal.
The same principle applies in reverse. Dynamic testing might capture an unexpected API call that static analysis did not flag, because the endpoint was assembled at runtime from values not visible in the decompiled code.
Good security reports distinguish between static signals, candidates that need verification, and confirmed findings backed by observed evidence. That distinction is only possible when both methods are used and their results are compared.
Coverage gaps are findings too
If a workflow required authentication you could not supply, a device that was unavailable or a scope that excluded certain tests, that is a coverage gap. A gap is not a clean result — it is an unknown. Reporting it honestly lets the team decide whether to extend the scope, obtain the missing access or accept the risk.
AppBreach runs static analysis, authorized dynamic testing and agent-assisted exploration in a single pipeline; runtime stages depend on the approved scope and an available device. The report shows what each stage found, what ran and where coverage was limited. For a side-by-side table of prerequisites and limits, see the static vs dynamic testing guide. Request access to discuss an assessment of your Android app.