Fix always enter safe mode

`getprop("persist.sys.safemode", true) == "1"` -> `getprop("persist.sys.safemode", true) == ""`
This commit is contained in:
LoveSy 2021-07-24 01:46:27 +08:00 committed by John Wu
parent f324252681
commit 117d1ed080

View File

@ -2,7 +2,9 @@
#include <string>
#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"