allow myfiles to launch download-manager if operation is http://tizen.org/appcontrol... 93/103793/1 accepted/tizen/3.0/common/20161212.060525 accepted/tizen/3.0/ivi/20161212.023207 accepted/tizen/3.0/mobile/20161212.023158 accepted/tizen/3.0/wearable/20161212.023205 accepted/tizen/common/20161210.162018 accepted/tizen/ivi/20161212.025512 accepted/tizen/mobile/20161212.025435 accepted/tizen/wearable/20161212.025500 submit/tizen/20161209.120331 submit/tizen_3.0/20161209.120002
authorjaekuk, lee <juku1999@samsung.com>
Fri, 9 Dec 2016 11:56:08 +0000 (20:56 +0900)
committerjaekuk, lee <juku1999@samsung.com>
Fri, 9 Dec 2016 11:56:08 +0000 (20:56 +0900)
Change-Id: I84234b48a41a7483a22357b1e8c92efe103040fa
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
packaging/org.tizen.download-manager.spec
src/main.cpp

index 2d97c45..55293fc 100755 (executable)
@@ -1,7 +1,7 @@
 %define _ux_define tizen2.3
 Name:  org.tizen.download-manager
 Summary:       Application for support of the content download
-Version:       0.3.15
+Version:       0.3.16
 Release:       1
 License:       Flora-1.1
 Group:         misc
index 613a9a8..5dde3ab 100755 (executable)
@@ -234,6 +234,17 @@ static void __app_control(app_control_h s, void *data)
                return;
        }
        DM_SLOGI("operation[%s]", app_op);
+       if (app_control_get_caller(s, &caller) == APP_CONTROL_ERROR_NONE) {
+               if (!strncmp(caller, MYFILE_PKG_NAME, strlen(MYFILE_PKG_NAME))
+                       && strncmp(app_op, APP_CONTROL_OPERATION_DOWNLOAD, strlen(APP_CONTROL_OPERATION_DOWNLOAD))) {
+                       DM_LOGI("Silent mode");
+                       free(caller);
+                       return;
+               }
+               free(caller);
+       } else {
+               DM_LOGI("get app_control caller failed");
+       }
        free(app_op);
 
        if (app_control_get_uri(s, &url) < 0) {
@@ -245,17 +256,6 @@ static void __app_control(app_control_h s, void *data)
                free(url);
        }
 
-       if (app_control_get_caller(s, &caller) == APP_CONTROL_ERROR_NONE) {
-               if (0 == strncmp(caller, MYFILE_PKG_NAME, strlen(MYFILE_PKG_NAME))) {
-                       DM_LOGI("Silent mode");
-                       free(caller);
-                       return;
-               }
-               free(caller);
-       } else {
-               DM_LOGI("get app_control caller failed");
-       }
-
        ret = app_control_get_extra_data(s, KEY_DEFAULT_STORAGE, &default_storage);
        if (ret == APP_CONTROL_ERROR_NONE) {
                if (default_storage) {