diff options
author | Yunjin Lee <yunjin-.lee@samsung.com> | 2017-08-09 16:22:52 +0900 |
---|---|---|
committer | Yunjin Lee <yunjin-.lee@samsung.com> | 2017-08-09 16:22:52 +0900 |
commit | c0debd94dfe7be2f0cb5112fb9cc683140a403e4 (patch) | |
tree | f06cd304fa2d83ceb718c61cd4b844330acf20a9 | |
parent | 7d8af35c344825fcdf800e75d4fc1a9f85f841f1 (diff) | |
download | privacy-setting-c0debd94dfe7be2f0cb5112fb9cc683140a403e4.tar.gz privacy-setting-c0debd94dfe7be2f0cb5112fb9cc683140a403e4.tar.bz2 privacy-setting-c0debd94dfe7be2f0cb5112fb9cc683140a403e4.zip |
Change policy level according to the application's api-version when revoking privacytizen_4.0.m2_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_4.0/20170828.100009submit/tizen/20170811.073222accepted/tizen/unified/20170811.133437accepted/tizen/4.0/unified/20170828.223036tizen_4.0accepted/tizen_4.0_unified
- 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.c | 8 |
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 { |