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

Commit 3b29a757 authored by Tom Marshall's avatar Tom Marshall
Browse files

init: Changes for factory mode

 * Allow device to override factory.prop path
 * Ensure ro.boot.ftm always gets set

Change-Id: I9ffcf0650fe9e6092aa1eda4a91147200a6311a9
parent 13d53a47
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -71,6 +71,9 @@ endif
ifneq ($(strip $(TARGET_INIT_VENDOR_LIB)),)
LOCAL_WHOLE_STATIC_LIBRARIES += $(TARGET_INIT_VENDOR_LIB)
endif
ifneq ($(strip $(TARGET_PROP_PATH_FACTORY)),)
LOCAL_CFLAGS += -DOVERRIDE_PROP_PATH_FACTORY=\"$(TARGET_PROP_PATH_FACTORY)\"
endif

include $(BUILD_EXECUTABLE)

+3 −0
Original line number Diff line number Diff line
@@ -605,6 +605,9 @@ void load_all_props(void)
    load_properties_from_file(PROP_PATH_SYSTEM_DEFAULT, NULL);
    load_properties_from_file(PROP_PATH_FACTORY, "ro.*");

    /* ensure ro.boot.ftm gets set */
    property_set("ro.boot.ftm", "0");

    /* Read vendor-specific property runtime overrides. */
    vendor_load_properties();