platform/core/system/deviced.git
6 years agopm: set powerlock at deviced init time 25/180125/8 submit/tizen/20180531.061428
Donghwan Jeong [Fri, 25 May 2018 04:40:25 +0000 (13:40 +0900)]
pm: set powerlock at deviced init time

While the powerlock is unlocked, system can fall asleep even at the Normal state.
For instance, you can see this problem right after deviced is restarted by suspend-time crash.

Change-Id: Ibb5422409de1cf45d7e70df25c58b0f6bea0e049
Signed-off-by: Donghwan Jeong <dh.jeong@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoSychronize internal apis with ones in device 56/180356/1 submit/tizen/20180528.132417
lokilee73 [Mon, 28 May 2018 13:17:20 +0000 (22:17 +0900)]
Sychronize internal apis with ones in device

Change-Id: I4023ce26db5befde2da12661e0d3bf5191580cc6
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoAdd condition to remove unnecessary logs in timeout_handler 73/180173/2
lokilee73 [Fri, 25 May 2018 07:43:51 +0000 (16:43 +0900)]
Add condition to remove unnecessary logs in timeout_handler

Lots of logs in timeout_handler are printed in special condition.
LCD always on + changestate of S_LCDOFF by dbus request
So, add condition of pm_cur_state to remove timer.

Change-Id: Ibaed3baa638097771a53d02028bd0f32694794fb
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoRemove logs in timeout_handler 10/179610/1 accepted/tizen/unified/20180521.003454 submit/tizen/20180518.133141
lokilee73 [Fri, 18 May 2018 13:25:12 +0000 (22:25 +0900)]
Remove logs in timeout_handler

Change-Id: Ibc35dc73f7cd7615b6d37a9853c0505d6d11bdcd
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agodbus-policy: remove unnecessary rule 66/179166/1 accepted/tizen/unified/20180516.162339 submit/tizen/20180516.115228
sanghyeok.oh [Wed, 16 May 2018 07:02:26 +0000 (16:02 +0900)]
dbus-policy: remove unnecessary rule

Change-Id: Ie0520916de700ec531062b99e099546ab9bd0e2c
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agousb-host-ffs-test-daemon: Improve error handling 02/172002/9 accepted/tizen/unified/20180514.144941 submit/tizen/20180514.115021
Paweł Szewczyk [Wed, 7 Mar 2018 13:35:40 +0000 (14:35 +0100)]
usb-host-ffs-test-daemon: Improve error handling

 - Added ep0 thread for handling disable requests
 - Errors are handled by simply reseting the threads
 - Added few race-condition protecting locks and conditions.
 - Sleep at few critical points (workaround for race conditions that
   couldn't be identified so far)

Change-Id: I9e0f9de975493390251763d6f07eea550b77ed6d
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoRemove README.error.code 11/178211/1 accepted/tizen/unified/20180509.073053 submit/tizen/20180509.001007
Hyotaek Shim [Wed, 9 May 2018 00:07:00 +0000 (09:07 +0900)]
Remove README.error.code

Change-Id: I78881d49d62c37f107cc048dc448fed29531bf8d
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoModify dbus for DIM 04/177004/8 accepted/tizen/unified/20180502.071144 submit/tizen/20180430.051948 submit/tizen/20180502.014710
lokilee73 [Tue, 24 Apr 2018 11:32:55 +0000 (20:32 +0900)]
Modify dbus for DIM

Change-Id: I706f6f55accc9858939fc8ae3e621b489f637b15
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoRemove unnecessary "Requires" to avoid build issues regarding noarch 56/177056/2 accepted/tizen/unified/20180426.062452 submit/tizen/20180425.045604 submit/tizen/20180425.054444
Hyotaek Shim [Wed, 25 Apr 2018 04:52:09 +0000 (13:52 +0900)]
Remove unnecessary "Requires" to avoid build issues regarding noarch

Dear All,
I came up today with a dependency problem, that blocks verification of SR.
The SR submit/tizen/20180424.062711 for tef-simulator
(platform/core/security/tef-simulator) failed to create 5 images.
Although, there is nothing wrong in changes proposed in tef-simulator.
The images that failed to build do not even contain tef-simulator and should not be affected anyway.

Here is what happened:
1) tef -simulator builds only for Intel archs, because of this line in tef-simulator.spec:
ExcludeArch: armv6l armv7hl armv7l aarch64

2) build of tef-simulator triggers build of key-manager-ta,
which triggers build of deviced, but still only for Intel archs.
Build is not retriggered for arm (armv7l and aarch64) architectures,
because there were no changes in code there.

3) Five of images requires deviced-config-profile-wearable or
deviced-config-enable-display-timer package which are part of deviced and is noarch.
They have been rebuild in the SR so is published as
deviced-config-profile-wearable-5.0.0-20180424.062711.noarch,
deviced-config-enable-display-timer-5.0.0-20180424.062711.noarch

4) According to deviced.spec (platform/core/system/deviced) config-profile-wearable,
deviced-config-enable-display-timer packages requires deviced package with exactly same version and release:

%package config-profile-wearable
Summary:    Configuration files for wearable profile
Group:      System/Management
Requires:   %{name} = %{version}-%{release}
BuildArch:  noarch

%package config-enable-display-timer
Summary:    Configuration files for display
Group:      System/Management
Requires:   %{name} = %{version}-%{release}
BuildArch:  noarch

However deviced package in version and release 5.0.0-20180424.062711
is not found for armv7l architecture, because version from reference snapshot is 5.0.0-36.3.

So the problem is that the noarch package (config-profile-wearable)
can be rebuild without rebuilding main package (deviced) for arm architectures.
And then it is impossible to satisfy "Requires" criteria and match exactly same version during image creation.

The proposed solution would be to remove these 2 lines
(Requires: %{name} = %{version}-%{release}) from deviced.spec
as these packages providing conf does not really depend on deviced package.
I verified that it won't break images as deviced itself is also included
in meta files for wearable and mobile images which have this issue.

Lukasz Wojciechowski
Principal Software Engineer

Samsung R&D Institute Poland
Samsung Electronics

Change-Id: I95061848b3bb0429840122e01fd72db5adda5f2a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoRevert "Revert "Revert "usb: Remove usb-operation""" 48/176248/1 accepted/tizen/unified/20180418.090557 submit/tizen/20180418.001657 submit/tizen/20180418.001958
Hyotaek Shim [Wed, 18 Apr 2018 00:13:21 +0000 (09:13 +0900)]
Revert "Revert "Revert "usb: Remove usb-operation"""

This reverts commit f50deea1efd5062415f43eb0722983daae77413f.

Change-Id: I3dc62a8c786376039dcc2592ecc61d8f348a6885
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoRevert "To prevent Watchdog Kill during the dbus sync call" 99/176199/1 accepted/tizen/unified/20180417.173243 submit/tizen/20180417.092207
Hyotaek Shim [Tue, 17 Apr 2018 09:19:21 +0000 (18:19 +0900)]
Revert "To prevent Watchdog Kill during the dbus sync call"

This reverts commit 19f28633e69ec61b9bd32d904b89f0b5a6f48aee.

Change-Id: I57727e680fa9351fd1a3254f25d10bd639302ab6
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoRevert "Revert "usb: Remove usb-operation"" 36/174836/2 accepted/tizen/unified/20180412.073808 submit/tizen/20180411.015824 submit/tizen/20180411.122642
Paweł Szewczyk [Wed, 4 Apr 2018 10:58:08 +0000 (12:58 +0200)]
Revert "Revert "usb: Remove usb-operation""

This revert was only temporary solution and with updated HAL implementation
deviced should not start any services itself.

This reverts commit 64bec949084f2bff0dce333052eda84d0244ee3f.

Change-Id: Ifd5ccb3b2bbdf764ef0f3a2a191755494cdb7b64
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoFix a build problem that occurred with a new version of cmake(3.9.4) 48/175048/1 accepted/tizen/unified/20180409.100028 submit/tizen/20180408.231339
Hyotaek Shim [Fri, 6 Apr 2018 07:26:37 +0000 (16:26 +0900)]
Fix a build problem that occurred with a new version of cmake(3.9.4)

Change-Id: I4531dc40550ea2feb29a90abc0329b0557cc1229
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoChange the method for thermal 06/175006/1
lokilee73 [Fri, 6 Apr 2018 02:16:24 +0000 (11:16 +0900)]
Change the method for thermal

From ChangedCooldownMode to thermal_scenario

Change-Id: Ie5dd8ec75a2018b1dc61dee34f37777e9a88a455
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoRefactor dbus_handle_init into two parts 65/174865/4 accepted/tizen/unified/20180406.061936 submit/tizen/20180405.024125 submit/tizen/20180405.044417 submit/tizen/20180405.051333 submit/tizen/20180405.111955
lokilee73 [Wed, 4 Apr 2018 12:39:46 +0000 (21:39 +0900)]
Refactor dbus_handle_init into two parts

It's to solve timing issue caused by telephony.
When it requests AddPoweroffWait, it fails because dbus in deviced is not ready.

Change-Id: I03f64928e361301ba87330298a19bd7482317081
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoCheck the existence of mtp responder service for usb configuration 53/174153/5 accepted/tizen/unified/20180403.060228 submit/tizen/20180329.064258 submit/tizen/20180330.143105 submit/tizen/20180402.232840 submit/tizen/20180403.011657
lokilee73 [Wed, 28 Mar 2018 13:16:34 +0000 (22:16 +0900)]
Check the existence of mtp responder service for usb configuration

Change-Id: I62ccb18060f1ff9f967a996b919ef347319f1685
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoFix build error that occurred with a new version of cmake(3.9.4) 82/173282/2
Hyotaek Shim [Mon, 19 Mar 2018 08:48:21 +0000 (17:48 +0900)]
Fix build error that occurred with a new version of cmake(3.9.4)

Change-Id: Ifc95d7062cf63674032fdf6e2684fc0a4437ef2f
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agodbus-policy: add rule default deny own 43/173843/1 accepted/tizen/unified/20180329.054109 submit/tizen/20180327.003938
sanghyeok.oh [Mon, 26 Mar 2018 09:16:25 +0000 (18:16 +0900)]
dbus-policy: add rule default deny own

Change-Id: I1cc4b02d3d20c2e12c4675352f51384c04ec71fa
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agolibgdbus: Remove dbus_handle_method_sync_with_reply usage 91/173691/1
pr.jung [Fri, 23 Mar 2018 06:39:55 +0000 (15:39 +0900)]
libgdbus: Remove dbus_handle_method_sync_with_reply usage

- Change dbus_handle_method_sync_with_reply to dbus_handle_method_sync_with_reply_var

Change-Id: Ifab9ea4cff00f643964f09187d77117ecbcbe563
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agocommon: Remove build warning 75/173575/1 submit/tizen/20180322.094245
pr.jung [Thu, 22 Mar 2018 09:25:57 +0000 (18:25 +0900)]
common: Remove build warning

Change-Id: I9c4bd8067cf3547e6becdff244bb9291fde2144d
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agolibgdbus: Move common gdbus interfaces to libsystem package 28/173428/3
pr.jung [Wed, 21 Mar 2018 09:51:58 +0000 (18:51 +0900)]
libgdbus: Move common gdbus interfaces to libsystem package

Change-Id: I3afd64a2f7603e5e63c0db1b0c46bc661f6f8b0a
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoTo prevent Watchdog Kill during the dbus sync call 42/173542/2 accepted/tizen/unified/20180322.145134 submit/tizen/20180322.082909
Hyotaek Shim [Thu, 22 Mar 2018 07:56:33 +0000 (16:56 +0900)]
To prevent Watchdog Kill during the dbus sync call

Change-Id: I91b9b66ff089b638fa649ba695bd4806639cb84d
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoRemoved BuildRequires: pkgconfig(argos_watchdog) 40/173540/1
Hyotaek Shim [Thu, 22 Mar 2018 07:49:50 +0000 (16:49 +0900)]
Removed BuildRequires: pkgconfig(argos_watchdog)

Change-Id: I5eb0781aaa8a09039d37f6c8264315a891b050d0
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoRemove OOMADJ item in auto test 37/173537/1
lokilee73 [Thu, 22 Mar 2018 07:32:02 +0000 (16:32 +0900)]
Remove OOMADJ item in auto test

OOMADJ function was moved to resourced.
So, it should be removed in deviced.

Change-Id: I89b05e064c70f58b5e8680b8fea55fc48786f4a2
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoprevent: fix prevent issue 50/173450/2
sanghyeok.oh [Wed, 21 Mar 2018 13:23:49 +0000 (22:23 +0900)]
prevent: fix prevent issue

Change-Id: Iadce5347e6dba92599ff42cabb57b082b46ad1d2
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agoAdd umount_partition_by_kill() 14/173014/8
Hyotaek Shim [Mon, 19 Mar 2018 07:45:59 +0000 (16:45 +0900)]
Add umount_partition_by_kill()

For better filesystem reliability,
this api is used to umount writable partitions (/opt/usr, /opt, and etc.)
by killing processes with open files

1) lazy-umount partitions
   MNT_DETACH (since Linux 2.4.11)
   Perform a lazy unmount: make the mount point unavailable for new accesses,
   and actually perform the unmount when the mount point ceases to be busy.

2) kill processes (SIGTERM and SIGKILL)
   Restarted processes cannot open files from the detached partition.
   So, the number of processes that have opened files on the partition is solely reduced.

3) check # of remaining processes and repeat 2)~3) a fixed number of times.

Change-Id: I5d93de15b58e31715ec058f2ce154a03808da6e3
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoChange a string from ShutDownAction to ShutdownAction 47/172847/1
lokilee73 [Fri, 16 Mar 2018 08:30:49 +0000 (17:30 +0900)]
Change a string from ShutDownAction to ShutdownAction

Change-Id: I60d63a373c54b4d803580495d4e5011655dfec26
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoRemove unused socket and function 16/172816/2
lokilee73 [Fri, 16 Mar 2018 06:10:57 +0000 (15:10 +0900)]
Remove unused socket and function

socket: deviced.socket
function: deviced_call_predef_action

Change-Id: Ie09f1e8f913f95f95fb64146392ff9929447d2cf
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agodbus: remove ineffective rule 61/172661/1
sanghyeok.oh [Thu, 15 Mar 2018 05:44:14 +0000 (14:44 +0900)]
dbus: remove ineffective rule

Change-Id: I17c4d1961cc6ca4eaa25947ef9e4bc7f7f2087a1
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agolibdeviced-haptic: Remove unused codes 80/171880/8 accepted/tizen/unified/20180316.062502 submit/tizen/20180315.052738
pr.jung [Wed, 7 Mar 2018 10:45:21 +0000 (19:45 +0900)]
libdeviced-haptic: Remove unused codes

- Remove unused logics and deprecated haptic internal apis

Change-Id: I2b992dbd193f9429b90fa56ef30e1afff9ffa648
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoEnable systemd-based dbus activiation for deviced.service 11/172611/1
Hyotaek Shim [Wed, 14 Mar 2018 23:52:54 +0000 (08:52 +0900)]
Enable systemd-based dbus activiation for deviced.service

Change-Id: Ia9d1c38bc5d8baad1e0660fb5dcb3fa5e0721691
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoRevert "usb: Remove usb-operation" 19/172519/2 accepted/tizen/unified/20180314.141515 submit/tizen/20180314.081248
Hyotaek Shim [Wed, 14 Mar 2018 08:10:43 +0000 (08:10 +0000)]
Revert "usb: Remove usb-operation"

This reverts commit 48763fe1d4173f68803e941acf8c605a66ccbfe4.

Change-Id: I6e20e9f2fce3e1b79a63c6a292840b24a7ab0d68

6 years agodisplay: reset system timeout when specific process requested same state 19/172419/1
lokilee73 [Wed, 14 Mar 2018 02:09:51 +0000 (11:09 +0900)]
display: reset system timeout when specific process requested same state

Change-Id: I1db14da69eaf0d68a568675dda16a7a1eb138e56
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agousb: remove unused usb_client item 14/172414/1
INSUN PYO [Wed, 14 Mar 2018 00:51:41 +0000 (09:51 +0900)]
usb: remove unused usb_client item

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I54463731572ac6015629a3e114de5f9cde2eba0e

6 years agodbus: modify dbus policy correctly 03/171803/13
sanghyeok.oh [Wed, 7 Mar 2018 09:54:58 +0000 (18:54 +0900)]
dbus: modify dbus policy correctly

Change-Id: Id903a35e006f82be38b0b65fad818c9ac59d3364
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agousb: support configfs usb hal 05/171905/8
INSUN PYO [Thu, 8 Mar 2018 05:51:59 +0000 (14:51 +0900)]
usb: support configfs usb hal

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ic810941b85fa985d68117dcc979b3ce75dedc0a1

6 years agousb: Remove usb-operation 11/171311/3
Paweł Szewczyk [Tue, 27 Feb 2018 16:16:29 +0000 (17:16 +0100)]
usb: Remove usb-operation

Starting and stopping usb operation is specific to the implementation.
This responsibility is moved to USB HAL.

Change-Id: I1c9135f40ea203ff529c3699b442e947a6cf50a9
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoRemove telephony dependency 46/172146/7
lokilee73 [Mon, 12 Mar 2018 07:13:14 +0000 (16:13 +0900)]
Remove telephony dependency

Change-Id: I2a5dcb56c82e8c4b10196e2624057a8e94d2735c
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoRemove unused OOM functions 35/171935/1 accepted/tizen/unified/20180309.202941 submit/tizen/20180308.081320 submit/tizen/20180309.024528
lokilee73 [Thu, 8 Mar 2018 07:43:11 +0000 (16:43 +0900)]
Remove unused OOM functions

Change-Id: Ia9eb3346109a97a89ba8dd99caa389fcb8204ed8
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agolibdeviced-storage: Remove unsused logics and deprecated storage internal apis 81/171881/5
pr.jung [Thu, 8 Mar 2018 02:33:57 +0000 (11:33 +0900)]
libdeviced-storage: Remove unsused logics and deprecated storage internal apis

Change-Id: I20f5ec0d70f9426fa4764fa952bd905aaf9dc15d
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoRevert "Revert "Remove deviced_conf_set_mempolicy_bypid and deviced_conf_set_mempolicy."" 82/171882/1 accepted/tizen/unified/20180308.070205 submit/tizen/20180308.024030
Hyotaek Shim [Thu, 8 Mar 2018 02:42:57 +0000 (11:42 +0900)]
Revert "Revert "Remove deviced_conf_set_mempolicy_bypid and deviced_conf_set_mempolicy.""

This reverts commit 932451c3313518a0033aa9169ee9df54ecee56b9.

Change-Id: Ibc79de3bccdf864037914486d0f11f59f5693a19
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoRevert "Remove deviced_conf_set_mempolicy_bypid and deviced_conf_set_mempolicy." 37/171837/1 submit/tizen/20180307.131843 submit/tizen/20180307.143832
Hyotaek Shim [Wed, 7 Mar 2018 13:17:14 +0000 (22:17 +0900)]
Revert "Remove deviced_conf_set_mempolicy_bypid and deviced_conf_set_mempolicy."

This reverts commit f0696d6bf5a3ed911b7e5790d8ab8e986178f752.

Change-Id: I44caea81bf818f170f76cb733cc200d663fd623b
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agolibdeviced: Fix a bug 57/171757/3 submit/tizen/20180307.065432 submit/tizen/20180307.073658
pr.jung [Wed, 7 Mar 2018 06:21:11 +0000 (15:21 +0900)]
libdeviced: Fix a bug

- GetDeviceList return format string is (a(issssssisibii))

Change-Id: I3ab44b28c8f1cd1056bb36a57a35412e0d0af845
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agousb-host-test: fix signal subscription error 65/171765/2
sanghyeok.oh [Wed, 7 Mar 2018 06:39:58 +0000 (15:39 +0900)]
usb-host-test: fix signal subscription error

Change-Id: I57492796405cd95d7f429ad90719af8fe6c08368
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agoEnable usb-host-test for TCT 68/171768/1
Hyotaek Shim [Wed, 7 Mar 2018 06:50:56 +0000 (15:50 +0900)]
Enable usb-host-test for TCT

Change-Id: I2e92fa67106599ea137146dc8f13c50d5a9fd61f
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoRemove PROFILE_TV 12/170212/3
lokilee73 [Wed, 14 Feb 2018 08:26:11 +0000 (17:26 +0900)]
Remove PROFILE_TV

Change-Id: I258a37ae0b68b6a3d81e785cb917581c8e24bf57
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agotzip: add async call 41/171341/3
insun.pyo [Thu, 1 Mar 2018 15:57:28 +0000 (00:57 +0900)]
tzip: add async call

Signed-off-by: insun.pyo <insun.pyo@samsung.com>
Change-Id: I3431b65612b22ca6a8c66ca9263286ddfa5a9178

6 years agotzip: revert "fix type size mismatching issue" 96/170496/9
INSUN PYO [Tue, 20 Feb 2018 08:50:43 +0000 (17:50 +0900)]
tzip: revert "fix type size mismatching issue"

There is no difference in asembler on 32 bit machine before and after modification.

/////////////////////////////////////////////////////
0001f6d0 <tzip_release@@Base>:
   1f6d0: e92d 43f0  stmdb sp!, {r4, r5, r6, r7, r8, r9, lr}
   1f6d4: 4606       mov r6, r0
   1f6d6: 4840       ldr r0, [pc, #256] ; (1f7d8 <tzip_release@@Base+0x108>)
   1f6d8: b085       sub sp, #20
   1f6da: 460d       mov r5, r1
   1f6dc: 4478       add r0, pc
   1f6de: af04       add r7, sp, #16
   1f6e0: 4671       mov r1, lr
   1f6e2: 4674       mov r4, lr
   1f6e4: f7f0 fb1c  bl fd20 <__cyg_profile_func_enter@@Base>
   1f6e8: 2e00       cmp r6, #0
   1f6ea: d057       beq.n 1f79c <tzip_release@@Base+0xcc>
   1f6ec: b125       cbz r5, 1f6f8 <tzip_release@@Base+0x28>
   1f6ee: e9d5 8904  ldrd r8, r9, [r5, #16]
   1f6f2: ea58 0309  orrs.w r3, r8, r9
////////////////////////////////////////////////////////////

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Idf720210ac1012cc3aa3996b740718cf9ad94332

6 years agoRemove deviced_conf_set_mempolicy_bypid and deviced_conf_set_mempolicy. 78/171278/2
lokilee73 [Wed, 28 Feb 2018 06:34:02 +0000 (15:34 +0900)]
Remove deviced_conf_set_mempolicy_bypid and deviced_conf_set_mempolicy.
Because those functions are moved to resourced

Change-Id: Ifaa91fda36a7fd2994147e425dbc62843246a71a
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoFix an exceptional case in unload_plugin() 52/171052/1 accepted/tizen/unified/20180226.142347 submit/tizen/20180226.082308
Hyotaek Shim [Mon, 26 Feb 2018 07:50:41 +0000 (16:50 +0900)]
Fix an exceptional case in unload_plugin()

Change-Id: Icc270982ad525f9e94545844413e270257de9109
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoChange the default value of framerate_app as {1, 0, 0, 0} 21/171021/1
Hyotaek Shim [Mon, 26 Feb 2018 01:44:41 +0000 (10:44 +0900)]
Change the default value of framerate_app as {1, 0, 0, 0}

Change-Id: Iba1d9701dd6d95b85cd9042e0c9fd2e2dcae4e4d
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoBattery: change vconf value for battery_warning_level 67/170967/1
lokilee73 [Fri, 23 Feb 2018 13:28:52 +0000 (22:28 +0900)]
Battery: change vconf value for battery_warning_level

Change-Id: I74c9c501f0d5f62a2949ef11e5dd2bbac91dc443
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoextcon_count: remove unused probe and exit function 37/170637/4
INSUN PYO [Wed, 21 Feb 2018 06:13:35 +0000 (15:13 +0900)]
extcon_count: remove unused probe and exit function

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Iff7927f768bfab0cc18131c36d8627ff7a2dbbbf

6 years agobattery: remove unused POWER_PATH at power_supply_probe 52/170852/4
INSUN PYO [Fri, 23 Feb 2018 00:14:41 +0000 (09:14 +0900)]
battery: remove unused POWER_PATH at power_supply_probe

There is no POWER_PATH present without HAL at all models include MCD mobile and MCD wearable.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Iecb17a6c2a6f065d79bb66c95897a2a415847582

6 years agobattery: add probe function for battery-time and lowbat device module 17/170617/6
INSUN PYO [Wed, 21 Feb 2018 05:29:53 +0000 (14:29 +0900)]
battery: add probe function for battery-time and lowbat device module

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: If280aa76d01cb4428ae028cc063ae46cb87fd3ad
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agodisplay: fixe a bug that returns success when there is no hal 36/170636/4
INSUN PYO [Wed, 21 Feb 2018 06:04:52 +0000 (15:04 +0900)]
display: fixe a bug that returns success when there is no hal

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I694c4d2c45a4f4ab1d38f61e204d3066769692bc

6 years agocpu: fixe a bug that returns success when there is no hal 20/170620/2
INSUN PYO [Wed, 21 Feb 2018 05:54:10 +0000 (14:54 +0900)]
cpu: fixe a bug that returns success when there is no hal

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I1a45e2c727af278516d285a91a9693eb7fac1eeb

6 years agotouchscreen: move the position of hal probe from init function to probe function 46/170646/2
INSUN PYO [Wed, 21 Feb 2018 07:00:31 +0000 (16:00 +0900)]
touchscreen: move the position of hal probe from init function to probe function

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I04112aceae56431a07351c4a200907a51b869eb2

6 years agodbus: modify name of APIs 52/170752/2 accepted/tizen/unified/20180222.142148 submit/tizen/20180222.052358
sanghyeok.oh [Thu, 22 Feb 2018 03:02:30 +0000 (12:02 +0900)]
dbus: modify name of APIs

API name conflict is occured between libdeviced and CAPI.
eg. dbus_method_sync.

Change-Id: I5eac6c19517ea03cd3fc8cc9a9487b7c3fff376f
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agoMinor fix on CMakeLists.txt of plugins 64/170664/1
Hyotaek Shim [Wed, 21 Feb 2018 08:36:57 +0000 (17:36 +0900)]
Minor fix on CMakeLists.txt of plugins

Change-Id: I5a2b1e08fcdddd3ef6d15ad4170fcf755a208729
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoFix a warning 73/170473/2
lokilee73 [Tue, 20 Feb 2018 06:47:47 +0000 (15:47 +0900)]
Fix a warning

Change-Id: I5408b2e98e874d8bf7951ffb69032ae9fa395af7
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoInitial work to adopt plugin architecture 04/170204/12 accepted/tizen/unified/20180220.130017 submit/tizen/20180220.062815
Hyotaek Shim [Wed, 14 Feb 2018 07:31:04 +0000 (16:31 +0900)]
Initial work to adopt plugin architecture

/plugins directory has been added.

Change-Id: Ie1550e2d76fb20fb204134c8c25a04584dd48355
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agotzip: Fixed the problem that mount node information is left in /run/.deviced when... 47/170347/6
INSUN PYO [Mon, 19 Feb 2018 08:50:47 +0000 (17:50 +0900)]
tzip: Fixed the problem that mount node information is left in /run/.deviced when tzip umount is done.

When deviced restarts, save the mount information in the /run/.deviced file to recover the existing mounts.
However, there was a bug in umount that the node is not removed in /run/.deviced.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I2a78e3accf4146db1dedf3d711190de54b5f3664

6 years agotzip: fix pthread_cond_wait/pthread_cond_signal wrong usage bug between tzip_thread... 98/170398/2
INSUN PYO [Tue, 20 Feb 2018 01:02:04 +0000 (10:02 +0900)]
tzip: fix pthread_cond_wait/pthread_cond_signal wrong usage bug between tzip_thread and tzip_mount_thread

=============== tzip_mount_thread is blocked here ================================
Thread 5 (Thread 0xb33ed1f0 (LWP 6078)):
0  0xb69726f4 in __pthread_cond_wait (cond=cond@entry=0x7f67e0d0 <thread_cond>, mutex=mutex@entry=0x7f67e0b8 <thread_cond_mutex>) at pthread_cond_wait.c:186
1  0x7f62f2ba in tzip_mount_thread (arg=<optimized out>) at /usr/src/debug/deviced-5.0.0/src/tzip/tzip.c:508
2  0xb696bf04 in start_thread (arg=0xb33ed1f0) at pthread_create.c:335
3  0xb68fa338 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:86 from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
==================================================================================

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ia4fb0c6de2c22084abef4ba84ee8bd1c77b10933

6 years agotzip: fix memory leak 27/170327/2
INSUN PYO [Mon, 19 Feb 2018 06:09:23 +0000 (15:09 +0900)]
tzip: fix memory leak

g_hash_table_inter_init() returns an iterator that should not be modified.

Links
 - https://developer.gnome.org/glib/stable/glib-Hash-Tables.html#g-hash-table-iter-init
     "Modifying the hash table after calling this function invalidates the returned iterator."

 - https://developer.gnome.org/glib/stable/glib-Hash-Tables.html#g-hash-table-iter-remove

Change-Id: I606d3309119c6911f8b3a8a9877b6f2ac5af5784
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
6 years agotzip: change dbus requests (Mount/Unmount/IsUmounted) to sync 78/170178/4
INSUN PYO [Wed, 14 Feb 2018 04:07:32 +0000 (13:07 +0900)]
tzip: change dbus requests (Mount/Unmount/IsUmounted) to sync

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I802b255d646e24752e5869d97a30e7f5c8a1cee8

6 years agodbus: clean up dbus policy 23/141623/8
sanghyeok.oh [Tue, 1 Aug 2017 06:55:25 +0000 (15:55 +0900)]
dbus: clean up dbus policy

Change-Id: I0f798e7f33eff857914a14691ba01c7cf9bd26fe
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agoBattery: remove PROFILE_MOBILE in low and critical notification 41/170041/13
lokilee73 [Tue, 13 Feb 2018 05:11:52 +0000 (14:11 +0900)]
Battery: remove PROFILE_MOBILE in low and critical notification

Change-Id: I678fa8b6c941def34248787bf094209de64fcdf5
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agotzip: fix race condition between tzip_thread and tzip_mount_thread 40/169940/5
insun.pyo [Mon, 12 Feb 2018 08:01:45 +0000 (17:01 +0900)]
tzip: fix race condition between tzip_thread and tzip_mount_thread

 - Add synchronization code between tzip_thread and tzip_mount_thread.
   tzip_mount_thread must wait for tzip_thread to complete.

 - Initializes async_queue out of the tzip_mount_thread.
   It adds synchronization between main loop and tzip_mount_thread.

 - add atomic varial stop_or_error to handle error between threads.

Signed-off-by: insun.pyo <insun.pyo@icloud.com>
Change-Id: If94cf4d7d58feeb1ad6d24f0d5902277bb266e94
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoRemove build warning 31/170031/3
INSUN PYO [Tue, 13 Feb 2018 04:08:04 +0000 (13:08 +0900)]
Remove build warning

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ia4bc639138df378aa607121e8293a7c6f39392e9

6 years agoFix a bug in dbus for method DeviceList 78/169878/2 accepted/tizen/unified/20180213.055906 submit/tizen/20180212.102636
lokilee73 [Mon, 12 Feb 2018 04:46:58 +0000 (13:46 +0900)]
Fix a bug in dbus for method DeviceList

Change-Id: Iaf9972473c3f6ac3a8bada31b0491cc8404889c5
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoFix indentation 89/169689/4
sanghyeok.oh [Thu, 8 Feb 2018 02:51:45 +0000 (11:51 +0900)]
Fix indentation

Change-Id: I5984b19abf889e7e48fac9b5c1fc3c82a91d5ac2
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agoUsb: change returned value from integer to unsigned 65/169865/2
lokilee73 [Mon, 12 Feb 2018 01:55:49 +0000 (10:55 +0900)]
Usb: change returned value from integer to unsigned
     integer for the dbus method of GetState and GetMode

Change-Id: Iafb5a6beff8dc7f8267a15cf30573b909037e32b
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoReorganize .conf files and combine PROFILE rpms into a unified one 11/169611/14
Hyotaek Shim [Thu, 8 Feb 2018 02:53:43 +0000 (11:53 +0900)]
Reorganize .conf files and combine PROFILE rpms into a unified one

Change-Id: I013a02fdc716b1bc42aae5c6740acb381d0e81d6
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoClean up display-PROFILE.conf files 17/169517/3 accepted/tizen/unified/20180208.163643 submit/tizen/20180208.055209
Hyotaek Shim [Wed, 7 Feb 2018 07:38:03 +0000 (16:38 +0900)]
Clean up display-PROFILE.conf files

Change-Id: Iafbf195b2056c3dad65493f4a710b8b96628064b
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agotzip: refactoring 20/169520/2
INSUN PYO [Wed, 7 Feb 2018 07:41:24 +0000 (16:41 +0900)]
tzip: refactoring

 - Cleanup header
 - Fix indentation
 - Dbus message error handling
 - Fix using errno in the wrong location
 - Change smack label from option to required
 - Remove build warning : using uninitialized diff_size variable (compiler bug)
 - Bugfix : sideeffect. changing full filename on get_file_info().

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ie727ccd1633203e98d3aea7728fc4080d042ef30

6 years agodbus: change word 'edbus' to 'dbus' 56/169356/2
sanghyeok.oh [Tue, 6 Feb 2018 06:55:53 +0000 (15:55 +0900)]
dbus: change word 'edbus' to 'dbus'

Change-Id: If60a5d8e062724eb6646f2e7ee4aeb0282678d6a
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agoModify the mode of source files as 0644 49/169449/1
Hyotaek Shim [Wed, 7 Feb 2018 02:07:36 +0000 (11:07 +0900)]
Modify the mode of source files as 0644

Change-Id: If95b8f48d52ca38e2e56181427b659a69cd6e4dd
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoled: Modify multi-LED APIs 28/169328/2
Hyotaek Shim [Tue, 6 Feb 2018 04:36:03 +0000 (13:36 +0900)]
led: Modify multi-LED APIs

Change-Id: Ia85eee582a0a752effd25837b74039228989ddd7
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoled: Add new APIs that control multiple LEDs 98/169098/12
sanghyeok.oh [Fri, 2 Feb 2018 07:20:58 +0000 (16:20 +0900)]
led: Add new APIs that control multiple LEDs

Change-Id: I48de38bcedb527148cf1f63a34adb54143b43a9c
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoEnhance the priority of the periodic watchdog_cb() 22/169222/6
Hyotaek Shim [Mon, 5 Feb 2018 05:14:24 +0000 (14:14 +0900)]
Enhance the priority of the periodic watchdog_cb()
to avoid crash under unexpectedly blocked sync calls or intensive workload

Change-Id: Idb66cacde1dfc211f25b0802cc1ed491bbd58af9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoClean up Thermal interfaces 84/169184/1
Hyotaek Shim [Mon, 5 Feb 2018 02:28:13 +0000 (11:28 +0900)]
Clean up Thermal interfaces

Change-Id: I2903d8111ff125f37bb9e0bead2c713e73ea286c
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoCool-down: remove enum value LOW for temperature and change strings 59/169159/3
lokilee73 [Fri, 2 Feb 2018 13:42:50 +0000 (22:42 +0900)]
Cool-down: remove enum value LOW for temperature and change strings

Change-Id: Icd34da6e36989139fd2eaf292fd8d8d867891838
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoFix casting warning 38/169138/1
pr.jung [Fri, 2 Feb 2018 10:53:15 +0000 (19:53 +0900)]
Fix casting warning

Change-Id: I819b8858bcc83241054c7eb699633df5131f1924
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agodbus: change edbus/ecore to common dbus api 96/168396/9 accepted/tizen/unified/20180201.080004 submit/tizen/20180201.020719
sanghyeok.oh [Fri, 26 Jan 2018 07:48:08 +0000 (16:48 +0900)]
dbus: change edbus/ecore to common dbus api

Change-Id: Ief4f13d7ac80fbb25355520baab5dd4d08a69534
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agotzip: protect hashmap with lock/unlock for tzip_is_mounted() 85/166785/6 accepted/tizen/unified/20180119.061117 submit/tizen/20180117.044734
INSUN PYO [Fri, 12 Jan 2018 02:17:32 +0000 (11:17 +0900)]
tzip: protect hashmap with lock/unlock for tzip_is_mounted()

0  strcmp () at /usr/src/debug//////////////glibc-2.24/string/../sysdeps/arm/armv7/strcmp.S:181
1  0xb63867d8 in g_str_equal (v1=<optimized out>, v2=<optimized out>) at /usr/src/debug/glib2-2.52.2/glib/ghash.c:1848
2  0xb6385bcc in g_hash_table_lookup_node (hash_return=<synthetic pointer>, key=0x5aaf60, hash_table=0x53d730) at /usr/src/debug/glib2-2.52.2/glib/ghash.c:396
3  g_hash_table_lookup (hash_table=0x53d730, key=key@entry=0x5aaf60) at /usr/src/debug/glib2-2.52.2/glib/ghash.c:1149
4  0x004fe548 in get_mount_entry (mount_path=mount_path@entry=0x5aaf60 "/opt/usr/apps/com.samsung.tv.UBSports/.pkg") at /usr/src/debug/deviced-1.0.3/src/tzip/tzip-utility.c:42
5  0x00503848 in tzip_is_mounted (mount_point=0x5aaf60 "/opt/usr/apps/com.samsung.tv.UBSports/.pkg") at /usr/src/debug/deviced-1.0.3/src/tzip/tzip.c:656
6  0x00503ad0 in edbus_request_ismounted_tzip (obj=<optimized out>, msg=0x564c08) at /usr/src/debug/deviced-1.0.3/src/tzip/tzip.c:854
7  0xb6717580 in e_dbus_object_handler (conn=0x588b68, message=0x564c08, user_data=0x598e48) at /usr/src/debug/e_dbus-1.7.9/src/lib/dbus/e_dbus_object.c:545
8  0xb66d973c in writer_write_reader_helper (writer=0xb67458ec, reader=0x576290, start_after=0xbe173d3c, start_after_new_pos=5655560, start_after_new_len=-1233889036, fixups=0xb67458ec, inside_start_after=3189194044) at /usr/src/debug/dbus-1.10.6/dbus/dbus-marshal-recursive.c:2788
Backtrace stopped: Cannot access memory at address 0x554e46f8

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Iabfdd0c2a51b6c961bcc6a67c7084ab8c52898ab

6 years agoRemove unused deviced-profile_ivi rpm 29/166429/4 accepted/tizen/unified/20180112.073230 submit/tizen/20180112.044613
Hyotaek Shim [Wed, 10 Jan 2018 07:31:59 +0000 (16:31 +0900)]
Remove unused deviced-profile_ivi rpm

Change-Id: I7b7a332ef13c7a224b6720dfef3377dc5bb3f730
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agotzip: cache improvement 89/166289/7
INSUN PYO [Tue, 9 Jan 2018 07:24:26 +0000 (16:24 +0900)]
tzip: cache improvement

- cache size limitation : 24 Kbyte.
- free as soon as you use cache.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I0de8c20c61026c253ae8a873de5dbeaea2115228

6 years agoFix a bug in tzip read operation(read_zipfile) 17/165617/4
Semun Lee [Wed, 3 Jan 2018 00:02:56 +0000 (09:02 +0900)]
Fix a bug in tzip read operation(read_zipfile)

When the same file is read again, the file pos for unzReadCurrentFile is not initialized to zero-offset.

Change-Id: I342c2731fce2f8a3c30d2f0b834146a23daa6353
Signed-off-by: Semun Lee <semun.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoMerge "usb-host-test: Add interrupt endpoint support" into tizen
Chang Joo Lee [Tue, 19 Dec 2017 10:18:44 +0000 (10:18 +0000)]
Merge "usb-host-test: Add interrupt endpoint support" into tizen

6 years agousb-host-test: Add interrupt endpoint support 67/164167/4
Paweł Szewczyk [Fri, 15 Dec 2017 16:44:26 +0000 (17:44 +0100)]
usb-host-test: Add interrupt endpoint support

Add 2 additional interrupt endpoints to our ffs daemon
to provide also interrupt loop functionality.

Change-Id: I40757984eaf6b5f985e94d8fbca803a2523b1b3b
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoDisplay: to check privilege of caller without log 70/162570/1 accepted/tizen/unified/20171205.060656 submit/tizen/20171204.104825 submit/tizen/20171205.110259
lokilee73 [Mon, 4 Dec 2017 08:42:01 +0000 (17:42 +0900)]
Display: to check privilege of caller without log

Change-Id: Ifdcbffd55c12d7dcc6d50d36bf18445c84f619e4
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoModify the timing of sd_notify(READY) and adjust the timeout for dbus reply calls... 76/160676/3
Hyotaek Shim [Fri, 17 Nov 2017 11:19:22 +0000 (20:19 +0900)]
Modify the timing of sd_notify(READY) and adjust the timeout for dbus reply calls to 10 seconds
+
Modify LICENSE to LICENSE.Apache-2.0

Change-Id: I3cbfde4b7c573a2bca0559446c19981650b52cd4
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoRevert "display: add privilege for lockstate dbus method" 93/159993/1
Hyotaek Shim [Tue, 14 Nov 2017 05:04:42 +0000 (14:04 +0900)]
Revert "display: add privilege for lockstate dbus method"

This reverts commit 3a185bd151c21b420c1d852163596e38f0a44074.

Change-Id: I9dea427db4bb70b6a131c12ad0b4ef29f203bd8b
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoControl: to enable getcontrol 06/158106/1 accepted/tizen/unified/20171103.162256 submit/tizen/20171103.012613
lokilee73 [Fri, 27 Oct 2017 09:13:42 +0000 (18:13 +0900)]
Control: to enable getcontrol

Change-Id: Ib87ccd1ded1d09bf3b140d7bdeb12d9defb2f3e4
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
(cherry picked from commit 694515321d311f0f0fd28c3761bc30f74f77710e)

6 years agoFix indentation 60/157760/1
INSUN PYO [Thu, 26 Oct 2017 06:33:58 +0000 (15:33 +0900)]
Fix indentation

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I0f2067151e410016679914be07f5409c4b6758fd

6 years agoCommon: change to fix coding rule violation 78/157278/3
lokilee73 [Tue, 24 Oct 2017 04:42:51 +0000 (13:42 +0900)]
Common: change to fix coding rule violation

Change-Id: Ia26b8d036e2a288bf3ab5faac5e6ba172a4f3db3
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoDPM: apply dpm policy for usb 19/157219/4
lokilee73 [Wed, 18 Oct 2017 07:11:09 +0000 (16:11 +0900)]
DPM: apply dpm policy for usb

When dpm policy about usb is received, the target has to take actions according to the policy.
1. Allow
   The host can access to the target via usb and the user can see the storage of it
2. Disallow
   The host cannot access to the target via usb, so the user cannot see the contents of storage

Change-Id: I32918269d3ddb41cac948c36d73cb4ad741d32dc
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agousb-host: limit the authority of usb-host-ffs-test-daemon.service to prevent security... 79/154979/1 accepted/tizen/unified/20171012.075229 submit/tizen/20171012.013346
lokilee73 [Wed, 11 Oct 2017 13:15:33 +0000 (22:15 +0900)]
usb-host: limit the authority of usb-host-ffs-test-daemon.service to prevent security issue

Change-Id: I951cf9232a02db4c6ea3fa897c01c813538c91f5
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoudev: Increase udev monitor buffer size 50/152750/1 accepted/tizen/unified/20170928.072331 submit/tizen/20170927.065426 submit/tizen/20170927.232137 submit/tizen/20170928.032238
INSUN PYO [Wed, 27 Sep 2017 04:42:43 +0000 (13:42 +0900)]
udev: Increase udev monitor buffer size

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ia5758abe04279fbc8261e7c8bbaae02ba56dcda6