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
3cace0f8
Commit
3cace0f8
authored
Jan 23, 2019
by
swift_gan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix artmethod size in 5.0
parent
6378231b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
cast_art_method.h
app/src/main/cpp/casts/cast_art_method.h
+8
-1
No files found.
app/src/main/cpp/casts/cast_art_method.h
View file @
3cace0f8
...
...
@@ -131,7 +131,14 @@ namespace SandHook {
jclass
sizeTestClass
=
env
->
FindClass
(
"com/swift/sandhook/ArtMethodSizeTest"
);
Size
artMethod1
=
(
Size
)
env
->
GetStaticMethodID
(
sizeTestClass
,
"method1"
,
"()V"
);
Size
artMethod2
=
(
Size
)
env
->
GetStaticMethodID
(
sizeTestClass
,
"method2"
,
"()V"
);
size
=
artMethod2
-
artMethod1
;
if
(
sdk
==
ANDROID_L2
)
{
size
=
64
;
}
else
if
(
sdk
==
ANDROID_L
)
{
size
=
72
;
}
else
{
size
=
artMethod2
-
artMethod1
;
}
art
::
mirror
::
ArtMethod
*
m1
=
reinterpret_cast
<
art
::
mirror
::
ArtMethod
*>
(
artMethod1
);
art
::
mirror
::
ArtMethod
*
m2
=
reinterpret_cast
<
art
::
mirror
::
ArtMethod
*>
(
artMethod2
);
...
...
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