android: Update BaseVM.java
@@ -101,6 +101,7 @@ public abstract class BaseVM implements VM, DvmClassFactory {
@Override
public final DvmClass resolveClass(String className, DvmClass... interfaceClasses) {
+ className = className.replace('.', '/');
int hash = Objects.hash(className);
DvmClass dvmClass = classMap.get(hash);
DvmClass superClass = null;
@@ -282,6 +283,9 @@ public abstract class BaseVM implements VM, DvmClassFactory {
@Override
public byte[] unzip(String path) {
+ if (path.length() > 1 && path.charAt(0) == '/') {
+ path = path.substring(1);
+ }
return apk == null ? null : apk.getFileData(path);
}
