Separate app paths for global app 53/57653/2 submit/tizen/20160122.030358
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 21 Jan 2016 10:15:35 +0000 (19:15 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 21 Jan 2016 10:23:03 +0000 (19:23 +0900)
- 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>
src/module.c

index 0a2dd41..586cab1 100644 (file)
@@ -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) */