REA Kotlin/Native notes (unofficial)
Kotlin splits into at least two REA-relevant shapes: Android Kotlin on DEX and Kotlin/Native machine code. Mixing the lanes wastes time.
Mental model
| Artifact | REA-oriented lane | RepoRead deep-dive |
|---|---|---|
| APK / DEX Kotlin | Android package + JADX | rea-android-jadx |
| Kotlin/Native .kexe / shared lib | open_binary + Hopper/Ghidra/IDA | this page |
| Stripped native image | sparse symbols; layout/exports maybe | rea-strip-symbols |
Minimal path (Kotlin/Native)
- Confirm the file is actually a native image (not a mislabeled APK).
open_binarywith an absolute path on an authorized host.- Use provider pseudocode/assembly tools; treat names as inferences when stripped.
- Optional: offline ELF layout helpers on Linux images when configured (rea-binary-layout).
Scope we will not cover
- No DRM / license-check bypass for commercial Kotlin/Native apps.
- No inventing a JADX-equivalent for Kotlin/Native IR.
- No store scraping.
RepoRead is unofficial. Prefer the Android skill reference for DEX/Kotlin-on-Android, and native provider guides for Kotlin/Native binaries.
FAQ
Does REA decompile Kotlin/Native like JADX decompiles Android Kotlin?
No. Android Kotlin/Java DEX code uses the Android/JADX lane. Kotlin/Native emits machine code (ELF/Mach-O/PE-like binaries) — use open_binary + a native provider.
Is there inspect_kotlin_native?
Not in the rea-agents 6.7.0 skill catalog checked 2026-10-24. Do not invent one.
How do I tell which lane to use?
If the target is an APK/AAB/DEX with Dalvik bytecode, prefer inspect_android_package / JADX (rea-android-jadx). If the artifact is a Kotlin/Native executable/library without a DEX payload, treat it as a native binary.
Will klib or bitcode packages inventory automatically?
Only when they match an admitted archive/native form. Intermediate compiler artifacts are not advertised as a first-class Kotlin/Native inventory API.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).