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
0d14d582
Commit
0d14d582
authored
Mar 07, 2019
by
swift_gan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suspendVM < 7.0
parent
134a3f6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
hide_api.cpp
hooklib/src/main/cpp/utils/hide_api.cpp
+9
-0
No files found.
hooklib/src/main/cpp/utils/hide_api.cpp
View file @
0d14d582
...
@@ -59,7 +59,16 @@ extern "C" {
...
@@ -59,7 +59,16 @@ extern "C" {
innerResumeVM
=
reinterpret_cast
<
void
(
*
)()
>
(
fake_dlsym
(
art_lib
,
innerResumeVM
=
reinterpret_cast
<
void
(
*
)()
>
(
fake_dlsym
(
art_lib
,
"_ZN3art3Dbg8ResumeVMEv"
));
"_ZN3art3Dbg8ResumeVMEv"
));
}
}
}
else
{
art_lib
=
dlopen
(
art_lib_path
,
RTLD_NOW
);
if
(
art_lib
>
0
)
{
innerSuspendVM
=
reinterpret_cast
<
void
(
*
)()
>
(
dlsym
(
art_lib
,
"_ZN3art3Dbg9SuspendVMEv"
));
innerResumeVM
=
reinterpret_cast
<
void
(
*
)()
>
(
dlsym
(
art_lib
,
"_ZN3art3Dbg8ResumeVMEv"
));
}
}
}
//init for getObject & JitCompiler
//init for getObject & JitCompiler
if
(
SDK_INT
<
23
)
{
if
(
SDK_INT
<
23
)
{
void
*
handle
=
dlopen
(
"libart.so"
,
RTLD_LAZY
|
RTLD_GLOBAL
);
void
*
handle
=
dlopen
(
"libart.so"
,
RTLD_LAZY
|
RTLD_GLOBAL
);
...
...
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