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