Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
R
ratel-demo
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ratel
ratel-demo
Commits
55821cd2
Commit
55821cd2
authored
Dec 12, 2021
by
Tsaiilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix start sekiro
parent
97f240ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
17 deletions
+12
-17
HookEntry.java
...ratel/crack/com/TianjinAirlines/androidApp/HookEntry.java
+12
-17
No files found.
crack-tianjingairlines/src/main/java/ratel/crack/com/TianjinAirlines/androidApp/HookEntry.java
View file @
55821cd2
...
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment