platform/core/appfw/aul-1.git
8 years agofix build error 14/54814/1
Junghoon Park [Fri, 18 Dec 2015 04:59:35 +0000 (13:59 +0900)]
fix build error

Change-Id: I7ec9b2e8b82e240bc4d5cb3e4e42156dc7a5b514
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoMerge "Add delete rua history feature" into tizen
Junghoon Park [Fri, 18 Dec 2015 04:49:58 +0000 (20:49 -0800)]
Merge "Add delete rua history feature" into tizen

8 years agocode refactoring 34/54734/2
Jiwoong Im [Thu, 17 Dec 2015 12:51:22 +0000 (21:51 +0900)]
code refactoring

- modify copyright
- change SLPAPI to API
- use #pragma once to be included only once

Change-Id: Icc14baacf9f6c52df3f999dcc3d47f3b6a48ccde
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoAdd delete rua history feature 70/54070/15
hyunho kang [Fri, 11 Dec 2015 07:12:02 +0000 (16:12 +0900)]
Add delete rua history feature

To resolve librua APIs permission problem,
provide indirect DB access method to librua.

Change-Id: Iffa94fd9da1331f464ae1ff0b3fa6666fc09a90b
Signed-off-by: hyunho kang <hhstark.kang@samsung.com>
8 years agoRefactor amd_request.c 39/54639/3 accepted/tizen/mobile/20151217.093014 accepted/tizen/tv/20151217.093153 accepted/tizen/wearable/20151217.093130 submit/tizen/20151217.025256
Junghoon Park [Thu, 17 Dec 2015 00:57:42 +0000 (09:57 +0900)]
Refactor amd_request.c

- remove the feature for process limit
  (It will be made by using data structural of app-group later)

Change-Id: I481888066eb35c7efb5e72e84937ff2706a164bc
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agocheck call/download privilege only in regular user launch. 46/54546/4
Jiwoong Im [Wed, 16 Dec 2015 05:21:57 +0000 (14:21 +0900)]
check call/download privilege only in regular user launch.

Change-Id: Idede215859c4a602238b22a78523bf4319ba1733
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoMerge tizen_2.4 into tizen 10/54510/5 accepted/tizen/mobile/20151216.110022 accepted/tizen/tv/20151216.105844 accepted/tizen/wearable/20151216.105833 submit/tizen/20151216.002737
Hwankyu Jhun [Tue, 15 Dec 2015 23:33:21 +0000 (08:33 +0900)]
Merge tizen_2.4 into tizen

- add effective appid feature
- fix code intent
- add the space after struct definition

Change-Id: I526e7306cf2adb9f0a92905e7825fbb3e3d8c92e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix type casting 09/54509/1 accepted/tizen/mobile/20151216.105748 accepted/tizen/tv/20151216.105639 accepted/tizen/wearable/20151216.105619 submit/tizen/20151215.232329
Hwankyu Jhun [Tue, 15 Dec 2015 23:20:28 +0000 (08:20 +0900)]
Fix type casting

Change-Id: I7c775163e24cf91bff2e9baef24fdb144554f1e6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoMerge "fix type casting for 64-bit env" into tizen submit/tizen/20151215.230844
Hwankyu Jhun [Tue, 15 Dec 2015 23:08:04 +0000 (15:08 -0800)]
Merge "fix type casting for 64-bit env" into tizen

8 years agofix type casting for 64-bit env 08/54508/1
Hwankyu Jhun [Tue, 15 Dec 2015 23:03:58 +0000 (08:03 +0900)]
fix type casting for 64-bit env

Change-Id: I3e5ba1bada9e9c0a1087360cfac456536535b41a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoAdd APIs for BG management 25/54325/5 submit/tizen/20151215.084459
Junghoon Park [Tue, 15 Dec 2015 08:15:56 +0000 (17:15 +0900)]
Add APIs for BG management

- add types (AIT_COMPTYPE, AIT_BG_CATEGORY)
- add _status_find_service_apps()
- add _status_check_service_only()
- modify app-group to use them
- refactor amd_appinfo

Change-Id: I2ae6d4684d78d7b16948e12dfb10cfd1f8381d78
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoApply coding rule 14/54414/2 submit/tizen/20151215.075536
Hwankyu Jhun [Tue, 15 Dec 2015 07:04:45 +0000 (16:04 +0900)]
Apply coding rule

Change-Id: I5b8da34229519e331f43ea6bf94a2323fb54fd9f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoRemove compile warnings 04/54304/1
Semun Lee [Tue, 15 Dec 2015 01:06:27 +0000 (10:06 +0900)]
Remove compile warnings

- include bundle_internal.h for some internal bundle apis
- define _GNU_SOURCE instead of __USE_GNU
- add missing license boilerplates
- remove unused function

Change-Id: Id3c4325e06db9bf0f1a43e6969e40936ad379136
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
8 years agoGet information about running apps except for subapps 58/54258/2
Junghoon Park [Mon, 14 Dec 2015 10:13:05 +0000 (19:13 +0900)]
Get information about running apps except for subapps

- add is_subapp in app_status_info_t
- modify _status_app_is_running()
- modify _status_app_is_running_v2()
- remove unused file

Change-Id: I5c0a2dc4834f6fb4468fab8f4f44f8aedebbc4b2
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoLet amd wait application's launching using inotify 71/53571/20 accepted/tizen/mobile/20151214.233910 accepted/tizen/tv/20151214.233931 accepted/tizen/wearable/20151214.233950 submit/tizen/20151214.102546
Sangyoon Jang [Tue, 8 Dec 2015 02:47:36 +0000 (11:47 +0900)]
Let amd wait application's launching using inotify

amd should not use busy waiting.
amd now monitors socket creation and returns result to caller when socket
is created.
if somebody request app_control to launching app, it will be pended
until the app launched(socket created).

Change-Id: I708cd6db27bc7e751e552be5507cda7c419d08e5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoMerge "Add new handler to process the launch signal containing appid." into tizen
Myungki Lee [Mon, 14 Dec 2015 05:26:37 +0000 (21:26 -0800)]
Merge "Add new handler to process the launch signal containing appid." into tizen

8 years agofix _start_app_local_with_bundle() 78/54078/1 accepted/tizen/mobile/20151212.071120 accepted/tizen/tv/20151212.072617 accepted/tizen/wearable/20151212.073219 submit/tizen/20151211.074901
Hwankyu Jhun [Fri, 11 Dec 2015 07:41:19 +0000 (16:41 +0900)]
fix _start_app_local_with_bundle()

- add bundle data about appid

Change-Id: Icdb8a372ba9769981410e37c7040622d578dc95c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoAdd new handler to process the launch signal containing appid. 44/54044/2 accepted/tizen/mobile/20151214.233221 accepted/tizen/tv/20151214.233232 accepted/tizen/wearable/20151214.233255 submit/tizen/20151214.052927
Myungki Lee [Fri, 11 Dec 2015 05:30:25 +0000 (14:30 +0900)]
Add new handler to process the launch signal containing appid.

Change-Id: I2d5dc38310fceae07819b755d06d0ed3f9a8b046
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
8 years agoMerge "support debug-launchpad" into tizen accepted/tizen/mobile/20151212.070857 accepted/tizen/tv/20151212.072423 accepted/tizen/wearable/20151212.072919 submit/tizen/20151211.044548
Hwankyu Jhun [Fri, 11 Dec 2015 02:05:49 +0000 (18:05 -0800)]
Merge "support debug-launchpad" into tizen

8 years agoMerge "Add aul_app_get_pid API" into tizen
Hwankyu Jhun [Fri, 11 Dec 2015 01:12:26 +0000 (17:12 -0800)]
Merge "Add aul_app_get_pid API" into tizen

8 years agoAdd description for aul_svc_set_loader_id() 51/53851/1 accepted/tizen/mobile/20151210.225932 accepted/tizen/tv/20151210.225946 accepted/tizen/wearable/20151210.230006 submit/tizen/20151210.083837
Junghoon Park [Thu, 10 Dec 2015 00:17:15 +0000 (09:17 +0900)]
Add description for aul_svc_set_loader_id()

Change-Id: I4c8aa232b7209aaa2332f3b1aecd2a3493b2a9b8
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agosupport debug-launchpad 22/53722/7
Hwankyu Jhun [Wed, 9 Dec 2015 23:09:10 +0000 (08:09 +0900)]
support debug-launchpad

- add new parameter to app_agent_send_cmd()
- add tools for debug-launchpad (launch_debug and appid2pid)

Change-Id: If78a21d0deecb93b4d351a07cd4d7c4d4e9d1b37
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoAdd aul_app_get_pid API 47/53847/1
Hwankyu Jhun [Wed, 9 Dec 2015 22:51:42 +0000 (07:51 +0900)]
Add aul_app_get_pid API

- This API gets specified application process id.

Change-Id: I7b9b40fedbd8cb752225d75ae20801f7cb826105
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix __dispatch_get_socket_pair necessary bundle free bug. 48/53748/1 accepted/tizen/mobile/20151210.024522 accepted/tizen/tv/20151210.021456 accepted/tizen/wearable/20151210.024418 submit/tizen/20151209.065705
hyunho kang [Wed, 9 Dec 2015 05:56:35 +0000 (14:56 +0900)]
Fix __dispatch_get_socket_pair necessary bundle free bug.

Change-Id: I3f0ad6084b9875e54603da0917c7d0794f9b4e70
Signed-off-by: hyunho kang <hhstark.kang@samsung.com>
8 years agoUse command value for launchpad 11/53711/1 accepted/tizen/mobile/20151210.024431 accepted/tizen/wearable/20151210.013950 submit/tizen/20151209.021638
Junghoon Park [Wed, 9 Dec 2015 01:39:13 +0000 (10:39 +0900)]
Use command value for launchpad

Change-Id: I78ec61631e0274179d44c460704083e4fdaac09b
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoAdd APIs for dynamic loader 81/53481/6 accepted/tizen/mobile/20151208.125757 accepted/tizen/tv/20151208.125817 accepted/tizen/wearable/20151208.125833 submit/tizen/20151208.055026
Junghoon Park [Mon, 7 Dec 2015 07:57:45 +0000 (16:57 +0900)]
Add APIs for dynamic loader

Change-Id: Ibdf2a4a2a81e5809223ea26e5c1a463ffde9ac85
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agosupport share-panel & app-selector 2.4 migration 66/53066/6 accepted/tizen/mobile/20151208.123418 accepted/tizen/tv/20151208.123435 accepted/tizen/wearable/20151208.123452 submit/tizen/20151207.051443
Jiwoong Im [Tue, 1 Dec 2015 11:48:05 +0000 (20:48 +0900)]
support share-panel & app-selector 2.4 migration

- open aul_forward_app api
- enable to send cancel result by aul_svc_send_result

Change-Id: I4937a416386cd80c3ebc0ba780b37ab9cda1797e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agosend app signal regarding lifecycle events 48/53348/4 accepted/tizen/mobile/20151206.223946 accepted/tizen/tv/20151206.224005 accepted/tizen/wearable/20151206.224020 submit/tizen/20151204.074112
Daehyeon Jung [Fri, 4 Dec 2015 06:49:55 +0000 (15:49 +0900)]
send app signal regarding lifecycle events

Change-Id: I436d7d3a3e259b7add0f035db6e2ce09b9bec3aa
Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
8 years agoapply ASLR 15/53315/1 accepted/tizen/mobile/20151204.062005 accepted/tizen/tv/20151204.062026 accepted/tizen/wearable/20151204.062050 submit/tizen/20151204.013647
Hwankyu Jhun [Fri, 4 Dec 2015 01:24:44 +0000 (10:24 +0900)]
apply ASLR

Change-Id: Ie675608a62692782ddce4ddb5fbbaa9a4d021063
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix __dispatch_get_socket_pair resource leak. 20/53220/3
hyunho kang [Thu, 3 Dec 2015 01:05:42 +0000 (10:05 +0900)]
Fix __dispatch_get_socket_pair resource leak.

Change-Id: I5158f0e69da8e660a10cdb6e8997bab0add6ef5f
Signed-off-by: hyunho kang <hhstark.kang@samsung.com>
8 years agoMake candidate processes after an app is resumed 51/52751/4 pepper accepted/tizen/mobile/20151202.041002 accepted/tizen/tv/20151202.041029 accepted/tizen/wearable/20151202.041057 submit/tizen/20151202.005650
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>
8 years agoMerge "Migrate launch_app tool to aul package" into tizen accepted/tizen/mobile/20151202.040659 accepted/tizen/tv/20151202.040720 accepted/tizen/wearable/20151202.040736 submit/tizen/20151201.232940
Hwankyu Jhun [Tue, 1 Dec 2015 23:27:18 +0000 (15:27 -0800)]
Merge "Migrate launch_app tool to aul package" into tizen

8 years agoMigrate launch_app tool to aul package 56/53056/3
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>
8 years agoenable to recycle application 53/53053/1
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>
8 years agoupdate app info while killing the app 41/52541/2 accepted/tizen/mobile/20151124.234031 accepted/tizen/tv/20151124.234043 accepted/tizen/wearable/20151124.234054 submit/tizen/20151124.090417
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>
8 years agofix launchpad-process-pool socket name 50/52250/1 accepted/tizen/mobile/20151122.234126 accepted/tizen/tv/20151122.234137 accepted/tizen/wearable/20151122.234144 submit/tizen/20151120.075035
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>
8 years agoCheck the privilege for call operation. 54/51954/7
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>
8 years agoMerge "merge 2.4 to tizen" into tizen accepted/tizen/mobile/20151120.070445 accepted/tizen/tv/20151120.070500 accepted/tizen/wearable/20151120.070513 submit/tizen/20151119.232432
Junghoon, Park [Thu, 19 Nov 2015 23:09:43 +0000 (15:09 -0800)]
Merge "merge 2.4 to tizen" into tizen

8 years agomerge 2.4 to tizen 40/51840/12
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>
8 years agoFix implicit declaration of function 'rua_stat_update' warning. 13/52113/1 accepted/tizen/mobile/20151119.232118 accepted/tizen/tv/20151119.232147 accepted/tizen/wearable/20151119.232154 submit/tizen/20151119.090110
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>
8 years agoSync rua_stat feature with tizen 2.4 82/51882/6 accepted/tizen/mobile/20151117.232212 accepted/tizen/tv/20151117.232227 accepted/tizen/wearable/20151117.232240 submit/tizen/20151117.085819
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>
8 years agoFix bug about launching an app 42/51742/1 accepted/tizen/mobile/20151116.024803 accepted/tizen/tv/20151116.024814 accepted/tizen/wearable/20151116.024836 submit/tizen/20151115.234435
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>
8 years agosync app group with tizen_2.4 23/50923/8 accepted/tizen/mobile/20151111.232020 accepted/tizen/tv/20151111.232037 accepted/tizen/wearable/20151111.232050 submit/tizen/20151111.072844
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>
8 years agoAdd APIs for System Session 61/51461/1 accepted/tizen/mobile/20151111.044144 accepted/tizen/tv/20151111.044201 accepted/tizen/wearable/20151111.044216 submit/tizen/20151110.071018
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>
8 years agoMerge "remove amd_session_agent to use launchpad" into tizen accepted/tizen/mobile/20151109.234132 accepted/tizen/tv/20151109.234145 accepted/tizen/wearable/20151109.234155 submit/tizen/20151109.105333
Junghoon, Park [Mon, 9 Nov 2015 01:55:34 +0000 (17:55 -0800)]
Merge "remove amd_session_agent to use launchpad" into tizen

8 years agoport some APIs from 2.4 to 3.0 27/51227/3
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>
8 years agoremove amd_session_agent to use launchpad 91/50991/2
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>
8 years agoFix prevent issues and remove compile warning messages 60/50860/2 accepted/tizen/mobile/20151103.224955 accepted/tizen/tv/20151103.225006 accepted/tizen/wearable/20151103.225018 submit/tizen/20151103.105151
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>
8 years agoFix getting the appid on __dispatch_app_pause() 37/50837/3 accepted/tizen/mobile/20151103.224751 accepted/tizen/tv/20151103.224802 accepted/tizen/wearable/20151103.224816 submit/tizen/20151103.063941
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>
8 years agoAdd a dbus signal handler for syspopup 59/50259/8 submit/tizen/20151028.020252 submit/tizen/20151028.061056 submit/tizen/20151029.231927
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>
8 years agoAdd fd passing feature for data-control 01/48901/9
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>
8 years agoGet appid of process from smack label 78/49878/8
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>
8 years agoMerge "refactor amd_launch.c" into tizen
Junghoon, Park [Tue, 27 Oct 2015 02:43:36 +0000 (19:43 -0700)]
Merge "refactor amd_launch.c" into tizen

8 years agoadd system/session bus signal filter seperately 52/50152/7
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>
8 years agorefactor amd_launch.c 13/50013/5
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>
8 years agoadd dbus signal apis from tizen_2.4 77/49977/3
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>
8 years agorefactor amd_request.c 39/49939/4
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>
8 years agoFix prevent bugs: Uncheck return value, Dead default in switch. 03/49903/1
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>
8 years agoadd appsvc.sql file 06/49706/1 accepted/tizen/mobile/20151019.091659 accepted/tizen/tv/20151019.091711 accepted/tizen/wearable/20151019.091727 submit/tizen/20151019.090536 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
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>
8 years agoinstall .appsvc.db in skel directory 05/49705/1 submit/tizen/20151019.090006
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>
8 years agoFix application web tct failure 69/49669/1 accepted/tizen/mobile/20151017.101303 accepted/tizen/tv/20151017.101522 accepted/tizen/wearable/20151017.101950 submit/tizen/20151017.083624
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>
8 years agoAdd api to launch application with uid 96/48096/13 accepted/tizen/mobile/20151016.102607 accepted/tizen/tv/20151016.102618 accepted/tizen/wearable/20151016.102636 submit/tizen/20151016.043816
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>
8 years agomigrate appsvc to aul 88/48888/9 submit/tizen/20151012.020819
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>
8 years agoMove amd to user session 30/48530/4
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>
8 years agoAdd new api for resource manager. 08/48808/1
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>
8 years agoFix different size warnings 21/48321/2
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>
8 years agoAdd terminate command at app_launcher 64/48164/1
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>
8 years agoCheck permission for launch and terminate requests 14/47714/5 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150909.055055 accepted/tizen/mobile/20150909.140938 accepted/tizen/tv/20150909.055108 accepted/tizen/tv/20150909.140304 accepted/tizen/wearable/20150909.055121 submit/tizen/20150908.235449 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 submit/tizen_mobile/20150909.021024 submit/tizen_tv/20150909.021039 submit/tizen_tv/20150909.042240 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
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>
8 years agoInclude stdlib.h at src/status.c 92/47592/1 accepted/tizen/mobile/20150907.045900 accepted/tizen/tv/20150907.045931 accepted/tizen/wearable/20150907.045923 submit/tizen/20150907.015823
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>
8 years agoAdd missing api declaration 91/47591/1
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>
8 years agoadd aul_app_get_pkgid_bypid() api. 65/47465/1 accepted/tizen/mobile/20150904.140102 accepted/tizen/tv/20150904.140321 accepted/tizen/wearable/20150904.140423 submit/tizen/20150904.085212
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>
8 years agoremove uid check in __app_dbus_signal_filter 43/47143/2 accepted/tizen/mobile/20150903.233623 accepted/tizen/tv/20150903.233643 accepted/tizen/wearable/20150903.233651 submit/tizen/20150903.141204
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>
8 years agoSend result of APP_TERM_REQ_PID to caller 41/47041/1
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>
8 years agoFix crash in aul_get_app_root_path 06/46906/3 accepted/tizen/mobile/20150828.011622 accepted/tizen/tv/20150828.011634 accepted/tizen/wearable/20150828.011646 submit/tizen/20150827.074312
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>
8 years agoterminate app in terminate requset if app is not subapp. 82/46782/2
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>
8 years agomodify aul path getter api. 99/46799/3 accepted/tizen/mobile/20150826.222552 accepted/tizen/tv/20150826.222607 accepted/tizen/wearable/20150826.222615 submit/tizen/20150826.075554
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>
8 years agoUse tmpfiles to create and label data-control directory. 65/46665/7 accepted/tizen/mobile/20150826.065958 accepted/tizen/tv/20150826.070059 accepted/tizen/wearable/20150826.070332 submit/tizen/20150826.040557
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>
8 years agoadd status api from tizen_2.4 08/46608/7
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>
8 years agomodify aul_get_app_XXX_path to return readonly path 83/46683/2
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>
8 years agochange return path in aul_get_app_XXX_path 01/46601/4
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>
8 years agoTreat as global user when receive request from root 14/46214/2 accepted/tizen/mobile/20150818.220031 accepted/tizen/tv/20150818.220041 accepted/tizen/wearable/20150818.220046 submit/tizen/20150818.093923
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>
8 years agoUse signalfd to handle SIGCHLD 13/46113/3 accepted/tizen/mobile/20150817.134136 accepted/tizen/tv/20150817.134530 accepted/tizen/wearable/20150817.134811 submit/tizen/20150817.084057
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>
8 years agoReturn AUL_R_ENOAPP when cannot find requested app 83/45983/1
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>
8 years agoRemove sqlite3 add vconf, dlog requires to pc file 45/45845/1 submit/tizen_mobile/20150812.025625
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>
8 years agoFix aul.pc.in 06/45806/1 submit/tizen/20150811.103743
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>
8 years agoClean up repository 23/45223/10
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>
8 years agoFix typo 44/45744/3
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>
8 years agoFix some prevent issues 75/45475/9
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>
8 years agosupport async launch result callback 72/45172/8
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>
8 years agoFix memory leak 80/45380/2 accepted/tizen/mobile/20150806.001424 accepted/tizen/tv/20150806.001428 accepted/tizen/wearable/20150806.001438 submit/tizen/20150805.104426
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>
8 years agoDon't stop when fail to get label during listing apps 66/45366/1
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>
8 years agoRemove warnings, remove unused test code 02/44402/5
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>
8 years agoadd aul_get_app_tep_resource_path api. 47/45147/2 accepted/tizen/mobile/20150803.094055 accepted/tizen/tv/20150803.094110 accepted/tizen/wearable/20150803.094120 submit/tizen/20150803.051904
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>
8 years agoDon't clear rua history 49/45149/1
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>
8 years agoSet exec_label="User" on app_launcher 58/44758/1 accepted/tizen/mobile/20150728.070343 accepted/tizen/tv/20150728.070315 accepted/tizen/wearable/20150728.070326 submit/tizen/20150728.042812
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>
9 years agousing tizen-extension wayland protocol instead of including *protocol.c directly 30/44430/1 accepted/tizen/mobile/20150723.121253 accepted/tizen/tv/20150723.121331 accepted/tizen/wearable/20150723.121355 submit/tizen/20150722.053256 submit/tizen/20150723.044444
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

9 years agoAdd some exception handling 75/43875/2 accepted/tizen/mobile/20150717.060236 accepted/tizen/tv/20150717.060248 accepted/tizen/wearable/20150717.060259 submit/tizen/20150717.020519
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>
9 years agoMerge "Use tmpfiles to create volatile directory, cleanup" into tizen
Semun Lee [Wed, 15 Jul 2015 00:52:16 +0000 (17:52 -0700)]
Merge "Use tmpfiles to create volatile directory, cleanup" into tizen

9 years agoGet appinfo status of caller's app only 60/42560/2 accepted/tizen/mobile/20150702.045226 accepted/tizen/tv/20150702.040116 accepted/tizen/wearable/20150702.040145 submit/tizen/20150702.000829
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>
9 years agoUse tmpfiles to create volatile directory, cleanup 03/42803/1
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>