%define major 0
%define minor 1
-%define patchlevel 14
+%define patchlevel 15
Name: tel-plugin-manager
Version: %{major}.%{minor}.%{patchlevel}
BuildRequires: pkgconfig(tfeature)
BuildRequires: pkgconfig(cynara-client)
BuildRequires: pkgconfig(cynara-session)
+BuildRequires: pkgconfig(capi-system-info)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
#include "tfeature.h"
#include <vconf.h>
+#include <system_info.h>
/*
* Timeout of 1 second for normal cases, we may have to consider 4 sec for Verizon.
static void __manager_modem_poweroff_subscribe_signal(ModemPrivateInfo *modem_info)
{
+ int ret;
+ char *profile = NULL;
+
dbg("enter");
if (G_UNLIKELY(!modem_info)) {
return;
}
+ /* Poweroff signal support should be executed only mobile and wearable profile.
+ In case of TV or IoT profile etc... (dongle modem support case),
+ dongle modem can be power off with udev_remove event. */
+ ret = system_info_get_platform_string("tizen.org/feature/profile", &profile);
+ if (ret != SYSTEM_INFO_ERROR_NONE) {
+ err("system_info_get_platform_string() failed!!! (%d,%s)", ret, get_error_message(ret));
+ return;
+ }
+
+ dbg("profile: %s", profile);
+ if (g_strcmp0(profile, "mobile") && g_strcmp0(profile, "wearable")) {
+ dbg("No need to subscribe poweroff signal handling to deviced");
+ return;
+ }
+
if (!modem_info->sys_power.conn) {
GError *error = NULL;