[core] Use latest version by default to support SDK 32(#1249)
This commit is contained in:
parent
b5bb7274f1
commit
fc9fb05b7c
|
|
@ -114,6 +114,8 @@ namespace yahfa {
|
|||
env->DeleteLocalRef(classExecutable);
|
||||
LOGI("init to SDK %d", sdkVersion);
|
||||
switch (sdkVersion) {
|
||||
default:
|
||||
LOGE("not compatible with SDK %d", sdkVersion);
|
||||
case __ANDROID_API_S__:
|
||||
OFFSET_entry_point_from_quick_compiled_code_in_ArtMethod =
|
||||
roundUpToPtrSize(4 * 3 + 2 * 2) + pointer_size;
|
||||
|
|
@ -132,9 +134,6 @@ namespace yahfa {
|
|||
roundUpToPtrSize(4 * 4 + 2 * 2) + pointer_size * 2;
|
||||
ArtMethodSize = roundUpToPtrSize(4 * 4 + 2 * 2) + pointer_size * 3;
|
||||
break;
|
||||
default:
|
||||
LOGE("not compatible with SDK %d", sdkVersion);
|
||||
break;
|
||||
}
|
||||
|
||||
setupTrampoline();
|
||||
|
|
|
|||
Loading…
Reference in New Issue