Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhkl0228 committed Jan 1, 2021
1 parent 077938f commit 47f3c8d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ protected DvmClass(BaseVM vm, String className, DvmClass superClass, DvmClass[]
this.className = className;
}

@SuppressWarnings("unused")
public DvmClass getSuperclass() {
return superClass;
}

@SuppressWarnings("unused")
public DvmClass[] getInterfaces() {
return interfaceClasses;
}
Expand Down Expand Up @@ -234,7 +236,7 @@ UnidbgPointer findNativeFunction(Emulator<?> emulator, String method) {
UnidbgPointer fnPtr = nativesMap.get(method);
int index = method.indexOf('(');
if (fnPtr == null && index != -1) {
String symbolName = "Java_" + getClassName().replace('/', '_') + "_" + method.substring(0, index);
String symbolName = "Java_" + getClassName().replace("_", "_1").replace('/', '_') + "_" + method.substring(0, index);
for (Module module : emulator.getMemory().getLoadedModules()) {
Symbol symbol = module.findSymbolByName(symbolName, false);
if (symbol != null) {
Expand Down

0 comments on commit 47f3c8d

Please sign in to comment.