Hwankyu Jhun [Fri, 22 Dec 2023 06:46:13 +0000 (15:46 +0900)]
Release version 0.60.15
Changes:
- Add a new internal AUL key
Change-Id: Iddbe80760552bc97919eda6d05d18bbfe1ec28d7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 22 Dec 2023 06:34:30 +0000 (15:34 +0900)]
Add a new internal AUL key
The AUL_K_REQUEST_ID is added for aul requests.
The aul_launch implementation uses the key.
Change-Id: Ib90a46546e82ab013398fb683a2bbf3ff12fe681
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 22 Dec 2023 03:36:51 +0000 (12:36 +0900)]
Release version 0.60.14
Changes:
- Send a result with a sequence number
Change-Id: Id64d549cc15a93704ed8df84bb2190c7ad645da9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 22 Dec 2023 02:09:20 +0000 (11:09 +0900)]
Send a result with a sequence number
When sending the result to amd, the application sends the sequence number.
amd will handle the reply by the sequence number.
Change-Id: I5f17e6b834b6e85cf038714c468fe9985dd56707
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 15 Dec 2023 01:47:05 +0000 (10:47 +0900)]
Release version 0.60.13
Changes:
- Wait for the creation of a socket
Change-Id: Id0603e14e1b0e963ff803a14a9e57d37ede9b9af
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 14 Dec 2023 11:16:25 +0000 (20:16 +0900)]
Wait for the creation of a socket
When the app launcher tool receives a request to execute through the -f option,
it waits for the creation of a socket in the launchpad-process-pool.
If the socket is not created yet, we call usleep() every 100ms and monitor.
The maximum timeout is 10 seconds.
Change-Id: I98b5e0dc704fe08ae6130d46d0057e3041f9d260
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Wed, 13 Dec 2023 01:36:30 +0000 (10:36 +0900)]
Release version 0.60.12
Changes:
- Remove init process of fast launch
Change-Id: I0b1cbb9a7e2419aaa5ccd78ee75e3356d93e0dcb
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 13 Dec 2023 01:02:00 +0000 (10:02 +0900)]
Remove init process of fast launch
The logic to access the database at the beginning of booting is disadvantageous for performance.
This patch improves this by omitting the check for whether the app is installed if it is a fast launch.
Change-Id: I9827e43cda610d633258366ad420a7abd9e3d4d7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Thu, 7 Dec 2023 08:22:21 +0000 (17:22 +0900)]
Release version 0.60.11
Changes:
- Modify -f option of app launcher
Change-Id: If092333d7305aaf35aec1e4cd313766eec80a9f0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 6 Dec 2023 10:17:42 +0000 (19:17 +0900)]
Modify -f option of app launcher
If the option is 'fast launch', the app launcher does not set the recv
timeout. If initialization of launchpad takes a long time, duplicate execution
occurs. This patch is applied to prevent this.
Change-Id: If198da87976656d70077a73aeeb36c0f25a803c6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 1 Dec 2023 07:08:33 +0000 (16:08 +0900)]
Release version 0.60.10
Changes:
- Modify boot sequence parser
Change-Id: Icaba9ff0e09c76d5bfbef947538b96a655b710fa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 30 Nov 2023 07:50:36 +0000 (16:50 +0900)]
Modify boot sequence parser
After this patch is applied, the parser does not check on-boot option.
It only checks the boot-sequence exists in the tizen-manifest.xml or not.
The dotnet API version has been integrated into the Tizen API version.
Change-Id: I8eed1c8fa537cc6dad0237cb034c61ed06823309
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Mon, 20 Nov 2023 03:51:07 +0000 (12:51 +0900)]
Release version 0.60.9
Changes:
- Revert "Send a startup signal in the constructor"
Change-Id: I17c14c20859a82a273f3a245e9805527df12466b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 20 Nov 2023 01:59:53 +0000 (10:59 +0900)]
Revert "Send a startup signal in the constructor"
This reverts commit
1c1714c08ecb9eade1058bc4cbff41dcdb74e2ec.
Change-Id: I7217c6355bc38f0c59d93fe112a39e2c764cc0f5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Thu, 16 Nov 2023 04:03:15 +0000 (13:03 +0900)]
Release version 0.60.8
Changes:
- Use TLS variable for getting status
Change-Id: I571a5fbda17973f07fa46a448132533cc4c3d89b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 16 Nov 2023 03:50:42 +0000 (12:50 +0900)]
Use TLS variable for getting status
If the aul_app_info_iter_fn callback function is called while calling
getting status API, aul library tries to get the status from the current
aul_app_info.
Change-Id: I26b60a9b81d9def74abe66234c9de726983344ce
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 15 Nov 2023 09:11:37 +0000 (18:11 +0900)]
Release version 0.60.7
Changes:
- Add a missing header file
Change-Id: I86919d7c6c2931cf931cbcc31471031cf992aeee
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 15 Nov 2023 09:10:56 +0000 (18:10 +0900)]
Add a missing header file
Adds:
- pkginfo_internal.h
Change-Id: I920b6e09fe1e648467318ea976eb8b7e9169bb6d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 15 Nov 2023 07:25:26 +0000 (16:25 +0900)]
Release version 0.60.6
Changes:
- Print warning messages
Change-Id: Idbce39a8b61bc3693b43faa65386cb99682aa774
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 15 Nov 2023 06:30:58 +0000 (15:30 +0900)]
Print warning messages
Currently, product developers are using the aul_app_get_status() API in
the aul_app_info_iter_fn callback function.
This behavior has an adverse effect on AMD latency.
This patch adds the output of a warning message to the developer when
the aul_app_get_status() API is used within the aul_app_info_iter_fn callback.
Whether or not to call the callback was processed using thread local storage.
Change-Id: Iacb5ff451775b340e88cbd39ca20ff845321a89d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 15 Nov 2023 01:40:30 +0000 (10:40 +0900)]
Release version 0.60.5
Changes:
- Send a startup signal in the constructor
Change-Id: I3af642496e2cc71b822aecf7c74591e0e52aee90
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Fri, 10 Nov 2023 04:25:04 +0000 (13:25 +0900)]
Send a startup signal in the constructor
In the previous implementation, the startup signal was sent from launchpad.
This patch moves this behavior to the point where the aul library creator
is called.
Change-Id: I8e6376ebe68308ea70b8a31cb85e7dc723109824
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 16 Oct 2023 09:28:32 +0000 (18:28 +0900)]
Release version 0.60.4
Changes:
- Use global mutex variable on __send_result()
Change-Id: I13282ea71922ae795b3ccef9d9beb4c7c1f4568d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 16 Oct 2023 08:30:38 +0000 (17:30 +0900)]
Use global mutex variable on __send_result()
The socket io of aul+ require mutex because read and write can occur at the same time.
This patch uses the global mutex instead of the previously removed channel mutex.
Change-Id: I7189dc4567c2a0150e40877b67f42baf62719b4a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 16 Oct 2023 08:16:38 +0000 (17:16 +0900)]
Release version 0.60.3
Changes:
- Remove the logic that checks channel lock during __send_result()
Change-Id: Iafafb8521250f727c1ae649d81cb401ad592b1f7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 16 Oct 2023 07:51:21 +0000 (16:51 +0900)]
Remove the logic that checks channel lock during __send_result()
Client channel can be invalid when calling __send_result() into the main thread.
This patch removes the use of invalid mutex in these cases.
Change-Id: I1635f78431187314003bb8f2e53804d7f9231dd1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 20 Sep 2023 04:28:59 +0000 (13:28 +0900)]
Release version 0.60.2
Changes:
- Fix double fd close
Change-Id: I2e8c3f694a23b44c497e9c7322909a8382292b3b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 20 Sep 2023 02:23:18 +0000 (11:23 +0900)]
Fix double fd close
Change-Id: Idb201ddb6152235b93f85126032b72f831540503
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Thu, 14 Sep 2023 00:14:36 +0000 (09:14 +0900)]
Release version 0.60.1
Changes:
- Use sysconf() instead of global variable
Change-Id: I2161aabab485f92034ac723459ce320a420b8cfa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 13 Sep 2023 10:14:54 +0000 (19:14 +0900)]
Use sysconf() instead of global variable
Some process changes the maximum open file descriptor number itself.
In this case, the MAX_FDS must be changed.
Change-Id: I70c3ffe91c78a9068572c9c4f6471701fea0045d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 30 Aug 2023 05:51:59 +0000 (14:51 +0900)]
Release version 0.60.0
Changes:
- Add new internal functions to restart loader process
Change-Id: I1a517e2e4df56eb43de72946a41dfc98050e63bd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 30 Aug 2023 04:51:41 +0000 (13:51 +0900)]
Add new internal functions to restart loader process
The aul_restart_loader() function is added to send the restart request to
launchpad-process-pool.
Adds:
- aul_restart_loader()
- aul_restart_loader_for_uid()
Change-Id: If50f1bcbb329e0e8a7c8fbf9749561536bede4e0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 3 Aug 2023 08:07:53 +0000 (17:07 +0900)]
Release version 0.59.2
Changes:
- Use sqlite3_close_v2()
Change-Id: Ifd141efc88cab8b879b76b5ada0a4950b7822eb6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 3 Aug 2023 08:04:09 +0000 (17:04 +0900)]
Use sqlite3_close_v2()
If the database handle is opened using sqlite3_open_v2(),
we MUST use sqlite3_close_v2() to close the database properly.
Change-Id: Ia53b59df23674e821fea15a79d239dcb45fd2282
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Tue, 1 Aug 2023 04:45:24 +0000 (13:45 +0900)]
Release version 0.59.1
Changes:
- Add a new key
Change-Id: I7ddff10f446e91c6503fa552d3ad0226a52deba7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 1 Aug 2023 02:21:59 +0000 (11:21 +0900)]
Add a new key
Adds:
- AUL_K_MULTIPLE_INSTANCE_APPID
Change-Id: I404ad74bc4c45e97220bb9ffe4365b4b7c0fda98
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Thu, 27 Jul 2023 02:12:52 +0000 (11:12 +0900)]
Release version 0.59.0
Changes:
- Add new internal functions to kill loader process
Change-Id: Ie5fa6663f2ff33a5ab3207dfff802d2b8d69141a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 27 Jul 2023 01:29:01 +0000 (10:29 +0900)]
Add new internal functions to kill loader process
The aul_kill_loader() function is added to send the kill request to
launchpad-process-pool.
Adds:
- aul_kill_loader()
- aul_kill_loader_for_uid()
Change-Id: Id89226a0bf5dab959505ab437f340bfa6c28201d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 25 Jul 2023 01:30:06 +0000 (10:30 +0900)]
Release version 0.58.0
Changes:
- Add a new internal function for getting proc group info
Change-Id: Ibd53e75cda58094fb39fb7b79df02286705e9206
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 24 Jul 2023 07:53:05 +0000 (16:53 +0900)]
Add a new internal function for getting proc group info
aul_proc_group_foreach() is added to retrieves the process group information.
Adds:
- aul_proc_group_info_get_leader_pid()
- aul_proc_group_info_get_sub_pids()
- aul_proc_group_info_destroy()
- aul_proc_group_foreach()
- aul_proc_group_get()
Change-Id: I07f699088cf4c6e4eaf251df5df8153e2d8e1ea4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 21 Jul 2023 02:02:27 +0000 (11:02 +0900)]
Release version 0.57.5
Changes:
- Modify error code of aul socket
Change-Id: Ief046450219bc70895c876b07dab686bd86f9985
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 21 Jul 2023 01:39:14 +0000 (10:39 +0900)]
Modify error code of aul socket
When the amd socket is not ready, the errno value is ENOENT.
After calling aul_error_convert() function, the error is changed to AUL_R_ENOAPP.
It means the application is not found error. The error should be AUL_E_ECOMM.
This patch changes the error code to -ECOMMM.
Change-Id: Ic6d66d85bb4e37e41366a40bbe2abc1980b98dee
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 6 Jul 2023 07:09:32 +0000 (16:09 +0900)]
Release version 0.57.4
Changes:
- Fix bugs about boot sequence parser plugin
Change-Id: Id472a8961ac1103b7672fcab699383897c60911d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 6 Jul 2023 06:57:18 +0000 (15:57 +0900)]
Fix bugs about boot sequence parser plugin
The condition of if statements are wrong. If the value is not 'true' or 'false',
the parser plugin should set the default value.
Change-Id: I41b44aa90779d4bc74711d955ce9fcdea03264a1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 3 Jul 2023 08:29:08 +0000 (08:29 +0000)]
Release version 0.57.3
Changes:
- Fixed the build error using gcc 13
Change-Id: I7881b500eb9aa71b9c00b69d79276d943a28e686
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 3 Jul 2023 06:57:56 +0000 (06:57 +0000)]
Fixed the build error using gcc 13
- Change 'requires' variable to 'requires_dep'
- Remove unnecessary std::move call
Change-Id: Ic729513e31934da69f93cd7537a212f435bfbd5c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 23 Jun 2023 01:27:38 +0000 (01:27 +0000)]
Release version 0.57.2
Changes:
- Ssparate the registration from the constructor
Change-Id: Id46a9b1b46cba2615ad97fa414d55fb429d28022
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 22 Jun 2023 23:55:34 +0000 (23:55 +0000)]
Ssparate the registration from the constructor
To prevent segmantation fault issue, this patch separates the app com
registration from the app event constructor.
If the main thread accesses the resource of the derived class when
calling the constructor of the base class in the sub thread,
the segmentation fault issue is occurred as below:
--------------------------------------------------------------------------------
Thread 33 (LWP 4401):
#0 0xb5368646 in bundle_free (b=0xabfb0270)
#1 0xb5369538 in tizen_base::Bundle::~Bundle
#2 0xb53c9c1e in (anonymous namespace)::AppComCreate
#3 0xb53c9df8 in aul_app_com_create_async
#4 0xb53a1630 in aul::AppEvent::AppEvent
#5 0xb53a17ae in (anonymous namespace)::AppEventStub::AppEventStub
Thread 1 (LWP 4189):
#0 0xb5398b74 in aul::AppEvent::OnAppStatusCb
#1 0xb53c6bd8 in (anonymous namespace)::AppComConnection::Invoke
--------------------------------------------------------------------------------
Change-Id: I045046f64c1f33dcb4ada22ebbc21cffe97b86c7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 21 Jun 2023 06:01:00 +0000 (06:01 +0000)]
Release version 0.57.1
Changes:
- Fix a static analysis issue
- Fix wrong gsource deletion
Change-Id: I2e07d7b49ca686b3178cd2759afe7e292e81b7b2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 20 Jun 2023 23:49:54 +0000 (23:49 +0000)]
Fix wrong gsource deletion
While terminating the worker thread, the worker thread tries to remove
the anr timer source. In this time, the g_source_remove() was called.
It makes an error. This patch uses the g_source_destroy() instead of
the g_source_remove(). Before calling the g_source_destroy(), the worker
finds the source using the source id with the GMainContext.
Change-Id: Iee25a57b0b9036d028c0974187f013eb3e99b864
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Tue, 20 Jun 2023 04:24:48 +0000 (13:24 +0900)]
Fix a static analysis issue
Changes:
- Adds checking whether root is nullptr or not.
Change-Id: I694e8f0f696e9c4d4097adc876e7f868988458c8
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 19 Jun 2023 08:07:41 +0000 (17:07 +0900)]
Release version 0.57.0
Changes:
- Add a new internal API
Change-Id: I6b7f53f63715849239c0d36dff10bb053579edf6
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 16 Jun 2023 04:09:55 +0000 (13:09 +0900)]
Add a new internal API
This is for receiving app dead event with exit status.
Adds:
- aul_listen_app_dead_signal_v2()
Change-Id: I29e1614c63d71ee35e31ca66b3ac9930e900b48c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Mon, 12 Jun 2023 02:05:08 +0000 (02:05 +0000)]
Release version 0.56.2
Changes:
- Send ping before adding the watchdog timer
Change-Id: I218568dd36777d9d338e75fac819ee804b5def4c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 12 Jun 2023 01:35:56 +0000 (01:35 +0000)]
Send ping before adding the watchdog timer
Before adding the watchdog timer, AUL library sends the ping request to
AMD to notify.
Change-Id: Ieeabfcb88848e428e7b9a94c3f3b66fa93415fbd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 5 Jun 2023 06:33:05 +0000 (06:33 +0000)]
Release version 0.56.1
Changes:
- Move function definition to aul header
Change-Id: Ia11582c901901655fb0c297e05afe0ae96d0d15b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 5 Jun 2023 06:16:16 +0000 (06:16 +0000)]
Move function definition to aul header
To export the function, the aul_send_launch_request_for_uid() function
is moved to the aul.h file.
Change-Id: I2808d3f3b445cac770a1aec040b0a9c324a2c96c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 25 May 2023 04:48:15 +0000 (04:48 +0000)]
Release version 0.56.0
Changes:
- Modify aul_rpc_port_usr_exist() function
- Change tizen version from 7.5 to 8.0
- Modify CPU inheritance feature
- Add new internal APIs
Change-Id: Ifcc9639e8db69e2d963456a5a63f863d4bc15b9f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 23 May 2023 23:31:27 +0000 (23:31 +0000)]
Add new internal APIs
Adds:
- aul_app_get_appid_bypid_async()
- aul_terminate_pid_async_v2()
- aul_terminate_app_async()
- aul_kill_pid_async()
Change-Id: I1b7eafd0044fce8cfea8dbab4ecb01e6b715509b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 17 May 2023 00:15:34 +0000 (00:15 +0000)]
Modify CPU inheritance feature
If the request is APP_SEND_LAUNCH_REQUEST or APP_SEND_RESUME_REQUEST,
the cpu inheritance should continue until the result event is received.
This patch separates the cpu inheritance class from the aul sock code.
The class is added to the ErrorInfo to inherit the CPU boosting.
Change-Id: Ife5c6a07957af7c8fbcbda51701b150b656a6c56
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Tue, 16 May 2023 01:51:41 +0000 (10:51 +0900)]
Change tizen version from 7.5 to 8.0
Changes:
- AUL_K_SOCKET_TIMEOUT
- AUL_K_MOUNT_RES_PKGIDS
- AUL_K_HINT_SCREEN_POS_X
- AUL_K_HINT_SCREEN_POS_Y
- AUL_K_HINT_SCREEN_WIDTH
- AUL_K_HINT_SCREEN_HEIGHT
Change-Id: I2651ab3c646ce8115ce61307b4feecfd83a5cbc4
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Tue, 2 May 2023 08:07:47 +0000 (08:07 +0000)]
Modify aul_rpc_port_usr_exist() function
To avoid delay issue, the function uses access() function instead of
IPC with AMD.
Change-Id: Ifa096ad1ff66e09d21e4373dd214707681c38a45
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 21 Apr 2023 04:45:25 +0000 (04:45 +0000)]
Release version 0.55.1
Changes:
- Fix build error for gcc 12.2.0
Change-Id: Id26e47184c00efcaf22dbb300c5d14418e9003a8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 21 Apr 2023 00:36:55 +0000 (00:36 +0000)]
Fix build error for gcc 12.2.0
- Add missing header inclusion
Change-Id: I39433e4fea56e040d17f9bb61c60d3da7ea92da9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
ilho kim [Thu, 30 Mar 2023 07:20:55 +0000 (16:20 +0900)]
Release version 0.55.0
Changes:
- Add APIs for getting path related Resource Control
Change-Id: I4670792b770b6c33ae2fdd447a345fb33059c76b
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
ilho kim [Tue, 21 Mar 2023 05:35:38 +0000 (14:35 +0900)]
Add APIs for getting path related Resource Control
- add aul_get_app_res_control_allowed_resource_path()
- add aul_get_app_res_control_global_resource_path()
Change-Id: I70ff0a2f98f100ef8198090d4b3ec3f8eb81599f
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
Hwankyu Jhun [Fri, 10 Mar 2023 01:01:31 +0000 (01:01 +0000)]
Release version 0.54.5
Changes:
- Modify aul_app_event_destroy() function
Change-Id: I97a283eab23336c0029c70832fe7231060cd8094
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 9 Mar 2023 23:12:15 +0000 (23:12 +0000)]
Modify aul_app_event_destroy() function
If the caller thread ID is equal to the caller process ID,
the function releases the handle immediately. If it's not,
the function uses glib idler to avoid thread safe issues.
Change-Id: Id8272fb15be06459bab153932c4e1c0a9115fbf6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 8 Mar 2023 23:55:34 +0000 (23:55 +0000)]
Release version 0.54.4
Changes:
- Modify aul_app_com_leave function
Change-Id: I98fb3ae46ea0e0fe0383ae489813004f80adcc8c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 8 Mar 2023 10:15:22 +0000 (10:15 +0000)]
Modify aul_app_com_leave function
Some program goes to the sleep state immediately after calling
the aul_app_com_leave() function. In this case, the main thread of the
process will be blocked. It causes increasing memory usage.
To avoid the issue, the aul_app_com_leave() function sends the
APP_COM_LEAVE command to the amd to deregister the event.
Change-Id: Ic3d27b8c4151955094887fea59ed25cda08d2faf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 2 Mar 2023 04:31:11 +0000 (04:31 +0000)]
Release version 0.54.3
Changes:
- Fix typo
Change-Id: I1fb12c2b000e4c0a2f6a5cb63f59fb8c2b5d84fe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 2 Mar 2023 04:25:28 +0000 (04:25 +0000)]
Fix typo
The header guard should be "__AUL_PROC_GROUP_H__".
Change-Id: Ifc8ef3012e8896ade6765b10c60938549d1344e6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Thu, 2 Mar 2023 03:33:55 +0000 (12:33 +0900)]
Release version 0.54.2
Changes:
- Fix unittest about APP_COM_LEAVE changes
Change-Id: I80b5e67f0041201f0fcf84b93c5f64cfb25bb124
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 2 Mar 2023 03:27:17 +0000 (12:27 +0900)]
Fix unittest about APP_COM_LEAVE changes
Change-Id: Ia44bcfe4169248a2d58744147de2f148df5f29e0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 24 Feb 2023 12:26:58 +0000 (21:26 +0900)]
Release version 0.54.1
Changes:
- Change APP_COM_LEAVE request to async
Change-Id: Iec314e94f6f2f6890e95267182637f822c68d70f
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 24 Feb 2023 12:13:41 +0000 (21:13 +0900)]
Change APP_COM_LEAVE request to async
Change-Id: Ide3fa434d17c9f24e16c7ad6d7444752857c8ba0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 22 Feb 2023 04:31:49 +0000 (13:31 +0900)]
Release version 0.54.0
Changes:
- Add get/set window position api
- Fix static analysis issues
Change-Id: If8c8a774fd35710f5d73b471e3da113f58ce776b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 22 Feb 2023 02:23:37 +0000 (11:23 +0900)]
Fix static analysis issues
DataToBundle() can throw std::invalid_argument exception.
Change-Id: Id3432c0ec0137b2f43bc5bd7fda9bb917e4e4b90
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
SukhyungKang [Tue, 17 Jan 2023 01:27:08 +0000 (10:27 +0900)]
Add get/set window position api
Change-Id: I34623f70a1c92f498b8e5674d074ed90182d409a
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
Hwankyu Jhun [Thu, 2 Feb 2023 01:31:53 +0000 (01:31 +0000)]
Release version 0.53.4
Changes:
- Fix static analysis issue
Change-Id: Icd7246ccbd7272fdbf4200a4d0b855482ea2b915
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 2 Feb 2023 01:24:10 +0000 (01:24 +0000)]
Fix static analysis issue
Type:
- Wrapper object use after free
Change-Id: I59d1606ec71b4329df15ca41f65d3fe68f4d7522
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 26 Jan 2023 06:52:46 +0000 (06:52 +0000)]
Release version 0.53.3
Changes:
- Fix double close issue
Change-Id: I199a895bf6920c491b61a8e2966d6a7facc08c11
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 26 Jan 2023 06:08:56 +0000 (06:08 +0000)]
Fix double close issue
When calling the g_io_channel_unref() function, the socket fd is closed
by the glib. The AUL library has a problem that is a double close issue.
This patch is to fix the issue.
+------------------------------------------------------------------------------+
| [__AUL_WORKER__] close(188) |
| close backtrace() returned 9 addesses |
| [ 0] close /lib/libinterceptor.so(close+0x4d) [0xb60da72a] |
| [ 1] ? /lib/libglib-2.0.so.0(+0x430c00ea) [0xb0a620ea] |
| [ 2] g_io_channel_shutdown /lib/libglib-2.0.so.0(g_io_channel_shutdown+0x75) |
| [0xb0aa49f2] |
| [ 3] ? /lib/libaul.so.0(+0x43c0df00) [0xae66ff00] |
| [ 4] g_list_foreach /lib/libglib-2.0.so.0(g_list_foreach+0x13) [0xb0a99080] |
| [ 5] g_list_free_full /lib/libglib-2.0.so.0(g_list_free_full+0x9) |
| [0xb0a9dc0e] |
| [ 6] ? /lib/libaul.so.0(+0x43c0e284) [0xae670284] |
| [ 7] ? /lib/libglib-2.0.so.0(+0x430dbc42) [0xb0a7dc42] |
| [ 8] ? /lib/libpthread.so.0(+0x430174c4) [0xb5d044c4] |
+------------------------------------------------------------------------------+
| [__MAIN__] close(188) |
| close backtrace() returned 13 addesses |
| [ 0] close /lib/libinterceptor.so(close+0x4d) [0xb60da72a] |
| [ 1] aul_sock_destroy_server /lib/libaul.so.0(aul_sock_destroy_server+0x2e3) |
| [0xae67302c] |
| [ 2] aul_finalize /lib/libaul.so.0(aul_finalize+0x15) [0xae673196] |
| [ 3] _ZN9tizen_cpp11AppCoreBase11OnTerminateEv |
| /lib/libapp-core-cpp.so.1(_ZN9tizen_cpp11AppCoreBase11OnTerminateEv+0x5)|
| [0xae22d046] |
| [__MAIN__] EBADF occurs. fd(188) |
+------------------------------------------------------------------------------+
Change-Id: Id465eefae87653d2acb706875732ec176ce95bb1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 11 Jan 2023 10:30:43 +0000 (10:30 +0000)]
Release version 0.53.2
Changes:
- Add appsvc alias feature for tv profile
- Make a cache for getting appsvc alias appid
Change-Id: I1d67168659d5e5f0ad26fa5d7528cad113b15cf2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 11 Jan 2023 09:38:04 +0000 (09:38 +0000)]
Make a cache for getting appsvc alias appid
To reduce the file access, the aul library stores the alias info to the memory.
Change-Id: I34d2b66aafe84723ebb7e63d477127a30ba8b60c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 11 Jan 2023 09:05:45 +0000 (09:05 +0000)]
Add appsvc alias feature for tv profile
If the profile is tv, the library does not check whether the alias appid
exists or not.
Change-Id: I504d6970a334664633a6aff4dee456cee8691653
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 11 Jan 2023 00:13:08 +0000 (00:13 +0000)]
Release version 0.53.1
Changes:
- Check process group ID for getting appid and pkgid
Change-Id: I7aac65f0ea4e0309c71ea7d6238bb51a2e297eab
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 10 Jan 2023 23:56:50 +0000 (23:56 +0000)]
Check process group ID for getting appid and pkgid
The web engine is running as a child process of the web app.
If the web engine calls AUL APIs, the request is delivered to AMD.
Because, the process ID is not equal to the web app.
After this patch is applied, AUL API checks whether the process group ID
is equal to the process ID or not. Before executing an application,
the child process of the launchpad-process-pool calls the setsid() to
run the process in a new session. In that time, the process group is separated
from the launchpad-process-pool. Checking the process group ID can reduce
the IPC between AMD and the caller process.
Change-Id: I3746046c36328ecacc27c6cda16afbe44c1e1cfd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 9 Jan 2023 07:40:15 +0000 (07:40 +0000)]
Release version 0.53.0
Changes:
- Add a new aul key for res-controla
Change-Id: I97b9cdbbb12a2c990a227eddc978dd91c94dbb27
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Sangyoon Jang [Fri, 18 Nov 2022 07:08:21 +0000 (16:08 +0900)]
Add a new aul key for res-control
This key represents resource packages which will be mounted.
Change-Id: I88458ca382781ddc667d95c4cc275a251271c95d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Changgyu Choi [Tue, 3 Jan 2023 06:30:13 +0000 (15:30 +0900)]
Release version 0.52.0
Changes:
- Apply aul request with timeout
Change-Id: I329135537ad857cee70249edfc170862a0ea00e4
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 3 Jan 2023 06:25:11 +0000 (06:25 +0000)]
Merge "Apply aul request with timeout" into tizen
Changgyu Choi [Fri, 9 Dec 2022 02:04:11 +0000 (11:04 +0900)]
Apply aul request with timeout
Some apps want to set aul request timeout.
If there is a timeout value in the bundle, it changes the socket timeout to that value.
Change-Id: Ic8fd03dbce72ebed3ebc669f4ac11e2776eeaa6d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Tue, 3 Jan 2023 06:23:20 +0000 (06:23 +0000)]
Release version 0.51.0
Changes:
- Add new internal functions for candidate processes
Change-Id: Iddf5f004d9c2a8557936918b64c44c3f8e9d49b4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 3 Jan 2023 04:43:25 +0000 (04:43 +0000)]
Add new internal functions for candidate processes
To initialize aul worker thread in the loader process,
the aul_launch_worker_init() is added.
Adds:
- aul_launch_worker_init()
- aul_launch_worker_fini()
Change-Id: I6d2707f16f7f82a0a98b79369c37b46909746eff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Fri, 30 Dec 2022 04:35:51 +0000 (13:35 +0900)]
Release version 0.50.8
Changes:
- Refactor app_signal.cc
- Fix static analysis issues
Change-Id: I5f7da94cc8ad9b30e4924e3bee908eb3ebf62d96
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 30 Dec 2022 01:31:04 +0000 (10:31 +0900)]
Fix static analysis issues
To prevent int to size_t casting, this patch changes vec_max_size type
to size_t.
Change-Id: I3655d6e63c4d8b1daf1a3137923b85fb269e664c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 27 Dec 2022 11:12:30 +0000 (20:12 +0900)]
Refactor app_signal.cc
This is for the multi threading environment.
If some sub-threads unsubscribe the event, there is room for problems due to race condition.
This patch is changed to maintain the Event object without destruction after creation.
Change-Id: Ieefca296875c14e33d195d2809bc5134485915a5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 22 Dec 2022 06:27:06 +0000 (15:27 +0900)]
Release version 0.50.7
Changes:
- Fix library path for aarch64
Change-Id: I9ec7d8cdd734e0bc26d12dbf2384c0bbe8264fd4
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 22 Dec 2022 05:51:35 +0000 (14:51 +0900)]
Fix library path for aarch64
Change-Id: I3f7f03fc8fb861efab7afdbe02e856962067c8c7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>