{
result r = E_SUCCESS;
int ret = power_wakeup(true);
-
SysTryReturnResult(NID_SYS, ret == 0, E_SYSTEM, "It failed to unlock the normal screen state");
+ ret = pm_change_state(LCD_NORMAL);
+ SysTryReturnResult(NID_SYS, ret == 0, E_SYSTEM, "It failed to change to the normal screen state");
return r;
}
static const wchar_t* _TOUCH_VIBRATION_LEVEL = L"TouchVibrationLevel";
static const wchar_t* _VIBRATOR_LEVEL = L"http://tizen.org/setting/vibrator.level";
+static const wchar_t* _SETTING_COMMAND_FACTORY_RESET = L"osp.setting.command.factory.reset";
+
//USB
static const wchar_t* _USBMODE = L"UsbMode";
static const wchar_t* _USBMODE_MTP = L"MTP";
result
_SettingClient::ResetToFactoryDefault(void)
{
- return E_SUCCESS;
+ String value;
+ String response;
+ value = "none";
+ result r = GetOnService(_SETTING_COMMAND_FACTORY_RESET, value, response);
+ SysLog(NID_SYS, "Reset result is %s[%ls].", GetErrorMessage(r), response.GetPointer());
+ return r;
}
//For OSP_COMPAT mode