Skip to content

arv 14 : framework patch

Peter Yoon edited this page Nov 3, 2023 · 2 revisions

Avoid repeative logcat

Apply following changes under bionic/

libc/bionic/system_property_set.cpp
@@ line 300 @@ int __system_property_set(const char* key, const char* value) {
    if (result != PROP_SUCCESS) {
-        async_safe_format_log(ANDROID_LOG_WARN, "libc",
-                "Unable to set property \"%s\" to \"%s\": error code: 0x%x", key, value,
-                result);
         return -1;

Apply following changes under frameworks/native/

cmds/servicemanager/ServiceManager.cpp
@@ 650 @@
void ServiceManager::tryStartService(const std::string& name) {
-    ALOGI("Since '%s' could not be found, trying to start it as a lazy AIDL service. (if it's not "
-          "configured to be a lazy service, it may be stuck starting or still starting).",
-          name.c_str());

     std::thread([=] {
         if (!base::SetProperty("ctl.interface_start", "aidl/" + name)) {
-            ALOGI("Tried to start aidl service %s as a lazy service, but was unable to. Usually "
-                  "this happens when a "
-                  "service is not installed, but if the service is intended to be used as a "
-                  "lazy service, then it may be configured incorrectly.",
-                  name.c_str());
         }
      }).detach();

Apply following changes under system/core/

init/init.cpp
@@ line 566 @@ static bool HandleControlMessage(std::string_view message, const std::string& na
    if (service == nullptr) {
-        LOG(ERROR) << "Control message: Could not find '" << name << "' for ctl." << message
-                   << " from pid: " << from_pid << " (" << process_cmdline << ")";
        return false;
Clone this wiki locally