有时候,app会检测加密函数是否在主线程运行,为了逃避这种检测,要将函数放到主线程运行
Class<?> aClass = RposedHelpers.findClass("com.yuanrenxue.challenge.three.ChallengeThreeNativeLib", RatelToolKit.hostClassLoader);
Object o = RposedHelpers.newInstance(aClass);
new Handler(Looper.getMainLooper()).post(new Runnable() { //放到主线程运行
@Override
public void run() {
byte[] sign = (byte[])RposedHelpers.callMethod(o, "sign", page);
sekiroResponse.send(OooOooo(sign));
}
});
标签:函数,放到,RposedHelpers,主线,sign,Android,运行
From: https://www.cnblogs.com/xsir161/p/16928204.html