Commit 55821cd2 authored by Tsaiilin's avatar Tsaiilin

fix start sekiro

parent 97f240ce
...@@ -36,23 +36,18 @@ public class HookEntry implements IRposedHookLoadPackage { ...@@ -36,23 +36,18 @@ public class HookEntry implements IRposedHookLoadPackage {
@Override @Override
public void handleLoadPackage(final RC_LoadPackage.LoadPackageParam lpparam) { public void handleLoadPackage(final RC_LoadPackage.LoadPackageParam lpparam) {
if (lpparam.processName.equals(lpparam.packageName)) { if (lpparam.processName.equals(lpparam.packageName)) {
RposedHelpers.findAndHookConstructor("rs", RatelToolKit.hostClassLoader, new RC_MethodHook() { final Class<?> aClass = RposedHelpers.findClass("com.xc.tjhk.base.base.u", RatelToolKit.hostClassLoader);
@Override Class<?> rs = RposedHelpers.findClass("rs", RatelToolKit.hostClassLoader);
protected void afterHookedMethod(final MethodHookParam param) throws Throwable { final Object o = RposedHelpers.newInstance(rs);
super.afterHookedMethod(param); new ClusterSekiroClient("TianJinAirLines", UUID.randomUUID().toString())
Log.i(TAG, "get rs success"); .setupSekiroRequestInitializer(new SekiroRequestInitializer() {
final Class<?> aClass = RposedHelpers.findClass("com.xc.tjhk.base.base.u", RatelToolKit.hostClassLoader); @Override
new ClusterSekiroClient("TianJinAirLines", UUID.randomUUID().toString()) public void onSekiroRequest(SekiroRequest sekiroRequest, HandlerRegistry handlerRegistry) {
.setupSekiroRequestInitializer(new SekiroRequestInitializer() { handlerRegistry.registerSekiroHandler(new AirLowSearchHandler(o, aClass));
@Override }
public void onSekiroRequest(SekiroRequest sekiroRequest, HandlerRegistry handlerRegistry) { })
handlerRegistry.registerSekiroHandler(new AirLowSearchHandler(param.thisObject, aClass)); .start();
} Log.i(TAG, "handleLoadPackage: start sekiro");
})
.start();
}
});
} }
Log.i(TAG, "hook end"); 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