platform/core/appfw/aul-1.git
2 years agoRelease version 0.42.0 39/264739/1
Hwankyu Jhun [Wed, 29 Sep 2021 05:01:42 +0000 (14:01 +0900)]
Release version 0.42.0

Changes:
 - Add new functions for managing process group

Change-Id: Iaea3c04294b4797785ae0f4aa1c8293915a53939
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd new functions for managing process group 01/264701/2
Hwankyu Jhun [Tue, 28 Sep 2021 10:00:10 +0000 (19:00 +0900)]
Add new functions for managing process group

To manage oom score of child processes of the application properly,
AMD and resourced must know the process ID. When the child process calls
the aul_proc_group_add() function, AMD sends the app group signal to
resourced to notify the process group information.
If the oom score of the main process is changed, the oom score of the
child process is also changed by resourced.

Adds:
 - aul_proc_group_add()
 - aul_proc_group_remove()

Change-Id: Ic02f958bf32110e794efbdacc64c6cf8e3d8cfe4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.41.1 00/263800/1 accepted/tizen/unified/20210913.123353 submit/tizen/20210910.074525
Hwankyu Jhun [Fri, 10 Sep 2021 07:43:23 +0000 (16:43 +0900)]
Release version 0.41.1

Changes:
 - Fix typo in header guard
 - Fix metadata plugin parser handlers

Change-Id: Ib6ea62fee68d156bf30692740b8a97f7aea57b82
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix metadata plugin parser handlers 98/263798/2
Hwankyu Jhun [Fri, 10 Sep 2021 07:24:15 +0000 (16:24 +0900)]
Fix metadata plugin parser handlers

This patch removes "REMOVE" step. Currently, when the package is
upgrading, the "UPGRADE" function is invoked. And then, the "REMOVE"
function is invoked. In this case, the metadata plugin parser removes
installed data from the appsvc database. This patch prevents to remove
the alias and allowed infos.

Change-Id: I80080adc0d5d1538bfb88ed3001b99e5a034a09c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix typo in header guard 60/263760/1
Slava Barinov [Thu, 9 Sep 2021 11:20:28 +0000 (14:20 +0300)]
Fix typo in header guard

Change-Id: Id21a2a88f293b765bf8efb6edc393fb0ef0470e3
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
2 years agoRelease version 0.41.0 23/263723/1 accepted/tizen/unified/20210910.004746 submit/tizen/20210909.012745
Hwankyu Jhun [Thu, 9 Sep 2021 01:19:26 +0000 (10:19 +0900)]
Release version 0.41.0

Changes:
 - Add new internal APIs

Change-Id: Ic28db50c9bee49e0792e96e992065c50c49d012d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd new internal APIs 88/263688/5
Hwankyu Jhun [Wed, 8 Sep 2021 06:56:44 +0000 (15:56 +0900)]
Add new internal APIs

When the window of the application is appeared, the event callback function
is called.

Adds:
 - aul_window_register_event_cb()
 - aul_window_deregister_event_cb()

Change-Id: I9f588043fca36c37a74f6be53e531f479ad9fa88
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.40.0 53/263053/2 accepted/tizen/unified/20210826.024559 submit/tizen/20210826.020925
Changgyu Choi [Wed, 25 Aug 2021 05:53:01 +0000 (14:53 +0900)]
Release version 0.40.0

Changes:
 - Separate the exec-checker plugin to rpm package

Change-Id: I485415d866d80c1b4f34c9285ef66473890f5906
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoSeparate the exec-checker plugin to rpm package 41/263041/2
Changgyu Choi [Wed, 25 Aug 2021 03:41:38 +0000 (12:41 +0900)]
Separate the exec-checker plugin to rpm package

Change-Id: Iab6db7263710402975524333b1f527312576a9cd
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.39.3 12/262612/1 accepted/tizen/unified/20210818.124616 submit/tizen/20210817.013418
Hwankyu Jhun [Tue, 17 Aug 2021 01:02:06 +0000 (10:02 +0900)]
Release version 0.39.3

Changes:
 - Fix a bug about app group launch

Change-Id: Ied23084e276d5ed64c7ab0aabb7eefbbed5ee600
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix a bug about app group launch 85/262585/1
Hwankyu Jhun [Fri, 13 Aug 2021 10:02:57 +0000 (19:02 +0900)]
Fix a bug about app group launch

If the instance ID already exists, AUL doesn't not set a new instance ID
to the bundle object.

Change-Id: I2198fa5e31493d59e7347f05f8288643f27a5ce4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.39.2 93/262493/1 submit/tizen/20210812.055732
Changgyu Choi [Thu, 12 Aug 2021 04:28:18 +0000 (13:28 +0900)]
Release version 0.39.2

Changes:
 - Change method of checking main symbol

Change-Id: If50f262097083fa244b1c72b2b94eeb87753d677
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoChange method of checking main symbol 23/262423/11
Changgyu Choi [Tue, 10 Aug 2021 08:14:12 +0000 (17:14 +0900)]
Change method of checking main symbol

Some binary may need to launch daemons for loading them.
In special case such as mic build, deamons are not launched.
As a result, the parser should not use dlopen().

Change-Id: I102eb220d4ecab2657668a335af95257de981e79
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.39.1 32/262032/1 accepted/tizen/unified/20210804.085610 submit/tizen/20210802.031114 submit/tizen/20210802.224946
jh9216.park [Mon, 2 Aug 2021 03:09:26 +0000 (23:09 -0400)]
Release version 0.39.1

Changes:
 - Fix static analysis issues

Change-Id: If52ac4005d6442773ae77f416a4e422caf9f0d59
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoFix static analysis issues 31/262031/1
jh9216.park [Mon, 2 Aug 2021 02:57:27 +0000 (22:57 -0400)]
Fix static analysis issues

Change-Id: I826b51914540f0c8c6840e17b8e89e95935c144a
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoRelease version 0.39.0 34/261734/1 accepted/tizen/unified/20210726.135513 submit/dev/20210723.090104 submit/tizen/20210723.090533
Changgyu Choi [Fri, 23 Jul 2021 08:58:51 +0000 (17:58 +0900)]
Release version 0.39.0

Changes:
 - Add parser plugin for checking executable file

Change-Id: I99dc1345f9df88ad89dd82d3b10774a25d1d3b6e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoAdd parser plugin for checking executable file 47/259447/24
Changgyu Choi [Tue, 8 Jun 2021 06:19:55 +0000 (15:19 +0900)]
Add parser plugin for checking executable file

When a package is installed, the parser checks executable files.
If the package's type is "C/C++", it checks below condition.

   1) Check the file is whether same architecture with the platform.
   2) Check whether shared object or not.
   3) Check to have "main" symbol.
   4) Check that libraries with dependency on the file are linkable.

Change-Id: I4b17b13c15ab63e2cb6479ef78d05dda6512a11e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.38.0 56/261556/1 accepted/tizen/unified/20210722.124938 submit/tizen/20210721.064629
Hwankyu Jhun [Wed, 21 Jul 2021 06:19:48 +0000 (15:19 +0900)]
Release version 0.38.0

Changes:
 - Refactor aul window
 - Add an exception handling about recvmsg()
 - Add a new API to attach window below parent window

Change-Id: I215f0e8dcb74b0ac4a63bddc0dc374efcc055c96
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd a new API to attach window below parent window 14/261414/3
Hwankyu Jhun [Mon, 19 Jul 2021 02:19:24 +0000 (11:19 +0900)]
Add a new API to attach window below parent window

The function attaches the child window below the parent window.

Adds:
 - aul_window_attach_window_below();

Change-Id: Ib3c2bc624617eda94d272b81e5aad07fe64f17e9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd an exception handling about recvmsg() 34/261534/1
Hwankyu Jhun [Wed, 21 Jul 2021 01:53:47 +0000 (10:53 +0900)]
Add an exception handling about recvmsg()

When calling the recvmsg(), the function returns a negative error value
immediately if the receive is interrupted by delivering of a signal.
This patch adds an exception handling for the error case.
If the errno is EINTR, calling the recvmsg() is tried for receiving the message
from the socket fd again.

Change-Id: I78ffc49bb9b128d14db489db95881fb48f009186
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRefactor aul window 27/261427/4
Hwankyu Jhun [Mon, 19 Jul 2021 00:39:29 +0000 (09:39 +0900)]
Refactor aul window

It's implmented using C++ language. The aul_window tool is added for
testing functions.

Change-Id: Iadf8c7c9fdecc5162c6ccd69d31a87b5cf0424c9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.37.1 96/261296/1 accepted/tizen/unified/20210716.131326 submit/tizen/20210715.032102
Hwankyu Jhun [Thu, 15 Jul 2021 02:56:35 +0000 (11:56 +0900)]
Release version 0.37.1

Changes:
 - Remove unnecessary slash

Change-Id: I87eb012686349ce105a9af39b76128d2484e200a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRemove unnecessary slash 72/261172/1
Hwankyu Jhun [Tue, 13 Jul 2021 01:18:13 +0000 (10:18 +0900)]
Remove unnecessary slash

Change-Id: I640f73763ed4c80220d15d916783d626efbdac22
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.37.0 21/261121/1 accepted/tizen/unified/20210713.124140 submit/tizen/20210712.081524
Hwankyu Jhun [Mon, 12 Jul 2021 07:58:49 +0000 (16:58 +0900)]
Release version 0.37.0

Changes:
 - Add new functions for RPC-Port

Change-Id: I058201be97d6dbbd5fa1b299c719a11d20e3ca14
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd new functions for RPC-Port 65/259865/31
Hwankyu Jhun [Wed, 16 Jun 2021 06:46:30 +0000 (15:46 +0900)]
Add new functions for RPC-Port

After this patch is applied, the rpc-port uses unix domain socket
instead of socket pair. When the stub calls aul_rpc_port_create(), AMD
creates the socket. And then, AMD sends the socket fd to the stub.
The stub process uses the received socket fd for managing the connection.

Adds:
 - aul_rpc_port_usr_prepare_stub()
 - aul_rpc_port_create()
 - aul_rpc_port_usr_create()
 - aul_rpc_port_destroy()
 - aul_rpc_port_usr_destroy()
 - aul_rpc_port_add_watch()
 - aul_rpc_port_usr_add_watch()
 - aul_rpc_port_remove_watch()
 - aul_rpc_port_exist()
 - aul_rpc_port_usr_exist()
 - aul_rpc_port_get_path()
 - aul_rpc_port_usr_get_path()

Change-Id: I71a7bdaf7ba50e456c6662c524bf3d833030e4e6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.36.0 02/261002/1 accepted/tizen/unified/20210709.081222 accepted/tizen/unified/20210712.025024 submit/tizen/20210708.082443 submit/tizen/20210708.103729 submit/tizen/20210709.063928
Hwankyu Jhun [Thu, 8 Jul 2021 08:04:59 +0000 (17:04 +0900)]
Release version 0.36.0

Changes:
 - Remove build warning message
 - Support Process Name Setter/Getter
 - Fix a log

Change-Id: I3909a41aebac3f3fc2e1e8f7606ae890db2b5866
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix a log 67/260867/2
Changgyu Choi [Tue, 6 Jul 2021 05:15:20 +0000 (14:15 +0900)]
Fix a log

Change-Id: I1c5db6d64164ee40fff63ba148cdd7834c60ddc6
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoSupport Process Name Setter/Getter 15/260615/18
Hwankyu Jhun [Tue, 29 Jun 2021 23:55:17 +0000 (08:55 +0900)]
Support Process Name Setter/Getter

Some daemons want to commucate with the running applications using IPC API
of App Framework like rpc-port or message-port. To use APIs, the application ID
is required. Even if the process is not the Tizen application, we support to set
the name of the process.

Removes:
 - aul_proc_get_usr_bypid()

Adds:
 - aul_proc_get_uid()
 - aul_proc_get_attr()
 - aul_proc_get_cmdline()
 - aul_proc_register()
 - aul_proc_deregister()
 - aul_proc_get_name()
 - aul_proc_get_extra()

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/260615/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/260623/

Change-Id: Id624ce33422626edb29edf2942b7cf5825d78f5f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRemove build warning message 75/260575/1
Hwankyu Jhun [Tue, 29 Jun 2021 07:48:30 +0000 (16:48 +0900)]
Remove build warning message

Change-Id: I971011fe9fe37dfa4b6cf9db5bb906e483074ada
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.35.5 31/260531/1 accepted/tizen/unified/20210629.130214 submit/tizen/20210628.093147
Hwankyu Jhun [Mon, 28 Jun 2021 09:25:28 +0000 (18:25 +0900)]
Release version 0.35.5

Changes:
 - Fix aul_svc_get_appid_by_alias_appid_for_uid() function

Change-Id: I3b18706c70fdec4ea33d4abe33a2f5f36d4c2c6c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix aul_svc_get_appid_by_alias_appid_for_uid() function 22/260522/1
Hwankyu Jhun [Mon, 28 Jun 2021 08:15:07 +0000 (17:15 +0900)]
Fix aul_svc_get_appid_by_alias_appid_for_uid() function

If the amd ready file is not existed, the caller process accesses to the
database directly to get the appid using the alias appid.

Change-Id: I964e3b0b3d82ac699214a1b963b109e081bce619
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.35.4 49/260449/1 accepted/tizen/unified/20210628.122400 submit/tizen/20210625.051851
Hyunho [Fri, 25 Jun 2021 05:12:08 +0000 (14:12 +0900)]
Release version 0.35.4

Changes:
 - Fix retrieving app com connections
 - Initialize class member

Change-Id: I537f99564831445d81f094d39d11120efe8c55cb
Signed-off-by: Hyunho <hhstark.kang@samsung.com>
2 years agoInitialize class member 42/260442/1
Hyunho [Fri, 25 Jun 2021 03:31:15 +0000 (12:31 +0900)]
Initialize class member

Change-Id: I23421a020f8602bbad1890d7dbc92a24115ace0e
Signed-off-by: Hyunho <hhstark.kang@samsung.com>
2 years agoFix retrieving app com connections 61/260261/2
Hwankyu Jhun [Tue, 22 Jun 2021 23:54:02 +0000 (08:54 +0900)]
Fix retrieving app com connections

To allow delete this, app com uses std::iterator. After this patch is
applied, the caller process can call aul_app_com_leave() while calling
the app_com_cb() callback function.

Change-Id: I0e6202810d99af556197c35b9c06303185e25482
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.35.3 33/260133/1 accepted/tizen/unified/20210621.214549 submit/tizen/20210621.050954 submit/tizen/20210621.070948
Hwankyu Jhun [Mon, 21 Jun 2021 05:02:53 +0000 (14:02 +0900)]
Release version 0.35.3

Changes:
 - Enable unit tests

Change-Id: I56040bed402a3a05f07a4593c14c2c25b3abb142
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoMerge "Enable unit tests" into tizen
HwanKyu Jhun [Mon, 21 Jun 2021 05:02:39 +0000 (05:02 +0000)]
Merge "Enable unit tests" into tizen

3 years agoEnable unit tests 32/260132/1
Hwankyu Jhun [Mon, 21 Jun 2021 04:47:55 +0000 (13:47 +0900)]
Enable unit tests

Change-Id: I284aea62d547f8fd3a76a2e27cf3da55c0cea2af
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.35.2 31/260131/1 submit/tizen/20210621.050815
Hwankyu Jhun [Mon, 21 Jun 2021 04:38:20 +0000 (13:38 +0900)]
Release version 0.35.2

Changes:
 - Refactor AUL RPC Port
 - Refactor App Com
 - Remove unnecessary dependency
 - Disable unit tests

Change-Id: I8337648aa616242b1c741666cd28dc94155db4a4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoDisable unit tests 29/260129/1
Hwankyu Jhun [Mon, 21 Jun 2021 03:29:48 +0000 (12:29 +0900)]
Disable unit tests

Currently, aul-unit-tests make build error issues.
While calling aul_launch_fini(), the AUL worker thread will not be
terminated. Because, the glib codes are not working fine.
The process of aul-unit-tests always waits g_thread_join().

+---------------------------------------------------------------------+
|#0  0xb77a6a49 in __kernel_vsyscall ()                               |
|#1  0xb77536e7 in __GI___pthread_timedjoin_ex (                      |
|               threadid=<optimized out>, threadid@entry=3061508928,  |
|               thread_return=thread_return@entry=0x0,                |
|               abstime=abstime@entry=0x0, block=block@entry=true)    |
|               at pthread_join_common.c:142                          |
|#2  0xb7753466 in __pthread_join (threadid=3061508928,               |
|               thread_return=thread_return@entry=0x0)                |
|               at pthread_join.c:24                                  |
|#3  0xb764161a in g_system_thread_wait (                             |
|               thread=thread@entry=0x802ada00)                       |
|               at ../glib/gthread-posix.c:1235                       |
|#4  0xb76191c9 in g_thread_join (                                    |
|               thread=0x802ada00) at ../glib/gthread.c:959           |
|#5  0xb7558fbb in aul_worker_destroy (handle=handle@entry=0x802aa380)|
+---------------------------------------------------------------------+

Change-Id: I696e42375f36170535b5aead29432ff94afc7b7c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRemove unnecessary dependency 84/259784/4
Sangyoon Jang [Mon, 14 Jun 2021 08:13:33 +0000 (17:13 +0900)]
Remove unnecessary dependency

Change-Id: I8dae834dedc2ec5624a46b01d2b75d9f761fe510
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoRefactor App Com 35/259935/4
Hwankyu Jhun [Thu, 17 Jun 2021 01:10:10 +0000 (10:10 +0900)]
Refactor App Com

The implementation is changed to c++.

Change-Id: Idaa0b8881443d8646dc944af0b82070d92b12f6a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRefactor AUL RPC Port 56/259856/9
Hwankyu Jhun [Wed, 16 Jun 2021 05:09:05 +0000 (14:09 +0900)]
Refactor AUL RPC Port

The implmentation is changed to c++.

Change-Id: Ibbdbcf36e87ef6b9f7c1f5dc831512b1f87d5693
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.35.1 80/259980/2 submit/tizen/20210617.070222 submit/tizen/20210618.082001 submit/tizen/20210620.232502
Ilho Kim [Thu, 17 Jun 2021 06:50:55 +0000 (15:50 +0900)]
Release version 0.35.1

Changes:
 - Add a new definition for resource package feature

Change-Id: I34fa2423b10465a026a1d799e3fc20eae24087a4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoAdd a new definition for resource package feature 86/253786/16
Ilho Kim [Wed, 3 Feb 2021 12:49:16 +0000 (21:49 +0900)]
Add a new definition for resource package feature

Adds:
 - AUL_K_MOUNT_GLOBAL_RES_DIR
 - AUL_K_MOUNT_ALLOWED_RES_DIR

Change-Id: If7565da4d1b86e5857f64049d034c443ce8522c2
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoRelease version 0.35.0 51/259851/1 accepted/tizen/unified/20210617.124921 submit/tizen/20210616.025419
Hwankyu Jhun [Wed, 16 Jun 2021 02:46:15 +0000 (11:46 +0900)]
Release version 0.35.0

Changes:
 - Add a new function to get lifecycle state

Change-Id: Ib749e5b33a6d0971bad7768f9a363f545b347150
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoAdd a new function to get lifecycle state 45/259845/2
Hwankyu Jhun [Wed, 16 Jun 2021 01:57:45 +0000 (10:57 +0900)]
Add a new function to get lifecycle state

Adds:
 - aul_app_lifecycle_get_state()

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/259845/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/259848/

Change-Id: Ifce2176acf8db447797487314f5116f4292347c9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.34.4 63/259763/1 accepted/tizen/unified/20210615.120233 submit/tizen/20210614.021218 submit/tizen/20210614.232847
jh9216.park [Mon, 14 Jun 2021 02:04:05 +0000 (22:04 -0400)]
Release version 0.34.4

Changes:
 - Fix unit test
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Change-Id: Ib39b9f9e2ac226432872853d6872a833864a940c

3 years agoFix unit test 60/259760/2
jh9216.park [Sun, 13 Jun 2021 23:48:15 +0000 (19:48 -0400)]
Fix unit test

- Destroy 'aul worker' before removing mock object
- Avoid accessing freed memory

Change-Id: Ie55bea49934bb68074e627f81c6694a9ee5e7ef0
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
3 years agoRelease version 0.34.3 86/259686/1 submit/tizen/20210611.054821
Changgyu Choi [Fri, 11 Jun 2021 05:31:36 +0000 (14:31 +0900)]
Release version 0.34.3

Changes:
 - Fix to unit test fail that is timing issue.

Change-Id: I9ba3b00334b693edc71deec8946ce1c4dd89b56b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoFix to unit test fail that is timing issue. 84/259684/2
Changgyu Choi [Fri, 11 Jun 2021 04:52:41 +0000 (13:52 +0900)]
Fix to unit test fail that is timing issue.

Some aul API object use glib API at destructor.
This patch removes mock from some functions used at destructor.

Change-Id: I7eb977b5ef683427e04b6a86c8bd1b26b07bbf94
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoRelease version 0.34.2 16/259616/1 submit/tizen/20210610.075735 submit/tizen/20210611.003709
Changgyu Choi [Thu, 10 Jun 2021 07:55:39 +0000 (16:55 +0900)]
Release version 0.34.2

Changes:
 - Fix wrong implementation
 - Refactor launch_with_result.c
 - Receive header at once using POD type
 - Fix gcov build fail issue

Change-Id: I03c565dc7530150828197212a71660b05494ac94
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoFix gcov build fail issue 11/259611/5
Changgyu Choi [Thu, 10 Jun 2021 07:40:15 +0000 (16:40 +0900)]
Fix gcov build fail issue

mkdir is used after unittest.
So it should operates well.

Change-Id: I6300aee51387d7b71c7213c4deaf90cae54f1ffa
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoReceive header at once using POD type 79/259279/2
jh9216.park [Fri, 4 Jun 2021 01:37:46 +0000 (21:37 -0400)]
Receive header at once using POD type

Change-Id: I1961cfccdc6fd4cab519271d2e29c6138d47d853
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
3 years agoRefactor launch_with_result.c 52/258852/14
jh9216.park [Thu, 27 May 2021 00:07:07 +0000 (20:07 -0400)]
Refactor launch_with_result.c

- Use c++ syntax
- Extract class 'AppRequest'

Change-Id: Ic9fe84e25d89a5d33b00034de18152bbb077215c
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
3 years agoFix wrong implementation 34/259234/1
Hwankyu Jhun [Wed, 2 Jun 2021 23:54:38 +0000 (08:54 +0900)]
Fix wrong implementation

If the return value of aul_sock_recv_reply_pkt() is a negative error value,
the function should return the error value after calling aul_error_convert()
with the return value.
Previous implemenation uses the fd variable. It's a wrong implementation.
This patch uses the ret variable when calling aul_error_convert().

Change-Id: Ic054b9d697f9f6502608af88a4ebeed3ae69f138
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.34.1 42/258942/1 accepted/tizen/unified/20210531.130357 submit/tizen/20210528.065624
Hwankyu Jhun [Fri, 28 May 2021 06:33:40 +0000 (15:33 +0900)]
Release version 0.34.1

Changes:
 - Add test cases for launch.c
 - Add test cases for launch.c
 - Fix wrong error log
 - Merge "Fix wrong error log" into tizen
 - Fix missing unlock
 - Refactor launch.c
 - Add TCs and dbus mock
 - Add TCs for launch_with_result.c
 - Fix memory leak

Change-Id: Ib4f84b5eec9fff27f49cd1f8c73f3f340636bc76
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix memory leak 23/258923/1
Hwankyu Jhun [Fri, 28 May 2021 01:16:17 +0000 (10:16 +0900)]
Fix memory leak

Change-Id: Ie8b90dccac49723bb066b16293a62940161e46af
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoAdd TCs for launch_with_result.c 59/258759/4
jh9216.park [Tue, 25 May 2021 08:32:49 +0000 (04:32 -0400)]
Add TCs for launch_with_result.c

Change-Id: If4f333dff2ee10aed92e2ebe5aeb0be67a056b41
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
3 years agoAdd TCs and dbus mock 16/258716/3
jh9216.park [Tue, 25 May 2021 01:47:32 +0000 (21:47 -0400)]
Add TCs and dbus mock

- Add DbusMock class
- Add a TC for aul_terminate_pid_without_restart
- Add a TC for aul_terminate_app
- Add a TC for aul_is_tep_mount_dbus_done
- Add a TC for aul_check_tep_mount

Change-Id: I2f42a0990e31a1010685c04e8b75d14f65c3eb07
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
3 years agoRefactor launch.c 04/258604/22
jh9216.park [Fri, 21 May 2021 04:42:23 +0000 (00:42 -0400)]
Refactor launch.c

- Require : https://review.tizen.org/gerrit/#/c/platform/core/base/bundle/+/258595/
- Use c++ syntax
- Add 'AppRequest' class using builder pattern

Change-Id: I511368a0eb25dd61dd76a3fcdc9dac23dd0af137
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
3 years agoFix missing unlock 13/258713/1
Hwankyu Jhun [Mon, 24 May 2021 22:48:22 +0000 (07:48 +0900)]
Fix missing unlock

Change-Id: I339c6003eab4e98777f329e71f0a49b3fd8150c6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoMerge "Fix wrong error log" into tizen
Changgyu Choi [Mon, 24 May 2021 04:09:55 +0000 (04:09 +0000)]
Merge "Fix wrong error log" into tizen

3 years agoFix wrong error log 70/258670/1
Changgyu Choi [Mon, 24 May 2021 04:01:43 +0000 (13:01 +0900)]
Fix wrong error log

Change-Id: I14920e5dcb7d5eee2b2e925a2dd33993af45baf1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoAdd test cases for launch.c 60/258560/2
jh9216.park [Thu, 20 May 2021 07:52:06 +0000 (03:52 -0400)]
Add test cases for launch.c

- Add a TC for aul_launch_app_async
- Add a TC for aul_terminate_pid_sync
- Add a TC for aul_open_app
- Add a TC for aul_resume_app
- Add a TC for aul_resume_pid
- Add a TC for aul_resume_pid_async
- Add a TC for aul_app_is_running
- Add a TC for aul_prepare_app_defined_loader
- Add a TC for aul_terminate_pid_async
- Add a TC for aul_pause_app
- Add a TC for aul_pause_pid
- Add a TC for aul_terminate_app_with_instance_id
- Add a TC for aul_terminate_instance_async
- Add a TC for aul_resume_app_by_instance_id
- Add a TC for aul_prepare_candidate_process
- Add a TC for aul_app_register_pid
- Add a TC for aul_add_loader
- Add a TC for aul_remove_loader
- Add a TC for aul_reload_appinfo
- Add a TC for aul_kill_pid
- Add a TC for aul_terminate_pid_sync_without_restart
- Add a TC for aul_terminate_bgapp_pid

Change-Id: I9edd668ea984d98f3970159849527b0cfbbe931f
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
3 years agoAdd test cases for launch.c 46/258446/6
jh9216.park [Tue, 18 May 2021 04:35:34 +0000 (00:35 -0400)]
Add test cases for launch.c

- Add a TC for aul_launch_app
- Add a TC for aul_terminate_pid

Change-Id: I29360b43698801e4bfe52a8824313e5667d418ea
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
3 years agoRelease version 0.34.0 64/258464/2
Hwankyu Jhun [Tue, 18 May 2021 06:23:57 +0000 (15:23 +0900)]
Release version 0.34.0

Changes:
 - Add ExternalDirectoryInfo class
 - Add aul_get_default_app function

Change-Id: I663886608ced838d524527818ef04a0bbfa63506
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoAdd aul_get_default_app function 90/258290/3
Hwankyu Jhun [Thu, 13 May 2021 07:23:04 +0000 (16:23 +0900)]
Add aul_get_default_app function

To get the default application ID, the function is added.

Change-Id: I47f4d668c672986513c2e625ee8ebe9cb26655d4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoAdd ExternalDirectoryInfo class 06/258106/4
Hwankyu Jhun [Tue, 11 May 2021 01:06:47 +0000 (10:06 +0900)]
Add ExternalDirectoryInfo class

While getting external path, AUL uses storage API to get external
storage path. And, the storage API uses gdbus API to get primary sdcard path.
While using gdbus API, two threads are created by gdbus.
Currently, threads are created when the process is calling aul_get_app_root_path().
The codes are separated from DirectoryInfo class for backward compatibility.

Change-Id: I83e1e931afa85002fd239fd2f4459cf08f58eef9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.33.8 11/258111/1 submit/tizen/20210511.022527
Changgyu Choi [Tue, 11 May 2021 01:16:15 +0000 (10:16 +0900)]
Release version 0.33.8

Changes:
 - Remove unnecessary g_cond_wait() call
 - Add to set res_fn_ to nullptr

Change-Id: Ic7c1e47cf787fd861dab1a55659391d26d972299
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoAdd to set res_fn_ to nullptr 17/257817/5
Changgyu Choi [Mon, 3 May 2021 08:26:20 +0000 (17:26 +0900)]
Add to set res_fn_ to nullptr

Changes:
 - Set res_fn_ to nullptr after calling it.
 - Add some logs for debugging.

Change-Id: I85287fa4edd0f606ff60dff87fcbb1b2f7fec496
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoRemove unnecessary g_cond_wait() call 59/257659/1
Hwankyu Jhun [Thu, 29 Apr 2021 05:34:00 +0000 (14:34 +0900)]
Remove unnecessary g_cond_wait() call

Change-Id: Id1c25b3afef3fbd57541e297269985bf8a4ff906
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.33.7 56/257656/1 accepted/tizen/unified/20210430.052743 submit/tizen/20210429.051235
Hwankyu Jhun [Thu, 29 Apr 2021 05:05:00 +0000 (14:05 +0900)]
Release version 0.33.7

Changes:
 - Fix a bug about using condition variables

Change-Id: If24196385bc367e2952c4ed44cd8a8739750e50a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix a bug about using condition variables 48/257648/1
Hwankyu Jhun [Thu, 29 Apr 2021 04:11:00 +0000 (13:11 +0900)]
Fix a bug about using condition variables

When using condition variables, it's possible that a spurious wakeup may
occur. g_cond_wait() MUST always be used in a loop.

Change-Id: I5bfe6435a601e442c06612a17aed9a7f5daa538a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.33.6 11/257211/1 accepted/tizen/unified/20210422.090514 submit/tizen/20210421.075319
Hwankyu Jhun [Wed, 21 Apr 2021 07:47:53 +0000 (16:47 +0900)]
Release version 0.33.6

Changes:
 - Fix an argument of Client::Recv()
 - Fix AUL worker

Change-Id: Id59bd6e5d8e735cbaa88b13904711360cde822eb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix AUL worker 83/257183/5
Hwankyu Jhun [Tue, 20 Apr 2021 11:46:43 +0000 (20:46 +0900)]
Fix AUL worker

- Add logs for debugging
- Handle error conditions

Change-Id: I47cf6d17f9ef441ba8aeb2bcbd457981dc0c4883
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix an argument of Client::Recv() 96/256596/2
Hwankyu Jhun [Thu, 8 Apr 2021 01:17:32 +0000 (10:17 +0900)]
Fix an argument of Client::Recv()

The type of an argument is changed to Packet**.

Change-Id: I6a429014988308755c17b4d81dce42bc8f070dbc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.33.5 49/256549/1 accepted/tizen/unified/20210407.100457 submit/tizen/20210407.003203
Hwankyu Jhun [Wed, 7 Apr 2021 00:18:57 +0000 (09:18 +0900)]
Release version 0.33.5

Changes:
 - Refactor AUL Path API
 - Fix wrong implementation of packet class

Change-Id: I850ebf6d6caaef1bf8aa91df8c30e73b2cb48768
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix wrong implementation of packet class 92/256492/1
Hwankyu Jhun [Mon, 5 Apr 2021 10:24:24 +0000 (19:24 +0900)]
Fix wrong implementation of packet class

Change-Id: Id7a543306810a57543e1f6644c6659cf40af9acd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRefactor AUL Path API 15/255715/17
Hwankyu Jhun [Tue, 23 Mar 2021 01:39:44 +0000 (10:39 +0900)]
Refactor AUL Path API

Change-Id: I3fbf85e5895b0f0e40d96ffe8b965fb631ffd904
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.33.4 87/255987/1 accepted/tizen/unified/20210330.111327 submit/tizen/20210326.043337 submit/tizen/20210329.014014
Hwankyu Jhun [Fri, 26 Mar 2021 04:30:31 +0000 (13:30 +0900)]
Release version 0.33.4

Changes:
 - Fix aul_svc_get_all_defapps_for_uid() function

Change-Id: I5eafb0a582ab38e93a946ca141206e7ac2323a59
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix aul_svc_get_all_defapps_for_uid() function 84/255984/1
Hwankyu Jhun [Fri, 26 Mar 2021 02:50:40 +0000 (11:50 +0900)]
Fix aul_svc_get_all_defapps_for_uid() function

This patch removes the size check of the application list for backward
compatibility.

Change-Id: Ie1e05c48fdf17ce1cac085139b6ced43677ddb29
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.33.3 46/255646/2 accepted/tizen/unified/20210324.124434 submit/tizen/20210322.043354
Changgyu Choi [Mon, 22 Mar 2021 04:26:28 +0000 (13:26 +0900)]
Release version 0.33.3

Changes:
 - Fix aul_svc_set_instance_id() function
 - Add a missing error case
 - Fix static issues

Change-Id: I75da24d4aeda6bce459c0b242abcb240c43fcb0b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoMerge "Fix static issues" into tizen
Changgyu Choi [Mon, 22 Mar 2021 04:25:56 +0000 (04:25 +0000)]
Merge "Fix static issues" into tizen

3 years agoFix static issues 42/255642/2
Changgyu Choi [Mon, 22 Mar 2021 03:45:24 +0000 (12:45 +0900)]
Fix static issues

Changes:
 * Add to initialize member variables.

Change-Id: I5d16df353ff7a94b98b9d9b984da2ec4f30873d7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoAdd a missing error case 44/255644/1
Hwankyu Jhun [Mon, 22 Mar 2021 04:03:41 +0000 (13:03 +0900)]
Add a missing error case

If the return value of AUL function is AUL_R_ECANCELED, the function
should return AUL_SVC_RET_ECANCLED.

Change-Id: Ie23c23c8b6b0461d4f618507ef58140b9d9b5867
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix aul_svc_set_instance_id() function 14/255414/2
Hwankyu Jhun [Thu, 18 Mar 2021 04:56:45 +0000 (13:56 +0900)]
Fix aul_svc_set_instance_id() function

This patch changes the behavior of the function to delete the previous
data. If the instance_id is nullptr, the function deletes the previous data
from the bundle object.

Change-Id: I0d40d980d8b6e9025dd65f3dc0eb40345d4fcbb2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.33.2 19/255319/1 accepted/tizen/unified/20210318.055935 accepted/tizen/unified/20210323.123015 submit/tizen/20210316.232334 submit/tizen/20210317.105308 submit/tizen/20210319.065928
Hwankyu Jhun [Tue, 16 Mar 2021 23:19:46 +0000 (08:19 +0900)]
Release version 0.33.2

Changes:
 - Use Parcel API instead of custom Parcel
 - Fix exception handling of SendAndReceive() method

Change-Id: I3d21935eb80952c3ede393e4032adb56aa51c1be
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix exception handling of SendAndReceive() method 30/255230/2
Hwankyu Jhun [Mon, 15 Mar 2021 09:27:47 +0000 (18:27 +0900)]
Fix exception handling of SendAndReceive() method

Change-Id: I5db0c5fbd04c9187375d7f008f30396427d4d4f1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoUse Parcel API instead of custom Parcel 06/255106/1
Hwankyu Jhun [Fri, 12 Mar 2021 05:37:14 +0000 (14:37 +0900)]
Use Parcel API instead of custom Parcel

Change-Id: I802c7aaee4fbeb476a27745e7e303ab801e52e78
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.33.1 08/255008/1 submit/tizen/20210311.081932 submit/tizen/20210315.011842
Hwankyu Jhun [Thu, 11 Mar 2021 08:08:15 +0000 (17:08 +0900)]
Release version 0.33.1

Changes:
 - Refactor aul service codes

Change-Id: Ie65f117ffe00845d3f461f50ae5d4a051ec61d14
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRefactor aul service codes 18/254518/8
Hwankyu Jhun [Thu, 4 Mar 2021 06:12:01 +0000 (15:12 +0900)]
Refactor aul service codes

Change-Id: Ifbadbd5f65455199e6f5f30ca8e55caa80bbcded
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.33.0 62/254862/1 accepted/tizen/unified/20210311.151515 submit/tizen/20210310.072848
Hwankyu Jhun [Wed, 10 Mar 2021 06:00:23 +0000 (15:00 +0900)]
Release version 0.33.0

Changes:
 - Add aul-server package for daemon

Change-Id: I3850ebd9d9dd2f7180ce7951c6a9490d751cb5cd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoAdd aul-server package for daemon 51/254251/10
Hwankyu Jhun [Thu, 25 Feb 2021 05:09:24 +0000 (14:09 +0900)]
Add aul-server package for daemon

The aul-server package is separated from the aul package. The codes
related to sqlite3 are moved to the aul-server package.
Unused functions are deprecated.

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/254134/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/254251/
 - https://review.tizen.org/gerrit/#/c/platform/core/api/component-manager/+/254796/

Change-Id: Ie4efda89ab105d70dc30e7b0deae5c525bcfb65f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.32.0 54/254254/1 accepted/tizen/unified/20210226.132000 submit/tizen/20210225.054706
Hwankyu Jhun [Thu, 25 Feb 2021 05:37:37 +0000 (14:37 +0900)]
Release version 0.32.0

Changes:
 - Fix getting widget db path
 - Fix aul_forward_app function
 - Add a new function to update status

Change-Id: I0894a7b2278161e9df525cc07666e07dd397b099
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoAdd a new function to update status 04/254204/4
Hwankyu Jhun [Thu, 25 Feb 2021 03:36:25 +0000 (12:36 +0900)]
Add a new function to update status

The function is to update status synchronously.

Adds:
 - aul_status_update_v2()

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/254204/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/appcore-agent/+/254205/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/254206/

Change-Id: I5ee199c1dd576fb8d19e4c40d132ce4649f7d3cb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix aul_forward_app function 41/254141/3
Hwankyu Jhun [Wed, 24 Feb 2021 04:48:01 +0000 (13:48 +0900)]
Fix aul_forward_app function

Before sending the launch request, the function sets a new instance ID.

Change-Id: Ie48e2b0489f507ea90c1e057d9fdcfa5d4f01074
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix getting widget db path 65/253665/1
Hwankyu Jhun [Tue, 16 Feb 2021 07:32:08 +0000 (16:32 +0900)]
Fix getting widget db path

When the user is not a globalapp user, the db path should be created
using TZ_USER_DB.

Change-Id: I256b722cbeb9133cc75e2ce99428ed4018365acf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.31.0 50/252350/1 accepted/tizen/unified/20210128.132340 submit/tizen/20210127.052123 submit/tizen/20210127.075110
Hwankyu Jhun [Wed, 27 Jan 2021 05:12:06 +0000 (14:12 +0900)]
Release version 0.31.0

Changes:
 - Add new functions for listening app lifecycle state

Change-Id: I82285fcacb461b8e7a2b5c7fd33bd4a2c4493202
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoAdd new functions for listening app lifecycle state 30/251730/3
Hwankyu Jhun [Tue, 19 Jan 2021 03:44:01 +0000 (12:44 +0900)]
Add new functions for listening app lifecycle state

Adds:
 - aul_app_lifecycle_register_state_changed_cb()
 - aul_app_lifecycle_deregister_state_changed_cb()
 - aul_app_lifecycle_update_state()

Change-Id: Idc1f822aebe4a0cdad014f13ed23ecfafab71bf5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.30.2 39/251439/1 accepted/tizen/unified/20210118.141056 submit/tizen/20210114.024630
Hwankyu Jhun [Thu, 14 Jan 2021 01:15:23 +0000 (10:15 +0900)]
Release version 0.30.2

Changes:
 - Fix fast launch option of app_launcher tool

Change-Id: Ia4f43b170c914fe601573959d7c44d408d96860a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>