Skip to content
vetkitChecksChangelogDocumentation

vetkit.android.manifest.test-only

The Android manifest sets android:testOnly="true", a flag meant only for test builds that should not be part of a shipped configuration.

Last updated:

Suite: Security

xml

The Android manifest sets android:testOnly="true", a flag meant only for test builds that should not be part of a shipped configuration.

Category: SECURITY · Engine rule severity: INFO

How to fix it

Remove android:testOnly from the main manifest.

Rule pattern example

The engine’s matching pattern, not a confirmed exploit. Metavariables and ellipses describe matching syntax.

android:testOnly="true"

References

Source: packages/engine/rules/sast/mobile.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.