Skip to content

Commit

Permalink
Add missing SDK version check
Browse files Browse the repository at this point in the history
  • Loading branch information
rovo89 committed Oct 29, 2017
1 parent 3d26858 commit 4b9a7a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libxposed_art.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

#include "xposed_shared.h"
#include "libxposed_common.h"
#if PLATFORM_SDK_VERSION >= 21
#include "fd_utils-inl.h"
#endif

#include "thread.h"
#include "common_throws.h"
Expand Down Expand Up @@ -165,6 +167,7 @@ jint XposedBridge_getRuntime(JNIEnv*, jclass) {
return 2; // RUNTIME_ART
}

#if PLATFORM_SDK_VERSION >= 21
static FileDescriptorTable* gClosedFdTable = NULL;

void XposedBridge_closeFilesBeforeForkNative(JNIEnv*, jclass) {
Expand All @@ -176,6 +179,7 @@ void XposedBridge_reopenFilesAfterForkNative(JNIEnv*, jclass) {
delete gClosedFdTable;
gClosedFdTable = NULL;
}
#endif

#if PLATFORM_SDK_VERSION >= 24
void XposedBridge_invalidateCallersNative(JNIEnv* env, jclass, jobjectArray javaMethods) {
Expand Down

0 comments on commit 4b9a7a6

Please sign in to comment.