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

Commit 2710a3cf authored by Martijn Coenen's avatar Martijn Coenen Committed by android-build-merger
Browse files

Merge "Don't access system properties from vendor code." into pi-dev am: 07a988d1

am: 05ac1df6

Change-Id: I715087adfd24a32636382102d0a00a0d135d7cc7
parents 9285d7d9 05ac1df6
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -149,12 +149,13 @@ public:
        const bool isVendorService =
            strcmp(ProcessState::self()->getDriverName().c_str(), "/dev/vndbinder") == 0;
        const long timeout = uptimeMillis() + 5000;
        if (!gSystemBootCompleted) {
        if (!gSystemBootCompleted && !isVendorService) {
            // Vendor code can't access system properties
            char bootCompleted[PROPERTY_VALUE_MAX];
            property_get("sys.boot_completed", bootCompleted, "0");
            gSystemBootCompleted = strcmp(bootCompleted, "1") == 0 ? true : false;
        }
        // retry interval in millisecond.
        // retry interval in millisecond; note that vendor services stay at 100ms
        const long sleepTime = gSystemBootCompleted ? 1000 : 100;

        int n = 0;