Skip to content

feat(startup): seed bootflow from apk startup evidence - #48

Merged
caverav merged 2 commits into
mainfrom
feat/apk-startup-bootflow-hints
Mar 13, 2026
Merged

caverav merged 2 commits into
mainfrom
feat/apk-startup-bootflow-hints

Conversation

@caverav

@caverav caverav commented Mar 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • translate APK startup evidence into synthetic bootflow hints and merge them into the in-memory model
  • tag bootflow discovery by source (adapter, manifest, apk_startup) and keep startup-derived entries visible even when Dart target_va is still unknown
  • share synthetic-hint plumbing across manifest and APK-startup paths, plus document the new reporting behavior

Validation

  • nix develop -c ./scripts/ci-check.sh
  • target/debug/flutterdec decompile /tmp/flutterdec-apk-test/LocalSend-1.17.0-android-arm64v8.apk -o /tmp/localsend-bootflow-smoke --analysis-profile light --with-apk-startup-analysis --max-functions 5 --min-disassembly-ratio 0 --max-indirect-call-ratio 1 --max-unresolved-cf 999 --max-placeholder-ifs 999
  • target/debug/flutterdec decompile /tmp/flutterdec-apk-test/Spotube-android-all-arch.apk -o /tmp/spotube-bootflow-smoke --analysis-profile light --with-apk-startup-analysis --max-functions 5 --min-disassembly-ratio 0 --max-indirect-call-ratio 1 --max-unresolved-cf 999 --max-placeholder-ifs 999

Real APK result

  • LocalSend now emits report.json.bootflow_discovery entries with source = "apk_startup" (bootstrap)
  • Spotube now emits report.json.bootflow_discovery entries with source = "apk_startup" (activity/bootstrap)
  • startup-derived entries currently use target_va: null when the Android startup path is known but the Dart-side function still is not mapped

@caverav
caverav merged commit 0b51bec into main Mar 13, 2026
2 checks passed
@caverav
caverav deleted the feat/apk-startup-bootflow-hints branch November 3, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant