platform/core/system/deviced.git
8 years agoblock: fix build warning 05/69805/1
sunm.lee [Tue, 17 May 2016 01:47:10 +0000 (10:47 +0900)]
block: fix build warning

fix build warning in block/block.c.
(uninitilized devnode -> initilize to NULL)

Change-Id: I2e91f5282286c51f5627f1d1de0af57b3105d388
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
8 years agodisplay, tzip: Apply Tizen coding rule 43/69643/1
sunm.lee [Mon, 16 May 2016 08:38:44 +0000 (17:38 +0900)]
display, tzip: Apply Tizen coding rule

Apply tizen coding rule to src/display, src/tzip.

Change-Id: I3193ffc40d1f08b7297633030e82f119fa74abc4
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
8 years agodisplay: add conf file for common profile 43/69343/1
Taeyoung Kim [Fri, 13 May 2016 00:06:10 +0000 (09:06 +0900)]
display: add conf file for common profile

Change-Id: I6a96e59d52c7a22d57f530ada906ac978159d24f
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "power: change interface to launch popup for the powerkey longpressed event... submit/tizen/20160512.081115
Taeyoung Kim [Thu, 12 May 2016 08:20:45 +0000 (01:20 -0700)]
Merge "power: change interface to launch popup for the powerkey longpressed event" into tizen

8 years agoblock: remove fsck-msdos and newfs-msdos 81/69181/1 accepted/tizen/ivi/20160513.004437 accepted/tizen/mobile/20160513.004445 accepted/tizen/tv/20160513.004432 accepted/tizen/wearable/20160513.004421 submit/tizen/20160512.062244
Taeyoung Kim [Thu, 12 May 2016 05:43:30 +0000 (14:43 +0900)]
block: remove fsck-msdos and newfs-msdos

- fsck-msdos and newfs-msdos are opensource programs
  which are used to check and make vfat file system.
- They are separated from deviced for the license issues

Change-Id: I2deedcb38901b84bd0314b9e292ea7ec1e7fcff3
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agopower: change interface to launch popup for the powerkey longpressed event 26/68426/2
Taeyoung Kim [Wed, 4 May 2016 07:38:43 +0000 (16:38 +0900)]
power: change interface to launch popup for the powerkey longpressed event

- Powerkey longpressed popup is changed to support restart operation.
  Thus the interface to launch popup is also changed.

Change-Id: I022083acdf5496ffd04919defb5620485cb77a03
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "tzip: add NULL check routine before releasing fuse_handle" into tizen accepted/tizen/ivi/20160511.080358 accepted/tizen/mobile/20160511.080300 accepted/tizen/tv/20160511.080316 accepted/tizen/wearable/20160511.080341 submit/tizen/20160510.075001
Taeyoung Kim [Mon, 9 May 2016 10:15:33 +0000 (03:15 -0700)]
Merge "tzip: add NULL check routine before releasing fuse_handle" into tizen

8 years agoMerge "usbhost: change group and permission to system_share and 660" into tizen
Taeyoung Kim [Mon, 9 May 2016 10:15:18 +0000 (03:15 -0700)]
Merge "usbhost: change group and permission to system_share and 660" into tizen

8 years agotzip: add NULL check routine before releasing fuse_handle 85/68685/1
Taeyoung Kim [Mon, 9 May 2016 09:38:33 +0000 (18:38 +0900)]
tzip: add NULL check routine before releasing fuse_handle

- Crash can be occurred if NULL check is skipped. Thus
  NULL check routine is added.

Change-Id: I196f5a63bc3924b8b2c3e838a56f0b105ce867cc
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "block: change permission of mount path for user session daemons" into tizen
Taeyoung Kim [Wed, 4 May 2016 06:16:19 +0000 (23:16 -0700)]
Merge "block: change permission of mount path for user session daemons" into tizen

8 years agoMerge "block: change node name of mount path" into tizen
Taeyoung Kim [Wed, 4 May 2016 06:16:15 +0000 (23:16 -0700)]
Merge "block: change node name of mount path" into tizen

8 years agoMerge "block: support sdcard of emulator" into tizen
Taeyoung Kim [Wed, 4 May 2016 06:16:10 +0000 (23:16 -0700)]
Merge "block: support sdcard of emulator" into tizen

8 years agoblock: change permission of mount path for user session daemons 28/68328/1
Taeyoung Kim [Tue, 3 May 2016 11:27:02 +0000 (20:27 +0900)]
block: change permission of mount path for user session daemons

- The permission of Directories is changed to 777
- The permission of Files is changed to 666
- The change is just for user session daemons, and it will
  be fixed to the better manner later.

Change-Id: Ic73979d85037f8cf59e54461ae882d6ac526f68d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: change node name of mount path 21/68321/1
Taeyoung Kim [Tue, 3 May 2016 11:02:33 +0000 (20:02 +0900)]
block: change node name of mount path

- Previously, SdcardA1 and UsbDriveA1 nodes are used
  to mount external storages.
- Now, SDCardA1 and USBDriveA1 nodes are used to mount
  external storages.

Change-Id: I2bd5d39a50b68f145dbff94ea65b79753ee5ea56
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: support sdcard of emulator 98/68298/3
Taeyoung Kim [Tue, 3 May 2016 07:53:14 +0000 (16:53 +0900)]
block: support sdcard of emulator

- Sdcard device /dev/mmcblk* is just for target devices.
- Emulator supports virtual sdcards which are located under /dev/sdcard/*
- The device nodes /dev/sdcard/* are symlnk nodes made by udev rule
  "95-tizen-emulator.rules" which is installed with system-plugin-emulator
- Now deviced handles the devices under /dev/sdcard/ for Emulator.

Change-Id: I5701779d4f906fc4de51a9bab1ab587b465d092d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: remove unused variable 47/68047/1
Taeyoung Kim [Mon, 2 May 2016 03:58:15 +0000 (12:58 +0900)]
block: remove unused variable

Change-Id: If6d8ae10232113043cc4d22d3e27385127f6697e
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "usb: change manner for starting/stopping services to dbus method" into tizen
Taeyoung Kim [Mon, 2 May 2016 02:47:50 +0000 (19:47 -0700)]
Merge "usb: change manner for starting/stopping services to dbus method" into tizen

8 years agoMerge "block: add method for getting block info by ID" into tizen
Taeyoung Kim [Mon, 2 May 2016 02:47:14 +0000 (19:47 -0700)]
Merge "block: add method for getting block info by ID" into tizen

8 years agoMerge "block: add block id which is used in libstorage" into tizen
Taeyoung Kim [Mon, 2 May 2016 02:47:09 +0000 (19:47 -0700)]
Merge "block: add block id which is used in libstorage" into tizen

8 years agousb: change manner for starting/stopping services to dbus method 56/67956/1
Taeyoung Kim [Fri, 29 Apr 2016 10:23:44 +0000 (19:23 +0900)]
usb: change manner for starting/stopping services to dbus method

- Previously, services are started/stopped by forking systemctl command.
  However, the manner cannot guarantee the sequence of the services
  due to the scheduling issue.
- Now, the services are started/stopped by dbus method to systemd.
  The requests are stored in queue of systemd, and thus the sequence
  of services is guaranteed.

Change-Id: I36d0391fd426e271fe2d760d308efd9efd8b52ed
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "display: change the order of display options" into tizen
Taeyoung Kim [Thu, 28 Apr 2016 09:19:48 +0000 (02:19 -0700)]
Merge "display: change the order of display options" into tizen

8 years agoMerge "proc: fix issue between unsigned int and int" into tizen
Taeyoung Kim [Thu, 28 Apr 2016 09:19:28 +0000 (02:19 -0700)]
Merge "proc: fix issue between unsigned int and int" into tizen

8 years agoMerge "haptic: change return value check routine of open()" into tizen
Taeyoung Kim [Thu, 28 Apr 2016 09:19:14 +0000 (02:19 -0700)]
Merge "haptic: change return value check routine of open()" into tizen

8 years agoMerge "block: enable control operation for block devices" into tizen
Taeyoung Kim [Thu, 28 Apr 2016 06:55:06 +0000 (23:55 -0700)]
Merge "block: enable control operation for block devices" into tizen

8 years agoMerge "display: fix return value bug" into tizen
Taeyoung Kim [Thu, 28 Apr 2016 06:54:59 +0000 (23:54 -0700)]
Merge "display: fix return value bug" into tizen

8 years agousbhost: change group and permission to system_share and 660 99/67699/2
Taeyoung Kim [Thu, 28 Apr 2016 05:43:59 +0000 (14:43 +0900)]
usbhost: change group and permission to system_share and 660

- Default group of usb device is system. Most of system daemons
  are contained in system group, and thus they can access
  to the usb devices by libusb.
- However, Security issues occurred and some of the system daemons
  need to change their group to their own. Thus the group of the
  usb devices is changed to system_share.
- system_share contains most of system daemons groups

$ cat /etc/group | grep system_share
system_share:!:1051:
    system_fw,web_fw,app_fw,security_fw,multimedia_fw,graphic_fw,
    ui_fw,network_fw,telephony,service_fw,messaging,social,location,
    sensor,sdk,scm,application,broadcasting,testing,buxton,
    key-manager,cynara,dbus,pulse,log

Change-Id: I22d5250a5aeceeb1bef69bc09b790fd884354f74
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: add method for getting block info by ID 79/67679/1
Taeyoung Kim [Thu, 28 Apr 2016 03:21:26 +0000 (12:21 +0900)]
block: add method for getting block info by ID

- Block ID (storage ID of libstorage) is used
  to get block device information.

Change-Id: Ib883ab48a0855c354ac1fe7817805892f3526dce
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: add block id which is used in libstorage 89/67489/1
Taeyoung Kim [Wed, 27 Apr 2016 02:30:13 +0000 (11:30 +0900)]
block: add block id which is used in libstorage

- libstorage uses storage id (block id)
  to handle each block device.
- The id is decided by deviced for libstorage
  not to store block device information.

Change-Id: Ic486ca1d059b5fc6a61e74ac09ae5a8b74f96617
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agotzip: change return value when tzip initiation is in progress 06/66506/3 accepted/tizen/ivi/20160428.003023 accepted/tizen/mobile/20160428.005050 accepted/tizen/tv/20160428.002748 accepted/tizen/wearable/20160428.003127 submit/tizen/20160427.101240
Taeyoung Kim [Tue, 19 Apr 2016 08:28:57 +0000 (17:28 +0900)]
tzip: change return value when tzip initiation is in progress

- Mount request can come even before tzip_mount_thread() is
  created if mount request is called before booting is done.
  In this situation, deviced returns EAGAIN, ans thus
  callers can try again.

Change-Id: I42ee3c37147eaca0a52d0946bae661e884bfd88a
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agotzip: fix issues during large file seek and read operations 96/66496/4
Taeyoung Kim [Mon, 25 Apr 2016 01:06:02 +0000 (10:06 +0900)]
tzip: fix issues during large file seek and read operations

1. Previously read data is used during seek for subsequent read request.
   This minimizes duplicate parsing and reading from ZIP file.
2. Lock during read operation is added.
3. Reset_zipfile function is added since unzSetOffset()
   does not reset file internal values.

Change-Id: I69cc23a0a49bc320eca8d1093bb9633430b13152
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agotzip: file access permission is granted to other users 05/66605/3
Taeyoung Kim [Tue, 19 Apr 2016 23:18:07 +0000 (08:18 +0900)]
tzip: file access permission is granted to other users

- By default application is not allowed to access files.
  Thus other_user options is enabled for applications to access files.

Change-Id: I7785b3b0b783d586d32056ade955aa18e7d8dab7
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agotzip: add seek operation by offset during read file operation 17/66417/3
Taeyoung Kim [Mon, 25 Apr 2016 00:47:22 +0000 (09:47 +0900)]
tzip: add seek operation by offset during read file operation

- If passedd offset is less than current offset,
  file is read from the begining till offset.
- If passed offset is greater than current offset,
  file is read from current position till offset.

Change-Id: Ie76bf8b7b941e49073e33881f96ac016ccafbdbf
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: fix return value bug 59/64859/2
Taeyoung Kim [Wed, 6 Apr 2016 01:05:30 +0000 (10:05 +0900)]
display: fix return value bug

- When get_brightness operation is failed, the dbus method returns
  uninitialized value. Thus it is changed to error number (negative value).

Change-Id: I6e5ca2e6ce2eb20495b4f79640c94d40e6ee4a13
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: enable control operation for block devices 35/66235/4
Taeyoung Kim [Mon, 18 Apr 2016 04:30:51 +0000 (13:30 +0900)]
block: enable control operation for block devices

- If Device Policy Manager (DPM) wants to restrict
  external storages, deviced unmounts all block devices

Change-Id: Ic7b3f68ce88d3081f827f93ddb5b54050c7e7b25
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "block: change name of mount nodes" into tizen
Taeyoung Kim [Sun, 24 Apr 2016 23:43:59 +0000 (16:43 -0700)]
Merge "block: change name of mount nodes" into tizen

8 years agoAdd display.conf for ivi profile 28/66928/1 accepted/tizen/ivi/20160423.060552 accepted/tizen/mobile/20160423.055626 accepted/tizen/tv/20160423.060026 accepted/tizen/wearable/20160423.060311 submit/tizen/20160422.063704
pr.jung [Fri, 22 Apr 2016 04:48:09 +0000 (13:48 +0900)]
Add display.conf for ivi profile

Change-Id: I2c75dcdc2000f4a2911b86a8ec4e2272d6e7cf73
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoblock: change name of mount nodes 28/66228/2
Taeyoung Kim [Mon, 18 Apr 2016 03:18:46 +0000 (12:18 +0900)]
block: change name of mount nodes

- The mount node of MMC devices are changed
  to SdcardA1, Sdcard A2, Sdcard B1, and so on
- The mount node of SCSI devices are changed
  to UsbDriveA1, UsbDriveA2, UsbDriveB1, and so on

Change-Id: Ic8fefb326d7c9cb5d830257d64cf5ecb985a467c
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: enable powerkey longpressed handling 57/63857/5 accepted/tizen/ivi/20160421.011226 accepted/tizen/mobile/20160421.011415 accepted/tizen/tv/20160421.011253 accepted/tizen/wearable/20160421.011256 submit/tizen/20160420.100149
Taeyoung Kim [Mon, 28 Mar 2016 06:20:59 +0000 (15:20 +0900)]
display: enable powerkey longpressed handling

- Display configure files are enabled to apply longpress interval.
- Launch poweroff popup when power key is longpressed.

Change-Id: Id3b50ff486f774bbf48e1e9d7014951f2c6a382b
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "Modify access permission for external storage" into tizen accepted/tizen/common/20160411.125949 accepted/tizen/ivi/20160411.051352 accepted/tizen/mobile/20160411.051404 accepted/tizen/tv/20160411.051343 accepted/tizen/wearable/20160411.051443 submit/tizen/20160411.015331
pr.jung [Mon, 11 Apr 2016 01:51:36 +0000 (18:51 -0700)]
Merge "Modify access permission for external storage" into tizen

8 years agoModify access permission for external storage 21/64721/1
pr.jung [Tue, 5 Apr 2016 05:31:12 +0000 (14:31 +0900)]
Modify access permission for external storage

Change-Id: Ib65a59269edab17a851e46ce070c273afe66025e
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoEnforce http://tizen.org/privilege/externalstorage privilege on vfat mounts 88/64188/1
Rafal Krypa [Wed, 30 Mar 2016 11:25:22 +0000 (13:25 +0200)]
Enforce tizen.org/privilege/externalstorage privilege on vfat mounts

Make sure that mounted external storage is accessible only to holders of
http://tizen.org/privilege/externalstorage privilege.

Change-Id: I57bb17d99306d7e20cee47dadac0e5a7662688aa

8 years agodisplay: change the order of display options 07/64007/1
Taeyoung Kim [Tue, 29 Mar 2016 09:03:26 +0000 (18:03 +0900)]
display: change the order of display options

- When turning off display, touch screen is also turned off.
  But input release events are occurred during turing off
  touchscreen, and these events are invalid event to enlightenment.
  Thus the order is changed from (touchscreen off -> display off)
  to (display off -> touchscreen off) not to occur invalid
  input release events.

Change-Id: Ia5eb384a04cbe8f4420314f7a0abdba633a28df5
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoproc: fix issue between unsigned int and int 26/63726/1
Taeyoung Kim [Fri, 25 Mar 2016 10:04:38 +0000 (19:04 +0900)]
proc: fix issue between unsigned int and int

- read() returns -1 when error occurs. But the variable
  'count' is unsigned int type. Thus it can be a malfunction.
- It is fixed by comparing casted 'count' with -1

Change-Id: I8e984e370f87b67da47b53a12b8abcce88a208cb
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agohaptic: change return value check routine of open() 19/63719/1
Taeyoung Kim [Fri, 25 Mar 2016 09:20:37 +0000 (18:20 +0900)]
haptic: change return value check routine of open()

- open() returns -1 when error is occurred. Thus
  *fd can have negative value. This is fixed
  by checking the value correctly

Change-Id: I2482b86612ca6b76fc799b87fdd82216d8b743d8
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "Add handling code for haptic on wearable device" into tizen accepted/tizen/common/20160324.173304 accepted/tizen/ivi/20160325.032124 accepted/tizen/mobile/20160325.032033 accepted/tizen/tv/20160325.032048 accepted/tizen/wearable/20160325.032111 submit/tizen/20160324.134923
pr.jung [Thu, 24 Mar 2016 13:48:13 +0000 (06:48 -0700)]
Merge "Add handling code for haptic on wearable device" into tizen

8 years agoAdd handling code for haptic on wearable device 61/63561/4
pr.jung [Thu, 24 Mar 2016 12:38:29 +0000 (21:38 +0900)]
Add handling code for haptic on wearable device

Change-Id: I553c4983709464903f78804bcb37250045fce84b
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoMerge "storage: use libstorage to get internal and external storage path" into tizen
Taeyoung Kim [Thu, 24 Mar 2016 11:29:27 +0000 (04:29 -0700)]
Merge "storage: use libstorage to get internal and external storage path" into tizen

8 years agostorage: use libstorage to get internal and external storage path 15/63515/1
Taeyoung Kim [Thu, 24 Mar 2016 10:04:17 +0000 (19:04 +0900)]
storage: use libstorage to get internal and external storage path

- Previously, the paths are hard-coded.
- Now, the paths can be changed according to the policy. Thus
  libstorage is used to get path of the internal and external paths

Change-Id: I16bf14959e0d5bb6b6564392b958022a1d85f9ef
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agocommon: remove thread unsafe function 87/63487/1 accepted/tizen/common/20160324.173118 accepted/tizen/ivi/20160324.131518 accepted/tizen/mobile/20160324.132718 accepted/tizen/tv/20160324.132559 accepted/tizen/wearable/20160324.132547 submit/tizen/20160324.085241
Taeyoung Kim [Thu, 24 Mar 2016 08:12:31 +0000 (17:12 +0900)]
common: remove thread unsafe function

Change-Id: Iddfe9ac9defb124090d06cd0d6a660f1b39c7e40
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "usb: add usb tethering mode" into tizen accepted/tizen/common/20160322.150333 accepted/tizen/ivi/20160322.085329 accepted/tizen/mobile/20160322.085233 accepted/tizen/tv/20160322.085252 accepted/tizen/wearable/20160322.085307 submit/tizen/20160322.031351
Taeyoung Kim [Tue, 22 Mar 2016 03:12:44 +0000 (20:12 -0700)]
Merge "usb: add usb tethering mode" into tizen

8 years agoMerge "Remove unreachable code and thread unsafety usage and change strcpy, strcat... accepted/tizen/common/20160318.145859 accepted/tizen/ivi/20160318.113911 accepted/tizen/mobile/20160318.113729 accepted/tizen/tv/20160318.113809 accepted/tizen/wearable/20160318.113756 submit/tizen/20160318.062052
pr.jung [Thu, 17 Mar 2016 12:09:47 +0000 (05:09 -0700)]
Merge "Remove unreachable code and thread unsafety usage and change strcpy, strcat, sprintf." into tizen

8 years agoRemove unreachable code and thread unsafety usage and change strcpy, strcat, sprintf. 42/62442/5
pr.jung [Wed, 16 Mar 2016 06:37:54 +0000 (15:37 +0900)]
Remove unreachable code and thread unsafety usage and change strcpy, strcat, sprintf.

- strerror -> strerror_r
- localtime -> localtime_r
- asctime -> asctime_r
- strcpy -> strncpy
- strcat -> strncat

Change-Id: Icdf75741fe59cfcbd3922ed8e452ed619db110c7
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agodisplay: fix bug to store display lock info 12/62412/1 accepted/tizen/common/20160316.160722 accepted/tizen/ivi/20160316.082124 accepted/tizen/mobile/20160316.082031 accepted/tizen/tv/20160316.082050 accepted/tizen/wearable/20160316.082108 submit/tizen/20160316.070142
Taeyoung Kim [Wed, 16 Mar 2016 04:27:08 +0000 (13:27 +0900)]
display: fix bug to store display lock info

- Previously, locking a state means that display state
  cannot be changed to the state. Thus (state + 1) element
  of the lock info array was used to store the information.

- Now, locking a state means that the state cannot be chaged
  to other display state. Thus (state) element of the
  lock info array is used to store the information.

Change-Id: I95809716706039da80355957b9445f95122478f2
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agousb: add usb tethering mode 12/62312/2
Taeyoung Kim [Tue, 15 Mar 2016 10:13:11 +0000 (19:13 +0900)]
usb: add usb tethering mode

- usb tethering is triggered by vconf key
- If usb tethering is enabled, rndis gadget is loaded.

Change-Id: Iffb8ca2391e54630a03737b1e631d6ace016e1a1
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: fix state change operation for key input 52/62252/1 accepted/tizen/common/20160315.221845 accepted/tizen/ivi/20160315.124517 accepted/tizen/mobile/20160315.124414 accepted/tizen/tv/20160315.124435 accepted/tizen/wearable/20160315.124457 submit/tizen/20160315.091555
Taeyoung Kim [Tue, 15 Mar 2016 05:24:19 +0000 (14:24 +0900)]
display: fix state change operation for key input

- The previous codes were legacy and it did not
  work. Thus the codes are updated to use
  pm_change_internal().

Change-Id: Ic8c175c6b479753be95b231f59215cd95cb72232
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agocommon; remove sysman, devman, libslp-pm, and libhaptic 48/61448/1 accepted/tizen/common/20160314.065521 accepted/tizen/ivi/20160308.101740 accepted/tizen/ivi/20160310.052639 accepted/tizen/mobile/20160308.101640 accepted/tizen/mobile/20160310.052529 accepted/tizen/tv/20160308.101657 accepted/tizen/tv/20160310.052556 accepted/tizen/wearable/20160308.102023 accepted/tizen/wearable/20160310.052612 submit/tizen/20160305.131859 submit/tizen/20160308.051626 submit/tizen_common/20160311.185532
Taeyoung Kim [Tue, 8 Mar 2016 03:25:51 +0000 (12:25 +0900)]
common; remove sysman, devman, libslp-pm, and libhaptic

They are deprecated libraries. Thus they are removed from deviced

Change-Id: Ib85572e8aa0e2b1728f574506e63db7190631842
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "lib: add library for glib and gio explicitly" into tizen
Taeyoung Kim [Tue, 8 Mar 2016 02:54:48 +0000 (18:54 -0800)]
Merge "lib: add library for glib and gio explicitly" into tizen

8 years agoRevert "packaging: removed '-Wl,as-needed' for build error." 45/61445/1
Taeyoung Kim [Tue, 8 Mar 2016 02:50:46 +0000 (11:50 +0900)]
Revert "packaging: removed '-Wl,as-needed' for build error."

This reverts commit fc89964553e51725ef402dd24bb8b4a5586c205b.

Change-Id: I8cad7060b7038071474684237c2cfe35976001e1
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agolib: add library for glib and gio explicitly 44/61444/1
Taeyoung Kim [Tue, 8 Mar 2016 02:44:52 +0000 (11:44 +0900)]
lib: add library for glib and gio explicitly

- glib dependency is added. The library was added
  by other libraries. Now, the dependency is
  added explicitly.
- gio is added to the library list of libshared.a.
  The library was skipped and thus link problem
  existed. Thus the dependency is added explicitly.

Change-Id: I6fac63ea40cd6084ad3785783c297e2d193c1c7e
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agopackaging: removed '-Wl,as-needed' for build error. 19/60519/3 accepted/tizen/common/20160307.154558 accepted/tizen/ivi/20160307.111402 accepted/tizen/ivi/20160308.105710 accepted/tizen/mobile/20160307.111307 accepted/tizen/mobile/20160308.105805 accepted/tizen/tv/20160307.111320 accepted/tizen/tv/20160308.105635 accepted/tizen/wearable/20160307.111339 accepted/tizen/wearable/20160308.105651 submit/tizen/20160307.091752 submit/tizen/20160308.104824
Dongkyun, Son [Sun, 28 Feb 2016 22:23:45 +0000 (07:23 +0900)]
packaging: removed '-Wl,as-needed' for build error.

Change-Id: I3cbe4ac0b1279da14583113544105bc7e1a75fca
Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
8 years agoMerge "display: change display state from standby to suspend automatically" into...
Taeyoung Kim [Mon, 29 Feb 2016 11:56:39 +0000 (03:56 -0800)]
Merge "display: change display state from standby to suspend automatically" into tizen

8 years agoMerge "display: add filter for standby mode" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:35 +0000 (03:56 -0800)]
Merge "display: add filter for standby mode" into tizen

8 years agoMerge "display: change display interfaces for TV profile" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:30 +0000 (03:56 -0800)]
Merge "display: change display interfaces for TV profile" into tizen

8 years agoMerge "display: add state functions for TV profile" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:25 +0000 (03:56 -0800)]
Merge "display: add state functions for TV profile" into tizen

8 years agoMerge "display: disable timeout and input module" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:21 +0000 (03:56 -0800)]
Merge "display: disable timeout and input module" into tizen

8 years agoMerge "display: change display lock/unlock/change condition" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:15 +0000 (03:56 -0800)]
Merge "display: change display lock/unlock/change condition" into tizen

8 years agoMerge "display: change lock condition name using current state" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:06 +0000 (03:56 -0800)]
Merge "display: change lock condition name using current state" into tizen

8 years agoMerge "display: remove standby mode from common profile" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:01 +0000 (03:56 -0800)]
Merge "display: remove standby mode from common profile" into tizen

8 years agoMerge "display: add action/trans/check change functions to support other profiles...
Taeyoung Kim [Mon, 29 Feb 2016 11:55:57 +0000 (03:55 -0800)]
Merge "display: add action/trans/check change functions to support other profiles" into tizen

8 years agoMerge "display: add lcd on/off complete signal" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:55:53 +0000 (03:55 -0800)]
Merge "display: add lcd on/off complete signal" into tizen

8 years agoMerge "display: recover display lock according to the app state" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:55:49 +0000 (03:55 -0800)]
Merge "display: recover display lock according to the app state" into tizen

8 years agoMerge "display: release display lock when apps go to background" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:55:40 +0000 (03:55 -0800)]
Merge "display: release display lock when apps go to background" into tizen

8 years agodisplay: change display state from standby to suspend automatically 33/60633/1
Taeyoung Kim [Mon, 29 Feb 2016 11:23:26 +0000 (20:23 +0900)]
display: change display state from standby to suspend automatically

- In TV profile, Standby mode will be changed to suspend mode
  if none of apps lock the S_LCDOFF.

- display unlock event is added to update display state
  after unlocking display state.

Change-Id: I9096396b5e9d90e0ffab712c327d6c2603747a2f
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: add filter for standby mode 62/60562/1
Taeyoung Kim [Mon, 29 Feb 2016 05:20:22 +0000 (14:20 +0900)]
display: add filter for standby mode

- The method for changing display status did not handle standby mode.
  Thus the filter for standby mode is added.

- In the standby mode, display should be turned off. Thus,
  display off operation is added.

Change-Id: I15ff5a7d73cc18b23ee317a58621aa8625dc287d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: change display interfaces for TV profile 57/60557/1
Taeyoung Kim [Mon, 29 Feb 2016 04:08:59 +0000 (13:08 +0900)]
display: change display interfaces for TV profile

- TV profile targer does not use same interfaces
  of Mobile and Wearable profiles. Thus TV interfaces
  are added. The interfaces can be divided to HAL.

Change-Id: Ia9b657ac685b384b3e3b760f6aa1259df483353e
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: add state functions for TV profile 56/60556/3
Taeyoung Kim [Mon, 29 Feb 2016 03:54:56 +0000 (12:54 +0900)]
display: add state functions for TV profile

- The display states and their operations of TV profile
  is quite different with Mobile and Wearable Profiles
  Thus the new states are added.

Change-Id: I5938967fdbfc29c70d29d228e447d03ed9611acf
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: disable timeout and input module 55/60555/1
Taeyoung Kim [Mon, 29 Feb 2016 03:38:57 +0000 (12:38 +0900)]
display: disable timeout and input module

- Display status of TV profile is not changed by timeout.
  Thus timeout_enable field is added to the conf file.
- Inputs from touch screen and HW keys of TV profile are
  handled at other modules. Thus deviced of TV profile
  does not handle inputs.

Change-Id: If969337325a397eaa2955b1d06e645f06f34f9ec
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "block: change mount path to TZ_SYS_MEDIA" into tizen submit/tizen/20160229.000000
Taeyoung Kim [Mon, 29 Feb 2016 03:14:53 +0000 (19:14 -0800)]
Merge "block: change mount path to TZ_SYS_MEDIA" into tizen

8 years agodisplay: change display lock/unlock/change condition 03/60103/3
Taeyoung Kim [Tue, 23 Feb 2016 09:54:24 +0000 (18:54 +0900)]
display: change display lock/unlock/change condition

- Previously, the condition value showed the state information
  and flags. However, it supposed that just 4 states exist
  such as S_NORMAL, S_LCDDIM, S_LCDOFF, and S_SLEEP. Thus
  the condition value could not contain more states.

- Now, the condition value is modified. First 8 bits show
  the state to lock/unlock/change. Second 8 bits show
  the request type such as lock, unlock, and change. Third
  8 bits show the flags. And fourth 8bits are reserved.

Change-Id: I63a6478b0d1f94abae76c70612d3fac80f05526d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: change lock condition name using current state 73/60073/4
Taeyoung Kim [Tue, 23 Feb 2016 07:06:36 +0000 (16:06 +0900)]
display: change lock condition name using current state

- Previously, lock condition name used next state.
   (ex. S_LCDOFF lock -> cond_head[S_SLEEP],
        S_LCDDIM lock -> cond_head[S_LCDOFF],
        S_NORMAL lock -> cond_head[S_LCDDIM])
  However, the name is confusing. cond_head[S_SLEEP] means
  that the state cannot be changed to S_SLEEP. But this
  supposes that the next state of S_LCDOFF is S_SLEEP.
  Thus there will be problems if the state transition table
  is changed.

- Now, lock condition name uses the current state.
   (ex. S_LCDOFF lock -> cond_head[S_LCDOFF],
        S_LCDDIM lock -> cond_head[S_LCDDIM],
        S_NORMAL lock -> cond_head[S_NORMAL])
  Thus there is no confusing. cond_head[S_LCDOFF] means
  that S_LCDOFF state is locked.

Change-Id: I6c00430651354fb853967d58d53dbc232d1e1e97
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "ir: Add IR methods" into tizen accepted/tizen/ivi/20160223.231449 accepted/tizen/mobile/20160223.231401 accepted/tizen/tv/20160223.231414 accepted/tizen/wearable/20160223.231431 submit/tizen/20160223.043930 submit/tizen/20160223.045047
pr.jung [Tue, 23 Feb 2016 04:38:59 +0000 (20:38 -0800)]
Merge "ir: Add IR methods" into tizen

8 years agoir: Add IR methods 82/59182/5
pr.jung [Thu, 11 Feb 2016 07:56:33 +0000 (16:56 +0900)]
ir: Add IR methods

- IRIsAvailable : Get information whether ir is available
- TransmitIR : Transmit ir pattern

Change-Id: Ic3f62ad4bb8747e79891dbfeb2001aec32ad5e0d
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agodisplay: remove standby mode from common profile 52/60052/1
Taeyoung Kim [Tue, 23 Feb 2016 01:11:52 +0000 (10:11 +0900)]
display: remove standby mode from common profile

- Standby mode will be added as a separated power state.
  Thus the standby mode of common profile scatterd
  in the codes is removed

Change-Id: I93fd085f7d5d42f6e415d72420f7ffaf034da236
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: add action/trans/check change functions to support other profiles 87/59987/1
Taeyoung Kim [Mon, 22 Feb 2016 06:07:21 +0000 (15:07 +0900)]
display: add action/trans/check change functions to support other profiles

- Currently, default_action(), default_trans(), and default_check()
  are supported for common profile operation. But Other profiles
  can be necessary to fix the operations of each state. Thus change
  functions are added.

Change-Id: I9de7e1b775a2dcb9b8a68197ffac5013bd741627
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: add lcd on/off complete signal 47/59747/1
Taeyoung Kim [Thu, 18 Feb 2016 06:30:52 +0000 (15:30 +0900)]
display: add lcd on/off complete signal

- LCD on/off takes some time. But previous signal
  notices that LCD will be turned on/off. Thus
  Apps can show unexpected operations during
  LCD on/off.

- LCD on/off complete signal notices that LCD state
  is changed completely.

Change-Id: I4a10df22969f819c2c3f904f83dbe623e3ee369d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: recover display lock according to the app state 39/59739/1
Taeyoung Kim [Thu, 18 Feb 2016 05:17:11 +0000 (14:17 +0900)]
display: recover display lock according to the app state

- If an app locks display, and goes to bakcground status,
  display lock information is removed and the lock is released.
  But the display lock is not discovered when the app status
  is changed to foreground. This is not the predicted situation
  for apps

- Now, The display lock is released and but the lock information
  is not removed. Thus the display lock can be recovered
  when the app status is changed to foreground.

Change-Id: I8395b43908cd798ce992e04569326dccd8876747
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: release display lock when apps go to background 65/59365/3
Taeyoung Kim [Mon, 15 Feb 2016 06:01:26 +0000 (15:01 +0900)]
display: release display lock when apps go to background

- When background apps lock display, power consumption is
  increased. Thus background app should release display lock.

- deviced gets app background information from resourced (dbus signal)
  When the information is delivered, deviced just checks
  the app status. And the display lock is released when
  display state is changed.

Change-Id: Ia3f5f1bbf311fc4784cd469e078ce4f476372420
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: change mount path to TZ_SYS_MEDIA 33/59633/1
Taeyoung Kim [Wed, 17 Feb 2016 05:12:46 +0000 (14:12 +0900)]
block: change mount path to TZ_SYS_MEDIA

- Tizen Directory policy is changed. The block device mount paths
  are located under the TZ_SYS_MEDIA (/opt/media)

Change-Id: I4e79ec4044ec3c41ead1074aaf2e66675699feb3
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "usb: use first usb configuration for sdb" into tizen
Taeyoung Kim [Mon, 15 Feb 2016 09:26:02 +0000 (01:26 -0800)]
Merge "usb: use first usb configuration for sdb" into tizen

8 years agoMerge "display: SMAST is removed" into tizen
Taeyoung Kim [Thu, 4 Feb 2016 01:51:30 +0000 (17:51 -0800)]
Merge "display: SMAST is removed" into tizen

8 years agoMerge "display: remove unused macros" into tizen
Taeyoung Kim [Thu, 4 Feb 2016 01:50:43 +0000 (17:50 -0800)]
Merge "display: remove unused macros" into tizen

8 years agoMerge "display: remove extreme signal handler" into tizen
Taeyoung Kim [Thu, 4 Feb 2016 01:50:14 +0000 (17:50 -0800)]
Merge "display: remove extreme signal handler" into tizen

8 years agoblock: Fix security issues 63/58163/2 accepted/tizen/ivi/20160218.024010 accepted/tizen/mobile/20160203.050750 accepted/tizen/tv/20160203.050802 accepted/tizen/wearable/20160203.050823 submit/tizen/20160202.095947 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000003
pr.jung [Thu, 28 Jan 2016 05:18:12 +0000 (14:18 +0900)]
block: Fix security issues

 - Set mount flag MS_NOSUID | MS_NOEXEC.
 - Run mmc-smack-label command on file and directory (not include symlink)

Change-Id: I65efcaa5d3e27e1da08102a9ed6acad27a7e5709
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoMerge "haptic: Modify magnitude for haptic" into tizen accepted/tizen/mobile/20160122.033249 accepted/tizen/tv/20160122.033439 accepted/tizen/wearable/20160122.033731 submit/tizen/20160121.045114
pr.jung [Thu, 21 Jan 2016 04:49:52 +0000 (20:49 -0800)]
Merge "haptic: Modify magnitude for haptic" into tizen

8 years agousb: use first usb configuration for sdb 47/57347/1
Taeyoung Kim [Tue, 19 Jan 2016 09:06:46 +0000 (18:06 +0900)]
usb: use first usb configuration for sdb

- Tizen policy is changed to use sdb on first usb configuration.
  Thus all gadgets such as mtp, acm, and sdb are moved to
  first usb configuration.

Change-Id: Ia021ef6fb441206ff2a13c521acf8a77c1bd0869
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: check if the LCDAlwaysOn is set before changing next state 39/57139/1 accepted/tizen/mobile/20160118.084542 accepted/tizen/tv/20160118.084610 accepted/tizen/wearable/20160118.084634 submit/tizen/20160118.054528
Taeyoung Kim [Fri, 15 Jan 2016 09:57:49 +0000 (18:57 +0900)]
display: check if the LCDAlwaysOn is set before changing next state

Change-Id: I87fcb34e1395b7abbdfc52b5af8f411f3fe58ed9
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agohaptic: Modify magnitude for haptic 63/56463/5
pr.jung [Fri, 8 Jan 2016 08:30:00 +0000 (17:30 +0900)]
haptic: Modify magnitude for haptic

Previous value was too small
Max magnitude for RUMBLE : 0xFFFF

Change-Id: Id8190cd8455728664977d4b8d5b44fd69b16b3c8
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agodisplay: SMAST is removed 55/56955/1
Taeyoung Kim [Thu, 14 Jan 2016 00:56:56 +0000 (09:56 +0900)]
display: SMAST is removed

- SMAST is not supported from the platform deviced.
  Thus macro and related codes are removed

Change-Id: I345d3cb14e755dd4ed85e7043246b30cdf88ef0b
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
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>