mirror of
https://github.com/revanced/smali.git
synced 2025-05-21 16:37:04 +02:00
Set the hiddenApiRestrictionOffset in the new DexBackedDexFile constructor
This fixes the build. That's what I get for rebasing changes and not testing.
This commit is contained in:
parent
8eb2595f87
commit
49f7e26507
@ -99,6 +99,13 @@ public class DexBackedDexFile implements DexFile {
|
||||
classCount = dexBuffer.readSmallUint(HeaderItem.CLASS_COUNT_OFFSET);
|
||||
classStartOffset = dexBuffer.readSmallUint(HeaderItem.CLASS_START_OFFSET);
|
||||
mapOffset = dexBuffer.readSmallUint(HeaderItem.MAP_OFFSET);
|
||||
|
||||
MapItem mapItem = getMapItemForSection(ItemType.HIDDENAPI_CLASS_DATA_ITEM);
|
||||
if (mapItem != null) {
|
||||
hiddenApiRestrictionsOffset = mapItem.getOffset();
|
||||
} else {
|
||||
hiddenApiRestrictionsOffset = NO_OFFSET;
|
||||
}
|
||||
}
|
||||
|
||||
protected DexBackedDexFile(@Nullable Opcodes opcodes, @Nonnull DexBuffer dexBuffer, @Nonnull DexBuffer dataBuffer, int offset, boolean verifyMagic) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user