From 10dd1b3c9d553957b1fc1145f575a6099c605c1d Mon Sep 17 00:00:00 2001 From: Mohamed Karami Date: Thu, 29 Oct 2015 16:36:39 +0000 Subject: [PATCH] Samsung: Prevent the "disabled" Xposed flag file We need to run TouchWiz hooks otherwise we will end with a boot-loop caused by Knox/Mdpp rejecting our custom art libraries. --- xposed.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xposed.cpp b/xposed.cpp index 0119f457b..2a373add2 100644 --- a/xposed.cpp +++ b/xposed.cpp @@ -238,7 +238,9 @@ int getSdkVersion() { /** Check whether Xposed is disabled by a flag file */ bool isDisabled() { - if (zygote_access(XPOSED_LOAD_BLOCKER, F_OK) == 0) { + // Prevent the flag file on Samsung Roms + // Because we need to run TouchWiz hooks + if (zygote_access(XPOSED_LOAD_BLOCKER, F_OK) == 0 && zygote_access(SAMSUNG_TW_JAR, F_OK) != 0) { ALOGE("Found %s, not loading Xposed", XPOSED_LOAD_BLOCKER); return true; }