Most apk files, when disassembled, produces 2 dex files instead of one. However since IDA Pro only allows the loading of one dex file at a time,it may result in missing information as a result of the other dex file not being loaded. Are there any way to combine these 2 dex files into one so that I can load the complete dex file into IDA Pro? I tried disassembling both dex files to smali files and then using smali.jar to combine these smali files again into one single dex file but I am facing the following error:
Exception in thread "main" org.jf.util.ExceptionWithContext: Exception occurred
while writing code_item for method Ladyen/com/adyencse/pojo/Card;->serialize(Lja
va/lang/String;)Ljava/lang/String;
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java
:824)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:267)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:245)
at org.jf.smali.Smali.assemble(Smali.java:130)
at org.jf.smali.AssembleCommand.run(AssembleCommand.java:96)
at org.jf.smali.Main.main(Main.java:99)
Caused by: org.jf.util.ExceptionWithContext: Error while writing instruction at
code offset 0x2
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1091)
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java
:820)
... 5 more
Caused by: org.jf.util.ExceptionWithContext: Unsigned short value out of range:
70784
at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:11
6)
at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:
348)
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1051)
... 6 more