Fix sigbypass (not perfect)

This commit is contained in:
Nullptr 2021-09-18 13:21:05 +08:00
parent 0f0e726f2f
commit 281c42a18f
1 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,8 @@ public class LSPApplication extends ApplicationServiceClient {
Files.copy(is, Paths.get(cacheApkPath));
}
}
var appClassLoader = new DelegateLastClassLoader(cacheApkPath, aInfo.nativeLibraryDir, baseClassLoader.getParent());
// TODO: The last param should be baseClassLoader.getParent(), but it breaks sigbypass and I don't know why
var appClassLoader = new DelegateLastClassLoader(cacheApkPath, aInfo.nativeLibraryDir, baseClassLoader);
AppComponentFactory originalAppComponentFactory;
try {
originalAppComponentFactory = (AppComponentFactory) appClassLoader.loadClass(originalAppComponentFactoryClass).newInstance();