bedkillerspacex-boop/codex-skill-library/android-proguard-r8-mapping

Claude Code and agent skill by bedkillerspacex-boop/codex-skill-library

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Keep and use R8/ProGuard mapping files for owned Android apps: enable minify, archive mapping.txt per versionCode, upload to Play/Crashlytics, and deobfuscate stack traces. Use when release crashes are unreadable, CI must retain mappings, or configuring -keep rules safely — not for deobfuscating third-party apps without rights.

Install

npx vskill@latest install bedkillerspacex-boop/codex-skill-library/android-proguard-r8-mapping

SKILL.md

The same SKILL.md was published earlier as bedkillerspacex-boop/codex-skill-library/android-proguard-r8-mapping.

Android ProGuard / R8 Mapping

Scope And Authorization

  • In scope: Apps you ship; crash pipelines you operate.
  • Out of scope: Using leaked mappings to assist piracy of third-party apps.
  • Treat mapping files as moderately sensitive (aid reverse engineering of your code).
  • Pair keep-rules with code-quality-standards.

When To Use

  • Enabling R8 minify/shrink for release.
  • Crash reports show a.b.c.a() with no source context.
  • Setting up CI artifacts for mapping.txt / native debug symbols.
  • Writing -keep rules without disabling obfuscation entirely.

Do Not Use As Primary

NeedSkill instead
DEX string triage (RE)android-dex-string-ids
Play Integrityandroid-safetynet-play-integrity
General pentestandroid-pentesting-tricks
Implementation quality baselinecode-quality-standards

Domain Focus

ArtifactPurpose
mapping.txtMaps obfuscated names → original
seeds.txt / usage.txtWhat was kept / removed (R8 outputs)
-keep rulesPreserve reflection/JNI/entry points
Play App Bundle deobfuscationUpload mapping with each release
Native symbolsSeparate NDK symbol packaging

Workflow

1. Confirm success criteria
  1. Record applicationId, versionName/versionCode scheme, crash backend.
  2. Success: every release mapping archived; sample crash deobfuscates; CI fails if mapping missing.
  3. Owners for artifact retention (90+ days recommended).
2. Enable R8 and produce mapping
gradle
android {
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
bash
./gradlew :app:assembleRelease
# Typical path
ls app/build/outputs/mapping/release/mapping.txt
3. Archive per version
bash
VER=$(grep versionCode app/build.gradle | head -1)
cp app/build/outputs/mapping/release/mapping.txt "artifacts/mapping-${VER}.txt"
# Upload to Play Console / Firebase Crashlytics / Sentry per their docs
  1. Immutable storage keyed by versionCode + git SHA.
  2. Never overwrite mapping for an already-shipped versionCode.
4. Keep rules (minimal)
proguard
# Example — adjust to frameworks you use
-keepclassmembers class * implements android.os.Parcelable {
public static final ** CREATOR;
}
# Keep JNI
-keepclasseswithmembernames class * { native <methods>; }
# Serialization / Gson / Moshi models often need explicit keeps
BadBetter
-dontobfuscate alwaysTargeted -keep
Keep entire packages “just in case”Keep only reflective APIs
No rules + reflection crashesCrash once, add precise keep
5. Deobfuscate a stack trace
bash
# retrace (ProGuard/R8 retrace)
retrace mapping.txt crash.txt
# Or upload mapping so console auto-deobfuscates
6. CI gate
yaml
# Pseudocode CI step
- run: ./gradlew assembleRelease
- run: test -s app/build/outputs/mapping/release/mapping.txt
- run: upload-artifact mapping.txt
7. Hand off
  1. Document path + retention + who can download mappings.
  2. Include native symbol steps if NDK used.
  3. On incident: fetch mapping for exact versionCode before analyzing.

Good / Bad

TopicGoodBad
RetentionMapping per versionCodeLost mappings for prod builds
RulesMinimal keepsminifyEnabled false in prod forever
SecurityAccess-controlled artifactsPublic bucket of all mappings
CrashesRetraced stacksGuessing obfuscated frames

Output Checklist

  • [ ] minify enabled for release
  • [ ] mapping.txt produced and archived per version
  • [ ] Crash backend upload automated
  • [ ] Keep rules reviewed (minimal)
  • [ ] Sample retrace works
  • [ ] CI fails if mapping missing
  • [ ] Access control on mapping store
  • [ ] code-quality-standards applied

Rules

  • Owned apps only.
  • Never ship without a retrievable mapping for that versionCode.
  • Prefer precise -keep over disabling R8.
  • Control access to mapping files.
  • Coordinate native symbols separately from Java/Kotlin mapping.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bedkillerspacex-boop/codex-skill-library/android-proguard-r8-mapping/badge)](https://verified-skill.com/skills/bedkillerspacex-boop/codex-skill-library/android-proguard-r8-mapping)

Something wrong with this skill or its page? Tell us.