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

Commit 2ed3cdaa authored by Yifan Hong's avatar Yifan Hong
Browse files

load sysprops from vendor_dlkm.

Load sysprops from /vendor_dlkm/build.prop. Note that
no property contexts are loaded from vendor_dlkm.

Test: getprop | grep vendor_dlkm
Bug: 156020364
Change-Id: Ib0e8ba1791e1d2c11d055ef496208993e11d9b0f
parent 6b1c15c0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -632,9 +632,10 @@ static void LoadProperties(char* data, const char* filter, const char* filename,
    char *key, *value, *eol, *sol, *tmp, *fn;
    size_t flen = 0;

    static constexpr const char* const kVendorPathPrefixes[2] = {
    static constexpr const char* const kVendorPathPrefixes[3] = {
            "/vendor",
            "/odm",
            "/vendor_dlkm",
    };

    const char* context = kInitContext;
@@ -939,6 +940,7 @@ void PropertyLoadBootDefaults() {
    load_properties_from_file("/vendor/default.prop", nullptr, &properties);
    // }
    load_properties_from_file("/vendor/build.prop", nullptr, &properties);
    load_properties_from_file("/vendor_dlkm/etc/build.prop", nullptr, &properties);
    load_properties_from_partition("odm", /* support_legacy_path_until */ 28);
    load_properties_from_partition("product", /* support_legacy_path_until */ 30);