Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96d6745f authored by Gavin Corkery's avatar Gavin Corkery
Browse files

Store crashing process name in sysprop

As part of Watchdog-triggered rollback logging, it would
be useful to know the service which has caused
updatable_crashing to be set. Store this in a new property
ro.init.updatable_crashing_process_name.

Test: manual
Bug: 146415463
Change-Id: Iffa38b2b746abbb5d823a8d69b7b8d2456836f4e
Merged-In: Iffa38b2b746abbb5d823a8d69b7b8d2456836f4e
(cherry picked from commit 5d0deb56)
parent a8a3e4cc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -387,6 +387,7 @@ void Service::Reap(const siginfo_t& siginfo) {
                    LOG(ERROR) << "updatable process '" << name_ << "' exited 4 times "
                               << (boot_completed ? "in 4 minutes" : "before boot completed");
                    // Notifies update_verifier and apexd
                    property_set("ro.init.updatable_crashing_process_name", name_);
                    property_set("ro.init.updatable_crashing", "1");
                }
            }