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

Commit 8c0e5b76 authored by Tom Cherry's avatar Tom Cherry Committed by android-build-merger
Browse files

Merge "init: allow vendor init to action on any vendor or odm property" am:...

Merge "init: allow vendor init to action on any vendor or odm property" am: c7452ea8 am: 1379a9cd
am: a2dc2676

Change-Id: I9d462a75b6479b12c0e715cdbf820543f6f2a136
parents 0134aa53 a2dc2676
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -40,6 +40,18 @@ bool IsActionableProperty(Subcontext* subcontext, const std::string& prop_name)
        return true;
    }

    static constexpr const char* kPartnerPrefixes[] = {
            "init.svc.vendor.", "ro.vendor.",    "persist.vendor.",
            "vendor.",          "init.svc.odm.", "ro.odm.",
            "persist.odm.",     "odm.",          "ro.boot.",
    };

    for (const auto& prefix : kPartnerPrefixes) {
        if (android::base::StartsWith(prop_name, prefix)) {
            return true;
        }
    }

    return CanReadProperty(subcontext->context(), prop_name);
}