mirror of
https://github.com/revanced/smali.git
synced 2025-05-29 04:10:13 +02:00
Set the minimum oat version for the fixed post-default-method vtable to 87
This commit is contained in:
parent
67171366db
commit
af8a063472
@ -866,7 +866,7 @@ public class ClassProto implements TypeProto {
|
|||||||
@Nonnull public List<Method> getVtable() {
|
@Nonnull public List<Method> getVtable() {
|
||||||
if (!classPath.isArt() || classPath.oatVersion < 72) {
|
if (!classPath.isArt() || classPath.oatVersion < 72) {
|
||||||
return preDefaultMethodVtableSupplier.get();
|
return preDefaultMethodVtableSupplier.get();
|
||||||
} else if (classPath.oatVersion < 79) {
|
} else if (classPath.oatVersion < 87) {
|
||||||
return buggyPostDefaultMethodVtableSupplier.get();
|
return buggyPostDefaultMethodVtableSupplier.get();
|
||||||
} else {
|
} else {
|
||||||
return postDefaultMethodVtableSupplier.get();
|
return postDefaultMethodVtableSupplier.get();
|
||||||
@ -964,14 +964,10 @@ public class ClassProto implements TypeProto {
|
|||||||
|
|
||||||
final HashMap<MethodReference, Integer> methodOrder = Maps.newHashMap();
|
final HashMap<MethodReference, Integer> methodOrder = Maps.newHashMap();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (int i=interfaces.size()-1; i>=0; i--) {
|
for (int i=interfaces.size()-1; i>=0; i--) {
|
||||||
String interfaceType = interfaces.get(i);
|
String interfaceType = interfaces.get(i);
|
||||||
ClassDef interfaceDef = classPath.getClassDef(interfaceType);
|
ClassDef interfaceDef = classPath.getClassDef(interfaceType);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (Method interfaceMethod : interfaceDef.getVirtualMethods()) {
|
for (Method interfaceMethod : interfaceDef.getVirtualMethods()) {
|
||||||
|
|
||||||
int vtableIndex = findMethodIndexInVtableReverse(vtable, interfaceMethod);
|
int vtableIndex = findMethodIndexInVtableReverse(vtable, interfaceMethod);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user