Runtime-info and Capi-system-device api uses battery vconf
to get battery status.
So if there is no battery in target, deviced set vconf as -ENOTSUP value.
Change-Id: I9fe23fb6671493394a02ff5b4c7d8a91437e48fe
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
* deviced does not activate a battery module.
*/
if (access(POWER_PATH, R_OK) != 0) {
+ /**
+ * Set battery vconf as -ENOTSUP
+ * These vconf key used by runtime-info and capi-system-device.
+ */
+ vconf_set_int(VCONFKEY_SYSMAN_CHARGER_STATUS, -ENOTSUP);
+ vconf_set_int(VCONFKEY_SYSMAN_BATTERY_CHARGE_NOW, -ENOTSUP);
+ vconf_set_int(VCONFKEY_SYSMAN_BATTERY_LEVEL_STATUS, -ENOTSUP);
+
_E("there is no power-supply class");
return -ENODEV;
}