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
320c7189
Commit
320c7189
authored
Feb 17, 2019
by
swift_gan
Committed by
swift_gan
Feb 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
when libart.so can not load
parent
b9355783
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
build.gradle
build.gradle
+1
-1
hide_api.cpp
hooklib/src/main/cpp/utils/hide_api.cpp
+6
-2
No files found.
build.gradle
View file @
320c7189
...
...
@@ -30,7 +30,7 @@ ext {
userOrg
=
'ganyao114'
groupId
=
'com.swift.sandhook'
repoName
=
'SandHook'
publishVersion
=
'2.5.
1
'
publishVersion
=
'2.5.
2
'
desc
=
'android art hook'
website
=
'https://github.com/ganyao114/SandHook'
licences
=
[
'Apache-2.0'
]
...
...
hooklib/src/main/cpp/utils/hide_api.cpp
View file @
320c7189
...
...
@@ -40,8 +40,12 @@ extern "C" {
}
if
(
SDK_INT
>=
24
)
{
art_lib
=
fake_dlopen
(
art_lib_path
,
RTLD_NOW
);
innerSuspendVM
=
reinterpret_cast
<
void
(
*
)()
>
(
fake_dlsym
(
art_lib
,
"_ZN3art3Dbg9SuspendVMEv"
));
innerResumeVM
=
reinterpret_cast
<
void
(
*
)()
>
(
fake_dlsym
(
art_lib
,
"_ZN3art3Dbg8ResumeVMEv"
));
if
(
art_lib
>
0
)
{
innerSuspendVM
=
reinterpret_cast
<
void
(
*
)()
>
(
fake_dlsym
(
art_lib
,
"_ZN3art3Dbg9SuspendVMEv"
));
innerResumeVM
=
reinterpret_cast
<
void
(
*
)()
>
(
fake_dlsym
(
art_lib
,
"_ZN3art3Dbg8ResumeVMEv"
));
}
}
}
...
...
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