change lock screen impl 85/179885/1 submit/tizen/20180524.010415
authorJihoon Jung <jh8801.jung@samsung.com>
Wed, 23 May 2018 07:31:45 +0000 (16:31 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Wed, 23 May 2018 07:32:09 +0000 (16:32 +0900)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: I782ff868b7decad8669520c28948222fbb6d35aa

packaging/mtp-responder.spec
src/util/mtp_util.c

index 93187ae..d6f5a6e 100755 (executable)
@@ -5,7 +5,7 @@ ExcludeArch: %arm aarch64
 
 Name:       mtp-responder
 Summary:    Media Transfer Protocol daemon (responder)
-Version:    0.0.25
+Version:    0.0.28
 Release:    1
 Group:      Network & Connectivity/Other
 License:    Apache-2.0
index 3da8ad1..d27d453 100644 (file)
@@ -308,18 +308,12 @@ void _util_set_local_usbmode_status(const phone_status_t val)
 
 void _util_get_lock_status(phone_status_t *val)
 {
-       mtp_int32 ret = 0;
-
-       struct stat st;
-/*
        mtp_int32 state = 0;
 
-       ret = vconf_get_int(VCONFKEY_IDLE_LOCK_STATE_READ_ONLY,
+       vconf_get_int(VCONFKEY_IDLE_LOCK_STATE_READ_ONLY,
                        &state);
-*/
-       ret = stat("/opt/usr/home", &st);
 
-       if (ret == -1)
+       if (state)
                *val = MTP_PHONE_LOCK_ON;
        else
                *val = MTP_PHONE_LOCK_OFF;