Commit 55821cd2 authored by Tsaiilin's avatar Tsaiilin

fix start sekiro

parent 97f240ce
......@@ -36,23 +36,18 @@ public class HookEntry implements IRposedHookLoadPackage {
@Override
public void handleLoadPackage(final RC_LoadPackage.LoadPackageParam lpparam) {
if (lpparam.processName.equals(lpparam.packageName)) {
RposedHelpers.findAndHookConstructor("rs", RatelToolKit.hostClassLoader, new RC_MethodHook() {
@Override
protected void afterHookedMethod(final MethodHookParam param) throws Throwable {
super.afterHookedMethod(param);
Log.i(TAG, "get rs success");
final Class<?> aClass = RposedHelpers.findClass("com.xc.tjhk.base.base.u", RatelToolKit.hostClassLoader);
new ClusterSekiroClient("TianJinAirLines", UUID.randomUUID().toString())
.setupSekiroRequestInitializer(new SekiroRequestInitializer() {
@Override
public void onSekiroRequest(SekiroRequest sekiroRequest, HandlerRegistry handlerRegistry) {
handlerRegistry.registerSekiroHandler(new AirLowSearchHandler(param.thisObject, aClass));
}
})
.start();
}
});
final Class<?> aClass = RposedHelpers.findClass("com.xc.tjhk.base.base.u", RatelToolKit.hostClassLoader);
Class<?> rs = RposedHelpers.findClass("rs", RatelToolKit.hostClassLoader);
final Object o = RposedHelpers.newInstance(rs);
new ClusterSekiroClient("TianJinAirLines", UUID.randomUUID().toString())
.setupSekiroRequestInitializer(new SekiroRequestInitializer() {
@Override
public void onSekiroRequest(SekiroRequest sekiroRequest, HandlerRegistry handlerRegistry) {
handlerRegistry.registerSekiroHandler(new AirLowSearchHandler(o, aClass));
}
})
.start();
Log.i(TAG, "handleLoadPackage: start sekiro");
}
Log.i(TAG, "hook end");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment