platform/core/system/deviced.git
9 years agonotifier: change the function name for unregistering device notification 25/34925/4
taeyoung [Wed, 4 Feb 2015 11:15:42 +0000 (20:15 +0900)]
notifier: change the function name for unregistering device notification

- There is a mismatching for the function name between the prototype
  and its implementation. Thus the name is changed correctly.

  unregister_notifier_del() -> unregister_notifier()

Change-Id: I5387aae2837d457d0ad610e767e0979ea38a67e5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
9 years agoextcon: add extcon uevent handler 03/34903/3
taeyoung [Wed, 4 Feb 2015 08:46:53 +0000 (17:46 +0900)]
extcon: add extcon uevent handler

- The following is a example of extcon state in the uevent delivered
  when extcon devices are connected.
    USB=1
    TA=0
    FAST-CHARGER=0
    SLOW-CHARGER=0
    CHARGER-DOWNSTREAM=0
    JIG-USB-ON=0
    JIG-USB-OFF=0
    JIG-UART-OFF=0
    JIG-UART-ON=0

- extcon handler parses the extcon state information and
  notifies to the deviced modules related with the extcon devices.
- 'struct extcon_ops' is used to register extcon devices.

Change-Id: I612c4b38f527a0095c49b72958c595d72a99e56f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
9 years agodeviced: Fix library path under 64-bit architecture on pc file 22/35022/2
Jiyoung Yun [Fri, 6 Feb 2015 06:44:17 +0000 (15:44 +0900)]
deviced: Fix library path under 64-bit architecture on pc file

Change-Id: I2801f800b7251ae76daf634a2dd9906db77993d0
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Remove unnecessary initialization 15/35015/2
Jiyoung Yun [Fri, 6 Feb 2015 02:47:05 +0000 (11:47 +0900)]
deviced: Remove unnecessary initialization

DEVICE_PRIORITY_NORMAL value is zero.
And static structure value is initilized zero automatically.
Do not need to reassign the same value.

Change-Id: Ib03242ebbf246ee8fbfc0f099cd5808886cfb68a
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Do not register dbus object in the case of deactive module 73/34973/4
Jiyoung Yun [Thu, 5 Feb 2015 06:42:16 +0000 (15:42 +0900)]
deviced: Do not register dbus object in the case of deactive module

If there is no power-supply class,
deviced does not register battery dbus object.

Change-Id: Idf6e390f5ffb3e622247d2c6d5727f5b498edd06
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoMerge "deviced: Do not use device-node in battery case" into tizen
Jiyoung Yun [Thu, 5 Feb 2015 06:43:32 +0000 (22:43 -0800)]
Merge "deviced: Do not use device-node in battery case" into tizen

9 years agoMerge "deviced: Enable battery module and check whether it is available at runtime...
Jiyoung Yun [Thu, 5 Feb 2015 06:43:27 +0000 (22:43 -0800)]
Merge "deviced: Enable battery module and check whether it is available at runtime" into tizen

9 years agoMerge "deviced: Support runtime deviced" into tizen
Jiyoung Yun [Thu, 5 Feb 2015 06:43:18 +0000 (22:43 -0800)]
Merge "deviced: Support runtime deviced" into tizen

9 years agodeviced: Do not use device-node in battery case 93/34893/1
Jiyoung Yun [Wed, 4 Feb 2015 08:20:52 +0000 (17:20 +0900)]
deviced: Do not use device-node in battery case

deviced control battery module using power-supply class.
So we do not need to use device-node to get battery information.
Instead we can receive the changed event by using power-supply uevent.

Change-Id: I4a94a8f35009c655c2a8ce760fe39e9426f557c2
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Enable battery module and check whether it is available at runtime 84/34884/2
Jiyoung Yun [Wed, 4 Feb 2015 06:26:51 +0000 (15:26 +0900)]
deviced: Enable battery module and check whether it is available at runtime

Some build issue is also fixed.

Change-Id: I4b4d9be3a4ca10cbbe44eba412ae4546c182a0dd
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Support runtime deviced 82/34882/2
Jiyoung Yun [Wed, 4 Feb 2015 06:06:41 +0000 (15:06 +0900)]
deviced: Support runtime deviced

The available module has been determined by build configuration.
Now deviced will support to judge what module is valid or avaliable at runtime.

If there is no probe which is always true case or the probe succeed,
deviced will activate the module at runtime.
If not, we do not support any method call or operation of the module.

Change-Id: I866c645a4ee193f5473bfc1909894f0e96ba8dc3
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agorename sensor.h to sensor_internal.h 49/34849/2
Kibak Yoon [Tue, 3 Feb 2015 12:49:27 +0000 (21:49 +0900)]
rename sensor.h to sensor_internal.h

the header file for sensor internal API was changed to sensor_internal.h.

Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: If42f246a4733efd51cc7f066b7771fb52e7e0a8d

9 years agoMerge "Replace Syspopup by Notification" into tizen tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common accepted/tizen/common/20150128.145734 submit/tizen_common/20150128.103956 submit/tizen_mobile/20150129.000000 submit/tizen_mobile/20150213.000000 submit/tizen_mobile/20150223.000000
Jiyoung Yun [Tue, 27 Jan 2015 05:23:49 +0000 (21:23 -0800)]
Merge "Replace Syspopup by Notification" into tizen

9 years agoReplace Syspopup by Notification 07/33607/5
Loïc Plassart [Tue, 13 Jan 2015 09:48:15 +0000 (10:48 +0100)]
Replace Syspopup by Notification

Replace calls to various Syspopup programs by calls to the
notification API.

Change-Id: Icba61a3b9f590be0cbe7f3e9235de532fe8faa24
Author: Loïc Plassart <loic.plassart@eurogiciel.org>
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
9 years agodeviced: Fixed wrong parameter on booting_done signal 84/34384/1
Jiyoung Yun [Mon, 26 Jan 2015 10:32:41 +0000 (19:32 +0900)]
deviced: Fixed wrong parameter on booting_done signal

Change-Id: Idfa0f163eb67324494d04a0134c74954aa0ebe9f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoMerge "deviced: Remove unused define "PROP_DISPLAY_MAX_BRIGHTNESS"" into tizen accepted/tizen/common/20150115.180505 accepted/tizen/mobile/20150116.011319 accepted/tizen/tv/20150116.010704 accepted/tizen/wearable/20150116.010357 submit/tizen/20150115.095403 submit/tizen_common/20150114.092505
Jiyoung Yun [Tue, 13 Jan 2015 05:55:31 +0000 (21:55 -0800)]
Merge "deviced: Remove unused define "PROP_DISPLAY_MAX_BRIGHTNESS"" into tizen

9 years agoFix a runtime dependency 98/33498/1
José Bollo [Mon, 12 Jan 2015 10:14:58 +0000 (11:14 +0100)]
Fix a runtime dependency

Making libdeviced requiring deviced has more meaning
that deviced requiring itself ^_^

Change-Id: I0dedc4a466e6f0f295cd3bef96c868141c1f9674
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
9 years agodeviced: Remove unused define "PROP_DISPLAY_MAX_BRIGHTNESS" 94/33494/1
Jiyoung Yun [Mon, 12 Jan 2015 09:00:29 +0000 (18:00 +0900)]
deviced: Remove unused define "PROP_DISPLAY_MAX_BRIGHTNESS"

The value is redefined btw libdevice-node and deviced.
So I remove an unused define at deviced side.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I00d9fe78f9048694403a5e085926cf59746a3e13

9 years agoFix bugs in managing the system group 29/32829/2
José Bollo [Wed, 24 Dec 2014 13:48:39 +0000 (14:48 +0100)]
Fix bugs in managing the system group

Change-Id: I274bcf8a0b310a264a1a4ea2fed814dbd8b2db10
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
9 years agoFix typo in format string 32/33432/1
Suchang Woo [Fri, 9 Jan 2015 11:43:55 +0000 (20:43 +0900)]
Fix typo in format string

When loading a config file is failed, this typo makes SIGSEGV.

Change-Id: I5291f29bafd8f3412667d8c350c8d4612d20456c
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
9 years agodeviced: Separate hall, buzzer and sim features from core logic 43/30443/5 accepted/tizen/common/20141229.125009 accepted/tizen/mobile/20141230.002544 accepted/tizen/tv/20141230.002011 accepted/tizen/wearable/20141230.002210 submit/tizen/20141224.122800
jy910.yun [Tue, 18 Nov 2014 13:27:52 +0000 (22:27 +0900)]
deviced: Separate hall, buzzer and sim features from core logic

Features of Deviced:
- Common
- Battery
- Buzzer
- Camera led
- Display
- Extcon
- Hall
- Sdcard
- Sim
- Usb
- Vibrator

Change-Id: I3ee600d299ca1422ac113bc9d91217a8164c162b
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
9 years agodeviced: Fix wrong rpm dependencies 19/32819/1
Jiyoung Yun [Wed, 24 Dec 2014 11:25:39 +0000 (20:25 +0900)]
deviced: Fix wrong rpm dependencies

Libsysman, libslp-pm, libdevman should be in need of deviced library.
Because those library invoke libdeviced function internally.
In contrast, libhaptic does not have any dependency with deviced library.

Change-Id: I1f2f2640f19c44f0024ffc7687014469fb202c2e
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Remove hardcoded library path for x64 17/32817/3
Jiyoung Yun [Wed, 24 Dec 2014 11:16:43 +0000 (20:16 +0900)]
deviced: Remove hardcoded library path for x64

Change-Id: Ic413b37c78bb81b990a9596b473b042e35195b2b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoRevert "deviced: Remove libhaptic package" 62/32662/1 submit/tizen/20141222.104708
Jiyoung Yun [Mon, 22 Dec 2014 08:38:35 +0000 (17:38 +0900)]
Revert "deviced: Remove libhaptic package"

This reverts commit 4c5b290103c91b29f35b3505088e8c72dc86cd88.

Libhaptic is still used in Tizen:Common.
So I added it again.
This module should be replaced to libdeviced ASAP.

Change-Id: I50cb1592af6d575bd16ef7545d4ac22051c815fe

9 years agodeviced: Change the vconf header file name 11/32511/2 submit/tizen/20141222.083159
Jiyoung Yun [Thu, 18 Dec 2014 15:37:35 +0000 (00:37 +0900)]
deviced: Change the vconf header file name

The vconf.h file includes vconf-keys.h file internally.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I5820d7ec5278041b644fd0959e70d15152a8d954

9 years agodeviced: Fix wrong type cast on 64bit build machine 34/32434/4
Jiyoung Yun [Thu, 18 Dec 2014 07:21:41 +0000 (16:21 +0900)]
deviced: Fix wrong type cast on 64bit build machine

Deviced sometimes pass int value to void * value.
It occurs warning on 64bit build machine
so I fixed wrong type cast from int to 64bit value.

Change-Id: If68a26d5911b803a0793488da64fd22fd1d92867
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Remove haptic build errors on 64bit build machine 00/31800/2
Jiyoung Yun [Wed, 10 Dec 2014 13:07:00 +0000 (22:07 +0900)]
deviced: Remove haptic build errors on 64bit build machine

The haptic handle need to be passed to other process by dbus
at that time it should typecast void * to int.
To avoid it, change the type of haptic handle to int.
Handle will be managed by unique id instead of memory address.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I6db6d11aae0eff50b2ca0f1aed4718a63faf1a4f

9 years agodeviced: Remove libhaptic package 08/31808/1
Jiyoung Yun [Wed, 10 Dec 2014 12:03:42 +0000 (21:03 +0900)]
deviced: Remove libhaptic package

Libhatpic had included on Tizen 2.2.1 so I added to keep compatibility.
But Tizen:Common project does not need it now.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I1c43444f78b0a275fa05265a1c745de906c2226d

9 years agoMerge "Fix build under 64-bit architecture" into tizen
Jiyoung Yun [Fri, 5 Dec 2014 18:08:19 +0000 (10:08 -0800)]
Merge "Fix build under 64-bit architecture" into tizen

9 years agoFix build under 64-bit architecture 94/31194/1
loul [Tue, 2 Dec 2014 10:35:01 +0000 (11:35 +0100)]
Fix build under 64-bit architecture

- Ignore cast warnings
- Install to "lib64"
- Use default macro

Change-Id: If6b246ceb411fc703fd688a9cb10255d2cecdac1
Signed-off-by: loul <loic.plassart@open.eurogiciel.org>
9 years agodeviced: Separate battery feature from core logic 60/30560/5
jy910.yun [Thu, 20 Nov 2014 10:49:58 +0000 (19:49 +0900)]
deviced: Separate battery feature from core logic

Disable the battery feature by default
Add functions to register udev monitor filter at run-time
to separate battery logic from core uevent logic

Change-Id: Ic9d6742c7190cf0e456a9efe043b478d1936839b
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
9 years agodeviced: Separate deviced modules for each feature 24/30424/3
jy910.yun [Tue, 18 Nov 2014 08:23:14 +0000 (17:23 +0900)]
deviced: Separate deviced modules for each feature

Deviced can be defined as below features.
- Common
- Battery
- Camera led
- Display
- Extcon
- Sdcard
- Usb
- Vibrator

Change-Id: Icb36e4f77c3dd9bc32b5697992c3f33574a54845
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
9 years agodeviced: Delete unused set_pmon source 89/30089/4
jy910.yun [Mon, 10 Nov 2014 10:39:29 +0000 (19:39 +0900)]
deviced: Delete unused set_pmon source

The set_pmon is not used now.
So removed related files pmon, set_pmon and regpmon.

Change-Id: I3efd8984ba5953427294d34bcc13cd3195194ca8
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
9 years agodeviced: Use libdeviced functions inside libdevman and libsysman 88/30088/2
jy910.yun [Mon, 10 Nov 2014 10:36:34 +0000 (19:36 +0900)]
deviced: Use libdeviced functions inside libdevman and libsysman

libdevman and libsysman will be deprecated,
but these library still be used on another modules yet.
And the way to request to deviced is not compatible with recently deviced.
So remove the existing codes and use libdeviced functions.

Change-Id: I4c14e6d640db890cfc9d84fa8b1e0b7d893eb6aa
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
9 years agodeviced: Merge Tizen 2.3 source code into tizen branch 27/30027/4
jy910.yun [Fri, 7 Nov 2014 14:27:37 +0000 (23:27 +0900)]
deviced: Merge Tizen 2.3 source code into tizen branch

Deviced is a new device daemon instead of system-server.
We have a plan to upgrade system-server to deviced.
But there are more than 500 different patches.
Besides some patches in Tizen 2.3 has mobile product features.
And deviced should provide some library which have provided by
system-server to keep compatibility with another modules.
So I merge Tizen 2.3 source code into public branch manually.
(Remove mobile product features and Keep library compatibility)

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: I53d5cfb76ae05c4a240f00cab719e4c699b70592

9 years agodeviced: Change the deviced domain to the floor domain 76/30076/1
jy910.yun [Mon, 10 Nov 2014 03:03:59 +0000 (12:03 +0900)]
deviced: Change the deviced domain to the floor domain

Remove deviced domain according to tizen smack guideline
Remove the README.api file which manages deviced domain smack authority

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: I34024294277e517f80e275e4cb222c499f2fba27

9 years agodeviced: Refartoring directory hierarchy 90/29790/3
jy910.yun [Tue, 4 Nov 2014 11:26:06 +0000 (20:26 +0900)]
deviced: Refartoring directory hierarchy

All source directory move into src/.
Most script move into scripts/.
All library directory has a prefix, like lib-.

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: I6e8807f4e67c9e266c1e9067bcab014a0046a6d0

9 years agosystemd: properly activate socket units 29/28329/1
Maciej Wereski [Thu, 2 Oct 2014 15:54:50 +0000 (17:54 +0200)]
systemd: properly activate socket units

Change-Id: Ia4b8988b894e1500acd449b79ff1e5d6fc4dbab8
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
9 years agoMerge "Remove hardcoded path for multiuser support" into tizen
Jiyoung Yun [Tue, 26 Aug 2014 01:30:20 +0000 (18:30 -0700)]
Merge "Remove hardcoded path for multiuser support" into tizen

10 years agoRemove hardcoded path for multiuser support 91/24291/3
Maciej Wereski [Thu, 10 Jul 2014 00:03:29 +0000 (09:03 +0900)]
Remove hardcoded path for multiuser support

FS_EXT_SMACK_LABEL include the function call for multiuser support,
it should be converted to character array to be invoked by system call.

Signed-off-by: Maciej Wereski<m.wereski@partner.samsung.com>
Change-Id: Iaab437a1b3097a8a234cd8a484536d5241fc213e

10 years agoMake path argument in sure _get_file_count const 91/23291/1
Maciej Wereski [Mon, 23 Jun 2014 07:49:29 +0000 (09:49 +0200)]
Make path argument in sure _get_file_count const

Change-Id: Ia66d2fa9703a0ba8732c7e18a9943693a1201f9d
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
10 years agoFix all compile warnings 55/23155/1
sh.pi [Mon, 23 Sep 2013 04:58:27 +0000 (13:58 +0900)]
Fix all compile warnings

Signed-off-by: Seunghun Pi <sh.pi@samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Change-Id: I9c30213b498b5871c36e7e5572c605aa625f3d84

10 years agodelete warning regarding the const arument of register_edbus_method func 30/23130/2
jy910.yun [Thu, 25 Jul 2013 10:59:04 +0000 (19:59 +0900)]
delete warning regarding the const arument of register_edbus_method func

Change-Id: I3861a18e481732cb49e2c5d4b3e9c04351896b87
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
10 years agoinsert dbus control logic about deviced lib for dbus test system 29/23129/2
giyeol.ok [Fri, 19 Jul 2013 04:36:31 +0000 (13:36 +0900)]
insert dbus control logic about deviced lib for dbus test system

Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Change-Id: I0e716534846fe7aafbde7d92f5d7017d2516f2a1

10 years agoAdd missing definitions 28/23128/1
Maciej Wereski [Thu, 12 Jun 2014 10:29:25 +0000 (12:29 +0200)]
Add missing definitions

Change-Id: I4e90dd704239accd493e608b1f7a7b9d0619d1aa
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
10 years agochange to use oom_score_adj instead of oom_adj 52/22952/2
Byungsoo Kim [Sat, 29 Jun 2013 06:33:09 +0000 (15:33 +0900)]
change to use oom_score_adj instead of oom_adj

- redefine oomadj value with oom_score_adj
- execute lowmem and crash popup with oom_score_adj is zero
- set init value for oom_score_adj
- block to set -1000 value by other process
- don't support sysconf_set_mempolicy api
- change all function names and variables to use oom score adj

Change-Id: I15b1b5c879cf0f6e0e0d44ff9491b4dd6e1666e4
Signed-off-by: Byungsoo Kim <bs1770.kim@samsung.com>
10 years agoproc-handler: remove obsolete function 51/22951/2
Maciej Wereski [Fri, 13 Jun 2014 11:29:15 +0000 (13:29 +0200)]
proc-handler: remove obsolete function

Change-Id: I4803d28cab7985da35b2e801664f0b9e3604fe51
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
10 years agotime: remove unnecessary grobal variable 36/23036/2
jy910.yun [Mon, 16 Jun 2014 10:56:24 +0000 (19:56 +0900)]
time: remove unnecessary grobal variable

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: I1d5ef5ec89b2bf26bad41ff2b6d2eb01adbb0980

10 years agoRemove hardcoded path for multiuser support 92/22892/4
Sabera Djelti [Fri, 13 Jun 2014 01:47:18 +0000 (10:47 +0900)]
Remove hardcoded path for multiuser support

Change-Id: I5094dd358fb75fc618a196477725b4227e4d8b6b
Bug-Tizen: PTREL-283
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
10 years agoMerge "device-change-handler: remove unneded casting" into tizen
MyungJoo Ham [Mon, 16 Jun 2014 10:30:06 +0000 (03:30 -0700)]
Merge "device-change-handler: remove unneded casting" into tizen

10 years agoRemove SMACK rule file(.rule) according three domain model 91/22891/3
seong.chung [Fri, 11 Apr 2014 14:28:16 +0000 (23:28 +0900)]
Remove SMACK rule file(.rule) according three domain model

Since SMACK only allows three labels, "_"(floor), "User", "System"
The labels of current rule file are not appropriate

Solution:
- Remove rule file (packaging/system-server.rule)
- Remove install statement about installing rule file described in CMakeLists.txt
- Remove file path and name declaration of spec file (packaging/system-server.spec)

Reference site
https://wiki.tizen.org/wiki/Security:SmackThreeDomainModel

Change-Id: I55e2e1b34d35b5a8d2dc7328cbc763135663a598
Signed-off-by: seong.chung <seong.chung@samsung.com>
10 years agoFix package build for Tizen:IVI 90/22890/3
Ed Bartosh [Sun, 9 Mar 2014 14:17:56 +0000 (16:17 +0200)]
Fix package build for Tizen:IVI

Build of deviced fails for OBS projects with enabled debuginfo and
defined 'simulator' macro with this error:

error: Installed (but unpackaged) file(s) found:
   /usr/lib/debug/.build-id/6e/480d9a978edacf116bd409aa09b97923290f3b
   /usr/lib/debug/.build-id/6e/480d9a978edacf116bd409aa09b97923290f3b.debug
   /usr/lib/debug/usr/bin/restart.debug

The reason of this failure is explained in this bug
https://bugzilla.redhat.com/show_bug.cgi?id=878863#c2:
Debuginfo generation operates on the disk contents and knows exactly
nothing about specs.

In plain English it means that debuginfo doesn't care about %exclude
statements in %files section of the .spec and processes all binaries,
installed into build root.

This fix removes /usr/bin/restart from buildroot to avoid generation of
debug info for it if 'simulator' macro is defined and includes this binary
into the package only if 'simulator' macro is not defined.

Change-Id: I8368ecc53edb54fb068d394db1abf8d1d73e593a
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
10 years agodevice-change-handler: remove unneded casting 28/22828/2
Maciej Wereski [Thu, 12 Jun 2014 11:56:02 +0000 (13:56 +0200)]
device-change-handler: remove unneded casting

Change-Id: If584856d5cf89e0d15f4b973d7a903f262a8d51b
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
10 years agopackaging: strengthen shell tests 89/22889/2
Philippe Coval [Tue, 4 Mar 2014 10:55:14 +0000 (11:55 +0100)]
packaging: strengthen shell tests

Change-Id: I180f422ef46c1da44849651d79202b4ac58df00b
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
10 years agochange device control variable and remove enhance log 27/22827/1
giyeol.ok [Mon, 29 Jul 2013 11:15:44 +0000 (20:15 +0900)]
change device control variable and remove enhance log

Change-Id: Id03c4d8ac4e7b967f7083623acb1b034c9a6f53f
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
10 years agomerge jack and switch control routine 70/22770/3
giyeol.ok [Mon, 1 Jul 2013 23:57:58 +0000 (08:57 +0900)]
merge jack and switch control routine

Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Change-Id: I2471f28526f5ea4ef961f964f1e6dcceb26362c1

10 years agoinsert auto-test to check device daemon internal operations 67/22667/2
Gi-Yeol Ok [Thu, 21 Nov 2013 07:38:19 +0000 (16:38 +0900)]
insert auto-test to check device daemon internal operations

Signed-off-by: Gi-Yeol Ok <giyeol.ok@samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Change-Id: Iddfb4c625cdf382ad1e5e26b3a2bf8bb0cdaa303

10 years agoclean up the log in deviced 66/22666/2
juho [Thu, 7 Nov 2013 15:43:16 +0000 (00:43 +0900)]
clean up the log in deviced

modified to use the log-macro.h in libdeviced

Change-Id: Ic51a05d2e3eafbbb90f36e6f6b53fdcbd75b5d35
Signed-off-by: juho <juho80.son@samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
10 years agoAdd apps infrastructure. 65/22665/2
Maciej Wereski [Mon, 2 Jun 2014 13:40:31 +0000 (15:40 +0200)]
Add apps infrastructure.

This code was written by: Taeyoung Kim <ty317.kim@samsung.com> and Gi-Yeol Ok
<giyeol.ok@samsung.com>.

Change-Id: I6bdeaee9effaeaad8c6738cea45ba50b7a7f7069
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
10 years agoSeperate file for each devices 64/22664/1
jy910.yun [Mon, 2 Sep 2013 03:42:13 +0000 (12:42 +0900)]
Seperate file for each devices

if some device does not support in our system anymore,
we can just remove one file for device we want to delete.
do not combine between each other device code

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Change-Id: I8e70f1cf6a4b1115704c718ab1f919390bafd075

10 years agoAdd dd_list 63/22663/1
Maciej Wereski [Mon, 2 Jun 2014 14:40:49 +0000 (16:40 +0200)]
Add dd_list

The code was written by: SeungHun Pi, Jiyoung Yun and Taeyoung Kim

Change-Id: Ifef7af0cc54cea7811966cf2683e2f5d7f5207e5
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
10 years agoFix warnings 47/22547/1
Maciej Wereski [Thu, 5 Jun 2014 08:55:39 +0000 (10:55 +0200)]
Fix warnings

Change-Id: I808c4f4c77fa507fafdbfe3fd0fc99cfc314f359
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
10 years agoRemove compile warning of display 46/22546/1
sh.pi [Fri, 30 Aug 2013 06:04:00 +0000 (15:04 +0900)]
Remove compile warning of display

Change-Id: I1ee5f6d8d01e13002ffe183a01b42ad3b716afa0
Signed-off-by: Seunghun Pi <sh.pi@samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
10 years agoCode bugs're fixed 45/22545/1
sh.pi [Thu, 22 Aug 2013 04:51:23 +0000 (13:51 +0900)]
Code bugs're fixed

String not null terminated (STRING_NULL)
Missing return statement (MISSING_RETURN)
Resource leak (RESOURCE_LEAK)

Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Change-Id: I6e5034a091f9a72d7f3e157a6bab556a7d21829d

10 years agoremove warning about incompatible pointer btw const char * and char * 44/22544/1
jy910.yun [Thu, 25 Jul 2013 11:19:14 +0000 (20:19 +0900)]
remove warning about incompatible pointer btw const char * and char *

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Change-Id: Ib99b5dcc9d18f5030ac4c115239be3b711180072

10 years agodeviced: add CREDITS file 25/19325/1
jy910.yun [Thu, 10 Apr 2014 09:36:32 +0000 (18:36 +0900)]
deviced: add CREDITS file

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: Ia370e113f72498c73eba9bc98be699137b4720ec

10 years agodeviced: change the project name to deviced and directory name 69/18969/2
jy910.yun [Thu, 3 Apr 2014 13:40:29 +0000 (22:40 +0900)]
deviced: change the project name to deviced and directory name

Changed project name:
system-server -> deviced

Changed directories:
src/shared -> src/libdeviced
src/shared/TC -> test

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: Ia66486ad64b1f278bcafca00280f38c626b9f5e7

10 years agopackaging: rm unnecessary dependency on systemd 58/18958/3
Philippe Coval [Tue, 4 Mar 2014 10:52:59 +0000 (11:52 +0100)]
packaging: rm unnecessary dependency on systemd

Change-Id: Ia018c1c55ed30cdb20cbd7e4b8f73880146b4d60
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
10 years agopackaging: uses systemd macros to supports x64 57/18957/2
Philippe Coval [Mon, 3 Mar 2014 11:00:53 +0000 (12:00 +0100)]
packaging: uses systemd macros to supports x64

Change-Id: I043612296a822be8c65d37c39f270687b03b716b
Bug-Tizen: PTREL-643/part
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
10 years agopackaging: only use ecore-x on X config 56/18956/2
jy910.yun [Thu, 3 Apr 2014 12:55:58 +0000 (21:55 +0900)]
packaging: only use ecore-x on X config

Change-Id: I1c3706413d5c516fea0e3268bd2c91b721ba1a16
Bug-Tizen: PTREL-640
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
10 years agodeviced: Fix RPMLINT errors 55/18955/2
jy910.yun [Thu, 3 Apr 2014 12:45:37 +0000 (21:45 +0900)]
deviced: Fix RPMLINT errors

error details:
summary-not-capitalized
library-without-ldconfig-postun

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: I3252af8f64086a6189a4a1e0c7388b7b09d218dc

10 years agoAdding License to FSCK-MSDOS
Krzysztof Sasiak [Wed, 11 Sep 2013 15:44:28 +0000 (17:44 +0200)]
Adding License to FSCK-MSDOS

Change-Id: If598fe1730ed6f8294be472272d97d0da2500e16

10 years agowhen OSP or WEB api change the brightness, CUSTOM_BRIGHTNESS_STATUS turns on.
jy910.yun [Fri, 28 Jun 2013 08:24:07 +0000 (17:24 +0900)]
when OSP or WEB api change the brightness, CUSTOM_BRIGHTNESS_STATUS turns on.

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agorevise error handling issues
jy910.yun [Thu, 27 Jun 2013 07:45:09 +0000 (16:45 +0900)]
revise error handling issues

argument cannot be negative (NEGATIVE_RETURNS)

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: I5c663a51e6ae82e886c132d84bff3df817e86d5f

10 years agoAdd keybacklight basic feature.
sh.pi [Thu, 27 Jun 2013 05:51:04 +0000 (14:51 +0900)]
Add keybacklight basic feature.

Signed-off-by: Seunghun Pi <sh.pi@samsung.com>
Change-Id: I6e436d16be791b73fab0b0626ced314c30b7c00d

10 years agoArrange dlog of display logic.
sh.pi [Thu, 27 Jun 2013 01:45:35 +0000 (10:45 +0900)]
Arrange dlog of display logic.

Remove unnecessary dlog and change secure log define.

Signed-off-by: Seunghun Pi <sh.pi@samsung.com>
Change-Id: I9dc12fb57d47d86ffc3fe66523b327ace80d9728

10 years agoprevent resource leak
juho [Wed, 26 Jun 2013 14:27:24 +0000 (23:27 +0900)]
prevent resource leak

closedir was missed.
so add.

Change-Id: Ib8a1ea11a06cf9bfbe21bf305619c3c935ef5de3
Signed-off-by: juho <juho80.son@samsung.com>
10 years agofix memory leak and return value
giyeol.ok [Thu, 27 Jun 2013 01:21:55 +0000 (10:21 +0900)]
fix memory leak and return value

Change-Id: I4db1099fad531a4cc4f83ee8d133f972395871a2
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoCode bugs're fixed
sh.pi [Wed, 26 Jun 2013 13:27:27 +0000 (22:27 +0900)]
Code bugs're fixed

 missing_return: Arriving at the end of a function without returning a value.
 copy_paste_error: "light_handle" in "light_handle = -1" looks like a copy-paste error.

Change-Id: Ie4e5b597b06d36e33d21a9e486f73e124747983c

10 years agoapply notification user smack
jy910.yun [Tue, 25 Jun 2013 05:40:16 +0000 (14:40 +0900)]
apply notification user smack

add data-provider-master::notification and data-provider-master::notification.client rules

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: I01146d3022dab78b130e62c40495d06886248251

10 years agobug fix about lowbat popup during target booting
giyeol.ok [Tue, 25 Jun 2013 05:29:49 +0000 (14:29 +0900)]
bug fix about lowbat popup during target booting

Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
Change-Id: I0788fd05ea65ee640d8d9914abd4ae2c7e49f43f

10 years agochange battery status control logic to use with power_supply uevent
giyeol.ok [Fri, 21 Jun 2013 11:42:27 +0000 (20:42 +0900)]
change battery status control logic to use with power_supply uevent

Change-Id: I926c8a7014671fb877d53378981c4fd2b0c051cc
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoRemove battery time log
sh.pi [Fri, 21 Jun 2013 05:52:17 +0000 (14:52 +0900)]
Remove battery time log

Signed-off-by: Seunghun Pi <sh.pi@samsung.com>
Change-Id: If24cb5fbf49f2dda38da56140379a0569588389b

10 years agoadd display_set_timeout api to resolve build break issue
jy910.yun [Thu, 20 Jun 2013 03:58:49 +0000 (12:58 +0900)]
add display_set_timeout api to resolve build break issue

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: I22e9aa301a2d8d53188afa2bc7cecc1cb9118be9

10 years agochange the structure of controling display to use 'dbus'
Krzysztof Sasiak [Tue, 27 Aug 2013 07:30:48 +0000 (09:30 +0200)]
change the structure of controling display to use 'dbus'

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: Ifa71cfaf2b9919911819e1976ed4ba5664fbac3e

10 years agosupport switch type devices
giyeol.ok [Thu, 20 Jun 2013 01:05:47 +0000 (10:05 +0900)]
support switch type devices

Change-Id: I458ae6ed1ad0b9e48f127b8e87e37ddc159430c6
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoexchange privacy logs to secure log
giyeol.ok [Thu, 20 Jun 2013 00:41:59 +0000 (09:41 +0900)]
exchange privacy logs to secure log

Change-Id: I69ab77fb1f040365513e53ba6fc5166add6b2f6e
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoRemove socket(pm_sock) for display control
sh.pi [Wed, 19 Jun 2013 12:11:28 +0000 (21:11 +0900)]
Remove socket(pm_sock) for display control

Now all ipc for display control is D-Bus.
Then routine about pm_sock is removed.

Change-Id: Iee263b6cb9bd7d73433cc530344b910158374ab1

10 years agoinsert broadcast signal to power off notification
giyeol.ok [Tue, 18 Jun 2013 09:16:26 +0000 (18:16 +0900)]
insert broadcast signal to power off notification

Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
Change-Id: I0abbc007fb08bebd05c54b6c29bbf7fb2e2482b3

10 years agoGet lockscreen bg state for backlight time.
sh.pi [Tue, 18 Jun 2013 07:38:17 +0000 (16:38 +0900)]
Get lockscreen bg state for backlight time.

Backlight time is 5 second in lock state normally.
But there is exceptional state in lock state.
In SOS call or other state, It's normal backlight time in spite of lock state.
Then deviced get background state of lockscreen for exceptional state.

Change-Id: I5ed635bb9ccfcd4c4dc6975ace6bf839187ef376

10 years agoinsert ExecStartPre and ExecStop option into service file
giyeol.ok [Tue, 18 Jun 2013 05:01:26 +0000 (14:01 +0900)]
insert ExecStartPre and ExecStop option into service file

Change-Id: I6d2359f00768f63ff4231b1fbb1f8fcd3a38c5c1
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoCode cleanup in proc-handler
Byungsoo Kim [Sat, 15 Jun 2013 07:31:59 +0000 (16:31 +0900)]
Code cleanup in proc-handler

Managing background application is not necessary anymore in system-server.

Change-Id: I16f709b797a4e09efca7db384d9b3e17999e434d
Signed-off-by: Byungsoo Kim <bs1770.kim@samsung.com>
10 years agochanged implement of sysman format api for supporting osp app.
jy910.yun [Fri, 14 Jun 2013 05:50:05 +0000 (14:50 +0900)]
changed implement of sysman format api for supporting osp app.

before long, we are planing to delete sysman library.
but osp has still use this api, so we temporary support this api.

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: Id5ae6f1f8d85eb4764a157af83645639070cb993

10 years agochange privacy logs to secure log type
giyeol.ok [Wed, 12 Jun 2013 00:42:50 +0000 (09:42 +0900)]
change privacy logs to secure log type

Change-Id: I5a602925b995671d9424160698d7d562816f131f
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoapply secure_log macro in bs
juho [Tue, 11 Jun 2013 07:34:53 +0000 (16:34 +0900)]
apply secure_log macro in bs

apply _SD, _SE macro to hide processname and etc information

Change-Id: Iaf5958cb4c0b358e1bac1cb0de90a1fd96f134b7
Signed-off-by: juho <juho80.son@samsung.com>
10 years agoadd secure log macro in core/log.h
juho [Tue, 11 Jun 2013 07:26:28 +0000 (16:26 +0900)]
add secure log macro in core/log.h

add _SD, _SI, _SW, _SE macro
It means SECURE_SLOGD, SECURE_SLOGI, SECURE_SLOGW, SECURE_SLOGE

Change-Id: Ief8992ae2535b9e517abb63f511f9fe44b2fba97
Signed-off-by: juho <juho80.son@samsung.com>
10 years agouse dbus notifier for mounting mmc card instead of vconf callback
Byungsoo Kim [Mon, 10 Jun 2013 15:17:26 +0000 (00:17 +0900)]
use dbus notifier for mounting mmc card instead of vconf callback

Change-Id: Iebfe1e92fd1f14176a3d10c60ac287b7620d1674
Signed-off-by: Byungsoo Kim <bs1770.kim@samsung.com>
10 years agomodify lazy mounting of mmc card for booting speed
Byungsoo Kim [Mon, 10 Jun 2013 08:13:21 +0000 (17:13 +0900)]
modify lazy mounting of mmc card for booting speed

Change-Id: Ia8e0f3ce18a9dbd763fa399747f3464789471b92
Signed-off-by: Byungsoo Kim <bs1770.kim@samsung.com>
10 years agoinsert low memory notification routine between entry and leave
giyeol.ok [Mon, 10 Jun 2013 06:46:53 +0000 (15:46 +0900)]
insert low memory notification routine between entry and leave

Change-Id: I917f87e1df6edb78cc58ba2c7f4308e549330dfb
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agorevise buffer size on create effect function
jy910.yun [Mon, 10 Jun 2013 05:48:40 +0000 (14:48 +0900)]
revise buffer size on create effect function

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: I8b660c4ec35ab329ce5704aa1a3252fa332cef14