DexPatcher / multidexlib2

Multi-dex extensions for dexlib2
https://dexpatcher.github.io/
GNU General Public License v3.0
68 stars 34 forks source link

Duplicated class contained in APK #16

Open auermich93 opened 9 months ago

auermich93 commented 9 months ago

Reading the following APK https://github.com/the-themis-benchmarks/home/blob/master/open-event-attendee-android/open-event-attendee-android-0.5-%232198.apk with multidexlib2 leads to the following exception:

Exception in thread "main" lanchon.multidexlib2.DuplicateTypeException: L$r8$java8methods$utility$Long$hashCode$IJ;
        at lanchon.multidexlib2.MultiDexContainerBackedDexFile.<init>(MultiDexContainerBackedDexFile.java:42)
        at lanchon.multidexlib2.MultiDexIO.readDexFile(MultiDexIO.java:34)
        at de.uni_passau.fim.auermich.android_analysis.Main.main(Main.java:91)

The APK contains twice the class L$r8$java8methods$utility$Long$hashCode$IJ; in two different smali folders. I could resolve the issue by simply removing one of them, but shouldn't multidexlib2 maybe simply ignore any duplicate and only drop a warning?