Skip to content

Commit 8688d24

Browse files
author
luojitong
committedDec 9, 2020
fix offset of inline_max_code_units_ in Android11
1 parent 221f66d commit 8688d24

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎hooklib/src/main/cpp/casts/cast_compiler_options.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ namespace SandHook {
1515
Size calOffset(JNIEnv *jniEnv, art::CompilerOptions *p) override {
1616
if (SDK_INT < ANDROID_N)
1717
return getParentSize() + 1;
18+
if (SDK_INT >= ANDROID_Q) {
19+
return BYTE_POINT + 3 * sizeof(size_t);
20+
}
1821
if (SDK_INT >= ANDROID_O) {
1922
return BYTE_POINT + 5 * sizeof(size_t);
2023
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.