skylot / jadx

Dex to Java decompiler
Apache License 2.0
41k stars 4.81k forks source link

[feature] Option to keep synthetics #1944

Open NebelNidas opened 1 year ago

NebelNidas commented 1 year ago

Some obfuscators purposefully mark all classes/methods/etc as synthetic, with the intention to break decompilers which automatically remove them (like JADX atm). A setting on JadxArgs like setKeepSynthetics would be nice (maybe for bridge methods too?)

skylot commented 1 year ago

@NebelNidas can you share a sample for such cases? As I remember, just adding synthetic modifier should not cause method removing (jadx don't trust modifiers). So it looks like a bug to me. Anyway, I will investigate this further and sample will be very helpful :slightly_smiling_face: