From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "string" |
|---|
| subject | "Tool:R8" |
|---|
| claim | "D8, R8 and related tools record themselves as a string in the DEX string pool shaped '~~' + tool name + JSON object with keys sorted alphabetically, e.g. '~~R8{...}' or '~~D8{...}'. Tool names: D8, D8ReOpt, L8, R8, R8Partial, Relocator, R8Assistant. JSON keys include version, min-api (deprecated), min-api-major, min-api-minor, compilation-mode (debug/release), backend (dex/cf), has-checksums, pg-map-id, r8-mode, desugared-library-identifiers." |
|---|
| scope | | level | "tool" |
|---|
| applies_to | "Tool:R8" |
|---|
| observed_in | |
|---|
|
|---|
| data | | value | "~~R8{" |
|---|
| meaning | "marker identifying a DEX built by R8; grep the string pool, or the raw dex bytes, for '~~D8{' and '~~R8{'" |
|---|
| encoding | "MUTF-8 in DEX string_data" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Key constants, Tool enum, PREFIX '~~' + tool + '{', toString sorts keys, parse() matches the prefixes." |
|---|
| repo | "https://r8.googlesource.com/r8" |
|---|
| commit | "db355cd4aa7975f7cad3670207ba55876efdcef9" |
|---|
| path | "src/main/java/com/android/tools/r8/dex/Marker.java" |
|---|
| lines | "23-66, 288-296, 317-340" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "R8 marker string in DEX" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T22:35:06.496Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:19:46.828Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read Marker.java at db355cd4 (r8.googlesource.com ?format=TEXT): PREFIX = "~~", D8_PREFIX/R8_PREFIX/L8/Relocator/R8Assistant = PREFIX + Tool + "{" (lines 58-66), toString returns PREFIX + tool + sortedJson (line 294)." |
|---|
|
|
|---|