diff --git a/README.md b/README.md index ba53d6c..8f2d98e 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ YAHFA is a hook framework for Android ART. It provides an efficient way for Java - Android 10(API 29) - Android 11(API 30) - Android 12(DP1) +- Android 13(API 33) +- Android 14(API 34) (Support for version <= 6.0 is broken after commit [9824bdd](https://github.com/PAGalaxyLab/YAHFA/commit/9824bdd9d958fd0eca43537b6288bb04da191036).) diff --git a/library/src/main/jni/HookMain.c b/library/src/main/jni/HookMain.c index c2616d6..c14df1c 100644 --- a/library/src/main/jni/HookMain.c +++ b/library/src/main/jni/HookMain.c @@ -22,6 +22,7 @@ void Java_lab_galaxy_yahfa_HookMain_init(JNIEnv *env, jclass clazz, jint sdkVers jclass classExecutable; LOGI("init to SDK %d", sdkVersion); switch (sdkVersion) { + case __ANDROID_API_U__: case __ANDROID_API_T__: case __ANDROID_API_S_L__: case __ANDROID_API_S__: diff --git a/library/src/main/jni/common.h b/library/src/main/jni/common.h index 8a93713..9a8303a 100644 --- a/library/src/main/jni/common.h +++ b/library/src/main/jni/common.h @@ -8,6 +8,11 @@ #include #include +// Android 14 +#ifndef __ANDROID_API_U__ +#define __ANDROID_API_U__ 34 +#endif + // Android 13 #ifndef __ANDROID_API_T__ #define __ANDROID_API_T__ 33