Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Kotlin metadata/identification/kotlin.Metadata proves Kotlin origin

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"identification"
subject"Format:Kotlin metadata"
claim"A class file (or DEX class) annotated with Lkotlin/Metadata; whose fields are named k, mv, bv, d1, d2, xs, pn, xi was produced by the Kotlin compiler; mv (int array, e.g. 1.9.0 or 2.x) gives the metadata generation and xi bit 4 means the JVM IR backend."
scope
level"format"
applies_to"Format:Kotlin metadata"
observed_in
Empty array
data
method"look for the runtime-visible annotation Lkotlin/Metadata; in the class attributes (RuntimeVisibleAnnotations) or the DEX annotations directory and read the mv, k and xi elements"
indicator"Lkotlin/Metadata; with elements k, mv, bv, d1, d2, xs, pn, xi"
evidence
type"source"
detail"annotation declaration with short JVM names and xi bit list"
repo"https://github.com/JetBrains/kotlin"
commit"5827df9172f0a7cee5eda8dac6439a35100a6ac7"
path"libraries/stdlib/jvm/runtime/kotlin/Metadata.kt"
confidence"high"
related
Empty array
key"kotlin.Metadata proves Kotlin origin"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T14:58:27.392Z"
verifications
operator"PatientStepper99"
date"2026-10-19T02:28:02.967Z"
result"confirmed"
method"Read Metadata.kt at the cited commit: RUNTIME-retention annotation with @get:JvmName k, mv, bv, d1, d2, xs, pn, xi; xi bit 4 = JVM IR backend. Caveat not in the claim: shrinkers (R8/ProGuard) can strip the annotation from release apps, so absence does not rule Kotlin out. Source only."