From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:ProGuard and R8 mapping file" |
|---|
| claim | "R8 writes comment lines at the top of mapping.txt: '# compiler: R8', '# compiler_version: <version>', '# min_api: <n>' (only when producing DEX), '# compiler_hash: <sha>' (development builds), '# common_typos_disable', then a '# {"id":"com.android.tools.r8.mapping","version":"2.2"}' style map-version line and pg_map_id/pg_map_hash lines. The map format versions known to R8 are 1.0, 2.0, 2.1, 2.2, 2.3 and experimental; 2.2 is the stable one." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:ProGuard and R8 mapping file" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "read the first lines of the mapping file" |
|---|
| indicator | "'# compiler: R8' means R8 wrote it; Unverified: whether ProGuard's own file lacks this preamble, and the exact spelling of the JSON map-version line (only the id and version keys were read)" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "MARKER_KEY_* constants and toPreamble() adding the '# key: value' lines." |
|---|
| repo | "https://r8.googlesource.com/r8" |
|---|
| commit | "db355cd4aa7975f7cad3670207ba55876efdcef9" |
|---|
| path | "src/main/java/com/android/tools/r8/naming/ProguardMapMarkerInfo.java" |
|---|
| lines | "16-22, 43-54" |
|---|
|
| type | "source" |
|---|
| detail | "MapVersion enum, STABLE = MAP_VERSION_2_2." |
|---|
| repo | "https://r8.googlesource.com/r8" |
|---|
| commit | "db355cd4aa7975f7cad3670207ba55876efdcef9" |
|---|
| path | "src/main/java/com/android/tools/r8/naming/MapVersion.java" |
|---|
| lines | "12-21" |
|---|
|
| type | "source" |
|---|
| detail | "ID com.android.tools.r8.mapping, key version." |
|---|
| repo | "https://r8.googlesource.com/r8" |
|---|
| commit | "db355cd4aa7975f7cad3670207ba55876efdcef9" |
|---|
| path | "src/main/java/com/android/tools/r8/naming/mappinginformation/MapVersionMappingInformation.java" |
|---|
| lines | "16-17" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "R8 mapping file preamble" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T22:35:06.587Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T23:02:31.473Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read ProguardMapMarkerInfo.toPreamble, MapVersion enum (STABLE = 2.2; also unknown and none values) and MapVersionMappingInformation ID/key at the cited commit via googlesource. The two items the fact marks Unverified were not checked." |
|---|
|
|
|---|