From c8bf68581789fa5b2852969626148e363df52c0e Mon Sep 17 00:00:00 2001 From: Jihoon Jung Date: Wed, 23 May 2018 16:23:19 +0900 Subject: [PATCH] Change lock screen implementation Signed-off-by: Jihoon Jung Change-Id: I0fbaeb3e8cac9d7cd35da9fa86e31070ec8b4c57 --- packaging/mtp-responder.spec | 2 +- src/util/mtp_util.c | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/packaging/mtp-responder.spec b/packaging/mtp-responder.spec index c885722..f16a691 100755 --- a/packaging/mtp-responder.spec +++ b/packaging/mtp-responder.spec @@ -5,7 +5,7 @@ ExcludeArch: %arm aarch64 Name: mtp-responder Summary: Media Transfer Protocol daemon (responder) -Version: 0.0.26 +Version: 0.0.27 Release: 1 Group: Network & Connectivity/Other License: Apache-2.0 diff --git a/src/util/mtp_util.c b/src/util/mtp_util.c index 00d7c82..5c71591 100755 --- a/src/util/mtp_util.c +++ b/src/util/mtp_util.c @@ -304,18 +304,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; -- 2.7.4