mirror of
https://github.com/revanced/smali.git
synced 2025-05-23 18:16:23 +02:00
Ignore the link section in the header
git-svn-id: https://smali.googlecode.com/svn/trunk@812 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
baa030c201
commit
fadcc2dcb9
@ -79,14 +79,9 @@ public class HeaderItem extends Item<HeaderItem> {
|
|||||||
throw new RuntimeException("The endian tag is not 0x12345678 or 0x78563412");
|
throw new RuntimeException("The endian tag is not 0x12345678 or 0x78563412");
|
||||||
}
|
}
|
||||||
|
|
||||||
//link_size
|
//link_size + link_off
|
||||||
if (in.readInt() != 0) {
|
if ((in.readInt() | in.readInt()) != 0) {
|
||||||
throw new RuntimeException("This dex file has a link section, which is not supported");
|
System.err.println("This dex file has a link section, which is not supported. Ignoring.");
|
||||||
}
|
|
||||||
|
|
||||||
//link_off
|
|
||||||
if (in.readInt() != 0) {
|
|
||||||
throw new RuntimeException("This dex file has a link section, which is not supported");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int sectionSize;
|
int sectionSize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user