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

Commit 7c2fcbd1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove the boot completed check from libbinder" into main

parents 5ae553fc d66ad88b
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -40,14 +40,6 @@ sp<os::IStatsBootstrapAtomService> BinderStatsPusher::getBootstrapAtomServiceLoc
    if (!mLastServiceCheckSucceeded && (mServiceCheckTimeSec + kCheckServiceTimeoutSec > nowSec)) {
        return nullptr;
    };
    if (!mBootComplete) {
        // TODO(b/299356196): use gSystemBootCompleted instead
        if (android::base::GetIntProperty("sys.boot_completed", 0) == 0) {
            return nullptr;
        }
    }
    // store a boolean to reduce GetProperty calls
    mBootComplete = true;
    auto sm = defaultServiceManager();
    if (!sm) {
        LOG_ALWAYS_FATAL("defaultServiceManager() returned nullptr.");
+0 −2
Original line number Diff line number Diff line
@@ -83,8 +83,6 @@ private:
                               SpamStatsKeyHash,   // Hash
                               SpamStatsKeyEqual>; // KeyEqual

    // TODO(b/299356196): replace with gSystemBootCompleted
    bool mBootComplete = false;
    // If last service check was a success.
    bool mLastServiceCheckSucceeded = true;
    // time of last check