summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunjin Lee <yunjin-.lee@samsung.com>2017-08-09 16:22:52 +0900
committerYunjin Lee <yunjin-.lee@samsung.com>2017-08-09 16:22:52 +0900
commitc0debd94dfe7be2f0cb5112fb9cc683140a403e4 (patch)
treef06cd304fa2d83ceb718c61cd4b844330acf20a9
parent7d8af35c344825fcdf800e75d4fc1a9f85f841f1 (diff)
downloadprivacy-setting-c0debd94dfe7be2f0cb5112fb9cc683140a403e4.tar.gz
privacy-setting-c0debd94dfe7be2f0cb5112fb9cc683140a403e4.tar.bz2
privacy-setting-c0debd94dfe7be2f0cb5112fb9cc683140a403e4.zip
- Change policy level from 'Ask user' to 'Deny' when application's api-version is lower than 4.0. Those applications can't use privacy request popup API(available from platform 4.0) hence 'Ask user' is meaningless for them. Change-Id: Iab8eaeb09f3f4509d7c22b6ed61eff5fb142ae10 Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
-rw-r--r--ui/src/package_privacy_list_view.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/src/package_privacy_list_view.c b/ui/src/package_privacy_list_view.c
index d36b99d..407ece3 100644
--- a/ui/src/package_privacy_list_view.c
+++ b/ui/src/package_privacy_list_view.c
@@ -129,7 +129,13 @@ static void package_privacy_check_changed_cb(void *data, Evas_Object *obj, void
int ret = 0;
char* level;
if (pd->status) {
- level = "Ask user";
+ bool privacy_requestable = false;
+ ret = privilege_package_info_is_privacy_requestable(getuid(), pp_apd->pkgid, &privacy_requestable);
+ log_if(ret != PRVMGR_ERR_NONE, 1, "privilege_package_info_is_privacy_requestable failed");
+ if (privacy_requestable)
+ level = "Ask user";
+ else
+ level = "Deny";
pd->status = false;
__terminate_app();
} else {