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
0d617246
Commit
0d617246
authored
Mar 04, 2019
by
swift_gan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
can not call jni origin in 4.4
parent
2209c181
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
JniHooker.java
...c/main/java/com/swift/sandhook/testHookers/JniHooker.java
+7
-1
No files found.
app/src/main/java/com/swift/sandhook/testHookers/JniHooker.java
View file @
0d617246
package
com
.
swift
.
sandhook
.
testHookers
;
package
com
.
swift
.
sandhook
.
testHookers
;
import
android.os.Build
;
import
android.util.Log
;
import
android.util.Log
;
import
com.swift.sandhook.annotation.HookMode
;
import
com.swift.sandhook.annotation.HookMode
;
...
@@ -16,7 +17,12 @@ public class JniHooker {
...
@@ -16,7 +17,12 @@ public class JniHooker {
@HookMode
(
HookMode
.
INLINE
)
@HookMode
(
HookMode
.
INLINE
)
public
static
int
onJni
(
@ThisObject
TestClass
thiz
)
{
public
static
int
onJni
(
@ThisObject
TestClass
thiz
)
{
Log
.
e
(
"JniHooker"
,
"hooked success "
);
Log
.
e
(
"JniHooker"
,
"hooked success "
);
return
onJniBackup
(
thiz
);
if
(
Build
.
VERSION
.
SDK_INT
>
Build
.
VERSION_CODES
.
KITKAT
)
{
return
onJniBackup
(
thiz
);
}
else
{
//can not call jni origin in 4.4 tmp
return
0
;
}
}
}
@HookMethodBackup
(
"jni_test"
)
@HookMethodBackup
(
"jni_test"
)
...
...
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