直接使用system.loadLibrary会找不到库,
需要这样使用,在其他库加载的时候顺便把自己加载上去
const System = Java.use('java.lang.System');
const Runtime = Java.use('java.lang.Runtime');
const VMStack = Java.use('dalvik.system.VMStack');
System.loadLibrary.implementation = function(library) {
try {
console.log('System.loadLibrary("' + library + '")');
// console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Throwable").$new()));
const loaded = Runtime.getRuntime().loadLibrary0(VMStack.getCallingClassLoader(), library);
try {
Runtime.getRuntime().loadLibrary0(VMStack.getCallingClassLoader(), "fuck");
}catch (e) {
xInfo(e);
}
return loaded;
} catch (ex) {
console.log(ex);
}
}