diff --git a/unidbg-android/src/main/java/com/github/unidbg/linux/android/dvm/DvmClass.java b/unidbg-android/src/main/java/com/github/unidbg/linux/android/dvm/DvmClass.java index 5e21958fe..d53612cba 100644 --- a/unidbg-android/src/main/java/com/github/unidbg/linux/android/dvm/DvmClass.java +++ b/unidbg-android/src/main/java/com/github/unidbg/linux/android/dvm/DvmClass.java @@ -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; } @@ -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) {