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
465929e1
Commit
465929e1
authored
Feb 19, 2019
by
swift_gan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile callOriginMethod
parent
e5b970fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
sandhook.cpp
hooklib/src/main/cpp/sandhook.cpp
+3
-1
HookerDexMaker.java
...swift/sandhook/xposedcompat/methodgen/HookerDexMaker.java
+2
-0
No files found.
hooklib/src/main/cpp/sandhook.cpp
View file @
465929e1
...
@@ -279,7 +279,9 @@ Java_com_swift_sandhook_SandHook_compileMethod(JNIEnv *env, jclass type, jobject
...
@@ -279,7 +279,9 @@ Java_com_swift_sandhook_SandHook_compileMethod(JNIEnv *env, jclass type, jobject
if
(
method
!=
nullptr
&&
!
method
->
isCompiled
())
{
if
(
method
!=
nullptr
&&
!
method
->
isCompiled
())
{
SandHook
::
StopTheWorld
stopTheWorld
;
SandHook
::
StopTheWorld
stopTheWorld
;
method
->
compile
(
env
);
if
(
!
method
->
compile
(
env
)
&&
SDK_INT
>=
ANDROID_N
)
{
method
->
disableCompilable
();
}
}
}
}
}
...
...
xposedcompat/src/main/java/com/swift/sandhook/xposedcompat/methodgen/HookerDexMaker.java
View file @
465929e1
...
@@ -228,6 +228,8 @@ public class HookerDexMaker {
...
@@ -228,6 +228,8 @@ public class HookerDexMaker {
mHookMethod
=
mHookClass
.
getMethod
(
METHOD_NAME_HOOK
,
mActualParameterTypes
);
mHookMethod
=
mHookClass
.
getMethod
(
METHOD_NAME_HOOK
,
mActualParameterTypes
);
mBackupMethod
=
mHookClass
.
getMethod
(
METHOD_NAME_BACKUP
,
mActualParameterTypes
);
mBackupMethod
=
mHookClass
.
getMethod
(
METHOD_NAME_BACKUP
,
mActualParameterTypes
);
mCallBackupMethod
=
mHookClass
.
getMethod
(
METHOD_NAME_CALL_BACKUP
,
mActualParameterTypes
);
mCallBackupMethod
=
mHookClass
.
getMethod
(
METHOD_NAME_CALL_BACKUP
,
mActualParameterTypes
);
SandHook
.
resolveStaticMethod
(
mCallBackupMethod
);
SandHook
.
compileMethod
(
mCallBackupMethod
);
mHookClass
.
getMethod
(
METHOD_NAME_SETUP
,
Member
.
class
,
Method
.
class
,
XposedBridge
.
AdditionalHookInfo
.
class
).
invoke
(
null
,
mMember
,
mBackupMethod
,
mHookInfo
);
mHookClass
.
getMethod
(
METHOD_NAME_SETUP
,
Member
.
class
,
Method
.
class
,
XposedBridge
.
AdditionalHookInfo
.
class
).
invoke
(
null
,
mMember
,
mBackupMethod
,
mHookInfo
);
return
new
HookWrapper
.
HookEntity
(
mMember
,
mHookMethod
,
mBackupMethod
);
return
new
HookWrapper
.
HookEntity
(
mMember
,
mHookMethod
,
mBackupMethod
);
}
}
...
...
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