Loading logd/LogAudit.cpp +11 −2 Original line number Original line Diff line number Diff line Loading @@ -99,11 +99,20 @@ std::string LogAudit::getProperty(const std::string& name) } } void LogAudit::enforceIntegrity() { void LogAudit::enforceIntegrity() { static bool loggedOnce; bool once = loggedOnce; loggedOnce = true; if (!AUDITD_ENFORCE_INTEGRITY) { if (!AUDITD_ENFORCE_INTEGRITY) { if (!once) { logToDmesg("integrity enforcement suppressed; not rebooting"); logToDmesg("integrity enforcement suppressed; not rebooting"); } } else if (rebootToSafeMode) { } else if (rebootToSafeMode) { if (getProperty("persist.sys.safemode") == "1") { if (getProperty("persist.sys.safemode") == "1") { if (!once) { logToDmesg("integrity enforcement suppressed; in safe mode"); logToDmesg("integrity enforcement suppressed; in safe mode"); } return; return; } } Loading Loading
logd/LogAudit.cpp +11 −2 Original line number Original line Diff line number Diff line Loading @@ -99,11 +99,20 @@ std::string LogAudit::getProperty(const std::string& name) } } void LogAudit::enforceIntegrity() { void LogAudit::enforceIntegrity() { static bool loggedOnce; bool once = loggedOnce; loggedOnce = true; if (!AUDITD_ENFORCE_INTEGRITY) { if (!AUDITD_ENFORCE_INTEGRITY) { if (!once) { logToDmesg("integrity enforcement suppressed; not rebooting"); logToDmesg("integrity enforcement suppressed; not rebooting"); } } else if (rebootToSafeMode) { } else if (rebootToSafeMode) { if (getProperty("persist.sys.safemode") == "1") { if (getProperty("persist.sys.safemode") == "1") { if (!once) { logToDmesg("integrity enforcement suppressed; in safe mode"); logToDmesg("integrity enforcement suppressed; in safe mode"); } return; return; } } Loading