We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffe6d90 commit bd0673bCopy full SHA for bd0673b
module/src/main/cpp/main.cpp
@@ -7,9 +7,11 @@
7
#include "logging.h"
8
#include "hook.h"
9
10
+#if PLATFORM_SDK_VERSION >= 24
11
#define CONFIG_PATH "/data/user_de/0/top.trumeet.mipush"
-
12
-#define FAKE_CONFIGURATION_GLOBAL "/data/user_de/0/top.trumeet.mipush/packages/ALL"
+#else
13
+#define CONFIG_PATH "/data/data/top.trumeet.mipush"
14
+#endif
15
16
// You can remove functions you don't need
17
static char package_name[256];
@@ -195,7 +197,7 @@ bool isAppNeedHook(JNIEnv *env, jstring jAppDataDir) {
195
197
}
196
198
199
- if (access(FAKE_CONFIGURATION_GLOBAL, F_OK) == 0) {
200
+ if (access(CONFIG_PATH "/packages/ALL", F_OK) == 0) {
201
return true;
202
203
0 commit comments