Closed Evengard closed 5 months ago
The class loader returned by Thread.getContextClassLoader() may fail for processes that host multiple applications. You should explicitly specify a context class loader. For example: Thread.setContextClassLoader(getClass().getClassLoader());
I see, I can add similar checks here, let me do this during the evening.
This is needed when the JNI itself attempts to resolve Java classes in the target Service, aka using JNIEnv.FindClass.
Namely, this helps with DotNet MAUI apps not loading in the Shizuku context and crashing with
GetClassGRef: class net/dot/android/crypto/DotnetProxyTrustManager was not found
in logcat.