platform/core/system/deviced.git
8 years agodisplay: remove unused macros 54/56954/1
Taeyoung Kim [Thu, 14 Jan 2016 00:53:06 +0000 (09:53 +0900)]
display: remove unused macros

Change-Id: Ifacc29b5da20139621ab4091912299ecc75174ef
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: remove extreme signal handler 49/56349/2
Taeyoung Kim [Thu, 7 Jan 2016 00:46:11 +0000 (09:46 +0900)]
display: remove extreme signal handler

- The signal is not used anymore
  It was used to check user input to change display state to DIM
  when battery status is very low.

Change-Id: I97a4f14f8efa5f3b8d18df26eacfb244857195bd
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agousb: update vconf keys for legacy usages 09/56209/2
Taeyoung Kim [Tue, 5 Jan 2016 10:01:27 +0000 (19:01 +0900)]
usb: update vconf keys for legacy usages

- VCONFKEY_USB_CUR_MODE and VCONFKEY_SETAPPL_USB_MODE_INT
  are legacy vconf keys to notice usb state. The keys
  are used at the legacy codes such as mtp, and so on.
  Thus they are added for the other modules

Change-Id: I25441a66a9466480ef4b0c93bc4177f4cf5ba778
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "usb: enable usb configuration by usb module of deviced" into tizen
Taeyoung Kim [Tue, 12 Jan 2016 09:41:37 +0000 (01:41 -0800)]
Merge "usb: enable usb configuration by usb module of deviced" into tizen

8 years agoblock: Remove build warning 60/56360/1 accepted/tizen/mobile/20160108.005537 accepted/tizen/tv/20160108.005555 accepted/tizen/wearable/20160108.005615 submit/tizen/20160107.091633
pr.jung [Thu, 7 Jan 2016 04:22:48 +0000 (13:22 +0900)]
block: Remove build warning

Change-Id: I2fa993cb94c2821a6e982a22a5bf7184b59b0795
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agousb: enable usb configuration by usb module of deviced 07/56207/2
Taeyoung Kim [Tue, 5 Jan 2016 09:48:06 +0000 (18:48 +0900)]
usb: enable usb configuration by usb module of deviced

- Previously, usb configuration is set by udev rule
  since usb uevent is delivered by different subsystem
- Now, udev rule is removed and usb configuration is
  set by usb module of deviced since uevent is delivered
  by HAL for TM1 device

Change-Id: If2fd2ca8522c704dee6deee9f6612cd4b6ec1bf3
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: Fix timing issue 78/56078/1 accepted/tizen/mobile/20160104.224534 accepted/tizen/tv/20160104.224552 accepted/tizen/wearable/20160104.224612 submit/tizen/20160104.075202
pr.jung [Mon, 4 Jan 2016 06:54:05 +0000 (15:54 +0900)]
block: Fix timing issue

If the device is removed before INSERT operation is handled,
when thread handle INSERT operation, it could't get out loop.

Change-Id: Ifcd69fcf3dfa918f637ff57c363b148dc3c928af
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoblock: remove notification library 77/55777/2
Taeyoung Kim [Tue, 29 Dec 2015 08:01:03 +0000 (17:01 +0900)]
block: remove notification library

- notification library is upper level apis
  and deviced cannot use it. It can be changed
  to other manner to show notices

Change-Id: I7e19684417c7471be3c3bfa3252cb71fe58e9576
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agolibdevman: check return values for IO apis 39/55739/2
Taeyoung Kim [Tue, 29 Dec 2015 05:56:36 +0000 (14:56 +0900)]
libdevman: check return values for IO apis

Change-Id: I2e54606ad44b75d0b6cd40666009d98b786dfda0
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agopower: add header file to use launch_app function 37/55737/2
Taeyoung Kim [Tue, 29 Dec 2015 05:14:07 +0000 (14:14 +0900)]
power: add header file to use launch_app function

Change-Id: Id0a078c4e4a558bd4a0f133902a8c2626288e416
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agosysman: fix warnings which are occurred during compiling 34/55734/3
Taeyoung Kim [Tue, 29 Dec 2015 05:02:45 +0000 (14:02 +0900)]
sysman: fix warnings which are occurred during compiling

- Log macros are changed to its own macro
- Return values are checked for write() operaiton

Change-Id: If5eab574172757ccd69b8ff8afa12e58a100c85f
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "sysman: fix _E macro to ERR macro" into tizen accepted/tizen/mobile/20151231.072151 accepted/tizen/tv/20151231.072209 accepted/tizen/wearable/20151231.072234 submit/tizen/20151231.001224
Taeyoung Kim [Wed, 30 Dec 2015 23:47:47 +0000 (15:47 -0800)]
Merge "sysman: fix _E macro to ERR macro" into tizen

8 years agosysman: fix _E macro to ERR macro 82/55982/1
Taeyoung Kim [Wed, 30 Dec 2015 23:41:42 +0000 (08:41 +0900)]
sysman: fix _E macro to ERR macro

_E is used in the deviced, not int the sysman.
Thus the macro is fixed to ERR which is defined
in sysman

Change-Id: I34dc363fc6f6ef203cb506dab957bd835a64dca6
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agosysman: fix _E macro to ERR macro
Taeyoung Kim [Wed, 30 Dec 2015 23:41:42 +0000 (08:41 +0900)]
sysman: fix _E macro to ERR macro

_E is used in the deviced, not int the sysman.
Thus the macro is fixed to ERR which is defined
in sysman

Change-Id: I34dc363fc6f6ef203cb506dab957bd835a64dca6
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agolicense: change license name 61/55961/1 submit/tizen/20151230.121600
Taeyoung Kim [Wed, 30 Dec 2015 11:53:37 +0000 (20:53 +0900)]
license: change license name

- BSD-1.0      -> BSD-4-Clause
- BSD 2-clause -> BSD-2-Clause

Change-Id: Iea4c9b33a1c0d35c01fa37b17e8750837d8c1aa8
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agolicense: update license files for fsck-msdos and newfs-msdos 88/55788/3
Taeyoung Kim [Tue, 29 Dec 2015 08:46:48 +0000 (17:46 +0900)]
license: update license files for fsck-msdos and newfs-msdos

Change-Id: Ie77ca3b9c4b4599733f0ad56ad1ea233a2e79503
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agolicense: add license BSD 2-clause and BSD-1.0 to spec file 38/55838/1
Taeyoung Kim [Wed, 30 Dec 2015 00:07:01 +0000 (09:07 +0900)]
license: add license BSD 2-clause and BSD-1.0 to spec file

- newfs-msdos and fsck-msdos use BSD 2-clause and BSD-1.0.
  Thus the license should be noticed on the spec file

Change-Id: I7d4cddee00ab4c3d482ce90b1be4c0f3cddee2dc
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "haptic: remove unused function" into tizen submit/tizen/20151229.094638
Taeyoung Kim [Tue, 29 Dec 2015 04:49:33 +0000 (20:49 -0800)]
Merge "haptic: remove unused function" into tizen

8 years agoMerge "usbhost: remove unused variable" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:49:22 +0000 (20:49 -0800)]
Merge "usbhost: remove unused variable" into tizen

8 years agoMerge "tzip: fix type size mismatching issue" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:49:12 +0000 (20:49 -0800)]
Merge "tzip: fix type size mismatching issue" into tizen

8 years agoMerge "block: remove unused variable" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:49:02 +0000 (20:49 -0800)]
Merge "block: remove unused variable" into tizen

8 years agoMerge "devicectl: fix misstype issue" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:48:53 +0000 (20:48 -0800)]
Merge "devicectl: fix misstype issue" into tizen

8 years agoMerge "libdeviced: fix warnings occurred during compiling" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:48:41 +0000 (20:48 -0800)]
Merge "libdeviced: fix warnings occurred during compiling" into tizen

8 years agoMerge "display: fix warning issues during compiling" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:48:16 +0000 (20:48 -0800)]
Merge "display: fix warning issues during compiling" into tizen

8 years agoMerge "display: get fd from input event" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:47:59 +0000 (20:47 -0800)]
Merge "display: get fd from input event" into tizen

8 years agoRemove unused files 27/55727/2
pr.jung [Tue, 29 Dec 2015 03:44:04 +0000 (12:44 +0900)]
Remove unused files

Change-Id: I4770d5954e29e048dce0ca3aec74b69e3be7d62c
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agohaptic: remove unused function 12/55712/1
Taeyoung Kim [Tue, 29 Dec 2015 01:29:38 +0000 (10:29 +0900)]
haptic: remove unused function

Change-Id: I823768b4b87cce22fb1b74dbaab61a3a6cdef7b2
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agousbhost: remove unused variable 95/55695/1
Taeyoung Kim [Tue, 29 Dec 2015 00:36:17 +0000 (09:36 +0900)]
usbhost: remove unused variable

Change-Id: I68eed0adb87436f78af63f62a1cf10b3d8a6a867
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agotzip: fix type size mismatching issue 94/55694/1
Taeyoung Kim [Tue, 29 Dec 2015 00:31:24 +0000 (09:31 +0900)]
tzip: fix type size mismatching issue

- Size of pointer in 32bit arch is 4byte, but size of uint64_t is 8byte.
  This occurs the size mismatching issue.
- The issue is fixed by checking type of architecture

Change-Id: If696b7465df81ba401458b94b8559b8521458f84
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: remove unused variable 47/55647/1
Taeyoung Kim [Mon, 28 Dec 2015 10:05:38 +0000 (19:05 +0900)]
block: remove unused variable

- unused variable occurs warning during compiling.
  Thus the variable is removed

Change-Id: I5636c46560de1448f0ee9a2ded3c68a74bfb75dd
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodevicectl: fix misstype issue 46/55646/1
Taeyoung Kim [Mon, 28 Dec 2015 10:02:32 +0000 (19:02 +0900)]
devicectl: fix misstype issue

- different type was used to assign values.
  thus the type is fixed to match type.

Change-Id: I53e358333512b373da4b8951090cb047b4f9884f
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agolibdeviced: fix warnings occurred during compiling 19/55619/4
Taeyoung Kim [Mon, 28 Dec 2015 08:01:15 +0000 (17:01 +0900)]
libdeviced: fix warnings occurred during compiling

- type mismatches are fixed
- unused functions and variables are removed
- missed header files are added

Change-Id: I6f91fc82e047e9dd9e19ad5ab4216f61b88bc705
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: fix warning issues during compiling 76/55576/2
Taeyoung Kim [Mon, 28 Dec 2015 01:03:23 +0000 (10:03 +0900)]
display: fix warning issues during compiling

Change-Id: I1219a85de411d17822e6130f5b45ad19be92a07e
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: get fd from input event 47/55547/2
Taeyoung Kim [Thu, 24 Dec 2015 10:50:15 +0000 (19:50 +0900)]
display: get fd from input event

- fd value was not initialized. Thus the fd is get
  from the input event

Change-Id: I9a159b8c9e7d12175e77f6a2969214dce887da8c
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: add function check routine 46/55546/2
Taeyoung Kim [Thu, 24 Dec 2015 10:41:14 +0000 (19:41 +0900)]
display: add function check routine

- device-ops define their own functions to start and stop
  them. Thus, checking the  existance of the functions
  is important before using it.

Change-Id: I36345bec84ba8480219b04f55f39dafd048aee93
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: fix parameter types according to the function prototypes 43/55543/3
Taeyoung Kim [Thu, 24 Dec 2015 10:04:11 +0000 (19:04 +0900)]
display: fix parameter types according to the function prototypes

- The parameters of timer() and ceil() are double.
  Thus their types are changed to double.

Change-Id: I5c01ee5d5003a1e66ec28f4157f7001bc8b8e014
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: exchange sprintf() to snprintf() 35/55535/2
Taeyoung Kim [Thu, 24 Dec 2015 08:59:29 +0000 (17:59 +0900)]
display: exchange sprintf() to snprintf()

- sprintf() is unsafe, and thus snprintf() is used instead

Change-Id: I51e0737373922c10d8200207a7452c47bd4c3c7d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agocommon: exchagne strcmp() to strncmp() 34/55534/2
Taeyoung Kim [Thu, 24 Dec 2015 08:54:08 +0000 (17:54 +0900)]
common: exchagne strcmp() to strncmp()

- strcmp() can occur overflow issue. Thus it is changed
  to strncmp()

Change-Id: I640fec1ee49b7f2491a000b9c25b3414a63231c1
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "common: add return check routine" into tizen
Taeyoung Kim [Mon, 28 Dec 2015 04:18:39 +0000 (20:18 -0800)]
Merge "common: add return check routine" into tizen

8 years agoMerge "extcon: remove return value in the function whose return type is void" into...
Taeyoung Kim [Mon, 28 Dec 2015 04:18:35 +0000 (20:18 -0800)]
Merge "extcon: remove return value in the function whose return type is void" into tizen

8 years agoMerge "common: fix unreachable codes" into tizen
Taeyoung Kim [Mon, 28 Dec 2015 04:18:30 +0000 (20:18 -0800)]
Merge "common: fix unreachable codes" into tizen

8 years agocommon: add return check routine 08/55508/1
Taeyoung Kim [Thu, 24 Dec 2015 06:25:46 +0000 (15:25 +0900)]
common: add return check routine

- read() was used without checking the return value.
  Thus the checking routine is added

Change-Id: Ie844caa98bc6e55819f3c18d39fdde12a68d613c
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoextcon: remove return value in the function whose return type is void 96/55496/1
Taeyoung Kim [Thu, 24 Dec 2015 05:24:22 +0000 (14:24 +0900)]
extcon: remove return value in the function whose return type is void

- This is a bug, and warning message is occurred during build

Change-Id: I7976393cf2f48561eccdf125d4d80651ef6258e9
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "block: Add and Broadcast signal before unmount device" into tizen
pr.jung [Thu, 24 Dec 2015 05:10:06 +0000 (21:10 -0800)]
Merge "block: Add and Broadcast signal before unmount device" into tizen

8 years agocommon: fix unreachable codes 94/55494/1
Taeyoung Kim [Thu, 24 Dec 2015 04:51:17 +0000 (13:51 +0900)]
common: fix unreachable codes

- Unreachable codes are not used and thus
  they should be fixed

Change-Id: I87f3498967a404394aef1e7ab861ba8d2cc38c2d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: Add and Broadcast signal before unmount device 33/55333/1
pr.jung [Wed, 23 Dec 2015 07:32:18 +0000 (16:32 +0900)]
block: Add and Broadcast signal before unmount device

Change-Id: I24212935911a17a7ff78df6b49873c87005191a8
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agodisplay: add config file for TV profile 29/55329/1 accepted/tizen/mobile/20151224.000149 accepted/tizen/tv/20151224.000208 accepted/tizen/wearable/20151224.000225 submit/tizen/20151223.084010 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
Taeyoung Kim [Wed, 23 Dec 2015 07:14:14 +0000 (16:14 +0900)]
display: add config file for TV profile

- Display of TV profile should be turned on. Display is turned off
  when request from outside is delivered. Thus config file
  shows that the display should be on state.

Change-Id: I970de5ee897c7304515b71a9956a450c45fed8a5
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "Fix minor error" into tizen accepted/tizen/mobile/20151223.105158 accepted/tizen/tv/20151223.105209 accepted/tizen/wearable/20151223.105227 submit/tizen/20151223.052839
Taeyoung Kim [Wed, 23 Dec 2015 02:42:52 +0000 (18:42 -0800)]
Merge "Fix minor error" into tizen

8 years agoMerge "display: support display module even if display HAL is not supported" into... accepted/tizen/mobile/20151222.224103 accepted/tizen/tv/20151222.224117 accepted/tizen/wearable/20151222.224138 submit/tizen/20151222.110411
Taeyoung Kim [Tue, 22 Dec 2015 10:48:32 +0000 (02:48 -0800)]
Merge "display: support display module even if display HAL is not supported" into tizen

8 years agoFix minor error 75/55175/1
pr.jung [Tue, 22 Dec 2015 09:18:15 +0000 (18:18 +0900)]
Fix minor error

- fd can be negative value in error case.
- Need to break in switch case.

Change-Id: I06a33b80f0f028d5854adb5208c9242bc504d942
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agodisplay: support display module even if display HAL is not supported 07/55007/1
Taeyoung Kim [Mon, 21 Dec 2015 08:27:24 +0000 (17:27 +0900)]
display: support display module even if display HAL is not supported

- Display HAL cannot be supported at TV profile. Thus error handling
  is fixed to normal operation

Change-Id: I20437784dc6680c6492befc01834c2aa6582c410
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoextcon: HAL is applied 25/54725/2 accepted/tizen/mobile/20151222.085716 accepted/tizen/tv/20151222.085735 accepted/tizen/wearable/20151222.085759 submit/tizen/20151221.234722 submit/tizen/20151222.023057
Taeyoung Kim [Thu, 17 Dec 2015 11:42:42 +0000 (20:42 +0900)]
extcon: HAL is applied

- TM1 target does not use extcon subsystem of kernel.
  It uses switch subsystem its own. This is not the
  standard, and thus HAL is required

Change-Id: Ie1351ef24cf66885cab3a84abdd25766ae9f48a1
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agousb: enable mtp for TM1 target. 40/54640/2 accepted/tizen/mobile/20151217.223835 accepted/tizen/tv/20151217.223852 accepted/tizen/wearable/20151217.223914 submit/tizen/20151217.081028
Taeyoung Kim [Thu, 17 Dec 2015 01:27:04 +0000 (10:27 +0900)]
usb: enable mtp for TM1 target.

- mtp gadget should be enabled to use mtp services.
- mtp-responder will communicate with host PC and show
  the contents in the target

Change-Id: I33912cdf31326f67961d51b6ab69393324c9ebce
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "deviced: Change dependency of zbooting-done.service." into tizen accepted/tizen/mobile/20151215.124545 accepted/tizen/tv/20151215.125227 accepted/tizen/wearable/20151215.125448 submit/tizen/20151215.083725
Taeyoung Kim [Tue, 15 Dec 2015 07:30:32 +0000 (23:30 -0800)]
Merge "deviced: Change dependency of zbooting-done.service." into tizen

8 years agodeviced: Change dependency of zbooting-done.service. 97/54197/1
pr.jung [Mon, 14 Dec 2015 05:32:23 +0000 (14:32 +0900)]
deviced: Change dependency of zbooting-done.service.

Because zbooting-done.service sends booting-done signal too early,
deviced couldn't receive booting-done signal.
So this commit changes the dependency of zbooting-done.service

Change-Id: I59246a92eed09656a2477f3cffb4d8d91f06eb13
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agotouchscreen: add touchscreen module to manage touch input 01/53401/3 accepted/tizen/mobile/20151211.055150 accepted/tizen/tv/20151211.062231 accepted/tizen/wearable/20151211.061129 submit/tizen/20151211.031137
Taeyoung Kim [Fri, 4 Dec 2015 12:20:50 +0000 (21:20 +0900)]
touchscreen: add touchscreen module to manage touch input

- If display is turned on, touchscreen should be enabled.
  And if display is turned off, touchscreen should be disabled.
  to reduce power consumption. Thus touchscreen module is added.

Change-Id: Iff2cad4294ecb5aba1e2ce656b9b2a596af52191
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agousbhost: enable usb host module for mobile and TV profile 17/53717/2
Taeyoung Kim [Wed, 9 Dec 2015 02:10:41 +0000 (11:10 +0900)]
usbhost: enable usb host module for mobile and TV profile

- Mobile and TV targets support usb host devices and thus
  deviced should support usb host module.

Change-Id: Ib76e8a85bd41a29e5d8a09a97bdd988d7a983268
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "block: Compare MMC_PATH, SCSI_PATH and devnode instead of syspath" into tizen
Taeyoung Kim [Fri, 4 Dec 2015 08:15:16 +0000 (00:15 -0800)]
Merge "block: Compare MMC_PATH, SCSI_PATH and devnode instead of syspath" into tizen

8 years agoMerge "display: remove brightness popup operation" into tizen
Taeyoung Kim [Fri, 4 Dec 2015 08:15:09 +0000 (00:15 -0800)]
Merge "display: remove brightness popup operation" into tizen

8 years agoblock: Compare MMC_PATH, SCSI_PATH and devnode instead of syspath 63/53363/1
pr.jung [Fri, 4 Dec 2015 07:43:14 +0000 (16:43 +0900)]
block: Compare MMC_PATH, SCSI_PATH and devnode instead of syspath

There is a case that syspath include SCSI_PATH,
so now deviced is changed to compare with devnode.

Change-Id: I2dc7a9621cf6ee8a0bfba144ce8b56ea228a60ac
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agodisplay: remove brightness popup operation 21/53321/1
Taeyoung Kim [Fri, 4 Dec 2015 01:53:30 +0000 (10:53 +0900)]
display: remove brightness popup operation

- Brightness popup is not supported with Tizen 3.0.
  Thus the codes related with communication with
  the popup is removed

Change-Id: I224c56b9511a473aec593bc5c5962ab39d4eefdb
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: change sensor api to capi-system-sensor 73/52873/1
taeyoung [Fri, 27 Nov 2015 04:38:31 +0000 (13:38 +0900)]
display: change sensor api to capi-system-sensor

- sensor api is deprecated. New sensor api is
  capi-system-sensor

Change-Id: I9c074b2bade4312c96766204ac04400137c17ef5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agobattery: add charge_status property 39/52839/1
taeyoung [Thu, 26 Nov 2015 13:05:36 +0000 (22:05 +0900)]
battery: add charge_status property

- charge_status is used for send system event. If charge_status
  is same as previous status, system event is not delivered.
- In addition, application related codes are fixed to launch popup.

Change-Id: I0ba02703c25eed91db4198f1ef7da2c8df7ec4cd
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agopower: remove unnecessary methods and add operations which should be run during power off 95/52595/3
taeyoung [Tue, 24 Nov 2015 13:37:40 +0000 (22:37 +0900)]
power: remove unnecessary methods and add operations which should be run during power off

- The poweroff popup can be launched only powerkey longpress. Thus
  the dbus method for launching popup is removed.
- Systemd journal is disabled not to remain garbage backup files
- eventsystem is used to notify power off situation

Change-Id: Icec995eec8858c8ef0b94fedbfaf56f0dee97d3e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoearjack: send system event when earjack state is chagned 80/52580/3
taeyoung [Tue, 24 Nov 2015 12:16:47 +0000 (21:16 +0900)]
earjack: send system event when earjack state is chagned

- eventsystem is common event delivery api from Tizen 2.4

Change-Id: I711883b7d18b11f8ec6af1ad45e153766114c0c8
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agocommon: remove unused codes 13/52513/3
taeyoung [Tue, 24 Nov 2015 05:14:03 +0000 (14:14 +0900)]
common: remove unused codes

- predefine_act_plugin module is not used anymore

Change-Id: Id10287f43e2448b71302533fee6fe6bcf0a3bcc1
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoproc: remove not used operations 01/52501/3
taeyoung [Tue, 24 Nov 2015 02:59:43 +0000 (11:59 +0900)]
proc: remove not used operations

- VIP process is handled by resourced
- Battery related operations are not the public operations
- Thus they are removed from deviced

Change-Id: If9cf6e326b54acbd5d651534e2de5a8793b00561
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agosystemd: add dbus method calls for systemd related operation 98/52498/3
taeyoung [Tue, 24 Nov 2015 02:32:09 +0000 (11:32 +0900)]
systemd: add dbus method calls for systemd related operation

- start and stop services are available by dbus method

Change-Id: I979c262643c85f4c92f0e6bc6d4d5eea73295973
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agostorage: monitor storage size available 97/52497/3
taeyoung [Tue, 24 Nov 2015 02:09:14 +0000 (11:09 +0900)]
storage: monitor storage size available

- If storage size available is not enough to use,
  warning message is shown to user

Change-Id: Ibfea8a29b18ccda7e228a1e0c8e81bb6512936ee
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoMerge "telephony: add tethering and flightmode handlers" into tizen
taeyoung [Wed, 25 Nov 2015 10:11:06 +0000 (02:11 -0800)]
Merge "telephony: add tethering and flightmode handlers" into tizen

8 years agohaptic: Remove strerror, readdir usecase which are not thread-safe. 96/52396/2
pr.jung [Fri, 20 Nov 2015 07:47:11 +0000 (16:47 +0900)]
haptic: Remove strerror, readdir usecase which are not thread-safe.

Change-Id: I99e6577fbb1ef095ad5437ca0ceeabb15b3918d4
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agohaptic: Add function to vibrate with buffers and device handle. 95/52395/4
pr.jung [Fri, 20 Nov 2015 07:16:54 +0000 (16:16 +0900)]
haptic: Add function to vibrate with buffers and device handle.

- Add function to vibrate with buffers beside vibrating monotone which is already existed.
- Add device_handle.

Change-Id: I575ff6710bf3f13b2c34a898d4ec04d11495c6a1
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agotelephony: add tethering and flightmode handlers 83/52383/2
taeyoung [Mon, 23 Nov 2015 05:50:49 +0000 (14:50 +0900)]
telephony: add tethering and flightmode handlers

- tethering and flightmode should be handled for change or
  restrict services for that situation.

Change-Id: Iaa5cb4a07328a16ddb6172d49b2a0eb262ce4b4a
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoMerge "usb: enable sdb at booting time" into tizen accepted/tizen/mobile/20151123.093500 accepted/tizen/tv/20151123.093514 accepted/tizen/wearable/20151123.093528 submit/tizen/20151123.071132
taeyoung [Mon, 23 Nov 2015 07:09:10 +0000 (23:09 -0800)]
Merge "usb: enable sdb at booting time" into tizen

8 years agousb: enable sdb at booting time 94/52394/1
taeyoung [Mon, 23 Nov 2015 07:02:57 +0000 (16:02 +0900)]
usb: enable sdb at booting time

- Currently, udev rule is used to detect usb cable and
  to enable sdb. However, usb cable is connected during booting,
  udevd cannot receive the kernel uevent and sdb cannot
  be enabled before re-connecting the usb cable. Thus
  sdb is enabled during booting time.

Change-Id: I0c1bf4bb8fdc2bbf07df1b2f6fc4ba0973a64cab
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agotzip: enable tzip with mobile and wearable profile. 19/52319/1
taeyoung [Mon, 23 Nov 2015 02:31:25 +0000 (11:31 +0900)]
tzip: enable tzip with mobile and wearable profile.

- tzip is used for installing apps without unzipping
  zip files. The zip file is just mounted to a certain
  directory.

Change-Id: I605bdaa888540a1d25f0dc48765e1d05be3f9f9e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agousb: enable sdb using udev rule 61/52261/2 accepted/tizen/mobile/20151122.234226 accepted/tizen/tv/20151122.234240 accepted/tizen/wearable/20151122.234251 submit/tizen/20151120.090800 submit/tizen/20151120.091810
taeyoung [Fri, 20 Nov 2015 08:57:09 +0000 (17:57 +0900)]
usb: enable sdb using udev rule

- UDC(USB Device Controller) is enabled only if usb gadget
  is enabled with connected usb cable. Thus udev rule
  detects usb cable connection and enables usb gadget
- TM1 target uses switch subsystem. Thus the udev rule
  is related with switch subsystem.

Change-Id: Ib75620f5a9b8ea97c98a6928f59322cfe9f4edf1
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agotzip: disable tzip until libfuse is enabled 53/52253/1
taeyoung [Fri, 20 Nov 2015 07:39:25 +0000 (16:39 +0900)]
tzip: disable tzip until libfuse is enabled

- Currently, deviced cannot be launched since libfuse is not installed
  in deviced. Thus tzip is disabled for a moment

Change-Id: I0bc8a3809eb9763d0cdf689016e4f0d4b53ceb44
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agousb: fix build break issue in case that sdb_prestart option is off 81/52181/1
taeyoung [Thu, 19 Nov 2015 14:08:20 +0000 (23:08 +0900)]
usb: fix build break issue in case that sdb_prestart option is off

- All of service files are added to /usr/lib/systemd/system.
  Thus unpacked file breaks build if sdb_prestart option is off.
- The issue is fixed by installing all service files always.

Change-Id: I66bd3e29192f844a6d3714929ff424253dc66622
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agousb: enable sdb before launching deviced 95/52095/1 submit/tizen/20151119.042050
taeyoung [Thu, 19 Nov 2015 03:55:27 +0000 (12:55 +0900)]
usb: enable sdb before launching deviced

- sdb should be enabled even if deviced is not available
  for debugging. Thus sdb-prestart.service is added

Change-Id: Icb73619d13eae267698332257f86041978911800
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoMerge "apps: call dbus methods to launch applications" into tizen
taeyoung [Wed, 18 Nov 2015 06:21:02 +0000 (22:21 -0800)]
Merge "apps: call dbus methods to launch applications" into tizen

8 years agoapps: call dbus methods to launch applications 48/51548/1
taeyoung [Tue, 10 Nov 2015 11:15:34 +0000 (20:15 +0900)]
apps: call dbus methods to launch applications

- dbus methods are used to launch applications. This makes
  that deviced does not have dependency of AUL and app-manager.

Change-Id: I617d5fbe0cdf6897a942c701f4be3d82f828cc1e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agotzip: add tzip module 30/51530/2
taeyoung [Tue, 10 Nov 2015 09:44:55 +0000 (18:44 +0900)]
tzip: add tzip module

- tzip is used to improve performance of big size package installation.
- tzip mounts zip file as a file system not to unzip which requires more time.

Change-Id: I9088aec672bad89b5e9b76cd5e01591e3943fe84
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoudev: add dbus methods for registering uevent handler 67/50967/1
taeyoung [Wed, 4 Nov 2015 05:16:57 +0000 (14:16 +0900)]
udev: add dbus methods for registering uevent handler

Change-Id: I4717cf3daed409c947813ce1dc7d7784397ccba0
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agolist: change g_list_remove_link to g_list_delete_link 27/50927/1
taeyoung [Tue, 3 Nov 2015 13:53:55 +0000 (22:53 +0900)]
list: change g_list_remove_link to g_list_delete_link

- g_list_remove_link() just removes the link. Thus the node removed should be freed.
- g_list_delete_link() removes the link and frees the node.
- This change fixs a memory leak issue.

Change-Id: I7f8f1b759d90bb71e54f9b062ae4c0f7564a25d4
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agopower off: change fuser option -S to -s 55/50855/1
taeyoung [Tue, 3 Nov 2015 03:11:59 +0000 (12:11 +0900)]
power off: change fuser option -S to -s

- -S means printing syslog. -s means silent operation.
- When -S option is used, syslogd can occur blocking issue.
  Thus -S is changed to -s

Change-Id: I6f664739b552411e1baf70069c565817a3beaaa4
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agocommon: add git ignore 24/50824/1
taeyoung [Mon, 2 Nov 2015 13:32:07 +0000 (22:32 +0900)]
common: add git ignore

Change-Id: I075d94b15c64620f7cc81a036a33206c394d107c
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoblock: add signal to contain state information 17/50817/1
taeyoung [Mon, 2 Nov 2015 11:25:48 +0000 (20:25 +0900)]
block: add signal to contain state information

- state information:
    = unmounted forcely
    = file system broken
    = empty file system
    = not supported file system
    = mounted read-only manner

Change-Id: I1c074e57a9449e83d8993ed3a46e821de3c66e17
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoblock: add "format" and "get_device_list" dbus methods 97/50797/2
taeyoung [Mon, 2 Nov 2015 09:25:35 +0000 (18:25 +0900)]
block: add "format" and "get_device_list" dbus methods

- format method is used for formatting block devices
- get_device_list method is used for getting block device list

Change-Id: I5e364c217c194b8840ff44bb8cfd49b1d8efb6d3
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoblock: change operations using a thread per a device 80/50780/2
taeyoung [Mon, 2 Nov 2015 06:42:19 +0000 (15:42 +0900)]
block: change operations using a thread per a device

- Previously, threads are used to mount/format devices,
  and main thread is used for unmounting devices. This occurs
  sync issues between operations on one device.

- Now one thread per one device is made for the operations
  and operations for one device are handled by a queue
  in the device object. Thus the sync issues are removed

Change-Id: Ie5e5f33b57b9fb2e4e1cee165f29d49a35a07052
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agodisplay: add dbus methods for custom and current brightness 83/50183/1 accepted/tizen/mobile/20151031.105450 accepted/tizen/tv/20151031.110226 accepted/tizen/wearable/20151031.110454 submit/tizen/20151030.024639
taeyoung [Mon, 26 Oct 2015 14:02:18 +0000 (23:02 +0900)]
display: add dbus methods for custom and current brightness

- Custom brightness: app defined brightness
- Current brightness: Just current brightness

Change-Id: Ic51a94a7a8020ff344672fb355968c9872f8c8ac
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoMerge "Hardware locked SD Card is not mounted as read only. This patch allows read...
Taeyoung Kim [Thu, 22 Oct 2015 06:06:21 +0000 (23:06 -0700)]
Merge "Hardware locked SD Card is not mounted as read only. This patch allows read only mount of external storage. (even if the device is hardware locked.)" into tizen

8 years agoModification by centeralized memory key initialization 65/49665/1 accepted/tizen/mobile/20151017.101204 accepted/tizen/mobile/20151017.101217 accepted/tizen/tv/20151017.101433 accepted/tizen/tv/20151017.101446 accepted/tizen/wearable/20151017.101858 accepted/tizen/wearable/20151017.101903 submit/tizen/20151017.060445 submit/tizen/20151017.060617 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
Kunhoon Baik [Sat, 17 Oct 2015 05:57:27 +0000 (14:57 +0900)]
Modification by centeralized memory key initialization

According to patch : https://review.tizen.org/gerrit/#/c/49646/,
For buxton memory-init key, Vconf script does not update existing memory-init keys any more
Thus, this patch removes unnecessary duplicated code for initializing memory-init keys.

Change-Id: I27f20009a7482a28a64facf53afcb31a24d01c4a

8 years agoFix security configuration file. Allow send dbus call and check in special case 92/49592/2 accepted/tizen/mobile/20151016.043309 accepted/tizen/tv/20151016.043414 accepted/tizen/wearable/20151016.043440 submit/tizen/20151015.100129
pr.jung [Thu, 15 Oct 2015 09:33:45 +0000 (18:33 +0900)]
Fix security configuration file. Allow send dbus call and check in special case

Change-Id: Ieca49e6f60f8cd4f8a3078a12341709185c491cf
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoHardware locked SD Card is not mounted as read only. 63/49363/1
e.talipov [Tue, 13 Oct 2015 02:58:09 +0000 (11:58 +0900)]
Hardware locked SD Card is not mounted as read only.
This patch allows read only mount of external storage.
(even if the device is hardware locked.)

Change-Id: I412396dfe722820544d3637206757bf97ecb8d4b
Signed-off-by: Elmurod Talipov <e.talipov@samsung.com>
8 years agoblock: update mmc vconf value 25/48425/1 accepted/tizen/mobile/20150923.231129 accepted/tizen/tv/20150923.231138 accepted/tizen/wearable/20150923.231148 submit/tizen/20150923.103110 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620
taeyoung [Mon, 21 Sep 2015 11:10:32 +0000 (20:10 +0900)]
block: update mmc vconf value

- Some apis of libstorage are used the mmv vconf key
  to know the change of the mmc card. Thus the vconf key
  is changed for the compatibility

Change-Id: I5f129259b71cdc5f783bec70a9397f99d0ce72c4
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoMerge "Apply dbus-cynara rule for deviced" into tizen tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150911.145428 accepted/tizen/tv/20150911.145434 accepted/tizen/wearable/20150911.145447 submit/tizen/20150911.080939 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
Taeyoung Kim [Fri, 11 Sep 2015 07:56:44 +0000 (00:56 -0700)]
Merge "Apply dbus-cynara rule for deviced" into tizen

8 years agoApply dbus-cynara rule for deviced 11/48011/2
pr.jung [Fri, 11 Sep 2015 04:11:14 +0000 (13:11 +0900)]
Apply dbus-cynara rule for deviced

dbus method call which has privilege only allowed

Change-Id: I85e7056d6097130db8ab56ddd91f2a21f38d4e13
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoblock: in case of mmc device's primary, use static directory for libstorage library 16/47916/2 accepted/tizen/mobile/20150911.091857 accepted/tizen/tv/20150911.091910 accepted/tizen/wearable/20150911.091926 submit/tizen/20150911.075444
Kunhoon Baik [Thu, 10 Sep 2015 04:24:43 +0000 (13:24 +0900)]
block: in case of mmc device's primary, use static directory for libstorage library

     : the libstorage library provide static path like "/usr/storage/sdcard"

Change-Id: I7f196ced789584c457b4bfb6a567caff84bfc9d7
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agodisplay: fix display timeout error 32/47832/1 accepted/tizen/mobile/20150910.070514 accepted/tizen/tv/20150910.070536 accepted/tizen/wearable/20150910.070544 submit/tizen/20150910.025457
Kunhoon Baik [Wed, 9 Sep 2015 08:32:15 +0000 (17:32 +0900)]
display: fix display timeout error

The internal index for vconf key start from number 0.
Thus, data can be 0

Change-Id: I6f68ae97d66cf62263176b067db874db7566b351