Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SandHook
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
Administrator
SandHook
Commits
2de27664
Unverified
Commit
2de27664
authored
Jan 27, 2019
by
ganyao114
Committed by
GitHub
Jan 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
19b099b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
README.md
README.md
+13
-0
No files found.
README.md
View file @
2de27664
...
@@ -29,6 +29,10 @@ cant hook if lined
...
@@ -29,6 +29,10 @@ cant hook if lined
# how to use
# how to use
```
gradle
implementation
'com.swift.sandhook:hooklib:0.0.1'
```
-
hook method must be a static method
-
hook method must be a static method
-
first par must be this if method is not static
-
first par must be this if method is not static
-
method description must "same"(can be isAssignableFrom) with origin method
-
method description must "same"(can be isAssignableFrom) with origin method
...
@@ -81,7 +85,16 @@ SandHook.addHookClass(CtrHook.class, LogHooker.class, CustmizeHooker.class, Acti
...
@@ -81,7 +85,16 @@ SandHook.addHookClass(CtrHook.class, LogHooker.class, CustmizeHooker.class, Acti
you
can
also
use:
you
can
also
use:
SanHook
.
public
static
boolean
hook
(
Member
target
,
Method
hook
,
Method
backup
)
{}
SanHook
.
public
static
boolean
hook
(
Member
target
,
Method
hook
,
Method
backup
)
{}
```
if hookers is in plugin(like xposed):
```
groovy
provided
'com.swift.sandhook:hookannotation:0.0.1'
```
```
in your plugin
if OS <= 5.1
if OS <= 5.1
backup method can call itself to avoid be inlining
backup method can call itself to avoid be inlining
...
...
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