From 824a5f56210b86aab2158d69094a54f5ea9b5f58 Mon Sep 17 00:00:00 2001 From: Youngsoo Choi Date: Wed, 6 Oct 2021 22:11:33 -0700 Subject: [PATCH] [Service][Public] Run device home on booting time The device home runs on booting time on public profile. Change-Id: I903ff09c43bb78345d2209e681c651d8b5c3094d Signed-off-by: Youngsoo Choi --- packaging/config.xml.in | 21 +++++++++++++++++++++ .../config.xml => packaging/config_tv.xml.in | 0 packaging/wrtjs.spec | 3 +++ 3 files changed, 24 insertions(+) create mode 100644 packaging/config.xml.in rename device_home/config.xml => packaging/config_tv.xml.in (100%) diff --git a/packaging/config.xml.in b/packaging/config.xml.in new file mode 100644 index 0000000..2b80c64 --- /dev/null +++ b/packaging/config.xml.in @@ -0,0 +1,21 @@ + + + + + DeviceHome + + + + + + + + + + + + + DeviceHomeService + DeviceHomeService + + diff --git a/device_home/config.xml b/packaging/config_tv.xml.in similarity index 100% rename from device_home/config.xml rename to packaging/config_tv.xml.in diff --git a/packaging/wrtjs.spec b/packaging/wrtjs.spec index 784e037..c149c45 100644 --- a/packaging/wrtjs.spec +++ b/packaging/wrtjs.spec @@ -199,10 +199,12 @@ cp -r %{app_dir}/* %{buildroot}%{_resourcedir}/ %define _d2d_app_file_name device_home.tmg %define _d2d_app_extension tmg %define _d2d_install_path %{TZ_SYS_DATA}/device_home + install -m 0644 packaging/config_tv.xml.in device_home/config.xml %else %define _d2d_app_file_name device_home.wgt %define _d2d_app_extension wgt %define _d2d_install_path %{_appdir}/.preload-rw-wgt + install -m 0644 packaging/config.xml.in device_home/config.xml %endif install -m 0644 key.pem device_home/signaling_server/gen/ install -m 0644 cert.pem device_home/signaling_server/gen/ @@ -259,6 +261,7 @@ fi %post %if "%{?_local_build}" == "1" %if 0%{?_use_d2d} + pkgcmd -un 9z6IujVul3 pkgcmd -i -t wgt -p %{_d2d_install_path}/%{_d2d_app_file_name} %endif %endif -- 2.7.4