summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2016-01-21 10:15:35 (GMT)
committerHwankyu Jhun <h.jhun@samsung.com>2016-01-21 10:23:03 (GMT)
commit0a9343c332a3250e571a3110135e956ddc4de6cf (patch)
tree990949c6cd58e01517a4395c4a3ecac2aee8ba74
parenta4e7ff94e5db5fa7d945a76732d260776117979d (diff)
downloadui-gadget-1-0a9343c332a3250e571a3110135e956ddc4de6cf.zip
ui-gadget-1-0a9343c332a3250e571a3110135e956ddc4de6cf.tar.gz
ui-gadget-1-0a9343c332a3250e571a3110135e956ddc4de6cf.tar.bz2
- There are two types of global apps. One is read only and the other is writable. Paths for those are different each other. Change-Id: I9d6c7806fd349377b74de5b9e0f0cce60481cfed Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--src/module.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/module.c b/src/module.c
index 0a2dd41..586cab1 100644
--- a/src/module.c
+++ b/src/module.c
@@ -163,6 +163,13 @@ static int __get_ug_info(const char* name, char** ug_file_path)
LOGD("ug_file(%s) check ok(%d)", ug_file, errno);
goto out_func;
} else {
+ snprintf(ug_file, sizeof(ug_file), "%s/%s/lib/ug/lib%s.so",
+ tzplatform_getenv(TZ_SYS_RW_APP), pkg_name, name);
+ if (file_exist(ug_file)) {
+ LOGD("ug_file(%s) check ok(%d)", ug_file, errno);
+ goto out_func;
+ }
+
LOGD("ug_file(%s) check fail(%d)", ug_file, errno);
}
/* Downloadable CORE APP(TPK) */