summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-11-03Release version 0.43.2submit/tizen/20211103.040120accepted/tizen/unified/20211104.123532Hwankyu Jhun1-1/+1
Changes: - Fix aul app socket handler Change-Id: If72b452a2e3d89097acd39ce17fcbb3b6165d9e3 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-11-03Fix aul app socket handlerHwankyu Jhun7-65/+305
After handling requests, AUL doesn't close the socket connection. AMD monitors the socket connection. When the connection is closed, AMD removes the status information of the application. This is a fallback of the zombie process of the application. Requires: - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/265335/ - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/265818/ - https://review.tizen.org/gerrit/#/c/platform/core/appfw/launchpad/+/265825/ Change-Id: Ia2b7e8ddaa2ced39862cb0fc085be1b08ff78d49 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-10-28Release version 0.43.1submit/tizen/20211101.102058submit/tizen/20211028.063318accepted/tizen/unified/20211101.140258Hwankyu Jhun1-1/+1
Changes: - Fix build error Change-Id: Iac5bc87624b9e718513ad7a0d5e975f8bb5cb391 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-10-28Fix build errorHwankyu Jhun1-1/+1
- Fixes wrong log format Change-Id: Ie939e7f33f9975eb219d573cf8966c42659b69d6 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-10-28Release version 0.43.0submit/tizen/20211028.054746Hwankyu Jhun1-1/+1
Changes: - Fix Database ctor class - Refactor aul_test tool - Add new tests to aul_test tool - Add appsvc db upgrade script Change-Id: Ibaf89c51c6f8d1d616c11dddcbea27c6e03c167e Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-10-19Add appsvc db upgrade scriptHwankyu Jhun11-1/+252
To upgrade database files properly, the user version is added to database files. From Tizen 6.5, the schema of the appsvc was changed. The invalid foreign key was removed. The 1_appsvc_db_upgrade.sh file is for upgrading the appsvc db file. Adds: - 501.appsvc_db_upgrade.sh - 1_appsvc_db_upgrade.sh Change-Id: I173929f757799d9e7bc25361a37b4a6e3847b9fd Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-10-18Add new tests to aul_test toolHwankyu Jhun4-0/+196
To test alias appid feature, new testcases are added. Adds: - aul_set_alias_appid_test - aul_unset_alias_appid_test - aul_enable_alias_info_test - aul_disable_alias_info_test Change-Id: Ib9f99c28963a3ec7c8723b7f91cab644972cfa3a Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-10-14Refactor aul_test toolHwankyu Jhun69-1189/+3587
The aul_test tool is implemented using C++. The testcases are separated from the aul_test.c file. If the developer wants to add a new testcase, a new test file should be added. The test class had to be derived from the AulTest class. And, AUL_TEST_RESGITER() has to be called to add the testcase. Change-Id: I98e6a56439c7cb8acc6a63021005b7a5b1927279 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-10-13Fix Database ctor classHwankyu Jhun3-8/+13
The enable_foreign_keys flag is added to deactivate foreign keys in sqlite3. The appsvc.db doesn't use foreign keys. Change-Id: I5f810e320592181674402440d2262a9b79e15969 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-10-12Release version 0.42.2Changgyu Choi1-1/+1
Changes: - Implement finding main symbol from .dynsym - Fix static analysis issues - Fix wrong query of alias info Change-Id: I9a1563f64d06a63fb0e15a7c1877673bb629d07b Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2021-10-12Fix wrong query of alias infoHwankyu Jhun2-6/+0
When calling the sqlite3_prepare_v2() function, the error is occurred. The error is 'foreign key mismatch'. This patch removes unnecessary query. Change-Id: Id711b8f6fa6a192e55dd35a5e7b3cefc34e4acb8 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-10-12Fix static analysis issuesChanggyu Choi1-4/+4
Changes: - Adds explicit type casting. Change-Id: I3fe1030167582498b80313af7df1bdcdfc8a5780 Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2021-10-06Implement finding main symbol from .dynsymHwankyu Jhun2-3/+129
This patch finds the main symbol using Elf64_Shdr and Elf64_Sym. If the main symbol doesn't exist, the plugin prints the warning log for debugging. Change-Id: Ib46bfcc66319c13be443d76773ab3f41b7496f12 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-09-29Release version 0.42.1tizen_6.5.m2_releasesubmit/tizen_6.5/20211028.162101submit/tizen/20210929.102735accepted/tizen/unified/20211001.001321accepted/tizen/6.5/unified/20211028.095513Hwankyu Jhun1-1/+1
Changes: - Remove libelf dependency from libexec-checker.so Change-Id: I945d662cdd265fc4182b3a38477bdc8a40544d76 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-09-29Remove libelf dependency from libexec-checker.soHwankyu Jhun4-44/+1
Currently, aul has a license problem that conflicts with GPL-2.0+. This patch removes codes related to libelf library. TODO: - Implement finding main symbol using Elf64_Sym Change-Id: Ib7e6fef06e3461b156cd4ad35893dbc794c343f1 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-09-29Release version 0.42.0Hwankyu Jhun1-1/+1
Changes: - Add new functions for managing process group Change-Id: Iaea3c04294b4797785ae0f4aa1c8293915a53939 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-09-29Add new functions for managing process groupHwankyu Jhun5-0/+162
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>
2021-09-10Release version 0.41.1submit/tizen/20210910.074525accepted/tizen/unified/20210913.123353Hwankyu Jhun1-1/+1
Changes: - Fix typo in header guard - Fix metadata plugin parser handlers Change-Id: Ib6ea62fee68d156bf30692740b8a97f7aea57b82 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-09-10Fix metadata plugin parser handlersHwankyu Jhun2-6/+0
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>
2021-09-09Fix typo in header guardSlava Barinov1-1/+1
Change-Id: Id21a2a88f293b765bf8efb6edc393fb0ef0470e3 Signed-off-by: Slava Barinov <v.barinov@samsung.com>
2021-09-09Release version 0.41.0submit/tizen/20210909.012745accepted/tizen/unified/20210910.004746Hwankyu Jhun1-1/+1
Changes: - Add new internal APIs Change-Id: Ic28db50c9bee49e0792e96e992065c50c49d012d Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-09-09Add new internal APIsHwankyu Jhun4-0/+152
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>
2021-08-25Release version 0.40.0submit/tizen/20210826.020925accepted/tizen/unified/20210826.024559Changgyu Choi1-1/+1
Changes: - Separate the exec-checker plugin to rpm package Change-Id: I485415d866d80c1b4f34c9285ef66473890f5906 Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2021-08-25Separate the exec-checker plugin to rpm packageChanggyu Choi4-3/+24
Change-Id: Iab6db7263710402975524333b1f527312576a9cd Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2021-08-17Release version 0.39.3submit/tizen/20210817.013418accepted/tizen/unified/20210818.124616Hwankyu Jhun1-1/+1
Changes: - Fix a bug about app group launch Change-Id: Ied23084e276d5ed64c7ab0aabb7eefbbed5ee600 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-08-13Fix a bug about app group launchHwankyu Jhun1-1/+1
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>
2021-08-12Release version 0.39.2submit/tizen/20210812.055732Changgyu Choi1-1/+1
Changes: - Change method of checking main symbol Change-Id: If50f262097083fa244b1c72b2b94eeb87753d677 Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2021-08-11Change method of checking main symbolChanggyu Choi6-18/+70
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>
2021-08-01Release version 0.39.1submit/tizen/20210802.224946submit/tizen/20210802.031114accepted/tizen/unified/20210804.085610jh9216.park1-1/+1
Changes: - Fix static analysis issues Change-Id: If52ac4005d6442773ae77f416a4e422caf9f0d59 Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2021-08-01Fix static analysis issuesjh9216.park3-5/+3
Change-Id: I826b51914540f0c8c6840e17b8e89e95935c144a Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2021-07-23Release version 0.39.0submit/tizen/20210723.090533submit/dev/20210723.090104accepted/tizen/unified/20210726.135513Changgyu Choi1-1/+1
Changes: - Add parser plugin for checking executable file Change-Id: I99dc1345f9df88ad89dd82d3b10774a25d1d3b6e Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2021-07-23Add parser plugin for checking executable fileChanggyu Choi10-0/+480
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>
2021-07-21Release version 0.38.0submit/tizen/20210721.064629accepted/tizen/unified/20210722.124938Hwankyu Jhun1-1/+1
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>
2021-07-21Add a new API to attach window below parent windowHwankyu Jhun5-0/+51
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>
2021-07-21Add an exception handling about recvmsg()Hwankyu Jhun1-2/+25
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>
2021-07-19Refactor aul windowHwankyu Jhun7-407/+665
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>
2021-07-15Release version 0.37.1submit/tizen/20210715.032102accepted/tizen/unified/20210716.131326Hwankyu Jhun1-1/+1
Changes: - Remove unnecessary slash Change-Id: I87eb012686349ce105a9af39b76128d2484e200a Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-07-13Remove unnecessary slashHwankyu Jhun1-1/+1
Change-Id: I640f73763ed4c80220d15d916783d626efbdac22 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-07-12Release version 0.37.0submit/tizen/20210712.081524accepted/tizen/unified/20210713.124140Hwankyu Jhun1-1/+1
Changes: - Add new functions for RPC-Port Change-Id: I058201be97d6dbbd5fa1b299c719a11d20e3ca14 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-07-09Add new functions for RPC-PortHwankyu Jhun4-16/+324
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>
2021-07-08Release version 0.36.0submit/tizen/20210709.063928submit/tizen/20210708.103729submit/tizen/20210708.082443accepted/tizen/unified/20210712.025024accepted/tizen/unified/20210709.081222Hwankyu Jhun1-1/+1
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>
2021-07-06Fix a logChanggyu Choi1-1/+1
Change-Id: I1c5db6d64164ee40fff63ba148cdd7834c60ddc6 Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2021-07-02Support Process Name Setter/GetterHwankyu Jhun8-56/+556
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>
2021-06-29Remove build warning messageHwankyu Jhun1-1/+5
Change-Id: I971011fe9fe37dfa4b6cf9db5bb906e483074ada Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-06-28Release version 0.35.5submit/tizen/20210628.093147accepted/tizen/unified/20210629.130214Hwankyu Jhun1-1/+1
Changes: - Fix aul_svc_get_appid_by_alias_appid_for_uid() function Change-Id: I3b18706c70fdec4ea33d4abe33a2f5f36d4c2c6c Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2021-06-28Fix aul_svc_get_appid_by_alias_appid_for_uid() functionHwankyu Jhun1-0/+82
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>
2021-06-25Release version 0.35.4submit/tizen/20210625.051851accepted/tizen/unified/20210628.122400Hyunho1-1/+1
Changes: - Fix retrieving app com connections - Initialize class member Change-Id: I537f99564831445d81f094d39d11120efe8c55cb Signed-off-by: Hyunho <hhstark.kang@samsung.com>
2021-06-25Initialize class memberHyunho1-1/+1
Change-Id: I23421a020f8602bbad1890d7dbc92a24115ace0e Signed-off-by: Hyunho <hhstark.kang@samsung.com>
2021-06-23Fix retrieving app com connectionsHwankyu Jhun1-1/+4
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>
2021-06-21Release version 0.35.3submit/tizen/20210621.070948submit/tizen/20210621.050954accepted/tizen/unified/20210621.214549Hwankyu Jhun1-1/+1
Changes: - Enable unit tests Change-Id: I56040bed402a3a05f07a4593c14c2c25b3abb142 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>