public UnsupportedOatVersionException(@Nonnull OatFile oatFile) { super("Unsupported oat version: %d", oatFile.getOatVersion()); this.oatFile = oatFile; } }
public int isSupportedVersion() { int version = getOatVersion(); if (version < MIN_OAT_VERSION) { return UNSUPPORTED; } if (version <= MAX_OAT_VERSION) { return SUPPORTED; } return UNKNOWN; }
public int isSupportedVersion() { int version = getOatVersion(); if (version < MIN_OAT_VERSION) { return UNSUPPORTED; } if (version <= MAX_OAT_VERSION) { return SUPPORTED; } return UNKNOWN; }
public UnsupportedOatVersionException(@Nonnull OatFile oatFile) { super("Unsupported oat version: %d", oatFile.getOatVersion()); this.oatFile = oatFile; } }
@Nonnull public List<String> getBootClassPath() { if (getOatVersion() < 75) { return ImmutableList.of(); } String bcp = oatHeader.getKeyValue("bootclasspath"); if (bcp == null) { return ImmutableList.of(); } return Arrays.asList(bcp.split(":")); }
@Nonnull public List<String> getBootClassPath() { if (getOatVersion() < 75) { return ImmutableList.of(); } String bcp = oatHeader.getKeyValue("bootclasspath"); if (bcp == null) { return ImmutableList.of(); } return Arrays.asList(bcp.split(":")); }
if (getOatVersion() >= 87 && vdexProvider != null && vdexProvider.getVdex() != null) { buf = vdexProvider.getVdex(); } else { if (getOatVersion() >= 75) { offset += 4; // offset to class offsets table if (getOatVersion() >= 73) { offset += 4; // lookup table offset if (getOatVersion() >= 131) { offset += 4; // dex sections layout offset if (getOatVersion() >= 127) { offset += 4; // method bss mapping offset if (getOatVersion() < 75) {
if (getOatVersion() >= 87 && vdexProvider != null && vdexProvider.getVdex() != null) { buf = vdexProvider.getVdex(); } else { if (getOatVersion() >= 75) { offset += 4; // offset to class offsets table if (getOatVersion() >= 73) { offset += 4; // lookup table offset if (getOatVersion() >= 131) { offset += 4; // dex sections layout offset if (getOatVersion() >= 127) { offset += 4; // method bss mapping offset if (getOatVersion() < 75) {
if (dexFile instanceof OatDexFile) { checkPackagePrivateAccess = true; oatVersion = ((OatDexFile)dexFile).getContainer().getOatVersion(); oatVersion = ((OatDexFile)dexFile).getContainer().getOatVersion();
if (dexFile instanceof OatDexFile) { checkPackagePrivateAccess = true; oatVersion = ((OatDexFile)dexFile).getContainer().getOatVersion(); oatVersion = ((OatDexFile)dexFile).getContainer().getOatVersion();