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

Commit

Permalink
Samsung: Disable Xposed safe mode on Samsung Roms
Browse files Browse the repository at this point in the history
  • Loading branch information
wanam committed May 28, 2016
1 parent 8a2f511 commit f3803b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xposed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@ bool isSafemodeDisabled() {
if (zygote_access(XPOSED_SAFEMODE_DISABLE, F_OK) == 0)
return true;
else
return false;
// Disable Xposed safe mode on Samsung Roms
// Samsung Knox/Mdpp will reject xposed art libraries and lead to
// a bootloop if TW hooks are not executed on Xposed Bridge
return (zygote_access(SAMSUNG_TW_JAR, F_OK) == 0);
}

/** Check whether the delay for safemode should be skipped. */
Expand Down
1 change: 1 addition & 0 deletions xposed.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define XPOSED_LIB_DALVIK XPOSED_LIB_DIR "libxposed_dalvik.so"
#define XPOSED_LIB_ART XPOSED_LIB_DIR "libxposed_art.so"
#define XPOSED_JAR "/system/framework/XposedBridge.jar"
#define SAMSUNG_TW_JAR "/system/framework/twframework.jar"
#define XPOSED_JAR_NEWVERSION XPOSED_DIR "bin/XposedBridge.jar.newversion"
#define XPOSED_LOAD_BLOCKER XPOSED_DIR "conf/disabled"
#define XPOSED_SAFEMODE_NODELAY XPOSED_DIR "conf/safemode_nodelay"
Expand Down

0 comments on commit f3803b0

Please sign in to comment.