diff --git a/native/jni/include/magisk.hpp b/native/jni/include/magisk.hpp index 55d4b3d74..0d528ff16 100644 --- a/native/jni/include/magisk.hpp +++ b/native/jni/include/magisk.hpp @@ -2,7 +2,9 @@ #include -#define MAIN_SOCKET "d30138f2310a9fb9c54a3e0c21f58591" +// magiskinit will hex patch this constant, +// appending \0 to prevent the compiler from reusing the string for "1" +#define MAIN_SOCKET "d30138f2310a9fb9c54a3e0c21f58591\0" #define JAVA_PACKAGE_NAME "com.topjohnwu.magisk" #define LOGFILE "/cache/magisk.log" #define UNBLOCKFILE "/dev/.magisk_unblock"