platform/core/appfw/alarm-manager.git
5 years agoAdjusting millisecond 30/214130/3
Inkyun Kil [Mon, 9 Sep 2019 07:38:56 +0000 (16:38 +0900)]
Adjusting millisecond

- When the millisecond part of the current_time is bigger than 500ms,
  adds extra 1sec

Change-Id: Ibf30d91c5361db0a2a732d05b014628d59d27ada
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
5 years agoRemove outdated alarms 29/214129/4
Inkyun Kil [Wed, 18 Sep 2019 01:34:01 +0000 (10:34 +0900)]
Remove outdated alarms

- When system time is changed or alarm is outdated unintentionally,
      some alarms should be removed

Change-Id: I14a67fe86f08c636df65b073569f517e9300f1e9
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
5 years agoImprove logs 28/214128/4
Inkyun Kil [Fri, 30 Aug 2019 01:58:57 +0000 (10:58 +0900)]
Improve logs

Change-Id: I17bc94488338ce9dfa8c45b284a477ce007c112f
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
5 years agoFix wrong return value 41/213241/2
Jusung Son [Tue, 3 Sep 2019 07:13:48 +0000 (16:13 +0900)]
Fix wrong return value

Change-Id: I2ab2345f1a1e096f45ad2c8f33c11630b1a10a60
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
5 years agoTo handle RTC reset 05/213005/3
Jusung Son [Thu, 29 Aug 2019 07:25:14 +0000 (16:25 +0900)]
To handle RTC reset

Change-Id: I1df2d762b1e6ec50f1aa4be3cb415153b5f3881e
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
5 years agoFix bug for time_t overflow 65/212965/2
Jusung Son [Thu, 29 Aug 2019 01:54:25 +0000 (10:54 +0900)]
Fix bug for time_t overflow

- time_t is long type but dbus arg is integer type

Change-Id: Ied5c2cd5b5aa4cd2a64ed2afdc707ec488c5f87f
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
5 years agoSimplify logs 60/212460/1
Inkyun Kil [Wed, 21 Aug 2019 08:34:36 +0000 (17:34 +0900)]
Simplify logs

Change-Id: I711418b2e270dfddd842373805f0f8b2700a809b
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
5 years agoMove codes 02/210602/2
Inkyun Kil [Tue, 23 Jul 2019 01:57:20 +0000 (10:57 +0900)]
Move codes

- Move codes related to timer from alarm-manager.c to
alarm-manager-timer.c

Change-Id: I9ce2bcc3de74391f45e2bd47ac41626f994bd9eb
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
5 years agoCheck return codes 91/210591/9
Inkyun Kil [Tue, 23 Jul 2019 00:50:33 +0000 (09:50 +0900)]
Check return codes

- Remove meaningless return codes
- Check return value

Change-Id: Ifff8038f5b70acc3ba11ec0ea5b8f05e80339ddf
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
5 years agoTidy source code up slightly 60/210360/7
Inkyun Kil [Thu, 18 Jul 2019 08:25:33 +0000 (17:25 +0900)]
Tidy source code up slightly

- Remove needless code
- Tidy a function up
- Remove codes related to pid
- Change value of max appid length

Change-Id: If73cf2ad02e79cb3932757c98744b55a8a5e65c3
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
5 years agoRefactoring dbus codes 47/208747/9
Inkyun Kil [Fri, 28 Jun 2019 01:54:31 +0000 (10:54 +0900)]
Refactoring dbus codes

- Separate dbus codes from alarm-manager.c
- Remove gdbus codegen

Change-Id: Id2fc8e4c9048e01c00566d6f1d9ef9dd2d8a5dcc
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
5 years agoSeparate util codes from alarm-manager.c 56/209156/5
Inkyun Kil [Wed, 3 Jul 2019 04:54:55 +0000 (13:54 +0900)]
Separate util codes from alarm-manager.c

Change-Id: I0f5ef6d8db2a84b71ea1fb2d5c18f6514ceccc39
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
5 years agoArrange db codes 68/206868/3
Inkyun Kil [Tue, 28 May 2019 09:21:16 +0000 (18:21 +0900)]
Arrange db codes

Change-Id: I16f965adfcc13aeb1a59d083e4124fadee1f43b1
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
5 years agoDispensables 04/203504/6
Inkyun Kil [Mon, 15 Apr 2019 07:10:51 +0000 (16:10 +0900)]
Dispensables

- Remove needless comments
- Remove dead codes
- Remove duplicated codes

Change-Id: I6c7400e58551bf73d99e5c3b4fe64e476b097c92
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
5 years agoAdds unittest for alarm-manager daemon 26/206526/9
Inkyun Kil [Tue, 21 May 2019 02:51:06 +0000 (11:51 +0900)]
Adds unittest for alarm-manager daemon

Change-Id: Ie1c6a63b14223f5424602f1dc9efa09965c66c0a
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
5 years agoFix warning and add codes for GCOV 25/206525/4
Inkyun Kil [Tue, 21 May 2019 02:48:15 +0000 (11:48 +0900)]
Fix warning and add codes for GCOV

Change-Id: I9be01e028dbfdb794990216f2d3c6fa3a73a77a3
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
5 years agorefactoring build script for Gtest 81/190181/11
Youngjae Shin [Wed, 18 Oct 2017 07:16:35 +0000 (16:16 +0900)]
refactoring build script for Gtest

Change-Id: Ie14bf7e0d0dfcf4f9f96ded51a183692d336b612
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Signed-off-by: jusung son <jusung07.son@samsung.com>
6 years agoRelease version 0.7.10 40/190140/1 accepted/tizen/unified/20180928.080605 submit/tizen/20180927.090839 submit/tizen/20180927.231628
Hwankyu Jhun [Thu, 27 Sep 2018 08:58:59 +0000 (17:58 +0900)]
Release version 0.7.10

Changes:
 - Modified dbus policy

Change-Id: I3e65a1919dc055e34b2e85e4e74e74e073643d4b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoModified dbus policy 35/190135/1
Hwankyu Jhun [Thu, 27 Sep 2018 08:32:10 +0000 (17:32 +0900)]
Modified dbus policy

Change-Id: I88312154fb5bc3bda7097d720d54056b28c64dd7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.7.9 96/189896/1 accepted/tizen/unified/20180924.092028 submit/tizen/20180921.104929
Hwankyu Jhun [Fri, 21 Sep 2018 10:47:56 +0000 (19:47 +0900)]
Release version 0.7.9

Changes:
 - Add a new dbus policy

Change-Id: I47f0df0499f53bb7c161082a92c1934bd5451769
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoAdd a new dbus policy 93/189893/1
Hwankyu Jhun [Fri, 21 Sep 2018 10:43:53 +0000 (19:43 +0900)]
Add a new dbus policy

- Adds a dbus policy about alarm_create_periodic method call

Change-Id: I23d5a330b1e41da6b0d90557b51017d9b9f0a281
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.7.8 90/189890/1 submit/tizen/20180921.101059
Hwankyu Jhun [Fri, 21 Sep 2018 10:08:21 +0000 (19:08 +0900)]
Release version 0.7.8

Changes:
 - Adjust dbus policy

Change-Id: Ibd62585bab959f912cec07b5ca5425879356f8e4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoAdjust dbus policy 88/189888/1
Hwankyu Jhun [Fri, 21 Sep 2018 09:57:36 +0000 (18:57 +0900)]
Adjust dbus policy

- Allows send_destination="org.tizen.alarm.client"

Change-Id: I4d1513dde87761cba981f24e7354821de668e428
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.7.7 39/187639/1 submit/tizen/20180827.060900
Inkyun Kil [Mon, 27 Aug 2018 06:00:33 +0000 (15:00 +0900)]
Release version 0.7.7

Changes:
- Remove needless dbus-policy

Change-Id: I49e5ebf19bb697dedfa0ffde4cfc211a2b284fef
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRemove needless dbuspolicy 32/187532/1
Inkyun Kil [Mon, 20 Aug 2018 07:50:30 +0000 (16:50 +0900)]
Remove needless dbuspolicy

Change-Id: I7d9a6685757cca599b06be8ca8f1feb77d8daeac
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.7.6 09/186609/1 accepted/tizen/unified/20180813.061516 submit/tizen/20180813.005107
Inkyun Kil [Mon, 13 Aug 2018 00:39:32 +0000 (09:39 +0900)]
Release version 0.7.6

Changes:
- Revert "Change return values"

Change-Id: Ic35d640caf2929f5c8ebd324d7149513bd964c66
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRevert "Change return values" 08/186608/1
Inkyun Kil [Mon, 13 Aug 2018 00:11:53 +0000 (09:11 +0900)]
Revert "Change return values"

This reverts commit ad90ebd48ffca109e96f9945d38786784c10033a.

Change-Id: If48e5bbb5da44fc78affb671c4bb783d010f788c
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.7.5 08/186208/1 accepted/tizen/unified/20180808.141347 submit/tizen/20180808.055048
Inkyun Kil [Wed, 8 Aug 2018 05:44:48 +0000 (14:44 +0900)]
Release version 0.7.5

Changes:
- Change return values

Change-Id: I9d6e64adb6bcc605bf6cb58a81b43f286e97e83f
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoChange return values 97/186197/2
Inkyun Kil [Wed, 8 Aug 2018 04:47:54 +0000 (13:47 +0900)]
Change return values

- When registering once alarm with wrong time, return false.

Change-Id: I0335d59059a00572f006cbb41a543100d66fc3c3
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.7.4 70/184470/1 accepted/tizen/unified/20180719.063024 submit/tizen/20180718.065507
Inkyun Kil [Wed, 18 Jul 2018 06:50:47 +0000 (15:50 +0900)]
Release version 0.7.4

Changes:
- Check if an interval causes StackOverflow

Change-Id: I321728aafcfcc1063b3b218b0535ed9dd7339ffd
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoCheck if an interval causes StackOverflow 20/184320/1
Inkyun Kil [Tue, 17 Jul 2018 07:52:30 +0000 (16:52 +0900)]
Check if an interval causes StackOverflow

Change-Id: Ia375181cb38e1716109db24321d9e1c853ad899a
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.7.3 27/184027/1
Inkyun Kil [Fri, 13 Jul 2018 05:55:14 +0000 (14:55 +0900)]
Release version 0.7.3

- Fix bug for side-effect

Change-Id: Ie8d9fa2246ff95df2185fa022ce687a7b65e6946
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoFix bug for side-effect 02/184002/2
Inkyun Kil [Fri, 13 Jul 2018 02:46:28 +0000 (11:46 +0900)]
Fix bug for side-effect

- Fix side effect about the patch 'Move some codes from library to
alarm-manager'. The period is not INEXACT in versions prior to 2.4

Change-Id: Ifa47a0c42f8526f5cc25ca03b755576eebdad4e6
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.7.2 51/182051/1
Inkyun Kil [Wed, 20 Jun 2018 05:55:07 +0000 (14:55 +0900)]
Release version 0.7.2

Changes:
- Add codes for checking caller

Change-Id: Idb4216edb90a092b5a6ae4c779fa025eea99e055
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoAdd codes for checking caller 63/181963/5
Inkyun Kil [Tue, 19 Jun 2018 07:42:04 +0000 (16:42 +0900)]
Add codes for checking caller

- When an application requests to delete or update an alarm, should be
verified that the application is correct

Change-Id: Ic947e58a88d4e37fa3ebf61ca9c9f5d4e320f055
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.7.1 70/180970/2 accepted/tizen/unified/20180611.015504 submit/tizen/20180607.022853
Inkyun Kil [Thu, 7 Jun 2018 02:30:30 +0000 (11:30 +0900)]
Release version 0.7.1

Changes:
- Fix Wformat build error

Change-Id: I6d04dc8407a605edd6ac3869278d975e25fcdc28
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoFix Wformat build error 96/180496/1
Inkyun Kil [Wed, 30 May 2018 05:29:26 +0000 (14:29 +0900)]
Fix Wformat build error

Change-Id: Ic7a267cc47e784ce2a0466dadcae275124dcc3b5
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.7.0 19/180119/1
Inkyun Kil [Fri, 25 May 2018 03:51:25 +0000 (12:51 +0900)]
Release version 0.7.0

Changes:
- Adds alarm_expire_mode

Change-Id: Ida7a84878229746fdfb361e2d7722fb100fc3ccc
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoAdds alarm_expire_mode 77/179877/7
Inkyun Kil [Wed, 23 May 2018 06:45:58 +0000 (15:45 +0900)]
Adds alarm_expire_mode

Adds alarm_expire_mode to not turn on the LCD when an alarm has expired

Related patch : https://review.tizen.org/gerrit/#/c/179875/

Change-Id: I808c3854915e7de368bae4dd184c4f3998336a9b
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.6.4 01/180001/1
Inkyun Kil [Thu, 24 May 2018 05:02:31 +0000 (14:02 +0900)]
Release version 0.6.4

Changes:
- Add code for checking size when notification data is "null"
- Add cynara check for notification privilege

Change-Id: I04c32433d77744361b7d28d528bdf595eff1b238
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoAdd code for checking size when notification data is "null" 78/179978/1
Inkyun Kil [Wed, 23 May 2018 23:41:21 +0000 (08:41 +0900)]
Add code for checking size when notification data is "null"

Change-Id: I16d4e84724adae499f489541bbbe34de14d8c756
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoAdd cynara check for notification privilege 20/179120/4
Inkyun Kil [Wed, 16 May 2018 02:31:08 +0000 (11:31 +0900)]
Add cynara check for notification privilege

It is impossible to check multiple privilege checks using dbus-policy.
So, changed it to check at the code

Change-Id: Ib5798d42be3a1630db1f9ff303f9a341d23a6547
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.6.3 84/177584/1 accepted/tizen/unified/20180503.080711 submit/tizen/20180502.073040
Inkyun Kil [Wed, 2 May 2018 05:20:05 +0000 (14:20 +0900)]
Release version 0.6.3

Changes:
 - Change rules for default dbus policy

Change-Id: I2581f446adc11e68fbf65afde93a39f9ce3c5f0a
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoChange rules for default dbus policy 49/177049/1
Inkyun Kil [Wed, 25 Apr 2018 04:43:24 +0000 (13:43 +0900)]
Change rules for default dbus policy

Change-Id: I3ea03b76887ada608db03f6949065935e023679b
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoMove some codes from library to alarm-manager 79/175779/8
Inkyun Kil [Thu, 12 Apr 2018 08:13:28 +0000 (17:13 +0900)]
Move some codes from library to alarm-manager

- checking caller app version
- checking the configuration

Change-Id: Iabdef76717bb27a1661a547eb2a4857fe7987003
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.6.2 65/175965/1 accepted/tizen/unified/20180416.213903 submit/tizen/20180416.044639
Hwankyu Jhun [Mon, 16 Apr 2018 04:19:21 +0000 (13:19 +0900)]
Release version 0.6.2

Changes:
 - Set indirect request info

Change-Id: I11eefecc0847661ff467cd5811a7ff9da530367f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoSet indirect request info 10/175210/7
Hwankyu Jhun [Mon, 9 Apr 2018 08:16:43 +0000 (17:16 +0900)]
Set indirect request info

While creating bundle data, the alarm-manager sets "indirect-request" info for
the amd. And then, the amd checks whether the caller has privilege or NOT
when getting the request from the alarm-manager.

Requires:
 - https://review.tizen.org/gerrit/#/c/175262/
 - https://review.tizen.org/gerrit/#/c/175212/
 - https://review.tizen.org/gerrit/#/c/175419/
 - https://review.tizen.org/gerrit/#/c/175210/

Change-Id: If53d98d0da64802e10dca2406c500a7d58a51ba6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.6.1 36/174736/1 accepted/tizen/unified/20180405.064939 submit/tizen/20180404.080736
Inkyun Kil [Wed, 4 Apr 2018 01:54:49 +0000 (10:54 +0900)]
Release version 0.6.1

Changes :
- Add RELRO for excutables
- Fix issue that standard time for periodic

Change-Id: Ib86d521187b245f6e045539eebd086192af5a1e7
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoAdd RELRO for excutables 31/174731/1
Inkyun Kil [Wed, 28 Mar 2018 07:21:58 +0000 (16:21 +0900)]
Add RELRO for excutables

Change-Id: I6bfae1afeb903b3f6281a6590308ec124b24f553
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoFix issue that standard time for periodic 29/174429/3
Inkyun Kil [Mon, 2 Apr 2018 06:34:27 +0000 (15:34 +0900)]
Fix issue that standard time for periodic

The periodic_alarm_standard_time value is not synchronized when time is changed

Change-Id: I4cf2602833d23595903d37844e88b04e83a6c44a
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.6.0 14/172214/1 accepted/tizen/unified/20180313.162821 submit/tizen/20180312.235649
Inkyun Kil [Tue, 13 Mar 2018 00:11:50 +0000 (09:11 +0900)]
Release version 0.6.0

Changes:
 - Fix GWarnings
 - Add configuration files
 - Remove unused variables

Change-Id: Id4963cef1c161dc80e0f9fe96afaddbfb8488b6e
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoFix GWarnings 97/172097/1
Inkyun Kil [Mon, 12 Mar 2018 00:04:36 +0000 (09:04 +0900)]
Fix GWarnings

Change-Id: I7d1e0a82a73599b9bb4e5052586ac05145f435c8
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoAdd configuration files 10/169810/10
Inkyun Kil [Fri, 9 Feb 2018 08:27:06 +0000 (17:27 +0900)]
Add configuration files

Service Applications should be able to register exact alarms at some
profiles. To support it, make configuration files

Change-Id: I4a82008be8fe20370c9b5e16044d1d677df3e6c1
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRemove unused variables 15/170415/1
jusung son [Tue, 20 Feb 2018 02:08:11 +0000 (11:08 +0900)]
Remove unused variables

Change-Id: I24fd319b69e37789470438e9d49a9065c7e014b2
Signed-off-by: jusung son <jusung07.son@samsung.com>
6 years agoRelease version 0.5.20 06/169306/1 accepted/tizen/unified/20180220.125952 submit/tizen/20180208.231401
Inkyun Kil [Tue, 6 Feb 2018 01:51:20 +0000 (10:51 +0900)]
Release version 0.5.20

Changes:
 - Remove needless codes

Change-Id: I1824ca4ec8131f95a62298dfdfc3f3b7d2e294c9
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRemove needless codes 10/169210/1
Inkyun Kil [Mon, 5 Feb 2018 04:21:10 +0000 (13:21 +0900)]
Remove needless codes

Change-Id: I689c2f1adae614d471cad7c60bc7366f15b8801d
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.5.19 74/167474/1 accepted/tizen/unified/20180119.133808 submit/tizen/20180118.020027
Inkyun Kil [Thu, 18 Jan 2018 01:55:58 +0000 (10:55 +0900)]
Release version 0.5.19

Changes:
 - spec: fix bad alarm-session-agent.socket symbolic link

Change-Id: Ifc36b66078f5a283d4b8b27b5f68453601edae3e
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agospec: fix bad alarm-session-agent.socket symbolic link 60/167360/1
INSUN PYO [Wed, 17 Jan 2018 07:36:11 +0000 (16:36 +0900)]
spec: fix bad alarm-session-agent.socket symbolic link

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ia5f0ba735ea63fa0ad3f3cd2eec72b6052c5030d

6 years agoRelease version 0.5.18 16/165616/1
Inkyun Kil [Tue, 2 Jan 2018 23:08:25 +0000 (08:08 +0900)]
Release version 0.5.18

Changes:
  - Add code for checking YEAR 2038 problem

Change-Id: Idb9164cffa89a8a7e7ef7d63bd36d2fc9047798e
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoMerge "Add code for checking YEAR 2038 problem" into tizen
Inkyun Kil [Tue, 2 Jan 2018 22:55:45 +0000 (22:55 +0000)]
Merge "Add code for checking YEAR 2038 problem" into tizen

6 years agoAdd code for checking YEAR 2038 problem 21/165321/1
Inkyun Kil [Thu, 28 Dec 2017 02:35:24 +0000 (11:35 +0900)]
Add code for checking YEAR 2038 problem

Change-Id: I25a3e905c56b78fa46b0972472b0b8a9d6af3ea0
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.5.17 35/163735/1 accepted/tizen/4.0/unified/20171214.050332 accepted/tizen/unified/20171214.050238 submit/tizen/20171213.072859 submit/tizen_4.0/20171213.072840 tizen_4.0.IoT.p2_release
jusung son [Wed, 13 Dec 2017 06:56:11 +0000 (15:56 +0900)]
Release version 0.5.17

Changes:
  - Adjust the initialization sequence of alarm-lib

Change-Id: I7bb6c0c9837c458a382c3eef5c605cfa5b8b9c5b
Signed-off-by: jusung son <jusung07.son@samsung.com>
6 years agoAdjust the initialization sequence of alarm-lib 13/163713/2
jusung son [Wed, 13 Dec 2017 04:56:23 +0000 (13:56 +0900)]
Adjust the initialization sequence of alarm-lib

In multi-thread environment, dbus messages can be delivered before registering interfaces.

Change-Id: I7182f2f0c00ec583e7ced5e8fc4d08497cb56183
Signed-off-by: jusung son <jusung07.son@samsung.com>
6 years agoRelease version 0.5.16 45/161245/1 accepted/tizen/4.0/unified/20171123.184357 accepted/tizen/unified/20171124.064527 submit/tizen/20171122.112413 submit/tizen/20171123.000002 submit/tizen_4.0/20171122.110758
Inkyun Kil [Wed, 22 Nov 2017 08:37:55 +0000 (17:37 +0900)]
Release version 0.5.16

- Add code for checking integrity

Change-Id: I9764694fbf7132a44cd2f98057e4a3dd24c3b615
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoAdd code for checking integrity 76/161076/3
Inkyun Kil [Tue, 21 Nov 2017 09:20:36 +0000 (18:20 +0900)]
Add code for checking integrity

Change-Id: I48277013b5f1efe59e123efe909b926cface677d
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
7 years agoRelease version 0.5.15 27/159427/1 accepted/tizen/4.0/unified/20171109.125007 accepted/tizen/unified/20171110.070742 submit/tizen/20171109.015625 submit/tizen_4.0/20171109.015618 submit/tizen_4.0/20171109.050405
Inkyun Kil [Thu, 9 Nov 2017 01:43:54 +0000 (10:43 +0900)]
Release version 0.5.15

 - Add DB validation check when db init

Change-Id: I36e2480d67a276eb0defead19e9509f440c9cdea
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
7 years agoAdd DB validation check when db init 70/158770/3
Inkyun Kil [Fri, 3 Nov 2017 02:37:42 +0000 (11:37 +0900)]
Add DB validation check when db init

- Added integrity check related logic to db init process to check
  if db integrity is broken due to file system error and initialize db

Change-Id: Ide8efaba21f8bb63952046028879bdba5b6899c2
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
7 years agoChange type of alarm-session-agent service from 'oneshot' to 'simple' 30/154730/1
Inkyun Kil [Wed, 11 Oct 2017 07:28:53 +0000 (16:28 +0900)]
Change type of alarm-session-agent service from 'oneshot' to 'simple'

Change-Id: Ia60c398d1dbaa7a9ddd4fa6acb0eb10cd32afb42
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
7 years agoRelease version 0.5.14 58/150258/1 accepted/tizen/4.0/unified/20170920.081453 submit/tizen/20170915.023525 submit/tizen_4.0/20170915.023947 tizen_4.0.IoT.p1_release tizen_4.0.m2_release
Semun Lee [Fri, 15 Sep 2017 02:27:12 +0000 (11:27 +0900)]
Release version 0.5.14

Changes:
 - Remove old update script
 - Adjust coding rule
 - fix coding rule error

Change-Id: I5c53e45084faa49a51e2212dbcba9f318dc91c7e
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agofix coding rule error 18/149718/2
Youngjae Shin [Wed, 13 Sep 2017 02:58:23 +0000 (11:58 +0900)]
fix coding rule error

Change-Id: I0e36295d694bbe2aa0d899ba11ff57765e556a9d

7 years agoAdjust coding rule 51/149151/1
Seungha Son [Mon, 11 Sep 2017 23:41:05 +0000 (08:41 +0900)]
Adjust coding rule

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I4160410647086a7d89cfe87fa848c58512053d81

7 years agoRemove old update script 31/148631/1
Sunmin Lee [Fri, 8 Sep 2017 04:58:45 +0000 (13:58 +0900)]
Remove old update script

RW update script for Tizen 2.4 (to 3.0) is not necessary in Tizen 4.0.
Remove this file to avoid being executed during Tizen 4.0 update.

Change-Id: I5e5980a5160e1e2845fb7ed6829bea0ac1af6c45

7 years agoRelease version 0.5.13 98/141598/1 accepted/tizen/4.0/unified/20170816.013724 accepted/tizen/4.0/unified/20170816.020133 accepted/tizen/4.0/unified/20170828.223942 accepted/tizen/unified/20170802.151125 submit/tizen/20170801.062329 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100002 submit/tizen_4.0_unified/20170814.115522
Jiwoong Im [Tue, 1 Aug 2017 05:54:11 +0000 (14:54 +0900)]
Release version 0.5.13

Changes:
 - Remove unnecessary rtc setting in alarm-server
 - Fix bug in periodic alarm
 - Fix logic for calculating next duetime considering DST
 - Modify getting appinfo in alarm expired

Change-Id: Id0de1d3adc1fe344036d7b430a234f3144f79ecc
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoModify getting appinfo in alarm expired 58/141058/2
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>
7 years agoFix logic for calculating next duetime considering DST 57/141057/2
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>
7 years agoFix bug in periodic alarm 56/141056/1
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>
7 years agoRemove unnecessary rtc setting in alarm-server 55/141055/1
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>
7 years agoRelease version 0.5.12 06/139906/1 accepted/tizen/unified/20170724.020237 submit/tizen/20170721.041626
Jiwoong Im [Fri, 21 Jul 2017 04:12:42 +0000 (13:12 +0900)]
Release version 0.5.12

Changes:
 - Handle memory allocation failure
 - Fix misused strncpy calls
 - Fix service file

Change-Id: I9db396ddbc1e2de05584dbad4e89a042daa7f50e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix service file 76/139576/1
Jiwoong Im [Wed, 19 Jul 2017 10:44:00 +0000 (19:44 +0900)]
Fix service file

- Adds capabilities and securiebit options

Change-Id: I753ddc8756186eb4360e797d0da14f746544d5a3
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix misused strncpy calls 32/139432/5
Semun Lee [Wed, 19 Jul 2017 02:57:36 +0000 (11:57 +0900)]
Fix misused strncpy calls

Change-Id: I40cb57043b9fda017274347beea4090fd29bbc20
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agoHandle memory allocation failure 52/139452/2
Semun Lee [Wed, 19 Jul 2017 04:37:22 +0000 (13:37 +0900)]
Handle memory allocation failure

Change-Id: Id4f0688bcf36d5045af165979b3270fa291af2fc

7 years agoRelease version 0.5.11 22/137622/1 accepted/tizen/unified/20170711.180506 submit/tizen/20170707.024819 submit/tizen/20170710.015440
Jiwoong Im [Fri, 7 Jul 2017 02:04:39 +0000 (11:04 +0900)]
Release version 0.5.11

Changes:
 - Change GQaurk to char*

Change-Id: I5fa1530dc329f57c17b5c589fd19a11934b3f6b2
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoChange GQaurk to char* 27/132327/17
Inkyun Kil [Fri, 2 Jun 2017 08:36:43 +0000 (17:36 +0900)]
Change GQaurk to char*

g_quark_from_string api causes memory increase

Change-Id: If4e6d8aab3352a63a22bcbd03064588b44ba5b5c
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.10 01/136301/1 accepted/tizen/unified/20170703.064126 submit/tizen/20170629.060228
Hwankyu Jhun [Thu, 29 Jun 2017 05:04:15 +0000 (14:04 +0900)]
Release version 0.5.10

Changes:
 - Fix memory leak
 - Fix invalid log format

Change-Id: I81642a45097c35728d322a6429c16b3588e34edc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoFix memory leak 26/136226/1
Hwankyu Jhun [Wed, 28 Jun 2017 22:31:12 +0000 (07:31 +0900)]
Fix memory leak

Change-Id: Id28528b68925f251ec53c65bc1cbb88103bce6f8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoFix invalid log format 29/133929/5
Jiwoong Im [Wed, 14 Jun 2017 04:49:51 +0000 (13:49 +0900)]
Fix invalid log format

Change-Id: I4a9848d7df60e35d49082e6fce130d54ce59896d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.9 82/133082/1 accepted/tizen/unified/20170609.203844 submit/tizen/20170609.014738
Jiwoong Im [Fri, 9 Jun 2017 01:42:14 +0000 (10:42 +0900)]
Release version 0.5.9

Changes:
 - Fix bug in __get_caller_unique_name
 - Fix memory leak
 - Replace rand() with g_random_int_range()

Change-Id: Ieb7026198086d7e3b196e8f874163ca5059c32a9
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoReplace rand() with g_random_int_range() 13/132913/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>
7 years agoFix memory leak 40/132440/5
Jiwoong Im [Mon, 5 Jun 2017 07:26:44 +0000 (16:26 +0900)]
Fix memory leak

- Fix memory leak of pkgmgrinfo handle and bundle

Change-Id: I39cc31441d7d7dde9c0a51b49101ee205bd45114
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix bug in __get_caller_unique_name 68/132868/3
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>
7 years agoRelease version 0.5.8 12/127612/1 accepted/tizen/unified/20170429.023658 submit/tizen/20170428.023751 tizen_4.0.m1_release
Jiwoong Im [Fri, 28 Apr 2017 05:41:56 +0000 (14:41 +0900)]
Release version 0.5.8

Changes:
 - Fix bad casting

Change-Id: I301e30999b2dcb95a03290821d01a8aef1b435b3
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix bad casting 68/127568/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>
7 years agoRelease version 0.5.7 43/126743/1 accepted/tizen/unified/20170428.033031 submit/tizen/20170425.040634 submit/tizen/20170427.131814
Jiwoong Im [Tue, 25 Apr 2017 04:14:55 +0000 (13:14 +0900)]
Release version 0.5.7

Changes:
 - Add alarm update API

Change-Id: I932e4d01205d59ea139da68fb2dfd303eb7c7a64
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoAdd alarm update API 87/118687/11
Jiwoong Im [Mon, 13 Mar 2017 13:48:15 +0000 (22:48 +0900)]
Add alarm update API

- int alarmmgr_update_alarm(alarm_id_t alarm_id, alarm_entry_t *alarm, int update_flag)

Change-Id: I835f3b595331e8fcae4d30843ec1c8b4a17e4e9f
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.6 21/126321/1 accepted/tizen/unified/20170421.114338 submit/tizen/20170421.005321
Jiwoong Im [Fri, 21 Apr 2017 02:32:36 +0000 (11:32 +0900)]
Release version 0.5.6

Changes:
 - Remove dependency on db-util
 - Fix memory leak

Change-Id: I022aaa0ca5be4729c9fcb05f389f14736fbd2551
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix memory leak 89/126289/1
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 88/126288/1
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 agoRelease version 0.5.5 69/125169/1 accepted/tizen/unified/20170414.163934 submit/tizen/20170414.043651
Jiwoong Im [Fri, 14 Apr 2017 04:49:28 +0000 (13:49 +0900)]
Release version 0.5.5

Changes:
 - Send launch request asynchronously in alarm expired
 - Fix memory leak

Change-Id: I68389a1cc5bfa5fb20ec3c83a3493c426f0d82a8
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoSend launch request asynchronously in alarm expired 35/125135/3
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/124571/

Change-Id: I65af5d9ba00bf378296899db2d6ff130e482fe18
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix memory leak 45/125045/1
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>