pr.jung [Tue, 5 Jul 2016 09:01:11 +0000 (02:01 -0700)]
Merge "[haptic]Add deviced-vibrator permission rules" into tizen
taeyoung [Tue, 28 Jun 2016 07:20:35 +0000 (16:20 +0900)]
display: broadcast display status via eventsystem
- Eventsystem is official tool to broadcast system event.
Thus it is also used for the display status.
Change-Id: Ib19507e9b7bdc74a7ae51d4e551b4ba086b08bc1
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 5 Jul 2016 08:58:17 +0000 (01:58 -0700)]
Merge "usb: broadcast usb status via eventsystem" into tizen
pr.jung [Tue, 5 Jul 2016 08:08:48 +0000 (17:08 +0900)]
[haptic]Add deviced-vibrator permission rules
- Add deviced-vibrator permission rules
- Add vibrate_effect and is_supported for emulator
- Fix bus name used by libdeviced
Change-Id: I9ddef1c7aabfb876887bb1a3d5f5c9560947dafe
Signed-off-by: pr.jung <pr.jung@samsung.com>
Taeyoung Kim [Fri, 1 Jul 2016 00:59:48 +0000 (17:59 -0700)]
Merge "Add and remove error checking code" into tizen
taeyoung [Thu, 30 Jun 2016 10:10:56 +0000 (19:10 +0900)]
common: set PATH env
- PATH env need to be added since system PATH env
can have weird paths.
Change-Id: Ibc45f18b2a607724d60b9a1c2fe7ba4ef8340c49
Signed-off-by: taeyoung <ty317.kim@samsung.com>
pr.jung [Tue, 28 Jun 2016 06:34:53 +0000 (15:34 +0900)]
[haptic]Remove build fails
Change-Id: I7cbf7d8e9b45acb8fde9b39bcea30f10cfb4792e
Signed-off-by: pr.jung <pr.jung@samsung.com>
Kichan Kwon [Wed, 29 Jun 2016 09:19:09 +0000 (18:19 +0900)]
Add and remove error checking code
- haptic : check whether value is positive number
- block : remove needless checking
Change-Id: I4e85afc973afd861833c45b4d070291ce65c69f7
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
taeyoung [Tue, 28 Jun 2016 07:11:30 +0000 (16:11 +0900)]
usb: broadcast usb status via eventsystem
- Eventsystem is official tool to broadcast system event.
Thus it is also used for the usb status.
Change-Id: I0a07268edcc463cf12e037af589b4e266d8e1fd2
Signed-off-by: taeyoung <ty317.kim@samsung.com>
pr.jung [Mon, 30 May 2016 11:17:37 +0000 (20:17 +0900)]
[haptic]Add another logic for haptic
In this logic, haptic has 3 configuration files,
vibration.conf, vibration_duration.conf, vibration_waiting.conf
one is for duration and waiting pattern mapping table
and the others are for duration and waiting pattern definition.
(Ex. PATTERN1 = D1,W1
D1 = 100,200
W1 = 100,200,300)
vibrate_effect vibrate with the combination of duration and waiting pattern.
Change-Id: I3d6aafe7c32ddb301393a63e9f88c5fc1f1a02c2
Signed-off-by: pr.jung <pr.jung@samsung.com>
pr.jung [Mon, 30 May 2016 10:51:22 +0000 (19:51 +0900)]
[haptic]Improve feedback operation
Parse vibration configuration file in deviced-vibrator instead of libfeedback,
so it is parsed only once.
Vibration configuration file has duration for playing and waiting time.
Also, VibrateEffect and IsSupported are added.
IsSupported is used for checking whether specific pattern is supported on haptic device.
VibrateEffect gets pattern string and plays haptic.
deviced-vibrator gets duration pattern from parsed configuration and plays.
VibrateEffect is used instead of VibrateBuffer and VibrateMonotone.
Change-Id: Ib624a94ce507f7799a4fe8ac2a4bf4d0ad189ce2
Signed-off-by: pr.jung <pr.jung@samsung.com>
pr.jung [Mon, 30 May 2016 09:53:06 +0000 (18:53 +0900)]
[haptic] Seperate haptic operation to deviced-vibrator daemon from deviced
Add deviced-vibrator daemon
Change-Id: I38f53e6c2ecdf202d5da8f3ddb604c1833528842
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Sat, 18 Jun 2016 08:32:56 +0000 (17:32 +0900)]
usb: handle usb connection on emulator
- On emulator, There is no usb configuration concept.
Thus usb connection operataion was failed during
setting configuration.
- Now, usb configuration is skipped on emulator.
Thus other states are updated, and indicator shows
the usb icon.
Change-Id: If3756cde29ac25f09ef2aa82636dac1b471e9356
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Fri, 17 Jun 2016 12:32:49 +0000 (21:32 +0900)]
block: fix warnings
- The types of paths are changed to "const char*"
Change-Id: If0f4ba5483521aedee847b14d1e5f12926b7f4c5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Fri, 17 Jun 2016 11:46:24 +0000 (20:46 +0900)]
block: support internal apis for mount/unmount/format
- Internal apis for mount/unmount/format need to be
supported for the backward compatibility. They are
used in Setting app currently
- The apis use libstorage to get storage information
and dbus methods to request operations to deviced.
Change-Id: Id96b33f39c11778dffb1867db482caf8b749ce35
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Fri, 17 Jun 2016 11:42:06 +0000 (20:42 +0900)]
block: set vconf key related with mmc
- Setting app uses VCONFKEY_SYSMAN_MMC_MOUNT.
Thus the vconf key value is set for the
backward compatibility.
Change-Id: I873bb7577e197ac52a90748339cff46c7e0a41cd
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Fri, 17 Jun 2016 11:18:57 +0000 (20:18 +0900)]
block: change dbus connection to block connection
- When returning the results of the mount/unmount/format
operations, dbus connection of the deviced was used.
Thus the return value cannot be delivered to apps.
- Now the dbus connection is changed to the block connection.
Thus the return value can be delivered to apps properly.
Change-Id: I90527a09da59558a5256c889b64e2e343b2629c0
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Kunhoon Baik [Fri, 17 Jun 2016 14:42:56 +0000 (23:42 +0900)]
Temporary Patch for preventing early suspend.
This patch should be removed by generic and better solution.
This patch should be tested at other devices.
Change-Id: I4b3741ade8943f2c5b8de369877bcd367145bbea
Kunhoon Baik [Fri, 17 Jun 2016 12:35:32 +0000 (21:35 +0900)]
Providing backward compatibility for APPs in the store
Some apps assumes that primary external storage id is "1".
Basically, the app should be fixed for using libstorage APIs correctly.
However, we will provide some backward compatibility patches to reduce PAINS.
Change-Id: I040736e3069104f9f9f4da3bd6b9c03c559bfe95
Taeyoung Kim [Fri, 13 May 2016 02:44:18 +0000 (11:44 +0900)]
battery: add dbus method to get all of battery information
- Apps want to know the battery status in detail, and thus
the getter of the all battery information is required
Change-Id: I5b21e9f73f83cab1aaec73802933a8814f259984
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 4 May 2016 07:51:54 +0000 (16:51 +0900)]
battery: apply battery HAL
- Previously, battery module checked uevents and standard interfaces
of mainline kernel. This is standard, but it cannot be used with
other version of kernels such as android kernel. Thus battery HAL
is applied.
Change-Id: I021d9c09232f86897903097de6cb7e5ca8d46303
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Taeyoung Kim [Mon, 13 Jun 2016 06:29:41 +0000 (15:29 +0900)]
block: send device insert/remove signal with device information
- Previously, insert/remove signals just contain the dbus object
information. Thus just devnode information need to be compared
to distinguish devices.
- Now, insert/remove signals with device information are newly
added. The signals do not contain dbus object information but
contain device infotmation.
Change-Id: Idbe26696fac1c9952c0f241cb810a1ad7ca99c16
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
taeyoung [Tue, 14 Jun 2016 09:41:37 +0000 (18:41 +0900)]
Revert "Revert "display: enable auto sleep for suspend mode""
This reverts commit
4b3b175c394d45a3273ce00815cd1c4a61d81a7a.
Change-Id: I71d510ba06548ab32d849d46e1e6291b39000d09
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 31 Mar 2016 00:34:17 +0000 (09:34 +0900)]
display: deny LCD DIM request for TV profile
- TV profile does not have LCD DIM state. However
apps can request to change display state to dim state.
Thus available state check routine is added to
lock/unlock/change state functions.
Change-Id: I836315b5b233c0cc931a79313285f6e0c419b6e2
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 11 May 2016 00:24:56 +0000 (09:24 +0900)]
block: mount tmpfs on block mount root path
- Previously, block mount root path was just a directory.
Thus the mount path was remained if the storage is removed
after poweroff. This occurred malfunction of apps
which scan the mount root path.
- Now the block mount root path is mounted to tmpfs.
Thus the mount path is removed after poweroff.
Change-Id: Icc959bbd5bac9e20d7a182230ec40e56c23e752e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
pr.jung [Tue, 29 Mar 2016 10:53:23 +0000 (19:53 +0900)]
Merge storage and block
Change-Id: I47f7a932710126857a94e7e4ed8a6a61ccc726b3
Signed-off-by: pr.jung <pr.jung@samsung.com>
Kunhoon Baik [Fri, 10 Jun 2016 12:34:27 +0000 (05:34 -0700)]
Revert "display: enable auto sleep for suspend mode"
This reverts commit
a45a20dd0dfcfb51002ede2daced110777a9ed69.
Change-Id: I7a12e79b08017ecb8bef24cb42eb010fa8cb8a0a
Taeyoung Kim [Fri, 10 Jun 2016 03:15:46 +0000 (12:15 +0900)]
display: add reason on the lcd off signal
- Previouly lcd off signal did not have any informaiton.
- Now lcd off signal contains the reason information.
Thus other apps can know why the lcd is turned off.
Change-Id: Ie16e0cf3713197438de5bec8481aa11615616d27
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 8 Jun 2016 14:03:42 +0000 (23:03 +0900)]
block: do not change the permission of external storages
- For the ivi x86_64 devices, the external storage is used
as a hard drive. Thus it has kernel and other system features
and the permission of the storage should not be changed.
Change-Id: Ib1500592cad8edf15bff96b4de391585bf3603aa
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Tue, 7 Jun 2016 11:43:09 +0000 (20:43 +0900)]
battery: show notification when battery status is changed
- The dbus interface to show notification is changed.
Change-Id: Ib954619dc0b8afbe62e5ddf368fae12a1a19f880
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Mon, 30 May 2016 05:16:21 +0000 (14:16 +0900)]
display: enable auto sleep for suspend mode
- Power autosleep should be enabled to go to suspend mode
with power lock/unlock concept. The autosleep is
enabled during init procedure of display module.
Change-Id: I0a53e70691dbda97079512114677aed282ea9c61
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Mon, 30 May 2016 04:22:51 +0000 (21:22 -0700)]
Merge "mmc: remove redundant comment" into tizen
sunm.lee [Wed, 25 May 2016 06:07:01 +0000 (15:07 +0900)]
mmc: remove redundant comment
Remove the redundant codes which are not used anymore.
Change-Id: I6b933c41e33e038f52af85c77d0116b921132b4d
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
Taeyoung Kim [Fri, 27 May 2016 07:12:16 +0000 (16:12 +0900)]
usb: run all operations even if one is failed
- There is no mtp-responder in N4 image. Thus
usb module failed to launch mtp-responder.
But launching sdbd was not operated due to
the failure of mtp-responder. Thus sdb was
not working.
- The issue is fixed by run all operations
even if one is failed.
Change-Id: I084a9cbbf882ec38b71f06bb0af5566349ea93fb
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Fri, 27 May 2016 01:58:49 +0000 (10:58 +0900)]
common: apply ASLR
- Previous:
ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=
83e456826faaf4308b6429e5bf4a2e853d3c1370, stripped
- Now:
ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=
ce84a007670a4c5b88a90dbc78f2408e4088381b, stripped
Change-Id: I03a77746e2355990b7e40433bf2441b29131d0ba
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 25 May 2016 09:55:11 +0000 (18:55 +0900)]
block: enable block module for common profile
- libstorage apis request storage list to deviced.
However block module is disabled for common profile,
and the requests are failed. Thus the block module
is enabled by default.
Change-Id: Idf793ec995784bf26f1e3000cfa46670148d8481
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
pr.jung [Thu, 19 May 2016 06:06:32 +0000 (15:06 +0900)]
[block]Devide dbus connection of block module
Change-Id: Ia4687c337e02dc4b2afe668725d33c9a7aa5a045
Signed-off-by: pr.jung <pr.jung@samsung.com>
Taeyoung Kim [Mon, 23 May 2016 23:58:23 +0000 (08:58 +0900)]
block: enable block module for Wearable profile
- Wearable profile does not support external storages
However other apps will request to deviced to get
external storage information. This occurs dbus error.
- Thus the block module is enabled to handle the request
from apps. Reducing memory usage is a future work.
Change-Id: I9bb5dff5fc7e4935992bb29d793deead96cf5885
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Fri, 20 May 2016 02:23:46 +0000 (11:23 +0900)]
Revert "block: change permission of mount path for user session daemons"
This reverts commit
7df6c626f35435561a4d7e9bee76de464f69b6d8.
Change-Id: I6bc60f3622d9ce2e4951d4af6321d57a2a6c13f2
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Paweł Szewczyk [Tue, 10 May 2016 13:02:26 +0000 (15:02 +0200)]
usbhost: Add udev rule
- smack label is changed to "*" for others to use the usb devices
Change-Id: Ibc41f48929d4db5a500013c739861faa7fd931ef
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
sunm.lee [Tue, 17 May 2016 02:05:20 +0000 (11:05 +0900)]
libdeviced: Apply Tizen coding rule
Apply Tizen coding rule to src/libdeviced.
Change-Id: Icb486556e6a4f8237c429e8efe9c87fd18daa72c
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
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>
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>
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>
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
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>
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>
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
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
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>
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
Taeyoung Kim [Wed, 4 May 2016 06:16:15 +0000 (23:16 -0700)]
Merge "block: change node name of mount path" into tizen
Taeyoung Kim [Wed, 4 May 2016 06:16:10 +0000 (23:16 -0700)]
Merge "block: support sdcard of emulator" into tizen
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>
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>
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>
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>
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
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
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
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>
Taeyoung Kim [Thu, 28 Apr 2016 09:19:48 +0000 (02:19 -0700)]
Merge "display: change the order of display options" 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
Taeyoung Kim [Thu, 28 Apr 2016 09:19:14 +0000 (02:19 -0700)]
Merge "haptic: change return value check routine of open()" 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
Taeyoung Kim [Thu, 28 Apr 2016 06:54:59 +0000 (23:54 -0700)]
Merge "display: fix return value bug" into tizen
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>
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>
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>
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>
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>
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>
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>
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>
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>
Taeyoung Kim [Sun, 24 Apr 2016 23:43:59 +0000 (16:43 -0700)]
Merge "block: change name of mount nodes" into tizen
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>
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>
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>
pr.jung [Mon, 11 Apr 2016 01:51:36 +0000 (18:51 -0700)]
Merge "Modify access permission for external storage" into tizen
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>
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
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>
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>
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>
pr.jung [Thu, 24 Mar 2016 13:48:13 +0000 (06:48 -0700)]
Merge "Add handling code for haptic on wearable device" into tizen
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>
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
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>
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>
Taeyoung Kim [Tue, 22 Mar 2016 03:12:44 +0000 (20:12 -0700)]
Merge "usb: add usb tethering mode" into tizen
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
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>
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>
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>
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>
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>
Taeyoung Kim [Tue, 8 Mar 2016 02:54:48 +0000 (18:54 -0800)]
Merge "lib: add library for glib and gio explicitly" into tizen
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>
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>