Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Samsung: Prevent the "disabled" Xposed flag file
Browse files Browse the repository at this point in the history
We need to run TouchWiz hooks otherwise we will end with a boot-loop caused by Knox/Mdpp rejecting our custom art libraries.
  • Loading branch information
wanam committed Jul 9, 2016
1 parent 590b593 commit e3c58e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xposed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e3c58e7

Please sign in to comment.