How impact-i/reflutter works
reFlutter reverse-engineers Flutter applications through engine replacement or runtime instrumentation. The main repack flow identifies an app’s snapshot hash, selects a matching engine, patches and repackages the app; parallel workflows provide Dart function dumps and Frida-based runtime SSL bypasses. The graph includes documented hash-index generation and dump-to-analysis capabilities. Some implementation details are unsampled, so uncertain links are omitted rather than inferred.
Main entry points: __init__.py Repack CLI · frida-dump.js Shorebird runtime dumper · frida-ssl.js Runtime SSL bypass · frida.js Function hook script
Components 16
Repack and patch
- Repack CLI
reflutter/__init__.py - Engine utilities
reflutter/utils.py - Snapshot indexes
enginehash.csv
Runtime instrumentation
- Runtime SSL bypass
frida-ssl.js - Function hook script
frida.js
Dart dump analysis
- Shorebird runtime dumper
scripts/frida-dump.js - Function JSONL dump
- Disassembly scripts
scripts/dump2disasm.py
Engine hash support
- Hash index generator
scripts/gen_enginehash.py - Snapshot hash tool
scripts/get_snapshot_hash.py - Engine commit lookup
scripts/get_flutter_engine.py
Other components
- App analyst
- Flutter app
- Patched app
- Intercepting proxy
- Frida runtime
Connections 19
- App analyst → Repack CLI: submits app
README.md - Repack CLI → Flutter app: reads package
README.md - Repack CLI → Engine utilities: uses utilities
reflutter/__init__.py - Repack CLI → Snapshot indexes: matches hash
README.md - Repack CLI → Patched app: repackages
README.md - Patched app → Intercepting proxy: routes traffic
README.md - App analyst → Runtime SSL bypass: attaches script
README.md - Runtime SSL bypass → Flutter app: patches verification
frida-ssl.js - App analyst → Frida runtime: starts session
README.md - Frida runtime → Function hook script: loads script
README.md - Function hook script → Flutter app: hooks offset
frida.js - Frida runtime → Shorebird runtime dumper: loads script
README.md - Shorebird runtime dumper → Flutter app: reads runtime objects
scripts/frida-dump.js - Shorebird runtime dumper → Function JSONL dump: writes JSONL
scripts/frida-dump.js - Patched app → Function JSONL dump: emits dump
README.md - App analyst → Disassembly scripts: converts dump
README.md - Function JSONL dump → Disassembly scripts: provides input
README.md - Snapshot hash tool → Engine utilities: uses ELF parser
scripts/get_snapshot_hash.py - Hash index generator → Snapshot indexes