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
aefda1dd
Commit
aefda1dd
authored
May 08, 2019
by
swift_gan
Committed by
swift_gan
May 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix classloader
parent
65d98939
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
DynamicBridge.java
.../swift/sandhook/xposedcompat/methodgen/DynamicBridge.java
+2
-1
No files found.
xposedcompat/src/main/java/com/swift/sandhook/xposedcompat/methodgen/DynamicBridge.java
View file @
aefda1dd
...
...
@@ -6,6 +6,7 @@ import com.swift.sandhook.SandHook;
import
com.swift.sandhook.blacklist.HookBlackList
;
import
com.swift.sandhook.wrapper.HookWrapper
;
import
com.swift.sandhook.xposedcompat.XposedCompat
;
import
com.swift.sandhook.xposedcompat.classloaders.ComposeClassLoader
;
import
com.swift.sandhook.xposedcompat.hookstub.HookMethodEntity
;
import
com.swift.sandhook.xposedcompat.hookstub.HookStubManager
;
import
com.swift.sandhook.xposedcompat.utils.DexLog
;
...
...
@@ -72,7 +73,7 @@ public final class DynamicBridge {
hookMaker
=
defaultHookMaker
;
}
hookMaker
.
start
(
hookMethod
,
additionalHookInfo
,
XposedCompat
.
classLoader
,
dexDir
==
null
?
null
:
dexDir
.
getAbsolutePath
());
new
ComposeClassLoader
(
DynamicBridge
.
class
.
getClassLoader
(),
hookMethod
.
getDeclaringClass
().
getClassLoader
())
,
dexDir
==
null
?
null
:
dexDir
.
getAbsolutePath
());
hookedInfo
.
put
(
hookMethod
,
hookMaker
.
getCallBackupMethod
());
}
DexLog
.
d
(
"hook method <"
+
hookMethod
.
toString
()
+
"> cost "
+
(
System
.
currentTimeMillis
()
-
timeStart
)
+
" ms, by "
+
(
stub
!=
null
?
"internal stub"
:
"dex maker"
));
...
...
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