Age | Commit message (Collapse) | Author | Files | Lines |
|
Changes:
- Fix aul app socket handler
Change-Id: If72b452a2e3d89097acd39ce17fcbb3b6165d9e3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|
|
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>
|
|
Changes:
- Fix build error
Change-Id: Iac5bc87624b9e718513ad7a0d5e975f8bb5cb391
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|
|
- Fixes wrong log format
Change-Id: Ie939e7f33f9975eb219d573cf8966c42659b69d6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Changes:
- Adds explicit type casting.
Change-Id: I3fe1030167582498b80313af7df1bdcdfc8a5780
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
|
|
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>
|
|
Changes:
- Remove libelf dependency from libexec-checker.so
Change-Id: I945d662cdd265fc4182b3a38477bdc8a40544d76
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|
|
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>
|
|
Changes:
- Add new functions for managing process group
Change-Id: Iaea3c04294b4797785ae0f4aa1c8293915a53939
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|
|
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>
|
|
Changes:
- Fix typo in header guard
- Fix metadata plugin parser handlers
Change-Id: Ib6ea62fee68d156bf30692740b8a97f7aea57b82
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|
|
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>
|
|
Change-Id: Id21a2a88f293b765bf8efb6edc393fb0ef0470e3
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
|
|
Changes:
- Add new internal APIs
Change-Id: Ic28db50c9bee49e0792e96e992065c50c49d012d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|
|
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>
|
|
Changes:
- Separate the exec-checker plugin to rpm package
Change-Id: I485415d866d80c1b4f34c9285ef66473890f5906
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
|
|
Change-Id: Iab6db7263710402975524333b1f527312576a9cd
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
|
|
Changes:
- Fix a bug about app group launch
Change-Id: Ied23084e276d5ed64c7ab0aabb7eefbbed5ee600
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|
|
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>
|
|
Changes:
- Change method of checking main symbol
Change-Id: If50f262097083fa244b1c72b2b94eeb87753d677
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
|
|
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>
|
|
Changes:
- Fix static analysis issues
Change-Id: If52ac4005d6442773ae77f416a4e422caf9f0d59
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
|
|
Change-Id: I826b51914540f0c8c6840e17b8e89e95935c144a
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
|
|
Changes:
- Add parser plugin for checking executable file
Change-Id: I99dc1345f9df88ad89dd82d3b10774a25d1d3b6e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Changes:
- Remove unnecessary slash
Change-Id: I87eb012686349ce105a9af39b76128d2484e200a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|
|
Change-Id: I640f73763ed4c80220d15d916783d626efbdac22
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|
|
Changes:
- Add new functions for RPC-Port
Change-Id: I058201be97d6dbbd5fa1b299c719a11d20e3ca14
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|
|
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>
|
|
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>
|
|
Change-Id: I1c5db6d64164ee40fff63ba148cdd7834c60ddc6
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
|
|
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>
|
|
Change-Id: I971011fe9fe37dfa4b6cf9db5bb906e483074ada
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|
|
Changes:
- Fix aul_svc_get_appid_by_alias_appid_for_uid() function
Change-Id: I3b18706c70fdec4ea33d4abe33a2f5f36d4c2c6c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|
|
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>
|
|
Changes:
- Fix retrieving app com connections
- Initialize class member
Change-Id: I537f99564831445d81f094d39d11120efe8c55cb
Signed-off-by: Hyunho <hhstark.kang@samsung.com>
|
|
Change-Id: I23421a020f8602bbad1890d7dbc92a24115ace0e
Signed-off-by: Hyunho <hhstark.kang@samsung.com>
|
|
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>
|
|
Changes:
- Enable unit tests
Change-Id: I56040bed402a3a05f07a4593c14c2c25b3abb142
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
|