platform/core/appfw/alarm-manager.git
6 years agoHandle memory allocation failure 42/143142/1 accepted/tizen_3.0_ivi accepted/tizen/3.0/common/20170810.115119 accepted/tizen/3.0/ivi/20170810.094455 accepted/tizen/3.0/mobile/20170810.094346 accepted/tizen/3.0/tv/20170810.094440 accepted/tizen/3.0/wearable/20170810.094402 submit/tizen_3.0/20170809.043616
Semun Lee [Wed, 19 Jul 2017 04:37:22 +0000 (13:37 +0900)]
Handle memory allocation failure

Change-Id: Id4f0688bcf36d5045af165979b3270fa291af2fc
(cherry picked from commit f1ef07d08f40495c8fc5de980dd76bb1a243bc28)

6 years agoRemove unused code which makes build error 43/141543/2
dahyeong.kim [Mon, 31 Jul 2017 06:57:22 +0000 (15:57 +0900)]
Remove unused code which makes build error

- Remove unused code which makes build error when some flag was off

Change-Id: I962769a0145ceea38fc5bc87a79e1a24ec26fc91
Signed-off-by: dahyeong.kim <dahyeong.kim@samsung.com>
6 years agoFix wrong use of definition about RTC 17/139317/3 accepted/tizen/3.0/common/20170724.045700 accepted/tizen/3.0/ivi/20170724.031618 accepted/tizen/3.0/mobile/20170724.032245 submit/tizen_3.0/20170721.064920
Jiwoong Im [Tue, 18 Jul 2017 10:07:35 +0000 (19:07 +0900)]
Fix wrong use of definition about RTC

- There is wrong use of _APPFW_FEATURE_WAKEUP_USING_RTC and it causes
  build fail in tv profile.

Change-Id: Ifa6b887ecf6d4989d463452adda9991844b9c895
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
6 years agoModify getting appinfo in alarm expired 98/137698/2 submit/tizen_3.0/20170717.010938
Jiwoong Im [Fri, 7 Jul 2017 06:08:54 +0000 (15:08 +0900)]
Modify getting appinfo in alarm expired

- Get appinfo for the proper uid.

Change-Id: I57cf2b425fe039d12a4aae5fc3b3a7ccf950e3ea
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
6 years agoError handing when setting system-time is failed 67/137667/1
dahyeong.kim [Thu, 6 Jul 2017 11:36:37 +0000 (20:36 +0900)]
Error handing when setting system-time is failed

Change-Id: I9adb45b5aa2c995045912ac48b468a87734d2f80
Signed-off-by: dahyeong.kim <dahyeong.kim@samsung.com>
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
6 years agoFix logic for calculating next duetime considering DST 21/137221/1 accepted/tizen/3.0/common/20170707.091612 accepted/tizen/3.0/mobile/20170706.222111 accepted/tizen/3.0/wearable/20170706.222124 submit/tizen_3.0/20170705.085739 submit/tizen_3.0/20170705.090100
dahyeong.kim [Mon, 3 Jul 2017 09:33:16 +0000 (18:33 +0900)]
Fix logic for calculating next duetime considering DST

Change-Id: Ib13caf4cfb694f7bf0b56d0d517a0f60f003ac4c
Signed-off-by: dahyeong.kim <dahyeong.kim@samsung.com>
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
6 years agoFix bug in periodic alarm 46/135846/1 accepted/tizen/3.0/common/20170627.122939 accepted/tizen/3.0/ivi/20170627.084142 accepted/tizen/3.0/mobile/20170627.084133 accepted/tizen/3.0/tv/20170627.084136 accepted/tizen/3.0/wearable/20170627.084139 submit/tizen_3.0/20170627.054442
Jiwoong Im [Tue, 27 Jun 2017 04:39:39 +0000 (13:39 +0900)]
Fix bug in periodic alarm

Change-Id: I1d1ea8c40a208b9357a68ddea10cde7f734fadb2
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
6 years agoRemove unnecessary rtc setting in alarm-server 65/134065/1 accepted/tizen/3.0/common/20170616.065340 accepted/tizen/3.0/ivi/20170615.082004 accepted/tizen/3.0/mobile/20170615.081939 accepted/tizen/3.0/tv/20170615.081950 accepted/tizen/3.0/wearable/20170615.081946 submit/tizen_3.0/20170615.053540
Jiwoong Im [Wed, 14 Jun 2017 10:36:53 +0000 (19:36 +0900)]
Remove unnecessary rtc setting in alarm-server

- modify alarm-server not to repeat the rtc set for the same duetime.

Change-Id: I339fecb514f8a6c5fa0a67aa5ad9afd08e0bbd40
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
6 years agoFix memmory leak of pkgmgrinfo handle 63/133163/1 accepted/tizen/3.0/common/20170612.121632 accepted/tizen/3.0/ivi/20170612.050039 accepted/tizen/3.0/mobile/20170612.050020 accepted/tizen/3.0/tv/20170612.050026 accepted/tizen/3.0/wearable/20170612.050034 submit/tizen_3.0/20170609.051056
Jiwoong Im [Fri, 9 Jun 2017 05:42:54 +0000 (14:42 +0900)]
Fix memmory leak of pkgmgrinfo handle

Change-Id: Ib2468e6c0ef79daf323469f2df5f85a85150e347
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
6 years agoReplace rand() with g_random_int_range() 57/133157/2
Jiwoong Im [Thu, 8 Jun 2017 08:42:56 +0000 (17:42 +0900)]
Replace rand() with g_random_int_range()

- If unique_id are generated consecutively within one second,
  the same id can be generated.

Change-Id: I7937bd75ecaffbf5b173a9cc95dcf3064190a90e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
(cherry picked from commit 8178ffd979666a24acb26372d28142682cbfed12)

6 years agoFix bug in __get_caller_unique_name 40/133140/1
Jiwoong Im [Thu, 8 Jun 2017 04:40:58 +0000 (13:40 +0900)]
Fix bug in __get_caller_unique_name

- There is a bug that assign a wrong value to is_app boolean value.

Change-Id: I617d385849399d729d55c16ae6f927b3bc4f23b4
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
(cherry picked from commit 110a542df2a44a30e4296ed13e3e0def1f3dd3c2)

7 years agoFix bad casting 89/127589/1
Jiwoong Im [Fri, 28 Apr 2017 01:43:53 +0000 (10:43 +0900)]
Fix bad casting

- Casting smaller size variable to bigger size variable can lead to
  out-of-bounds memory access when dereferenced.

Change-Id: I89c26b3290a4159ac8f7c9932e0bd77d7928709e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
(cherry picked from commit fb9050c928d05867df3cb9fcbff306887372a13e)

7 years agoFix memory leak 80/125780/5 accepted/tizen/3.0/common/20170508.153041 accepted/tizen/3.0/ivi/20170508.050438 accepted/tizen/3.0/mobile/20170508.050349 accepted/tizen/3.0/tv/20170508.050410 accepted/tizen/3.0/wearable/20170508.050428 submit/tizen_3.0-common/20170508.080135 submit/tizen_3.0-common/20170508.081301 submit/tizen_3.0-common/20170508.091535 submit/tizen_3.0/20170426.044950 submit/tizen_3.0_common/20170508.091735
Jiwoong Im [Wed, 19 Apr 2017 00:11:37 +0000 (09:11 +0900)]
Fix memory leak

- Fix memory leak in sqlite3 error_message
- Add missing sqlite3_stmt in _load_alarms_from_registry

Change-Id: Idbcca3d50d30a0d7848b728cb07cd4ccfdd57879
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRemove dependency on db-util 78/125778/3
dahyeong.kim [Thu, 13 Apr 2017 12:30:33 +0000 (21:30 +0900)]
Remove dependency on db-util

Change-Id: I0f3e4f993cf75f076c5ebfc1b9d6b7cb15908318
Signed-off-by: dahyeong.kim <dahyeong.kim@samsung.com>
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoSend launch request asynchronously in alarm expired 10/125310/3 accepted/tizen/3.0/common/20170420.151450 accepted/tizen/3.0/ivi/20170420.092458 accepted/tizen/3.0/mobile/20170420.092323 accepted/tizen/3.0/tv/20170420.092420 accepted/tizen/3.0/wearable/20170420.092439 submit/tizen_3.0/20170417.033122
Jiwoong Im [Fri, 14 Apr 2017 02:35:02 +0000 (11:35 +0900)]
Send launch request asynchronously in alarm expired

- If target application is in ANR status, appsvc_usr_run_service api can be blocked.
  To solve this, use async api in sending launch request.

- Requires:
[aul-1] https://review.tizen.org/gerrit/#/c/125305/
[amd] https://review.tizen.org/gerrit/#/c/125306/

Change-Id: I65af5d9ba00bf378296899db2d6ff130e482fe18
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
(cherry picked from commit 74dd73c38e0f0ecc34c80a215c117ea6a01d7366)

7 years agoFix memory leak 09/125309/2
Jiwoong Im [Thu, 13 Apr 2017 11:51:57 +0000 (20:51 +0900)]
Fix memory leak

Change-Id: I5f3ec19974a46f99e2137bbe4ce36ed3a72d6457
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
(cherry picked from commit 3c5a6f638a65ae6d92f408dcb2a785ee2be514ff)

7 years agoFix memory leak 08/125308/1
Jiwoong Im [Sun, 2 Apr 2017 23:55:27 +0000 (08:55 +0900)]
Fix memory leak

Change-Id: Ied6964c23364a29b831a21fc4ffd338237aec2e8
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
(cherry picked from commit 54a2a1674e31cfbe8c01f8ac6589a8ed8f094d7b)

7 years agoChange privilege check in set time/timezone api 73/119873/1 accepted/tizen/3.0/common/20170324.141652 accepted/tizen/3.0/ivi/20170324.053207 accepted/tizen/3.0/mobile/20170324.053056 accepted/tizen/3.0/tv/20170324.053122 accepted/tizen/3.0/wearable/20170324.053143 submit/tizen_3.0/20170322.043154
Jiwoong Im [Mon, 20 Mar 2017 10:36:04 +0000 (19:36 +0900)]
Change privilege check in set time/timezone api

Change-Id: I41cfd77a5339b1bba9a045e72aa66c31c0975408
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix crash issue 49/119649/2
Venkatesha Sarpangala [Sun, 19 Mar 2017 09:13:01 +0000 (14:43 +0530)]
Fix crash issue

- API caller crashed due to null pointer dereference
- Fix by adding Null check before dereference

Change-Id: I885e4b2cb7b8c8d79656e95abc5a9dcfa1d1d7f6
Signed-off-by: Venkatesha Sarpangala <sarpangala.v@samsung.com>
7 years agoCheck if app is running by aul_app_get_all_running_app_info 75/117975/1 accepted/tizen/3.0/common/20170309.110507 accepted/tizen/3.0/ivi/20170309.085842 accepted/tizen/3.0/mobile/20170309.085553 accepted/tizen/3.0/tv/20170309.085701 accepted/tizen/3.0/wearable/20170309.085748 submit/tizen_3.0/20170309.012641
Jiwoong Im [Tue, 7 Mar 2017 09:04:55 +0000 (18:04 +0900)]
Check if app is running by aul_app_get_all_running_app_info

- aul_app_is_running() can't check if the watch-app is running or not.
  Replace check step by using aul_app_get_all_running_app_info.

Change-Id: I0061117ebe052e0c0e70c7f31cbe02e344bb0c40
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
(cherry picked from commit b2c299dc5a3596daf3766f8bb2a8ed96a78dfc22)

7 years agoChange to call aul_update_freezer_status function 63/116463/1 accepted/tizen/3.0/common/20170227.140002 accepted/tizen/3.0/ivi/20170227.043620 accepted/tizen/3.0/mobile/20170227.043407 accepted/tizen/3.0/tv/20170227.043500 accepted/tizen/3.0/wearable/20170227.043539 submit/tizen_3.0/20170224.111130
Jiwoong Im [Fri, 24 Feb 2017 08:14:15 +0000 (17:14 +0900)]
Change to call aul_update_freezer_status function

Change-Id: If78e3f78753d73940583e0c5bc143860334be6f3
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
(cherry picked from commit 1a075ee449bb5b3580ad2288ef0a06ad711ed5e5)

7 years agoFix Restart option 07/115507/1 accepted/tizen/3.0/common/20170224.125852 accepted/tizen/3.0/ivi/20170224.041455 accepted/tizen/3.0/mobile/20170224.040810 accepted/tizen/3.0/tv/20170224.041106 accepted/tizen/3.0/wearable/20170224.041235 submit/tizen_3.0/20170223.013552
Jiwoong Im [Mon, 20 Feb 2017 07:37:17 +0000 (16:37 +0900)]
Fix Restart option

- Use "on-failure" option instead of "always" option

Change-Id: I710e60444b4303cdaef4f8c161fd6c52430189b7
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix memory leak issue 55/114055/1 accepted/tizen/3.0/common/20170213.160625 accepted/tizen/3.0/ivi/20170213.035129 accepted/tizen/3.0/mobile/20170213.034938 accepted/tizen/3.0/tv/20170213.035029 accepted/tizen/3.0/wearable/20170213.035101 submit/tizen_3.0/20170210.073214
Jiwoong Im [Wed, 8 Feb 2017 06:44:03 +0000 (15:44 +0900)]
Fix memory leak issue

Change-Id: I68a40715a6453d1ecc0d6bc81583c958497a5bcb
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
(cherry picked from commit 359a7e1b4392305118fc1c56c363c5a143590b1f)

7 years agoreplace stat to lstat in alarm_manager_alarm_set_timezone
Jiwoong Im [Mon, 23 Jan 2017 09:01:54 +0000 (18:01 +0900)]
replace stat to lstat in alarm_manager_alarm_set_timezone

- To check the link itself, user lstat instead of stat

Change-Id: I55d51621721b56ec4d442371bd635cdb0d9ffd20
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix bug in alarmmgr_fini 12/107712/3 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.122121 accepted/tizen/3.0.m2/tv/20170104.122632 accepted/tizen/3.0.m2/wearable/20170104.123000 accepted/tizen/3.0/common/20161230.054918 accepted/tizen/3.0/ivi/20161230.010842 accepted/tizen/3.0/mobile/20161230.010747 accepted/tizen/3.0/tv/20161230.010804 accepted/tizen/3.0/wearable/20161230.010822 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161229.103556
Jiwoong Im [Thu, 29 Dec 2016 09:36:25 +0000 (18:36 +0900)]
Fix bug in alarmmgr_fini

- Some finalize step for session bus connection is missing.

Change-Id: Iaf033059e35efcdedadab05bb8e305825086b0c1
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoAdd delay for millisecond accuracy alarm handler 14/107114/3 accepted/tizen/3.0/common/20161228.071634 accepted/tizen/3.0/ivi/20161228.021737 accepted/tizen/3.0/mobile/20161228.021612 accepted/tizen/3.0/tv/20161228.021652 accepted/tizen/3.0/wearable/20161228.021715 submit/tizen_3.0/20161227.023045
Jiwoong Im [Mon, 26 Dec 2016 13:00:49 +0000 (22:00 +0900)]
Add delay for millisecond accuracy alarm handler

Change-Id: I7ef155b7e3c3f75f8b5bf35e9838b6d977ee7c98
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoSupport milliseconds accuracy api 21/105421/2 accepted/tizen/3.0/common/20161227.101322 accepted/tizen/3.0/ivi/20161226.024911 accepted/tizen/3.0/mobile/20161226.024816 accepted/tizen/3.0/tv/20161226.024834 accepted/tizen/3.0/wearable/20161226.024851 submit/tizen_3.0/20161222.060248
Jiwoong Im [Fri, 16 Dec 2016 11:46:04 +0000 (20:46 +0900)]
Support milliseconds accuracy api

- Add alarmmgr_add_alarm_precision().
  This api support non-volatile milliseconds accuracy alarm.

Change-Id: Ia20c3eed30ee8190176b8dd4e6f299dc81b4b53d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix alarmmgr_add_alarm_withcb_precision api. 73/105173/1 accepted/tizen/3.0/common/20161219.113520 accepted/tizen/3.0/ivi/20161219.071457 accepted/tizen/3.0/tv/20161219.074320 accepted/tizen/3.0/wearable/20161219.095502 submit/tizen_3.0/20161216.082724
Jiwoong Im [Fri, 16 Dec 2016 01:49:29 +0000 (10:49 +0900)]
Fix alarmmgr_add_alarm_withcb_precision api.

- Change priority in g_timeout_add to G_PRIORITY_HIGH.
  Modify alarmmgr_add_alarm_withcb_precision description.

Change-Id: I8351c5c508f495cac44acfa96cbe68e3caf84ca5
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoChange log dump script path 22/103422/1 accepted/tizen/3.0/common/20161212.060347 accepted/tizen/3.0/ivi/20161212.022755 accepted/tizen/3.0/mobile/20161212.022531 accepted/tizen/3.0/tv/20161212.022652 accepted/tizen/3.0/wearable/20161212.022721 submit/tizen_3.0/20161209.072525
Jiwoong Im [Thu, 8 Dec 2016 08:42:55 +0000 (17:42 +0900)]
Change log dump script path

- change to /opt/etc/dump.d/module.d/alarmmgr_log_dump.sh

Change-Id: I171a0f745088618b45aefcfb40fd727940c70a84
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix memory leak in using pkgmgrinfo_appinfo_h 74/103174/1 accepted/tizen/3.0/common/20161208.153757 accepted/tizen/3.0/ivi/20161208.063754 accepted/tizen/3.0/mobile/20161208.063719 accepted/tizen/3.0/tv/20161208.063738 accepted/tizen/3.0/wearable/20161208.063745 submit/tizen_3.0/20161208.010952
Jiwoong Im [Wed, 7 Dec 2016 11:42:40 +0000 (20:42 +0900)]
Fix memory leak in using pkgmgrinfo_appinfo_h

Change-Id: Iad18257ff2afe4b3d0fd95f0629fb868eff6f09d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix memory leak in handling expired notification alarm 16/102516/1 accepted/tizen/3.0/common/20161207.194924 accepted/tizen/3.0/ivi/20161207.014002 accepted/tizen/3.0/mobile/20161207.013910 accepted/tizen/3.0/tv/20161207.013928 accepted/tizen/3.0/wearable/20161207.013945 submit/tizen_3.0/20161207.001753
Jiwoong Im [Tue, 6 Dec 2016 04:55:41 +0000 (13:55 +0900)]
Fix memory leak in handling expired notification alarm

Change-Id: I54c5e9843ddfa0f376a611579b8567e50de906e6
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoAdd missing initialize step in alarm noti api 21/102121/1
Jiwoong Im [Mon, 5 Dec 2016 04:55:28 +0000 (13:55 +0900)]
Add missing initialize step in alarm noti api

Change-Id: I9c43e2ac07603250e387b3aff824c14034d080b6
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoChange upgrade script number 60/101860/2 accepted/tizen/3.0/common/20161205.091927 accepted/tizen/3.0/ivi/20161204.235846 accepted/tizen/3.0/mobile/20161204.235711 accepted/tizen/3.0/tv/20161204.235751 accepted/tizen/3.0/wearable/20161204.235817 submit/tizen_3.0/20161202.085638
Jiwoong Im [Fri, 2 Dec 2016 08:46:06 +0000 (17:46 +0900)]
Change upgrade script number

Change-Id: Id2a797735783bd35dda86371ce4c3dd58cab7ea8
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix alarmmgr_upgrade script 46/100846/1 accepted/tizen/3.0/common/20161130.065256 accepted/tizen/3.0/ivi/20161130.012621 accepted/tizen/3.0/mobile/20161130.012507 accepted/tizen/3.0/tv/20161130.012546 accepted/tizen/3.0/wearable/20161130.012603 submit/tizen_3.0/20161129.101050
Jiwoong Im [Tue, 29 Nov 2016 10:52:19 +0000 (19:52 +0900)]
fix alarmmgr_upgrade script

- add missing column

Change-Id: Ic86091d71f6d81b8aa98a1b00f6cccd5f73cea52
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoreplace module log saving path 00/100400/4
Jiwoong Im [Mon, 28 Nov 2016 05:18:34 +0000 (14:18 +0900)]
replace module log saving path

- Because of permission, replace /var/log to /run/alarmmgr_log

Change-Id: I239663fa965aab7b49efc74766a0743b2d13baad
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoSupport milliseconds accuracy api for platform module 00/98300/11 accepted/tizen/3.0/common/20161128.091428 accepted/tizen/3.0/ivi/20161128.083608 accepted/tizen/3.0/mobile/20161128.083407 accepted/tizen/3.0/tv/20161128.083446 accepted/tizen/3.0/wearable/20161128.083528 submit/tizen_3.0/20161125.051452
Jiwoong Im [Wed, 2 Nov 2016 00:41:12 +0000 (09:41 +0900)]
Support milliseconds accuracy api for platform module

- add alarmmgr_add_alarm_withcb_precision()

Change-Id: I02252d8fc273a09b7682fde66bd3bc5098d9cda1
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix alarmmgr_upgrade script 35/99835/1 accepted/tizen/3.0/common/20161125.101649 accepted/tizen/3.0/ivi/20161125.081159 accepted/tizen/3.0/mobile/20161125.081050 accepted/tizen/3.0/tv/20161125.081131 accepted/tizen/3.0/wearable/20161125.081140 submit/tizen_3.0/20161124.111024
Jiwoong Im [Thu, 24 Nov 2016 08:07:45 +0000 (17:07 +0900)]
fix alarmmgr_upgrade script

Change-Id: If6cbd453d26e28f6237513b79d76dedd9485a15a
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix error in wakeup alarm rtc set 81/98281/1 accepted/tizen/3.0/common/20161118.192940 accepted/tizen/3.0/ivi/20161118.003831 accepted/tizen/3.0/mobile/20161118.003728 accepted/tizen/3.0/tv/20161118.003748 accepted/tizen/3.0/wearable/20161118.003810 submit/tizen_3.0/20161117.022446
Jiwoong Im [Thu, 17 Nov 2016 02:13:20 +0000 (11:13 +0900)]
Fix error in wakeup alarm rtc set

Change-Id: Icd1fd7eae992aa33041c577dc321173df478b047
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agohandle app enable/disable signal 62/96862/2
Jiwoong Im [Mon, 31 Oct 2016 08:58:15 +0000 (17:58 +0900)]
handle app enable/disable signal

- backup/restore alarm to handle app enable/disable signal

Change-Id: Id90b0004f7452ce1d93759e417eb79808865e5cf
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoremove smack labeling in socket unit file 06/97506/1 accepted/tizen/3.0/common/20161116.143634 accepted/tizen/3.0/ivi/20161116.022259 accepted/tizen/3.0/mobile/20161116.022056 accepted/tizen/3.0/tv/20161116.022144 accepted/tizen/3.0/wearable/20161116.022225 submit/tizen_3.0/20161115.024443
Jiwoong Im [Mon, 14 Nov 2016 10:05:29 +0000 (19:05 +0900)]
remove smack labeling in socket unit file

Change-Id: I2b0476466e2fd988744391a3de5fe8e714676a2e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix NULL dereference defect 23/96223/1 accepted/tizen/3.0/common/20161114.082555 accepted/tizen/3.0/ivi/20161110.020332 accepted/tizen/3.0/mobile/20161110.020239 accepted/tizen/3.0/tv/20161110.020254 accepted/tizen/3.0/wearable/20161110.020314 submit/tizen_3.0/20161108.101813 submit/tizen_3.0_common/20161110.084657
Hyunho Kang [Tue, 8 Nov 2016 07:36:55 +0000 (16:36 +0900)]
Fix NULL dereference defect

Change-Id: I58e5ba3102f62e6d006a718235eaca0c42bebb27
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
7 years agoadd missing noti initialize in __alarm_create accepted/tizen/3.0/ivi/20161104.103818 accepted/tizen/3.0/mobile/20161104.103739 accepted/tizen/3.0/tv/20161104.103742 accepted/tizen/3.0/wearable/20161104.103757 submit/tizen_3.0/20161104.014414
Jiwoong Im [Fri, 4 Nov 2016 04:34:20 +0000 (13:34 +0900)]
add missing noti initialize in __alarm_create

Change-Id: I6c66eb8328578c072ef6c34088e851638c4e4187
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix syntax error alarm-service.conf file
Jiwoong Im [Fri, 4 Nov 2016 00:33:18 +0000 (09:33 +0900)]
fix syntax error alarm-service.conf file

Change-Id: Idf313157fbfa7fe3d4ea0b14517cba9e391b5f56
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix using wrong event type 63/95563/1
Sangyoon Jang [Fri, 4 Nov 2016 00:43:22 +0000 (09:43 +0900)]
Fix using wrong event type

Change-Id: I552b854c1f4b77477fff2b6315e425465fd3a960
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoadd notification requires in pc file 81/94881/2 accepted/tizen/3.0/ivi/20161103.131748 accepted/tizen/3.0/mobile/20161103.131651 accepted/tizen/3.0/tv/20161103.131710 accepted/tizen/3.0/wearable/20161103.131730 submit/tizen_3.0/20161102.064015
Jiwoong Im [Wed, 2 Nov 2016 01:23:08 +0000 (10:23 +0900)]
add notification requires in pc file

Change-Id: I346d67056b6d3e8c9c7dc4931d9e875a598919a3
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoadd notification alarm APIs 86/82186/12 submit/tizen/20161101.112858
Jiwoong Im [Mon, 1 Aug 2016 11:18:57 +0000 (20:18 +0900)]
add notification alarm APIs

- alarmmgr_add_alarm_noti()
  alarmmgr_add_alarm_noti_with_localtime()
  alarmmgr_get_alarm_noti_info()

Change-Id: I19e994a95a6bb198a42df7102ed3df14b8398c6a
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix CMakeLists for compatibility 75/94275/1 accepted/tizen/3.0/ivi/20161102.075743 accepted/tizen/3.0/mobile/20161102.075610 accepted/tizen/3.0/tv/20161102.075641 accepted/tizen/3.0/wearable/20161102.075716 accepted/tizen/common/20161031.122117 accepted/tizen/ivi/20161101.005350 accepted/tizen/mobile/20161101.005255 accepted/tizen/tv/20161101.005310 accepted/tizen/wearable/20161101.005331 submit/tizen/20161031.090409 submit/tizen_3.0/20161102.051512
Jiwoong Im [Fri, 28 Oct 2016 02:40:53 +0000 (11:40 +0900)]
Fix CMakeLists for compatibility

- Fix CMakeLists to include additional source files automatically

Change-Id: Id2831fd66456e4a22cfa1fa92c32554e323ccf2e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agocache app_unique_name to improve performance 93/93393/9
Jiwoong Im [Mon, 24 Oct 2016 05:48:52 +0000 (14:48 +0900)]
cache app_unique_name to improve performance

Change-Id: If090e3b8504cf0b6ad888a40f3181269c0fb3c4a
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoassign NULL after unref global object 54/93554/2
Jiwoong Im [Tue, 25 Oct 2016 01:58:43 +0000 (10:58 +0900)]
assign NULL after unref global object

Change-Id: Id73dfc4b464417f93c27926befbc61ff514c7c9f
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix bug in relative type & once alarm 71/93371/5
Jiwoong Im [Mon, 24 Oct 2016 04:15:00 +0000 (13:15 +0900)]
Fix bug in relative type & once alarm

- Timer is not expired when duetime is duplicated time as DST

Change-Id: I6d7284a5e8cd93c8163e88d82c446c0457710931
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix miscalculated duetime 42/93542/3
Jiwoong Im [Tue, 25 Oct 2016 01:37:17 +0000 (10:37 +0900)]
fix miscalculated duetime

Change-Id: Ibddb808f132c93bb88f4b5c4b05d52ba134eff93
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoadd privilege check in set_time api 41/93541/2
Jiwoong Im [Tue, 25 Oct 2016 01:33:58 +0000 (10:33 +0900)]
add privilege check in set_time api

- alarm_manager_alarm_set_time()
  alarm_manager_alarm_set_time_with_propagation_delay()
  alarm_manager_alarm_set_timezone()

Change-Id: I39eaa175f86dbc1d7a822ae30119bcc8741e1361
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoUse pkgmgr_client_new instead of pkgmgrinfo_client_new 84/93484/1
Sangyoon Jang [Mon, 24 Oct 2016 11:50:31 +0000 (20:50 +0900)]
Use pkgmgr_client_new instead of pkgmgrinfo_client_new

Change-Id: I10bf0f71d9fd9d9809dcddee03c765d5f7666f9b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoremove unused alarmmgr_server object 37/90937/2 accepted/tizen/3.0/ivi/20161011.053545 accepted/tizen/3.0/mobile/20161015.032341 accepted/tizen/3.0/tv/20161016.003647 accepted/tizen/3.0/wearable/20161015.080405 accepted/tizen/common/20161005.165556 accepted/tizen/ivi/20161006.075653 accepted/tizen/mobile/20161006.075606 accepted/tizen/tv/20161006.075627 accepted/tizen/wearable/20161006.075638 submit/tizen/20161005.072822 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000000 submit/tizen_3.0_ivi/20161010.000010 submit/tizen_3.0_mobile/20161015.000000 submit/tizen_3.0_tv/20161015.000000 submit/tizen_3.0_wearable/20161015.000000
Jiwoong Im [Wed, 5 Oct 2016 05:05:46 +0000 (14:05 +0900)]
remove unused alarmmgr_server object

Change-Id: Ic01ff720605f70c00d8eb44917487f60e72574ec
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix bug in __set_time function 51/90151/1 accepted/tizen/common/20160929.163036 accepted/tizen/ivi/20160929.081522 accepted/tizen/mobile/20160929.081527 accepted/tizen/tv/20160929.081459 accepted/tizen/wearable/20160929.081515 submit/tizen/20160929.002630
Jiwoong Im [Wed, 28 Sep 2016 13:43:25 +0000 (22:43 +0900)]
fix bug in __set_time function

Change-Id: I93f9d532935f831251e22fae4c9d33624e14c20a
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix system time setting in tv profile 86/90086/2 accepted/tizen/common/20160928.164447 submit/tizen/20160928.084653
Jiwoong Im [Wed, 28 Sep 2016 08:32:48 +0000 (17:32 +0900)]
fix system time setting in tv profile

Change-Id: I5ad368f964f33cc46bfc7cc86306db38a8a7a813
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoUse pkgmgr_client_xxx instead of pkgmgrinfo_client_xxx 61/89561/1
Sangyoon Jang [Mon, 26 Sep 2016 04:45:17 +0000 (13:45 +0900)]
Use pkgmgr_client_xxx instead of pkgmgrinfo_client_xxx

Change-Id: Ie8789a00f4120a36517ad914feaa2cf876e9197e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdd extension APIs for exact alarms of service app 91/88891/2 accepted/tizen/common/20160923.161044 accepted/tizen/ivi/20160927.020312 accepted/tizen/mobile/20160927.020154 accepted/tizen/tv/20160927.020234 accepted/tizen/wearable/20160927.020221 submit/tizen/20160923.090258
Jiwoong Im [Wed, 21 Sep 2016 05:34:36 +0000 (14:34 +0900)]
Add extension APIs for exact alarms of service app

Change-Id: I3e4580cd6da4bdef0d221313c86aaaf570ae5499
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoDisable RTC feature in tv profile 80/89080/3
Jiwoong Im [Thu, 22 Sep 2016 04:24:18 +0000 (13:24 +0900)]
Disable RTC feature in tv profile

Change-Id: I86faaa880dc19a82410140040103027f6263cdbb
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix alarm-server segmentation fault 42/88442/1 accepted/tizen/common/20160919.154752 accepted/tizen/ivi/20160920.051924 accepted/tizen/mobile/20160920.051830 accepted/tizen/tv/20160920.051845 accepted/tizen/wearable/20160920.051905 submit/tizen/20160919.100356
Jiwoong Im [Mon, 19 Sep 2016 06:26:37 +0000 (15:26 +0900)]
fix alarm-server segmentation fault

- Creating a GDBusObjectManagerServer object step is missing.

Change-Id: Ia9369aa43f96719417f5d26c89c021875143f772
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix dbus conf file 79/87479/3 accepted/tizen/common/20160909.115107 accepted/tizen/ivi/20160909.122433 accepted/tizen/mobile/20160909.122339 accepted/tizen/tv/20160909.122356 accepted/tizen/wearable/20160909.122416 submit/tizen/20160909.060412
Hwankyu Jhun [Thu, 8 Sep 2016 07:37:08 +0000 (16:37 +0900)]
Fix dbus conf file

- Remove send_interface

Change-Id: Id08e18677d06b5e0de0f6d84d2b4472744b425b3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoAdd a script to upgrade alarmmgr db 75/87475/1
Hwankyu Jhun [Thu, 8 Sep 2016 07:29:35 +0000 (16:29 +0900)]
Add a script to upgrade alarmmgr db

Change-Id: Ib729f0af1409361d05f28cc695a0d79714947f99
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoremove nonexistent service file in alarm-server.service 71/84671/1 accepted/tizen/common/20160823.132649 accepted/tizen/ivi/20160824.021627 accepted/tizen/mobile/20160824.021515 accepted/tizen/tv/20160824.021546 accepted/tizen/wearable/20160824.021651 submit/tizen/20160822.060113
Jiwoong Im [Mon, 22 Aug 2016 02:36:03 +0000 (11:36 +0900)]
remove nonexistent service file in alarm-server.service

Change-Id: I4273506108c6b562d25392cae626c3b8b5abc67f
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoSet the SMACK security label to run given executable file in systemd services 25/80825/1 accepted/tizen/common/20160721.180002 accepted/tizen/ivi/20160721.090823 accepted/tizen/mobile/20160721.090558 accepted/tizen/tv/20160721.091353 accepted/tizen/wearable/20160721.091129 submit/tizen/20160721.003054
jooseong lee [Wed, 20 Jul 2016 08:49:30 +0000 (17:49 +0900)]
Set the SMACK security label to run given executable file in systemd services

Change-Id: I6d6e47103a92919a1e76a6ce6336abf38d51dd15
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
7 years agoFix handling expired alarm 11/80511/1 accepted/tizen/common/20160719.172235 accepted/tizen/ivi/20160719.020106 accepted/tizen/mobile/20160719.020201 accepted/tizen/tv/20160719.020128 accepted/tizen/wearable/20160719.020148 submit/tizen/20160718.115318
Jiwoong Im [Mon, 18 Jul 2016 10:53:04 +0000 (19:53 +0900)]
Fix handling expired alarm

- alarm-server can't check destination app service name by
"NameHasOwner" method call because application owns name in session bus.
Use aul_app_is_running to check that app is running.
- add uid in expired alarm.

Change-Id: I5d44af4e686306467a6b5c28082a0d01199938ef
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agomodify alarm-server dbus initializing step 82/78982/2 accepted/tizen/common/20160708.140755 accepted/tizen/ivi/20160708.092004 accepted/tizen/mobile/20160708.091826 accepted/tizen/tv/20160708.091920 accepted/tizen/wearable/20160708.091808 submit/tizen/20160708.042127
Jiwoong Im [Thu, 7 Jul 2016 13:44:25 +0000 (22:44 +0900)]
modify alarm-server dbus initializing step

- replace step to get connection by g_bus_get_sync
  modify some incorrectly used function

Change-Id: Ibcae5a1a341a25d9e2b5541834189baad4ac689d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoreassign PATH env in shell script 13/77013/1 accepted/tizen/common/20160703.130014 accepted/tizen/ivi/20160629.070844 accepted/tizen/mobile/20160629.071007 accepted/tizen/tv/20160629.070738 accepted/tizen/wearable/20160629.070824 submit/tizen/20160629.021322 submit/tizen_common/20160701.180000
Jiwoong Im [Tue, 28 Jun 2016 08:44:09 +0000 (17:44 +0900)]
reassign PATH env in shell script

Change-Id: Ie14cf215b65f8b8094a9f364e90fe66c32688ceb
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix tainted int 89/76289/1 accepted/tizen/common/20160629.222150 accepted/tizen/ivi/20160624.064115 accepted/tizen/mobile/20160624.063713 accepted/tizen/tv/20160624.063734 accepted/tizen/wearable/20160624.064000 submit/tizen/20160623.110452
Jiwoong Im [Thu, 23 Jun 2016 09:09:30 +0000 (18:09 +0900)]
fix tainted int

Change-Id: Ib1220dfb64cb4d4030f98542791e11ef33eac3f2
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix memory leak 82/74682/2 accepted/tizen/common/20160616.151747 accepted/tizen/ivi/20160616.105031 accepted/tizen/mobile/20160616.104948 accepted/tizen/tv/20160616.104958 accepted/tizen/wearable/20160616.105018 submit/tizen/20160616.003540
Jiwoong Im [Wed, 15 Jun 2016 07:44:22 +0000 (16:44 +0900)]
fix memory leak

Change-Id: I8e11dbe0b607debebf43169e12d2c5bfd8b2324f
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoapply ASLR to alarm_session_agent 03/74203/1 accepted/tizen/common/20160614.143653 accepted/tizen/ivi/20160614.041206 accepted/tizen/mobile/20160614.041114 accepted/tizen/tv/20160614.041151 accepted/tizen/wearable/20160614.041136 submit/tizen/20160613.062107
Jiwoong Im [Mon, 13 Jun 2016 07:33:30 +0000 (16:33 +0900)]
apply ASLR to alarm_session_agent

Change-Id: I0ce3ed71052cfff3fedd26dc440698b75e88ea1d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoset /dev/rtc0 smack label in udev rule file 97/73697/1 accepted/tizen/common/20160610.182122 accepted/tizen/ivi/20160610.114859 accepted/tizen/mobile/20160610.114758 accepted/tizen/tv/20160610.114818 accepted/tizen/wearable/20160610.114837 submit/tizen/20160609.223734
Jiwoong Im [Thu, 9 Jun 2016 07:55:21 +0000 (16:55 +0900)]
set /dev/rtc0 smack label in udev rule file

Change-Id: Ic1c79bd452d040953abb378a56ee94162fe86675
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoadd alarm session agent 72/69972/8
Jiwoong Im [Tue, 17 May 2016 11:51:53 +0000 (20:51 +0900)]
add alarm session agent

- To send alarm expired dbus signal to session bus, add alarm-session-agent.
  alarm-server send request to alarm-session-agent.
  alarm-session-agent started by socket activation and send alarm
  expired signal to session bus.
  After sending dbus signal, alarm-session-agent exited.

Change-Id: Ieec687154db5f156cbe52d65a39282e49ad69d11
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix incorrect implementation in alarm_set_global 44/72344/1 accepted/tizen/common/20160606.141608 accepted/tizen/ivi/20160602.230749 accepted/tizen/mobile/20160602.230730 accepted/tizen/tv/20160602.230712 accepted/tizen/wearable/20160602.230648 submit/tizen/20160602.040935
Jiwoong Im [Tue, 31 May 2016 12:50:12 +0000 (21:50 +0900)]
fix incorrect implementation in alarm_set_global

Change-Id: I02d4bba348f733665ddce4ec58682abad94b1985
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix rtc_time_set to set utc time 65/71765/2 accepted/tizen/common/20160602.140103 accepted/tizen/ivi/20160602.022910 accepted/tizen/mobile/20160602.023042 accepted/tizen/tv/20160602.022622 accepted/tizen/wearable/20160602.022757 submit/tizen/20160531.024853
Jiwoong Im [Fri, 27 May 2016 04:54:14 +0000 (13:54 +0900)]
Fix rtc_time_set to set utc time

Change-Id: I1c8dbb111d896341416870d8ec029a35858ce943
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoremove root user in dbus servcie file 50/71150/1
Jiwoong Im [Tue, 24 May 2016 08:45:04 +0000 (17:45 +0900)]
remove root user in dbus servcie file

Change-Id: I1771ad484f75278d0a7720c66be23bd82a4d74b6
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoadd exception handling in using gdbus api 09/71109/2 accepted/tizen/common/20160525.155802 accepted/tizen/ivi/20160525.234931 accepted/tizen/mobile/20160525.234859 accepted/tizen/tv/20160525.234914 accepted/tizen/wearable/20160525.234919 submit/tizen/20160524.073932 submit/tizen/20160524.100942
Jiwoong Im [Tue, 24 May 2016 06:51:14 +0000 (15:51 +0900)]
add exception handling in using gdbus api

Change-Id: Iefebee50b14ff1e368012850d33a76e8fdbede9f
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoFix some returns in alarm set/get api 75/69575/1 accepted/tizen/common/20160517.173921 accepted/tizen/ivi/20160517.032508 accepted/tizen/mobile/20160517.032550 accepted/tizen/tv/20160517.032525 accepted/tizen/wearable/20160517.032536 submit/tizen/20160516.093613
Jiwoong Im [Mon, 16 May 2016 02:49:00 +0000 (11:49 +0900)]
Fix some returns in alarm set/get api

Change-Id: I40101a3bdd1071765290172d916cd55abb7152d5
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agochange alarm-server to non-root user 14/68714/4
Jiwoong Im [Mon, 9 May 2016 11:15:30 +0000 (20:15 +0900)]
change alarm-server to non-root user

- change alarm-server uid from 'root' to 'app_fw'
- change permission and group of /dev/rtc0 by udev rule

Change-Id: I11dd2a14daff5c9b6b67c4f37708cc2a17f358e1
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agomerge async api from tizen 2.4 22/67622/2 accepted/tizen/common/20160428.144908 accepted/tizen/ivi/20160429.011352 accepted/tizen/mobile/20160429.011326 accepted/tizen/tv/20160429.011345 accepted/tizen/wearable/20160429.011334 submit/tizen/20160428.065355
Jiwoong Im [Wed, 27 Apr 2016 12:32:07 +0000 (21:32 +0900)]
merge async api from tizen 2.4

- alarmmgr_set_systime_async
- alarmmgr_set_systime_with_propagation_delay_async

Change-Id: I37ecfcbb4207478df698497a0cd80090db664973
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoown name in alarmmgr_init to get alarm expired signal 83/67183/2 accepted/tizen/common/20160427.053821 accepted/tizen/ivi/20160426.234154 accepted/tizen/mobile/20160426.234117 accepted/tizen/tv/20160426.234128 accepted/tizen/wearable/20160426.234133 submit/tizen/20160426.062602
Jiwoong Im [Mon, 25 Apr 2016 12:46:17 +0000 (21:46 +0900)]
own name in alarmmgr_init to get alarm expired signal

Change-Id: I7b1263ad893c3bedcf7e6e4915070f5b7aff3b5d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoset destination in alarm_expired signal 59/66459/4 accepted/tizen/common/20160425.144813 accepted/tizen/ivi/20160423.060634 accepted/tizen/mobile/20160423.055725 accepted/tizen/tv/20160423.060120 accepted/tizen/wearable/20160423.060401 submit/tizen/20160422.142435
Jiwoong Im [Tue, 19 Apr 2016 04:54:25 +0000 (13:54 +0900)]
set destination in alarm_expired signal

Change-Id: I12f2bc4681dd7093ed229cdc149aaebc0703e091
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoUse strerror_r for thread-safe 40/63140/1 accepted/tizen/common/20160325.133756 accepted/tizen/ivi/20160323.013555 accepted/tizen/mobile/20160323.013503 accepted/tizen/tv/20160323.013518 accepted/tizen/wearable/20160323.013538 submit/tizen/20160322.121104
Myungki Lee [Tue, 22 Mar 2016 08:00:56 +0000 (17:00 +0900)]
Use strerror_r for thread-safe

Change-Id: I8463b9904102c9b400a87d80c8044d15a11aaa8e
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
8 years agoUse thread-safe function 28/62228/5 accepted/tizen/common/20160321.145925 accepted/tizen/ivi/20160321.004620 accepted/tizen/ivi/20160322.023147 accepted/tizen/mobile/20160321.004523 accepted/tizen/tv/20160321.004542 accepted/tizen/wearable/20160321.004601 submit/tizen/20160317.022200 submit/tizen/20160318.074817 submit/tizen_ivi/20160322.020156
Myungki Lee [Wed, 16 Mar 2016 01:41:24 +0000 (10:41 +0900)]
Use thread-safe function

Change-Id: I05268be167ed04d3201a4180f6101961d969d6b6
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
8 years agoadd missing priviliege check in alarm_delete_all 08/61908/1 accepted/tizen/common/20160315.220732 accepted/tizen/ivi/20160313.114511 accepted/tizen/mobile/20160313.113402 accepted/tizen/tv/20160313.113727 accepted/tizen/wearable/20160313.114136 submit/tizen/20160311.064153
Jiwoong Im [Fri, 11 Mar 2016 06:01:24 +0000 (15:01 +0900)]
add missing priviliege check in alarm_delete_all

Change-Id: I1c932045eadb3e649d3d560b0270b56cd8322b43
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoRemove compile warning messages and apply coding rule 77/61877/1 accepted/tizen/ivi/20160311.145938 accepted/tizen/mobile/20160311.142903 accepted/tizen/tv/20160311.144529 accepted/tizen/wearable/20160311.145324 submit/tizen/20160311.052741
Hwankyu Jhun [Fri, 11 Mar 2016 05:05:57 +0000 (14:05 +0900)]
Remove compile warning messages and apply coding rule

Change-Id: I0e7b57ab00711b5c7abc5cf7f2d664b0cbc4f1d2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoRemove compile warning 57/61657/1
Myungki Lee [Wed, 9 Mar 2016 10:48:52 +0000 (19:48 +0900)]
Remove compile warning

Change-Id: Idaf122349cd8be44e741f22d36f5b2bd9caa7810
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
8 years agoApply to sending system-event in alarm-manager 46/53946/2 accepted/tizen/ivi/20160218.023400 accepted/tizen/mobile/20151212.071318 accepted/tizen/tv/20151212.072753 accepted/tizen/wearable/20151212.073414 submit/tizen/20151211.090312 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000002
Jiwoong Im [Thu, 10 Dec 2015 09:33:26 +0000 (18:33 +0900)]
Apply to sending system-event in alarm-manager

Change-Id: I843e91913d5f3877ca00a7a89cd77d712cab4561
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoUpdate alarm-manager source from tizen_2.4 19/53619/1 accepted/tizen/mobile/20151210.082842 accepted/tizen/tv/20151210.082858 accepted/tizen/wearable/20151210.082908 submit/tizen/20151210.025005
Hwankyu Jhun [Mon, 7 Dec 2015 08:34:45 +0000 (17:34 +0900)]
Update alarm-manager source from tizen_2.4

- Add dbus activation feature
- Revert settime api ti do not user compensating latency
- Expire alarms forcibly when real duetime is same to current time
- Fix prevent issue

Change-Id: I09c51cb395cbe340c646ea24bd75882761b080ab
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoAdd new apis to support global alarm 04/52704/9
inkyun.kil [Thu, 26 Nov 2015 05:07:20 +0000 (14:07 +0900)]
Add new apis to support global alarm

- add api 'alarmmgr_set_global()' and 'alarmmgr_get_global()'
- add privilege check for added method call in alarm-server
- find login user in launching global alarm

Change-Id: I43d22b28d1c36f8817233d4e985027791cb4d1f7

8 years agoRemove compile warning messages and fix log level 77/53477/2
Hwankyu Jhun [Mon, 7 Dec 2015 03:10:13 +0000 (12:10 +0900)]
Remove compile warning messages and fix log level

Change-Id: I8531c192a49df51210652a2835b90d34438df0c8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoallow method call in standard properties interface for alarm-server. 29/53029/3 accepted/tizen/mobile/20151201.085738 accepted/tizen/tv/20151201.085752 accepted/tizen/wearable/20151201.085812 submit/tizen/20151201.044438
Jiwoong Im [Tue, 1 Dec 2015 03:13:39 +0000 (12:13 +0900)]
allow method call in standard properties interface for alarm-server.

Change-Id: Ic01bfb602ed770a8b20c1bf68c324a3f2a0cceb2
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoChange standard point of start time for periodic alarm 37/52637/1
Inkyun Kil [Tue, 4 Aug 2015 04:56:41 +0000 (13:56 +0900)]
Change standard point of start time for periodic alarm

Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Conflicts:
alarm-manager-schedule.c
alarm-manager.c
include/alarm-internal.h

Change-Id: I39199e101d56eb89ac818e871e83af112942e3da

8 years agoremove permission check in alarmmgr_add_alarm_withcb 08/52608/1
Jiwoong Im [Wed, 25 Nov 2015 04:45:40 +0000 (13:45 +0900)]
remove permission check in alarmmgr_add_alarm_withcb

Change-Id: Ia5ec6d56aed338deb643df63dbbd27e396ce7f10
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoFix bug about background category management 78/52478/2 accepted/tizen/mobile/20151124.234111 accepted/tizen/tv/20151124.234122 accepted/tizen/wearable/20151124.234135 submit/tizen/20151124.090814
Hwankyu Jhun [Mon, 23 Nov 2015 13:38:12 +0000 (22:38 +0900)]
Fix bug about background category management

- Add an exception at alarmmgr_add_alarm_appsvc_with_localtime()

Change-Id: I2e54ab00267f561c2510844cda7d3b679980317f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoadd ERR_ALARM_NOT_PERMITTED_APP error code 83/51983/9 accepted/tizen/mobile/20151124.084645 accepted/tizen/tv/20151124.084702 accepted/tizen/wearable/20151124.084721 submit/tizen/20151123.053026
Jiwoong Im [Tue, 17 Nov 2015 09:19:31 +0000 (18:19 +0900)]
add ERR_ALARM_NOT_PERMITTED_APP error code

Change-Id: I4eb7b1ead0d56e5aa93a9eb8a31e33c8452cbb94
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoRemove command for vconftool in spec file 66/50366/1
inkyun.kil [Wed, 28 Oct 2015 07:10:21 +0000 (16:10 +0900)]
Remove command for vconftool in spec file

Change-Id: I67c51820190500854c681cc7cad24eacdb70dfad
Signed-off-by: inkyun.kil <inkyun.kil@samsung.com>
8 years agoLaunch application with uid 10/49610/2 accepted/tizen/mobile/20151016.102604 accepted/tizen/tv/20151016.102616 accepted/tizen/wearable/20151016.102634 submit/tizen/20151016.043816 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
inkyun.kil [Thu, 15 Oct 2015 11:42:50 +0000 (20:42 +0900)]
Launch application with uid

- To launch application of user session, modify codes

Change-Id: If75db402ac1e57b2f3da95d9eb90aba190b143ba
Signed-off-by: inkyun.kil <inkyun.kil@samsung.com>
8 years agoReturn ERR_ALARM_NO_PERMISSION when access denied 14/48014/1 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150911.091728 accepted/tizen/tv/20150911.091741 accepted/tizen/wearable/20150911.091758 submit/tizen/20150911.072727 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
Sangyoon Jang [Fri, 11 Sep 2015 05:21:12 +0000 (14:21 +0900)]
Return ERR_ALARM_NO_PERMISSION when access denied

Change-Id: I5240e4bf2de8498a87ef64c0f7424be6d4624095
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix prevent issues 81/47981/1
Sangyoon Jang [Thu, 10 Sep 2015 13:06:38 +0000 (22:06 +0900)]
Fix prevent issues

Change-Id: I927ab01c62d103d44b89189f9f0524723d3568fb
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoChange rtc device (/dev/alarm -> /dev/rtc) 97/47597/4 accepted/tizen/mobile/20150908.073724 accepted/tizen/tv/20150908.073746 accepted/tizen/wearable/20150908.073735 submit/tizen/20150908.023008
Inkyun Kil [Mon, 7 Sep 2015 02:01:18 +0000 (11:01 +0900)]
Change rtc device (/dev/alarm -> /dev/rtc)

Change-Id: Ic13233579006d0e1c6ef49fe4b031868167dbced
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>