JesusFreke / smali

smali/baksmali
6.34k stars 1.07k forks source link

Error when deodexing #708

Closed Shouri14 closed 5 years ago

Shouri14 commented 5 years ago

When I use the following command: -jar baksmali.jar x services.odex -d framework\arm -o tmp

I keep getting this error:

Error occurred while loading class path files. Aborting. java.lang.ArrayIndexOutOfBoundsException: 40 at org.jf.dexlib2.dexbacked.CDexBackedDexFile.isCdex(CDexBackedDexFile.java:67) at org.jf.dexlib2.dexbacked.OatFile$OatDexEntry.getDexFile(OatFile.java:571) at org.jf.dexlib2.dexbacked.OatFile$OatDexEntry.getDexFile(OatFile.java:559) at org.jf.dexlib2.analysis.PathEntryLoader.loadEntry(PathEntryLoader.java:62) at org.jf.dexlib2.analysis.ClassPathResolver.loadLocalOrDeviceBootClassPathEntry(ClassPathResolver.java:197) at org.jf.dexlib2.analysis.ClassPathResolver.(ClassPathResolver.java:89) at org.jf.dexlib2.analysis.ClassPathResolver.(ClassPathResolver.java:154) at org.jf.baksmali.AnalysisArguments.loadClassPathForDexFile(AnalysisArguments.java:131) at org.jf.baksmali.AnalysisArguments.loadClassPathForDexFile(AnalysisArguments.java:88) at org.jf.baksmali.DisassembleCommand.getOptions(DisassembleCommand.java:209) at org.jf.baksmali.DeodexCommand.getOptions(DeodexCommand.java:71) at org.jf.baksmali.DisassembleCommand.run(DisassembleCommand.java:183) at org.jf.baksmali.Main.main(Main.java:102)

Used baksmali-2.3.jar and smali-2.3.jar

How to fix this?

JesusFreke commented 5 years ago

I think this should be improved by 3b70c36296d092543a959c5eb5017e5eced22b0c.