Junghoon Park [Wed, 2 Dec 2015 00:43:22 +0000 (09:43 +0900)]
Make candidate processes after an app is resumed
Change-Id: I52042baad1dd983e982cdef95ceca8feac60561f
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Hwankyu Jhun [Tue, 1 Dec 2015 23:27:18 +0000 (15:27 -0800)]
Merge "Migrate launch_app tool to aul package" into tizen
Hwankyu Jhun [Tue, 1 Dec 2015 09:45:08 +0000 (18:45 +0900)]
Migrate launch_app tool to aul package
- Tizen IDE needs to execute an app by using the tool.
Change-Id: I4642afa162f8c1ea0b647909b93005fd894c12fb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Jiwoong Im [Tue, 1 Dec 2015 09:48:16 +0000 (18:48 +0900)]
enable to recycle application
Change-Id: I69f459b5893a7ceeb00311b49167bb50e8862109
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Hwankyu Jhun [Tue, 24 Nov 2015 08:33:53 +0000 (17:33 +0900)]
update app info while killing the app
Change-Id: I2c6d4ab9b2f6d700ce8610a3b746bcc95c152ab1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 20 Nov 2015 07:09:14 +0000 (16:09 +0900)]
fix launchpad-process-pool socket name
Change-Id: I215bbe56a94c3bf685876e4b03e96d1d5431d861
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghoon, Park [Thu, 19 Nov 2015 23:35:24 +0000 (08:35 +0900)]
Check the privilege for call operation.
Change-Id: I168e152180725a007c6942fd2724088d740105da
Signed-off-by: Junghoon, Park <jh9216.park@samsung.com>
Junghoon, Park [Thu, 19 Nov 2015 23:09:43 +0000 (15:09 -0800)]
Merge "merge 2.4 to tizen" into tizen
Junghoon, Park [Thu, 19 Nov 2015 02:05:09 +0000 (11:05 +0900)]
merge 2.4 to tizen
- add AIT_POOL for launchpad
- remove release-agent, launch-agent
- add TEP feature
- support restarting service app
Change-Id: I40bef863e16c34b9f2ec98f915a51c843beb020b
Signed-off-by: Junghoon, Park <jh9216.park@samsung.com>
hyunho kang [Thu, 19 Nov 2015 06:43:01 +0000 (15:43 +0900)]
Fix implicit declaration of function 'rua_stat_update' warning.
Change-Id: I3d367369205a216088495e082f72a83bea0f9a21
Signed-off-by: hyunho kang <hhstark.kang@samsung.com>
hyunho kang [Tue, 17 Nov 2015 02:58:46 +0000 (11:58 +0900)]
Sync rua_stat feature with tizen 2.4
Change-Id: I64856348513c4b65dfd69add4dca10c0055b8407
Signed-off-by: hyunho kang <hhstark.kang@samsung.com>
Hwankyu Jhun [Fri, 13 Nov 2015 10:23:55 +0000 (19:23 +0900)]
Fix bug about launching an app
- Add an exception when launching an app is STATUS_DYING
- Fix operator precedence in _status_get_app_info_status()
Change-Id: Ia5cf9cbda6a9f0f48eebf01c53a377827f0d1e99
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Jiwoong Im [Tue, 3 Nov 2015 05:07:37 +0000 (14:07 +0900)]
sync app group with tizen_2.4
- sync implementation of app group from tizen_2.4
- add appgroup_info tool
Change-Id: Ib5bd77ff6c969bab18d6dbb7affa6fd8c677c5fc
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Junghoon, Park [Tue, 10 Nov 2015 02:36:29 +0000 (11:36 +0900)]
Add APIs for System Session
- add aul_app_get_appid_bypid_for_uid()
- add aul_app_get_pkgid_bypid_for_uid()
- modify descriptions for aul APIs
Change-Id: I1712aeeba42c6400a3b721f4354a0830e710a126
Signed-off-by: Junghoon, Park <jh9216.park@samsung.com>
Junghoon, Park [Mon, 9 Nov 2015 01:55:34 +0000 (17:55 -0800)]
Merge "remove amd_session_agent to use launchpad" into tizen
Junghoon, Park [Thu, 5 Nov 2015 11:15:20 +0000 (20:15 +0900)]
port some APIs from 2.4 to 3.0
- add aul_set_preinit_window()
- add aul_get_preinit_window()
- add aul_set_preinit_background()
- add aul_get_preinit_background()
- add aul_set_preinit_conformant()
- add aul_get_preinit_conformant()
- add aul_set_preinit_appid()
- add aul_set_preinit_pkgid()
Change-Id: I48dc0029835e8efe3d5d6642b853d10dd6b01b89
Signed-off-by: Junghoon, Park <jh9216.park@samsung.com>
Junghoon, Park [Wed, 4 Nov 2015 09:04:54 +0000 (18:04 +0900)]
remove amd_session_agent to use launchpad
Change-Id: Id63c9adc9837dd0fe8b10318b1218b736ae65fba
Signed-off-by: Junghoon, Park <jh9216.park@samsung.com>
Hwankyu Jhun [Tue, 3 Nov 2015 02:00:39 +0000 (11:00 +0900)]
Fix prevent issues and remove compile warning messages
- Fix buffer overflow
- Fix thread-safety issue
- Fix dereference null return value
Change-Id: I6d1f11e7ce78ab28ea6b6c8b4666e88124c66f4d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 3 Nov 2015 00:12:18 +0000 (09:12 +0900)]
Fix getting the appid on __dispatch_app_pause()
Change-Id: Idcb124bbf756ff50cc7552df14972ec380098b43
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 27 Oct 2015 23:51:02 +0000 (08:51 +0900)]
Add a dbus signal handler for syspopup
When AMD gets a signal about launching request for syspopup, AMD
will launch the syspopup.
Change-Id: I58cd195c09cc464e9069eb41c25cc9234846ba64
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
hyunho kang [Tue, 27 Oct 2015 08:13:53 +0000 (17:13 +0900)]
Add fd passing feature for data-control
Change-Id: I9106541404b4f0c439b89b31f8e6f0efe3258d33
Signed-off-by: hyunho kang <hhstark.kang@samsung.com>
Sangyoon Jang [Wed, 21 Oct 2015 06:13:55 +0000 (15:13 +0900)]
Get appid of process from smack label
getting appid from cmdline is untrusted because process can modify its
cmdline
Change-Id: Ib3f937dc8e08dcbccff4c4b2964395a7593fd305
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghoon, Park [Tue, 27 Oct 2015 02:43:36 +0000 (19:43 -0700)]
Merge "refactor amd_launch.c" into tizen
Junghoon, Park [Tue, 27 Oct 2015 00:24:28 +0000 (09:24 +0900)]
add system/session bus signal filter seperately
- In dbus signal listen to apis, add system/session bus signal filter seperately.
Change-Id: Ic78f2611841b70a383b5114aa8ff5c43ca5a7a25
Signed-off-by: Junghoon, Park <jh9216.park@samsung.com>
Junghoon, Park [Fri, 23 Oct 2015 01:41:41 +0000 (10:41 +0900)]
refactor amd_launch.c
Change-Id: Ib1d20ce87002ca6599ec37fa18ae033884b207eb
Signed-off-by: Junghoon, Park <jh9216.park@samsung.com>
Jiwoong Im [Thu, 22 Oct 2015 06:58:12 +0000 (15:58 +0900)]
add dbus signal apis from tizen_2.4
list of added apis
- aul_listen_booting_done_signal
- aul_listen_cooldown_signal
- aul_listen_app_status_signal
- aul_update_freezer_status
- aul_send_app_launch_request_signal
- aul_send_app_resume_request_signal
- aul_send_app_terminate_request_signal
- aul_send_app_status_change_signal
- aul_send_app_terminated_signal
- aul_send_app_group_signal
Change-Id: Iea0e70b85149e4ccc4be6a5fbec0065076982540
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Junghoon, Park [Thu, 22 Oct 2015 01:50:06 +0000 (10:50 +0900)]
refactor amd_request.c
Change-Id: I4ff9ed35699e143b7a6810e7db29eed01fa07724
Signed-off-by: Junghoon, Park <jh9216.park@samsung.com>
Myungki Lee [Wed, 21 Oct 2015 10:21:12 +0000 (19:21 +0900)]
Fix prevent bugs: Uncheck return value, Dead default in switch.
Change-Id: Ie1a4e4d10631d6831381b25f418beb1f3dc055c9
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
Jiwoong Im [Mon, 19 Oct 2015 09:04:18 +0000 (18:04 +0900)]
add appsvc.sql file
Change-Id: I7fb7490e6dcb4a6dfbd41a5c83c46b9ac4ef8e95
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Mon, 19 Oct 2015 08:57:34 +0000 (17:57 +0900)]
install .appsvc.db in skel directory
Change-Id: I1c4279973071d86566734cde0127ec6b01251678
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Sat, 17 Oct 2015 08:12:17 +0000 (17:12 +0900)]
Fix application web tct failure
- open appsvd db correctly in readonly/readwrite case.
- add caller appid to bundle in start app.
Change-Id: Ic2026eceb291736b0bb4c3601de2743805b7cfc1
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Mon, 14 Sep 2015 08:09:54 +0000 (17:09 +0900)]
Add api to launch application with uid
- aul_launch_app_for_uid
aul_launch_app_with_result_for_uid
- amd gets TARGET_UID if launch request comes from root.
If TARGET_UID's state is online, send launch request to amd_session_agent.
- remove checking root uid in amd_session_agent.
Change-Id: I1aaa599ef7d7717e73e579811b2fff7211b350f8
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Thu, 1 Oct 2015 06:57:18 +0000 (15:57 +0900)]
migrate appsvc to aul
- sync with tizen 2.4
- add _with_uid api for multiuser architecture
- attach global db and create temp view in app_info db operation
- remove global .appsvc.db
TODO:
- implement aul_svc_request_transient_app
Change-Id: I697fb96278a583447c1b647453759fcaf93ce907
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Sangyoon Jang [Tue, 22 Sep 2015 11:38:32 +0000 (20:38 +0900)]
Move amd to user session
- make amd socket at /run/user/<uid>/-2 (this should be revised)
- make apps' aul socket at /run/user/<uid>/<pid>
- don't check caller's credential at aul_sock_handler
(it is protected by smack)
- each aul request connects with caller's amd socket
- send app dead signal using dbus signal only
- don't create amd_ready file
TODO:
- amd gets caller's appid (by caller's process label)
Change-Id: Ife225f543a937159f52f84ef75e1cc3b9e0d4030
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Myungki Lee [Wed, 30 Sep 2015 05:54:33 +0000 (14:54 +0900)]
Add new api for resource manager.
Change-Id: I36765c37dd5c2c8abefa4beca19e674ee6854892
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
Sangyoon Jang [Fri, 18 Sep 2015 05:38:32 +0000 (14:38 +0900)]
Fix different size warnings
in 64bit environment, "int"(4byte) and "void *"(8byte) have different size.
so we pass "int" type variable to "intptr_t".
intptr_t size depends on architecture.
Change-Id: I5eceda7fb80e2c0196cf1ebd6c271c9c9fa52aa3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 15 Sep 2015 09:50:50 +0000 (18:50 +0900)]
Add terminate command at app_launcher
Change-Id: I6728b5a53c57c11676082bcac548db917e34dbe7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Hwankyu Jhun [Tue, 8 Sep 2015 06:47:25 +0000 (15:47 +0900)]
Check permission for launch and terminate requests
Change-Id: I9b4f3ce2b8ad41c2a5c9af7a340a530a4e420d19
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Sangyoon Jang [Mon, 7 Sep 2015 01:55:08 +0000 (10:55 +0900)]
Include stdlib.h at src/status.c
Change-Id: I6c19e0c1234b09c4cda7954926a5ad094a3890ee
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 7 Sep 2015 01:50:44 +0000 (10:50 +0900)]
Add missing api declaration
add aul_app_get_pkgid_bypid at aul.h
add _status_get_pkgid_bypid at amd_status.h
Change-Id: Id8f5fb936e28cc558ddf72493e8ccafb47e5b0ed
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Jiwoong Im [Thu, 3 Sep 2015 12:36:56 +0000 (21:36 +0900)]
add aul_app_get_pkgid_bypid() api.
merge aul_app_get_pkgid_bypid() api from tizen_2.4
Change-Id: I463ae4f777e32bcc961c0bae9929dff9e0a05f19
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Mon, 31 Aug 2015 07:56:05 +0000 (16:56 +0900)]
remove uid check in __app_dbus_signal_filter
Change-Id: If03046f2cef8ab61905a9d1f3069d9bb93938c85
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Sangyoon Jang [Fri, 28 Aug 2015 10:25:13 +0000 (19:25 +0900)]
Send result of APP_TERM_REQ_PID to caller
Change-Id: Ib93418aa223301964c5bd1afbaff4440f8eb1e19
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Jiwoong Im [Thu, 27 Aug 2015 06:00:02 +0000 (15:00 +0900)]
Fix crash in aul_get_app_root_path
Change-Id: I04710c0c0334881c72b1c19117d6a8865a0cacf7
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Wed, 26 Aug 2015 06:20:40 +0000 (15:20 +0900)]
terminate app in terminate requset if app is not subapp.
fix bug in app_terminate app_control_send_terminate_request() in
capi-appfw-application.
Change-Id: I4feb745833d60ebb1d073ca79d26a3f50fa44eac
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Wed, 26 Aug 2015 07:42:08 +0000 (16:42 +0900)]
modify aul path getter api.
- fix bug in aul_get_app_XXX_path_by_appid.
Change-Id: Ib6a92f6713753f242e6a59edae699f321321987a
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Mon, 24 Aug 2015 14:03:52 +0000 (23:03 +0900)]
Use tmpfiles to create and label data-control directory.
Change-Id: Ia9c3a69b02de06d5a31a371e75814a4cc326a5a2
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Mon, 24 Aug 2015 05:36:49 +0000 (14:36 +0900)]
add status api from tizen_2.4
- int aul_app_get_status_bypid(int pid);
- int aul_add_status_local_cb(int (*func) (int, void *), void *data);
- int aul_remove_status_local_cb(int (*func) (int, void *), void *data);
- int aul_invoke_status_local_cb(int status);
Change-Id: If680ab9228fdebd28c5a5cbd2487a6b37b702e34
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Tue, 25 Aug 2015 03:12:50 +0000 (12:12 +0900)]
modify aul_get_app_XXX_path to return readonly path
Change-Id: Ibdce8ea92b4c8bb5751b5f7ef46389c4a622709e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Mon, 24 Aug 2015 03:01:25 +0000 (12:01 +0900)]
change return path in aul_get_app_XXX_path
- aul_get_app_XXX_path api is changed to return per user path.
- improve performance.
Change-Id: Ia3f1e6bcb4534abcc42b823e16fff336a1a0655e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Sangyoon Jang [Tue, 18 Aug 2015 05:48:48 +0000 (14:48 +0900)]
Treat as global user when receive request from root
Change-Id: If0ce1ece84de1640dde15b026f2b94d52a283c85
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 17 Aug 2015 05:12:01 +0000 (14:12 +0900)]
Use signalfd to handle SIGCHLD
Change-Id: I5b70a40908d2c6b7c68ccc7424a624b5f391b45b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 13 Aug 2015 02:29:56 +0000 (11:29 +0900)]
Return AUL_R_ENOAPP when cannot find requested app
Change-Id: Ibc0ecf59433ae333415f5966e046e411bcf9b920
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 12 Aug 2015 02:25:43 +0000 (11:25 +0900)]
Remove sqlite3 add vconf, dlog requires to pc file
remove mida.h
Change-Id: I20017c5e3b0d4a27eb1efc4c77f0a01d41d88253
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 11 Aug 2015 11:06:19 +0000 (20:06 +0900)]
Fix aul.pc.in
remove ail
Change-Id: Ibac8e0cdb5565231e2983650f8d8a910b3d36dd7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 3 Aug 2015 23:33:44 +0000 (08:33 +0900)]
Clean up repository
remove dependency: ail, app-checker, privacy-manager
revise CMakeLists.txt
set so version using package version
remove unused codes
remove unnecessary files
Change-Id: I1f91c0d295cb726a18852590f565de4bf48a860e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Jiwoong Im [Tue, 11 Aug 2015 05:08:34 +0000 (14:08 +0900)]
Fix typo
Change-Id: I3267a90876299a21edc69d350bf412882f126b94
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Sangyoon Jang [Thu, 6 Aug 2015 10:22:06 +0000 (19:22 +0900)]
Fix some prevent issues
fix out-of-bounds write
fix resource leak
fix wrong sizeof argument
fix uninitialized pointer read
fix dereference null return value
Change-Id: I061cdb14334726014aaa54d6223cdba547f170d5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Jiwoong Im [Mon, 3 Aug 2015 08:42:10 +0000 (17:42 +0900)]
support async launch result callback
Change-Id: If0503961eaaae35871234f3024992f8264ab9a30
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Sangyoon Jang [Wed, 5 Aug 2015 10:23:49 +0000 (19:23 +0900)]
Fix memory leak
remove unused variable
Change-Id: I2e8c648fd8daec52026d506db1b3de5e3ee8ea9e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 5 Aug 2015 08:20:17 +0000 (17:20 +0900)]
Don't stop when fail to get label during listing apps
Change-Id: Id8dfa2ebe555e356d00357ac90bcac3c95265e3f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 21 Jul 2015 11:43:43 +0000 (20:43 +0900)]
Remove warnings, remove unused test code
fix mismatching types
remove unused variables, functions
remove unnecessary initializing of local variables
include missing headers
fix some spaces, indents
change return type of "_term_sub_app" (void -> int)
remove unused test codes
Change-Id: I34ed5df39cb7a78f5f0fbcf17d3144ae2c3409d8
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Jiwoong Im [Mon, 3 Aug 2015 05:09:52 +0000 (14:09 +0900)]
add aul_get_app_tep_resource_path api.
Change-Id: Icefba6613467f8b8e0a6146c8e999f298bac52b3
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Sangyoon Jang [Mon, 3 Aug 2015 05:09:55 +0000 (14:09 +0900)]
Don't clear rua history
Change-Id: I1480adf2b87908f784514e1f8042a56d35f9cfdb
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 27 Jul 2015 11:09:31 +0000 (20:09 +0900)]
Set exec_label="User" on app_launcher
Change-Id: I503f3f23096377542ff4b64d6061e0c926a2b5f5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Boram Park [Mon, 20 Jul 2015 10:59:33 +0000 (19:59 +0900)]
using tizen-extension wayland protocol instead of including *protocol.c directly
Change-Id: I66bba71559bf9d7d94d00a5c124c66c1acf8d37f
Sangyoon Jang [Wed, 15 Jul 2015 01:52:31 +0000 (10:52 +0900)]
Add some exception handling
Change-Id: I7b79a203344a164a89f0e5f72807c2e71bbf8216
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Semun Lee [Wed, 15 Jul 2015 00:52:16 +0000 (17:52 -0700)]
Merge "Use tmpfiles to create volatile directory, cleanup" into tizen
Sangyoon Jang [Tue, 30 Jun 2015 05:32:30 +0000 (14:32 +0900)]
Get appinfo status of caller's app only
get appinfo status of caller's app only
rename app_status_info's member user to uid
Change-Id: Ie321b9d305f172236cf41b84c4cf1e8c578dfa67
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Maciej Wereski [Wed, 1 Jul 2015 13:34:06 +0000 (15:34 +0200)]
Use tmpfiles to create volatile directory, cleanup
Since v218 of systemd tmpfiles have ability to set extended attributes.
It can be used to set SMACK labels.
Cleanup: remove obsolete SysV init script.
Change-Id: Ie4e20ee383380fa08d33d3c9a05d47d919b9de8b
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Sangyoon Jang [Tue, 30 Jun 2015 05:26:31 +0000 (14:26 +0900)]
Make __app_process_by_pid handle only app
Change-Id: I3a66aff61e8e81ba91771467ba0392f44ffd1c1b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 30 Jun 2015 02:19:25 +0000 (11:19 +0900)]
Fix getting launch argument on app_launcher
Change-Id: I7b55f5e2b355054a5f6760c3ce86374fc5077b7c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 29 Jun 2015 23:34:05 +0000 (08:34 +0900)]
Send result to client when calling KILL_BY_PID
Change-Id: Ia77be62c48f0f2a9bff769c6d9f7d6a45822fda5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 29 Jun 2015 08:10:14 +0000 (17:10 +0900)]
Revise app_launcher
use pkgmgr-info instead of ail
add getting launch argument
Change-Id: I1911ff60969f7cbc9469b032ad0819312a6999b9
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 29 Jun 2015 02:23:26 +0000 (11:23 +0900)]
Fix coding style of app_launcher
Change-Id: I3916e74bbec7c8f012d43a09144740ebd81b99ef
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Jiwoong Im [Thu, 11 Jun 2015 05:44:50 +0000 (14:44 +0900)]
implementation of app group
- provides API to support app group
- amd manages grouped application using hash table
Change-Id: Ia507be21d1eaff8edf82d52fc215c952d0ed2a58
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Sangyoon Jang [Fri, 5 Jun 2015 10:27:21 +0000 (19:27 +0900)]
Add missing declaration in header
Change-Id: I9a7715aa61aa2a6deef78e20bc83f5d951064870
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 1 Jun 2015 12:16:32 +0000 (21:16 +0900)]
Add some api from Tizen 2.4
added:
aul_terminate_bgapp_pid
aul_terminate_pid_without_restart
aul_pause_app
aul_pause_pid
Change-Id: I9ebae51e8c55a4678064debc310e563585cf63d3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 29 May 2015 08:44:57 +0000 (17:44 +0900)]
Use _status_app_is_running_v2 on _start_app
fix order of parameter of _status_app_is_running_v2
use _status_app_is_running_v2 instead of _status_app_is_running
Change-Id: I7419a3d3b750ecb8e967eef2188452a5d138ec3c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 26 May 2015 11:54:11 +0000 (20:54 +0900)]
Improve code readability
do not load appinfo for attached global apps
Change-Id: Ie2c641ed5565b14537b8f5ae97f3f23c1996ee79
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 26 May 2015 11:50:18 +0000 (20:50 +0900)]
Add special cmd: AMD_RELOAD_APPINFO
this cmd is for special purpose
Change-Id: Ib16415583f0de4592b8eef8e52807eaca2ea8b6b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Semun Lee [Tue, 26 May 2015 10:46:49 +0000 (03:46 -0700)]
Merge "change parameter in __get_path function and return error in invalid parameter." into tizen
Jiwoong Im [Tue, 3 Mar 2015 07:06:57 +0000 (16:06 +0900)]
change parameter in __get_path function and return error in invalid parameter.
In __get_path function, it finds pkginfo in tizenglobaluser and regular user's db.
GLOBAL_USER should be replaced to getuid() in order to be performed correctly.
JIRA ticket : TC-2314
Change-Id: I71c93090c5756f612cfa383ef7402be502932044
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Stephane Desneux [Fri, 22 May 2015 10:49:10 +0000 (12:49 +0200)]
amd: check appinfo_init() retcode to exit gracefully
Change-Id: Ife80ee7857a4d6eaeb37fb4e877aa539a9fe6492
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Semun Lee [Thu, 21 May 2015 02:32:23 +0000 (19:32 -0700)]
Merge "Launch service app on amd_session_agent, handle on-boot" into tizen
Semun Lee [Thu, 21 May 2015 02:32:19 +0000 (19:32 -0700)]
Merge "Fix _status_app_is_running_v2" into tizen
Sangyoon Jang [Tue, 19 May 2015 07:35:13 +0000 (16:35 +0900)]
Launch service app on amd_session_agent, handle on-boot
launch service app on amd_session_agent, not amd.
all applications should be launched by proper session agent.
when user appinfo initialized, amd sends launch request
for applications which have on-boot attributes.
handle on-boot when package installed.
Change-Id: Iaf8fb1c69ff2006d3e835e9e4a981ef9847c4764
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 19 May 2015 07:38:14 +0000 (16:38 +0900)]
Fix _status_app_is_running_v2
fix __proc_iter_cmdline
Change-Id: I1c65f6ea67bde6a652e859cd53fc0a1418bfa0a2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 19 May 2015 06:37:10 +0000 (15:37 +0900)]
Update appinfo when package event occured
Change-Id: Ia3c33e69c2118b4ebada6c4e63c65500a699c486
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 18 May 2015 04:29:55 +0000 (13:29 +0900)]
Manage user's appinfo table
Change-Id: I637d84995526461eff6120b33ae1df6c81d50688
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 14 May 2015 07:38:02 +0000 (16:38 +0900)]
Code refactoring
struct amdmgr, struct appinfomgr are not needed.
appinfo table should managed at amd_appinfo.c.
remove some unused functions.
Change-Id: If8f991afb89bcef3dbf300fe5ae0cde3fa478a02
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 11 May 2015 10:29:35 +0000 (19:29 +0900)]
Add missing api: aul_terminate_pid_async
Change-Id: Ia2b6c7247aaf939e0d45cc84b81a6d1c4d597a64
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 11 May 2015 09:33:26 +0000 (18:33 +0900)]
Fix socket fd leak
TC-2508
when send asynchronously, it needs to close caller's socket after
receiving reply
Change-Id: I0fa9a8c1a401d77a50cbc0c450adfd70a1edfb0d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 30 Apr 2015 05:44:54 +0000 (14:44 +0900)]
Remove "Type=notify" at amd_session_agent.service
amd_session_agent doesn't need to be notify type
Change-Id: I6367e5f3746e2d31751bafe32d65aa974d5cec71
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 29 Apr 2015 08:49:20 +0000 (01:49 -0700)]
Merge "Integration with security-manager" into tizen
Sangyoon Jang [Tue, 28 Apr 2015 05:19:50 +0000 (14:19 +0900)]
Make amd_session_agent run as sokcet activation only
Change-Id: Ic8085f66a37f977b42efa226e732bd919ccfbde1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 14 Apr 2015 02:04:41 +0000 (11:04 +0900)]
Fix _get_app_info_from_db_by_apppath_user
use uid took over instead of getuid
Change-Id: I27ce3a6a0206d08ce76fb8a247909cc792d6378f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Zbigniew Jasinski [Thu, 6 Nov 2014 16:57:36 +0000 (17:57 +0100)]
Integration with security-manager
* Removed dependency on libprivilege-control: perm_app_set_privilege()
switched to security_manager_prepare_app()
* amd_session_agent gets CAP_MAC_ADMIN, CAP_MAC_OVERRIDE and CAP_SETGID for
Smack label management
* Fix semantics - launching apps by appId
Change-Id: I408a07f2cc249b76a8c6c9928c632863358ed3ae
Signed-off-by: Zbigniew Jasinski <z.jasinski@samsung.com>
Jiwoong Im [Fri, 27 Feb 2015 05:14:20 +0000 (14:14 +0900)]
Fix bug in removing app_info list when get agent dead signal.
JIRA ticket : TC-2419
Change-Id: Id795cd024a1076ad87f48dd55a4c777aeb0a5809
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Sangyoon Jang [Wed, 25 Feb 2015 12:20:39 +0000 (21:20 +0900)]
Fix bug: killing apps abnormally when launching app
some local variable is not initialized
set default value when failed to get vconf value
Change-Id: I8e4fa3414f950418899d3bb70c9431341c48a470
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>