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
6d5b4e2a
Commit
6d5b4e2a
authored
Apr 16, 2019
by
swift_gan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add invokeOriginalMethod in XposedBridge
parent
c0b453cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
XposedBridge.java
...at/src/main/java/de/robv/android/xposed/XposedBridge.java
+22
-0
No files found.
xposedcompat/src/main/java/de/robv/android/xposed/XposedBridge.java
View file @
6d5b4e2a
...
...
@@ -3,6 +3,7 @@ package de.robv.android.xposed;
import
android.annotation.SuppressLint
;
import
android.util.Log
;
import
com.swift.sandhook.SandHook
;
import
com.swift.sandhook.xposedcompat.methodgen.DynamicBridge
;
import
com.swift.sandhook.xposedcompat.utils.DexLog
;
...
...
@@ -275,6 +276,27 @@ public final class XposedBridge {
}
@SuppressWarnings
(
"unused"
)
public
static
Object
invokeOriginalMethod
(
final
Member
method
,
final
Object
thisObject
,
final
Object
[]
args
)
throws
NullPointerException
,
IllegalAccessException
,
IllegalArgumentException
,
InvocationTargetException
{
try
{
return
SandHook
.
callOriginMethod
(
method
,
thisObject
,
args
);
}
catch
(
NullPointerException
e
)
{
throw
e
;
}
catch
(
IllegalAccessException
e
)
{
throw
e
;
}
catch
(
IllegalArgumentException
e
)
{
throw
e
;
}
catch
(
InvocationTargetException
e
)
{
throw
e
;
}
catch
(
Throwable
throwable
)
{
throw
new
InvocationTargetException
(
throwable
);
}
}
/**
* Basically the same as {@link Method#invoke}, but calls the original method
* as it was before the interception by Xposed. Also, access permissions are not checked.
...
...
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