mirror of
https://github.com/revanced/smali.git
synced 2025-05-26 02:52:06 +02:00
Always use the 035 version magic value when writing a dex file
This commit is contained in:
parent
7618e1636c
commit
216ca5376b
@ -1172,11 +1172,8 @@ public abstract class DexWriter<
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void writeHeader(@Nonnull DexDataWriter writer, int dataOffset, int fileSize) throws IOException {
|
private void writeHeader(@Nonnull DexDataWriter writer, int dataOffset, int fileSize) throws IOException {
|
||||||
if (api < 14) {
|
// always write the 035 version, there's no reason to use the 036 version for now
|
||||||
writer.write(HeaderItem.MAGIC_VALUES[0]);
|
writer.write(HeaderItem.MAGIC_VALUES[0]);
|
||||||
} else {
|
|
||||||
writer.write(HeaderItem.MAGIC_VALUES[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// checksum placeholder
|
// checksum placeholder
|
||||||
writer.writeInt(0);
|
writer.writeInt(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user