question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proper deobfuscation mapping file format

See original GitHub issue

As far as I could see, you currently have two options for exporting user-made mappings (renames): the .jadx project file and .jobf mapping files. The issue is, .jadx contains much other information that’s not needed/wanted when I just want to get the mappings. And .jobf can neither handle Javadoc/comments nor is it easy to get them generated. I suggest/request looking into adding .enigma or .tiny mapping format support, which are both currently used by FabricMC in their Minecraft deobfuscation toolchain. Enigma files look like this, for example: https://github.com/FabricMC/yarn/blob/1.19-pre2/mappings/net/minecraft/block/Block.mapping

It should be relatively easy to implement, too, via the mapping-io library. Maybe support for JADX’s mappings can be PR’d to there too, so conversion of legacy mapping formats would be possible?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
skylotcommented, May 28, 2022

@NebelNidas more likely I will just remove MTH_ARG value, because there is no easy way for me to get that info. And as I said, this is not really needed.

1reaction
NebelNidascommented, May 23, 2022

Recaf also has some nice read-only implementations: https://github.com/Col-E/Recaf/tree/master/src/main/java/me/coley/recaf/mapping Mostly the same like mapping-io, but with more comments (and support for a few other mappings)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deobfuscate or symbolicate crash stack traces - Google Help
Important: Only ReTrace-compatible mapping files are supported for deobfuscation of apps compiled in Java. This is the same format used by ProGuard or...
Read more >
How to deobfuscate an Android stacktrace using mapping file
On the left menu, click Android vitals > Deobfuscation files. Next to a version of your app, click Upload. Upload the ProGuard mapping...
Read more >
Stacktrace deobfuscation
To summarize, I would strongly recommend you to keep all mapping files for your release builds to be able to deobfuscate stack traces...
Read more >
How to Deobfuscate an Android Stacktrace using a Mapping ...
Select Android vitals > Deobfuscation files from the left menu. Click Upload next to a version of your software. Upload the ProGuard mapping...
Read more >
How to deobfuscate an Android stacktrace using mapping file ?
Read the mapping file; Run the ( proguardgui) tool to retrace it. ... file format, so, using a PDF file in our application...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found