Add the new type and string bss mapping offsets in the oat header

This commit is contained in:
Ben Gruver 2019-08-01 15:10:30 -07:00
parent 2f31502924
commit ad8f15d61d

View File

@ -614,6 +614,9 @@ public class OatFile extends BaseDexBuffer implements MultiDexContainer<OatDexFi
if (getOatVersion() >= 127) {
offset += 4; // method bss mapping offset
}
if (getOatVersion() >= 135) {
offset += 8; // type bss mapping and string bss mapping offsets
}
if (getOatVersion() < 75) {
// prior to 75, the class offsets are included here directly
int classCount = readSmallUint(dexOffset + HeaderItem.CLASS_COUNT_OFFSET);