diff --git a/dexlib/src/main/java/org/jf/dexlib/HeaderItem.java b/dexlib/src/main/java/org/jf/dexlib/HeaderItem.java index f4435268..5daf00c9 100644 --- a/dexlib/src/main/java/org/jf/dexlib/HeaderItem.java +++ b/dexlib/src/main/java/org/jf/dexlib/HeaderItem.java @@ -79,14 +79,9 @@ public class HeaderItem extends Item { throw new RuntimeException("The endian tag is not 0x12345678 or 0x78563412"); } - //link_size - if (in.readInt() != 0) { - throw new RuntimeException("This dex file has a link section, which is not supported"); - } - - //link_off - if (in.readInt() != 0) { - throw new RuntimeException("This dex file has a link section, which is not supported"); + //link_size + link_off + if ((in.readInt() | in.readInt()) != 0) { + System.err.println("This dex file has a link section, which is not supported. Ignoring."); } int sectionSize;