skylot / jadx

Dex to Java decompiler
Apache License 2.0
40.03k stars 4.74k forks source link

Non-deterministic results pt2 #2178

Open 3mph4515 opened 1 month ago

3mph4515 commented 1 month ago

Issue details

I'm using JADX 1.5.0 to decompile the same APK file multiple times and comparing the differences between two folders. Each time, the results vary slightly. This seems to be related to package visibility. Here is an example:

jadx /Users/andrew/test.apk --comments-level none

image image image

Relevant log output or stacktrace

No response

Provide sample and class/method full name

No response

Jadx version

1.5.0

cw2k commented 3 days ago

Also to me this non-deterministic decompiling results are annoying. I can't use it to compare two versions of code.

If Jadx each time I decompile the same code gives different result s it renders it nearly useless for the task of comparing different versions of code.

A workaround like what parameter to use so jad is deterministic would greatly help.