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
a7924ae8
Commit
a7924ae8
authored
Feb 14, 2019
by
swift_gan
Committed by
swift_gan
Feb 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix classloader
parent
003641ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
XposedCompat.java
...in/java/com/swift/sandhook/xposedcompat/XposedCompat.java
+1
-10
DynamicBridge.java
.../swift/sandhook/xposedcompat/methodgen/DynamicBridge.java
+1
-1
No files found.
xposedcompat/src/main/java/com/swift/sandhook/xposedcompat/XposedCompat.java
View file @
a7924ae8
...
@@ -61,18 +61,9 @@ public class XposedCompat {
...
@@ -61,18 +61,9 @@ public class XposedCompat {
if
(
sandHookXposedClassLoader
!=
null
)
{
if
(
sandHookXposedClassLoader
!=
null
)
{
return
sandHookXposedClassLoader
;
return
sandHookXposedClassLoader
;
}
else
{
}
else
{
ClassLoader
xposedClassLoader
=
getXposedClassLoader
(
sandBoxHostClassLoader
);
sandHookXposedClassLoader
=
new
ComposeClassLoader
(
sandBoxHostClassLoader
,
appOriginClassLoader
);
sandHookXposedClassLoader
=
new
ComposeClassLoader
(
xposedClassLoader
,
appOriginClassLoader
);
return
sandHookXposedClassLoader
;
return
sandHookXposedClassLoader
;
}
}
}
}
private
static
XposedClassLoader
xposedClassLoader
;
public
static
synchronized
ClassLoader
getXposedClassLoader
(
ClassLoader
hostClassLoader
)
{
if
(
xposedClassLoader
==
null
)
{
xposedClassLoader
=
new
XposedClassLoader
(
hostClassLoader
);
}
return
xposedClassLoader
;
}
}
}
xposedcompat/src/main/java/com/swift/sandhook/xposedcompat/methodgen/DynamicBridge.java
View file @
a7924ae8
...
@@ -60,7 +60,7 @@ public final class DynamicBridge {
...
@@ -60,7 +60,7 @@ public final class DynamicBridge {
}
}
}
}
dexMaker
.
start
(
hookMethod
,
additionalHookInfo
,
dexMaker
.
start
(
hookMethod
,
additionalHookInfo
,
hookMethod
.
getDeclaringClass
().
getClassLoader
()
,
dexDir
==
null
?
null
:
dexDir
.
getAbsolutePath
());
XposedCompat
.
classLoader
,
dexDir
==
null
?
null
:
dexDir
.
getAbsolutePath
());
hookedInfo
.
put
(
hookMethod
,
dexMaker
.
getCallBackupMethod
());
hookedInfo
.
put
(
hookMethod
,
dexMaker
.
getCallBackupMethod
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
DexLog
.
e
(
"error occur when generating dex. dexDir="
+
dexDir
,
e
);
DexLog
.
e
(
"error occur when generating dex. dexDir="
+
dexDir
,
e
);
...
...
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