From e124b3d17fca1204c09d11be1d02fdbbf333c594 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 19 Feb 2026 15:56:49 +0000 Subject: [PATCH] RDKB-63166: Update device.properties file during runtime Reason for change: for onestack support Test Procedure: NA Risks: Low Priority: Medium Signed-off-by: abhishek_kumaracee2@comcast.com --- source/scripts/init/src/apply_system_defaults/Makefile.am | 2 +- .../init/src/apply_system_defaults/apply_system_defaults.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/source/scripts/init/src/apply_system_defaults/Makefile.am b/source/scripts/init/src/apply_system_defaults/Makefile.am index b7d3bdc3..4170a0c1 100644 --- a/source/scripts/init/src/apply_system_defaults/Makefile.am +++ b/source/scripts/init/src/apply_system_defaults/Makefile.am @@ -35,7 +35,7 @@ AM_LDFLAGS = $(top_builddir)/source/services/lib/libsrvmgr.la \ -lccsp_common $(DBUS_LIBS) if ONESTACK_PRODUCT_REQ -AM_LDFLAGS += -L${PKG_CONFIG_SYSROOT_DIR}$(libdir) -ldevicemode -lonestack_syscfg -lonestack_log +AM_LDFLAGS += -L${PKG_CONFIG_SYSROOT_DIR}$(libdir) -ldevicemode -lonestack_syscfg -lonestack_log -lonestack_init endif if PLATFORM_HAL_SYNDICATION diff --git a/source/scripts/init/src/apply_system_defaults/apply_system_defaults.c b/source/scripts/init/src/apply_system_defaults/apply_system_defaults.c index de9b773a..84890966 100644 --- a/source/scripts/init/src/apply_system_defaults/apply_system_defaults.c +++ b/source/scripts/init/src/apply_system_defaults/apply_system_defaults.c @@ -60,6 +60,7 @@ #include "safec_lib_common.h" #ifdef _ONESTACK_PRODUCT_REQ_ +#include #include #endif @@ -3656,6 +3657,10 @@ static void getPartnerIdWithRetry(char* buf, char* PartnerID) sysevent_close(global_fd, global_id); +#if defined (_ONESTACK_PRODUCT_REQ_) + onestackutils_update_devprops(); +#endif + return(0); }