Skip to content

feat(startup): recover literal apk entrypoint metadata - #49

Merged
caverav merged 2 commits into
mainfrom
feat/startup-entrypoint-recovery
Mar 13, 2026
Merged

caverav merged 2 commits into
mainfrom
feat/startup-entrypoint-recovery

Conversation

@caverav

@caverav caverav commented Mar 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • recover literal APK-side Dart entrypoint metadata from DartEntrypoint.<init>, DartExecutor.executeDartEntrypoint, and FlutterJNI.runBundleAndSnapshotFromLibrary
  • extend android_startup.dart_entrypoints with function_name, library_uri, and app_bundle_path when those values are directly visible in bytecode
  • keep the recovery conservative by limiting it to same-method const-string plus simple move-object propagation

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-round3-smoke --analysis-profile light --with-apk-startup-analysis --max-functions 1 --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-round3-smoke --analysis-profile light --with-apk-startup-analysis --max-functions 1 --min-disassembly-ratio 0 --max-indirect-call-ratio 1 --max-unresolved-cf 999 --max-placeholder-ifs 999

Notes

  • LocalSend and Spotube now show dart_entrypoint_execute startup evidence through FlutterJNI.runBundleAndSnapshotFromLibrary
  • those APKs still do not expose entrypoint strings as direct same-method literals, so android_startup.dart_entrypoints remains empty instead of fabricating values

@caverav
caverav merged commit bc74cf2 into main Mar 13, 2026
2 checks passed
@caverav
caverav deleted the feat/startup-entrypoint-recovery 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