Exemple #1
0
/** Check whether safemode is disabled. */
bool isSafemodeDisabled() {
    if (zygote_access(XPOSED_SAFEMODE_DISABLE, F_OK) == 0)
        return true;
    else
        // 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);
}
Exemple #2
0
/** Check whether Xposed is disabled by a flag file */
bool isDisabled() {
    // 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;
    }
    return false;
}
Exemple #3
0
/** Check whether Xposed is disabled by a flag file */
bool isDisabled() {
    if (zygote_access(XPOSED_LOAD_BLOCKER, F_OK) == 0) {
        ALOGE("Found %s, not loading Xposed", XPOSED_LOAD_BLOCKER);
        return true;
    }
    return false;
}
Exemple #4
0
/** Check whether the delay for safemode should be skipped. */
bool shouldSkipSafemodeDelay() {
    if (zygote_access(XPOSED_SAFEMODE_NODELAY, F_OK) == 0)
        return true;
    else
        return false;
}
Exemple #5
0
/** Check whether safemode is disabled. */
bool isSafemodeDisabled() {
    if (zygote_access(XPOSED_SAFEMODE_DISABLE, F_OK) == 0)
        return true;
    else
        return false;
}