Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init Android 14 #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).)

Expand Down
1 change: 1 addition & 0 deletions library/src/main/jni/HookMain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__:
Expand Down
5 changes: 5 additions & 0 deletions library/src/main/jni/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
#include <android/log.h>
#include <stdint.h>

// Android 14
#ifndef __ANDROID_API_U__
#define __ANDROID_API_U__ 34
#endif

// Android 13
#ifndef __ANDROID_API_T__
#define __ANDROID_API_T__ 33
Expand Down
Loading