fix(mobile): a manifest rule counts only on an AndroidManifest.xml #824

Merged
sharang merged 1 commits from fix/mobsfscan-manifest-rules into main 2026-11-04 08:28:15 +00:00
Owner

Part of #573. #821 fixes the other nightly causes.

Why

On nowinandroid, the nightly reported mobsfscan:android_manifest_missing_explicit_allow_backup on spotless/copyright.xml:1 (runs 9412 and 9664). It came next to the same finding on the real AndroidManifest.xml, which the baseline already holds. Earlier runs with the same agent image did not report it, so it is nondeterministic on mobsfscan's side, possibly from the thread mode we run it in. Either way, a manifest rule cannot apply to a file that is not a manifest.

What

Matches of mobsfscan's AndroidManifest rules (android_manifest_*, android_task_hijacking*) on any file not named AndroidManifest.xml are dropped when the report is read. Code rules are unchanged.

Tests

  • New unit test a_manifest_rule_counts_only_on_a_manifest: the rule mapping, plus a report with the stray copyright.xml match, from which only the manifest finding remains.
  • CI only.

🤖 Generated with Claude Code

Part of #573. #821 fixes the other nightly causes. ## Why On nowinandroid, the nightly reported `mobsfscan:android_manifest_missing_explicit_allow_backup` on `spotless/copyright.xml:1` (runs 9412 and 9664). It came next to the same finding on the real `AndroidManifest.xml`, which the baseline already holds. Earlier runs with the same agent image did not report it, so it is nondeterministic on mobsfscan's side, possibly from the thread mode we run it in. Either way, a manifest rule cannot apply to a file that is not a manifest. ## What Matches of mobsfscan's AndroidManifest rules (`android_manifest_*`, `android_task_hijacking*`) on any file not named `AndroidManifest.xml` are dropped when the report is read. Code rules are unchanged. ## Tests - New unit test `a_manifest_rule_counts_only_on_a_manifest`: the rule mapping, plus a report with the stray `copyright.xml` match, from which only the manifest finding remains. - CI only. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sharang added 1 commit 2026-11-04 08:09:18 +00:00
fix(mobile): a manifest rule counts only on an AndroidManifest.xml
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m9s
CI / Check (pull_request) Successful in 18m22s
cccd66116b
mobsfscan reported android_manifest_missing_explicit_allow_backup on
nowinandroid's spotless/copyright.xml:1, next to the same finding on the
real manifest, in some nightly runs and not in others with the same
image (#573). Matches of the AndroidManifest rules (android_manifest_*,
android_task_hijacking*) on any other file are dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang merged commit 5b0bf08478 into main 2026-11-04 08:28:15 +00:00
Sign in to join this conversation.