taeyoung [Sat, 12 Nov 2016 10:03:05 +0000 (19:03 +0900)]
Merge branch 'tizen' into tizen_3.0
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: I2f4fb4820ff3ac83427f381dc0d57ff85782443f
taeyoung [Sat, 12 Nov 2016 09:49:43 +0000 (18:49 +0900)]
usb: do not set usb gadget on emulator
Emulator kernel does not have the usb module. Thus there is
no need to enable gadgets. Just state updating is required
Change-Id: Ib547932752182caeaeae194b07a4bc3171c56e9f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Sat, 12 Nov 2016 09:31:48 +0000 (18:31 +0900)]
usb: change usb mode value of vconf like Tizen 2.4
- vconf value for usb mode is changed to SET_USB_XXXXX
like Tizen 2.4
Change-Id: I2e6263a8949ab0d9ebc59e9d4bfb84894464a1d3
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Sat, 12 Nov 2016 07:56:54 +0000 (16:56 +0900)]
usb: usb tethering is enabled
- Previously, usb gadget is not enabled when usb tethering is turned on.
The issue is also related with usb mode change.
- Now, usb mode change function disables, reconfigures, and enables
the usb gadget. Thus usb tethering can be enabled.
- The positions of the usb state change operation are changed
for physical and logical usb mode changes
Change-Id: I336a43a75bc03c831be61b80b09498c054efb7d1
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 1 Nov 2016 10:33:27 +0000 (19:33 +0900)]
block: change not to skip permission set operation
- The codes were applied in case that a removable storage
is used as an internal storage. The permission of the
storage should not be changed to use as a rootfs.
- Now, block module does not try to mount the storage
if it is mounted as rootfs. Thus the codes for skipping
permission change is not necessary.
Change-Id: If5626d81e7f962c9ff358bcb1664226e7c283645
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Fri, 4 Nov 2016 06:35:27 +0000 (15:35 +0900)]
emulator: move emulator check function to common function
Emulator check operation can be used other modules.
Change-Id: I6be8d1f1312573e82fd5e83c273c5e990c3d1394
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Sunmin Lee [Thu, 10 Nov 2016 04:22:30 +0000 (13:22 +0900)]
PM state dump: fix bug
Change-Id: Id3e35c708ec5dcb421c160b1df955bd32061e883
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 8 Nov 2016 06:23:42 +0000 (15:23 +0900)]
PM state dump: change target directory
Change target directory of pm_state.log.
In addition, the script that dumps pm state is installed to
dump script directory (TZ_SYS_DUMPGEN).
Change-Id: I65a7647a738354b6a062fff502af4cebd0f25f2b
pr.jung [Wed, 2 Nov 2016 07:33:49 +0000 (16:33 +0900)]
Merge branch 'tizen' into tizen_3.0
Change-Id: I628fc311e4f5618de00beafc234fce2898eb76f8
Signed-off-by: pr.jung <pr.jung@samsung.com>
pr.jung [Wed, 2 Nov 2016 07:14:31 +0000 (00:14 -0700)]
Merge "Check whether internal storage when sdcard is inserted(emulator)" into tizen
pr.jung [Mon, 24 Oct 2016 11:44:22 +0000 (20:44 +0900)]
Check whether internal storage when sdcard is inserted(emulator)
Change-Id: I026fb9b2f0b4e948580ceca7c0d2effa8aeb8031
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Tue, 1 Nov 2016 07:33:05 +0000 (16:33 +0900)]
power: systemd dbus method and signal are used to check if booting is done
- Previously, zbooting-done.service was used to check if booting is done.
The zbooting-done.service had dependency to the default target
which is linked to graphical target in Mobile and Wearable profiles.
However Headless target (without display) does not have graphical target,
and IVI profile has different default target which is linked to
other target. Thus zbooting-done.service had problems to all profiles
and targets.
- Now, systemd dbus method and signal are used to check if booting is done.
The signal is delivered when system session is done, and the method
returns "running" or "degraded" if the system session is done.
** Method
- bus: org.freedesktop.systemd1
- object path: /org/freedesktop/systemd1
- interface: org.freedesktop.DBus.Properties
- method name: Get
- parameter: 2 strings
"org.freedesktop.systemd1.Manager"
"SystemState"
** Signal
- object path: /org/freedesktop/systemd1
- interface: org.freedesktop.systemd1.Manager
- signal name: StartupFinished
Change-Id: Ib0de90d81577d2376c065cca44edebfcf236956b
Signed-off-by: taeyoung <ty317.kim@samsung.com>
pr.jung [Tue, 1 Nov 2016 02:25:52 +0000 (11:25 +0900)]
Null check for ir_device
Change-Id: I6915e46cc8799a75440b4176f59f6c899d7418ff
Signed-off-by: pr.jung <pr.jung@samsung.com>
pr.jung [Mon, 31 Oct 2016 04:18:07 +0000 (21:18 -0700)]
Merge "Remove notifier for haptic and add signal handler" into tizen
pr.jung [Wed, 26 Oct 2016 08:20:22 +0000 (17:20 +0900)]
Remove notifier for haptic and add signal handler
- deviced-vibrator can't not be notified by deviced
- So, deviced-vibrator handle signal instead
Change-Id: Idbe290588ef5c771685147c979c7094ea63e14b1
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Fri, 28 Oct 2016 11:33:50 +0000 (04:33 -0700)]
Merge "display: remove unused variable" into tizen
taeyoung [Fri, 28 Oct 2016 11:33:46 +0000 (04:33 -0700)]
Merge "display: fix sensor codes for multiple sensors" into tizen
taeyoung [Fri, 28 Oct 2016 04:10:04 +0000 (13:10 +0900)]
display: remove unused variable
Change-Id: I8f27f03f6df96de00e187acea426fe48e5edd17d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Fri, 28 Oct 2016 01:33:37 +0000 (10:33 +0900)]
display: fix sensor codes for multiple sensors
Multiple sensors can be supported for the Light sensing.
Thus we need to choice one sensor to get the light value.
Change-Id: I81bf18552211259c1fb0f9b8d5947ff95e4c8e1f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Taeyoung Kim [Fri, 28 Oct 2016 03:38:21 +0000 (20:38 -0700)]
Merge "Fix tzip problem with hybrid packages made by Tizen IDE" into tizen
Bartlomiej Kunikowski [Fri, 14 Oct 2016 07:31:57 +0000 (09:31 +0200)]
Fix tzip problem with hybrid packages made by Tizen IDE
There are some problems when tzip tried mount hybrid package form
Tizen IDE. There are problems when package has different entries
than package created by default Linux's zip.
Change-Id: Iafeff67746af09cb9afc6318299eb6a64cbc2d42
Signed-off-by: Bartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
taeyoung [Thu, 27 Oct 2016 11:25:26 +0000 (04:25 -0700)]
Merge "display: modify display frame rate operation to use HAL" into tizen
pr.jung [Thu, 27 Oct 2016 07:10:02 +0000 (16:10 +0900)]
Modify VibrateEffect operation
- Use idler callback for VibrateEffect
- Return immediately after parameter checked
Change-Id: Iec2fe70832f614544040f28e1a06b82ca93cae28
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Wed, 26 Oct 2016 08:15:41 +0000 (17:15 +0900)]
display: modify display frame rate operation to use HAL
- Display frame rate (refresh rate) can be changed
by the HAL interfaces.
Change-Id: I5283390af16e9b5a595211677e5eb224489e9e3a
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 25 Oct 2016 02:51:56 +0000 (11:51 +0900)]
battery: fix header file name typo
Change-Id: Id009ce4085c4603993b9892fd19cd6516b1d26c6
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 24 Oct 2016 09:31:24 +0000 (18:31 +0900)]
display: remove acl related codes
Calibration is not supported now, and thus
the dbus methods are removed.
Change-Id: Id779f1d10a2dc55a85c5e491dbe305c1ed99717e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 24 Oct 2016 08:33:34 +0000 (17:33 +0900)]
ir: remove legacy ir codes
The legacy ir codes are not working.
Change-Id: I05c1bbe920f810c49879f4723996b4d2e9fccd8b
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 24 Oct 2016 07:49:50 +0000 (16:49 +0900)]
battery: remove OAL related codes
The function device-set/get-property() for OAL
are not supported anymore. Thus they are changed
to use battery variable which store battery status.
Change-Id: I03311ede1781cf056d82b5474324b5f2b12d83a5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 24 Oct 2016 03:04:07 +0000 (12:04 +0900)]
display: fix auto-brightness change operation
- Previously, auto-brightness change did not work
since sensor apis were little bit changed, and
there was no HAL to convert the sensing value
to the brightness value.
- Now, auto-brightness change works well. The codes
related with sensor are fixed to deliver the handle
of the sensor object, not the pointer of the handle.
And brightness converting HAL is newly added, and
thus the HAL provides the correct brightness according
to the light sensing value.
Change-Id: If35a056f5c75ac91a76491a2021859507dec716e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 24 Oct 2016 02:10:39 +0000 (11:10 +0900)]
display: remove lbm
lbm is replaced to auto-brightness operation
Change-Id: I702aef8ea2d0b0331775d4dcdd9dfbdaa6998e81
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 20 Oct 2016 07:24:17 +0000 (16:24 +0900)]
display: do not change next state by timeout when Alwayson is enabled
- If the next state of display is same with the current state,
display timeout cannot be reset since there is no timeout with
this state change. No time occurs the display state change.
- When display timeout is set 0 by setting app, Alwayson is enabled
and the next state of LCDON is changed to LCDON. Thus display is
turned on during turning off the display (before updating
display state)
- The issue is fixed by skipping update the next state of the LCDON
even if Alwayson is enabled.
Change-Id: Icd38221374789a63e2d01222ef3f3eed1b283968
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 20 Oct 2016 07:13:45 +0000 (16:13 +0900)]
Revert "display: skip state change operation if next state is same as current state"
This reverts commit
819cd27d75a80834c4f5bf746462040915a548a9.
The commit makes missing resetting timeout issue.
Change-Id: Idb3553ec51e219d214a20ccc511e1d364d522d5f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 13 Oct 2016 09:47:26 +0000 (18:47 +0900)]
power: add privilege check routine for reboot operation
The reboot operation is permitted to privileged apps only.
Change-Id: I58e161cbb7b6b1bb54fc6e7dffd5f62eefa12fec
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 13 Oct 2016 09:33:20 +0000 (18:33 +0900)]
power: fix shutdown animation error issue
- Launching manner of the shutdown animation is changed
to use systemd service. Thus the codes are fixed.
- For the sound-server, the function to tuen off sound related
operations is removed from Tizen 3.0. Thus it is removed.
Change-Id: I1950a3e4a796bf5606170b001d01d2876b528fed
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 13 Oct 2016 09:15:07 +0000 (18:15 +0900)]
power: change power off functions to "static"
The power off functions are not used other places.
Thus they are changed to static functions.
Change-Id: I0ea219217ebce7af46e1b1557bb1841cc372b6b3
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 13 Oct 2016 05:16:19 +0000 (14:16 +0900)]
battery: reduce logs for periodical battery reports
There are so many logs for periodical battery reports.
They can reduce the readability for logs. Thus the logs
are reduced.
ex)
battery_state(709) > Full(Discharging) usb(4) Capa(100) Hth(Good,Low), Pres(1), OVP(X), Curr(88,88)
Change-Id: I792f4486ce34f17ba8e1db9640b47c6f1316f68e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 18 Oct 2016 11:40:04 +0000 (20:40 +0900)]
display: skip state change operation if next state is same as current state
- Previously, display state was set again even if next state
is same as current state. Thus display was turned on for a while
during turning off the display since pm_cur_state was updated
after turning off the display and checking if the state is transitable.
- Now, display transition is ignored if next state is same as
current state. Thus the state is not transitable in the case.
Change-Id: I605916c5e2235e46b0b8b04375b4427b32584665
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Giyeol Ok [Fri, 14 Oct 2016 04:36:34 +0000 (13:36 +0900)]
spec: change deviced main version
deviced main version is not changed until now
so raise up it to 2.x.x
Signed-off-by: Giyeol Ok <giyeol.ok@samsung.com>
Change-Id: I03d35d26f3fe7f1b492c5ff39bf2dd5c9ecb852b
taeyoung [Wed, 12 Oct 2016 09:39:26 +0000 (18:39 +0900)]
usb: fix implicit function declaration issue
Change-Id: Ia338258a940ea3c4ff57142865cbc5317cff4284
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Fri, 7 Oct 2016 11:22:51 +0000 (20:22 +0900)]
display: ignore touch event occurred during turnig off the display
- Previously, touchscreen was disabled after turning off the display.
Thus the touch events occurred at the moment between turning off
the display and disabling the touchscreen tried to turn on the
display again. The events were queued for the main loop, and thus
they could not be avoided.
- Now, a flag touch_event_blocked is set before turning off the display.
Thus the touch events can be ignored according to the value of the flag.
Change-Id: Ic49fba662376e4e122a5785854f1adc82ffe4ec0
Signed-off-by: taeyoung <ty317.kim@samsung.com>
pr.jung [Fri, 7 Oct 2016 06:42:19 +0000 (15:42 +0900)]
Fix minor issues
- Check unit_len
- Check whether size has negative value
- Fix for sscanf beffer overflow
Change-Id: I5ba7215e3c6f3ae3544a57fefc4693c4cc768249
Signed-off-by: pr.jung <pr.jung@samsung.com>
pr.jung [Fri, 7 Oct 2016 02:24:44 +0000 (11:24 +0900)]
Fix get_mmc_primary_id to get id not flags
Change-Id: I92a80184938ad62cf84c0f3ae3a0f7d6b54c2ca6
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Wed, 5 Oct 2016 09:57:46 +0000 (18:57 +0900)]
usb: disable usb mode according to the current mode
- Previously, usb mode is disabled according to the selected mode.
Selected mode means that User selected the mode as the next mode.
However Selected mode can be different with current mode since
usb mode setting can be failed or there is no mode if usb cable
is not connected. Thus usb mode should be disabled according to
the current mode.
Change-Id: If3b825910aa1360cf92ccab68442f4931b5f2ec6
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 4 Oct 2016 06:54:33 +0000 (15:54 +0900)]
tzip: add NULL check routine
tzplatform_getenv() can return NULL. If the result is NULL,
Crash will be occurred. Thus NULL check routine is required.
Change-Id: I5a3c4aa90d3d7e387c4295371d25379897175277
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Fri, 30 Sep 2016 04:57:33 +0000 (13:57 +0900)]
tzip: fix string compare bug
- tzip checks if the mountpath is on TZ_SYS_HOME or TZ_SYS_RW_APP.
Thus the length of the comparation needs to be from TZ_SYS_HOME
or TZ_SYS_RW_APP, not the mountpath.
Change-Id: I8ace95651d6101ad1cf7ab85526ee03a4ebb966b
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 29 Sep 2016 08:19:43 +0000 (17:19 +0900)]
tzip: fix privilege issue
- Just apps who have "System" smack label are permitted
to use TZIP
- Just TZ_SYS_HOME and TZ_SYS_RW_APP are permitted
to mount TZIP
Change-Id: I4531577b423a478243038c86571fcc0b4d4c7331
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Kunhoon Baik [Mon, 26 Sep 2016 07:37:12 +0000 (16:37 +0900)]
Fix fd leak
The fd will be allocated for the target process by kernel.
Thus, already-passed(allocated by kernel) fd should be freed in daemon.
Change-Id: I45258b147d921ae96b407f86bf0b4c54f4672537
pr.jung [Mon, 26 Sep 2016 09:51:55 +0000 (18:51 +0900)]
Remove NOTICE file
Change-Id: Id2c592640399d8e146b316ecdf69448bd0c5d70a
Signed-off-by: pr.jung <pr.jung@samsung.com>
Karol Lewandowski [Thu, 22 Sep 2016 14:50:22 +0000 (07:50 -0700)]
Merge "Use USB gadget and USB config HAL instead of direct manipulation" into tizen
taeyoung [Wed, 21 Sep 2016 03:42:58 +0000 (12:42 +0900)]
common: fix minor issues
- memory leak
- uninitialized variable
- memory release sequence
Change-Id: I9a4271bf4a83029e5ce4dd9f38be1cdb2fa7682f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
pr.jung [Wed, 21 Sep 2016 04:38:31 +0000 (13:38 +0900)]
Remove unreachable code
Change-Id: Ia36aa01b963d449de57bc8b590367fd2a8eb1952
Signed-off-by: pr.jung <pr.jung@samsung.com>
pr.jung [Wed, 21 Sep 2016 02:20:31 +0000 (11:20 +0900)]
Fix sscanf issue
Change-Id: I193ad313c1e710d753c05a761af45e2297992d61
Signed-off-by: pr.jung <pr.jung@samsung.com>
pr.jung [Tue, 13 Sep 2016 09:13:42 +0000 (18:13 +0900)]
Not mount internal mmc device
Change-Id: I345998e526e6b57e0d784592fa6c605906e810d1
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Tue, 20 Sep 2016 02:01:16 +0000 (11:01 +0900)]
usbhost: enable usb-host test module only for Mobile profile
usb-host api is enabled only for Mobile profile. Thus
the test module for the usb-host api needs to be enalbed
only for Mobile profile too.
Change-Id: I09d9877c6ebd734f9c2b29bbe491c0ddc3e0e67d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Paweł Szewczyk [Mon, 19 Sep 2016 12:36:05 +0000 (14:36 +0200)]
usb-host-test: Fix stopping testing service on legacy mode
Cleaning usbg context on legacy mode caused deviced crash on
stopping test mode. This commit fixes that.
Change-Id: I3d8c16fdda37090cdbda6dfb95ba72cd3f815733
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Karol Lewandowski [Fri, 16 Sep 2016 15:52:12 +0000 (17:52 +0200)]
usbhost: Use system-popup
Fixed usb popup object path to match system-popup
Change-Id: Ib4fbf7e5bf5e0b39bcd83cb6ea68848581fc7bc0
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Tue, 13 Sep 2016 10:09:55 +0000 (12:09 +0200)]
usbhost: udev: Allow direct access for virtual USB device
Virtual USB device (dummy-hcd) is used for non-interactive testing only
(iTCT). Without appropriate permission GUI popup will be shown requesting
user for access confirmation.
This commit makes dummy-hcd accessible to everyone - so that tests
can execute non-interactively.
Change-Id: I0054a27efec1d606286d1b36034318bca6f6b980
Krzysztof Opasiak [Tue, 13 Sep 2016 08:13:02 +0000 (10:13 +0200)]
Use tizen specific g_ffs module params to enforce device identity
usb host tests expect a defined value in both configuration
string and bmAttributes. Let's use tizen specific g_ffs module
params to enforce those values.
Change-Id: I466e86230fe119477bf2c5148bf73dd3e5c96321
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Krzysztof Opasiak [Mon, 12 Sep 2016 19:26:25 +0000 (21:26 +0200)]
Use module options to enforce expected device attributes
g_ffs provides a set of standard module parameters which
allows to set device indentity. As usb host tests expects
a predefined identity of test device let's use those module
params to set it.
Change-Id: I32782d61f756e6cd4fb13cbcccc2b5ef3bd0a91e
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Paweł Szewczyk [Tue, 6 Sep 2016 14:29:36 +0000 (16:29 +0200)]
Add usb test setup also for 3.10 kernel
Change-Id: I02eab869e55837851c463c1eaa35ec749cb5223e
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Wed, 27 Jul 2016 09:29:20 +0000 (11:29 +0200)]
Add usb-host testing environment setup
Change-Id: Icc0ce7f323a8307f2f80a17b0f6f66165018e7a1
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Kichan Kwon [Tue, 6 Sep 2016 04:43:57 +0000 (13:43 +0900)]
systemd: check mounting before sending booting-done signal
- In current, lazy mount is applied at the mobile profile
- To check whether /opt/usr is mounted, we use specific file made by lazy_mount
Change-Id: Icf9e575607886e824e37deadf44d53bf944968c2
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
pr.jung [Wed, 7 Sep 2016 06:20:06 +0000 (15:20 +0900)]
Change uid and gid for deviced-vibrator
Change-Id: I9b1cd9e1d51a9513c333e47e98c25305720f7fb7
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Mon, 5 Sep 2016 10:42:39 +0000 (19:42 +0900)]
macro: add prefix "TIZEN_FEATURE_" to the local build macros
Change-Id: Iea4529dab2f34d113957632c06da17c3a36cff1f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
pr.jung [Wed, 20 Jul 2016 10:40:39 +0000 (19:40 +0900)]
block: Add information for DeviceBlocked signal
Change-Id: I7f01acddd0c29ee577feba92b0c7d570f85baf09
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Wed, 31 Aug 2016 23:54:56 +0000 (16:54 -0700)]
Merge "systemd: remove deviced-pre.service" into tizen
Paweł Szewczyk [Fri, 26 Feb 2016 14:46:53 +0000 (15:46 +0100)]
usbhost: Introduce temporary policy
Temporary access is limited to single device connection. When device is
disconnected, temporary policy entries related to it are removed. These
entries are never saved.
Change-Id: I158126450dd06ca483f4ee2b5788e8caffcb3f86
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
taeyoung [Tue, 30 Aug 2016 02:05:40 +0000 (11:05 +0900)]
systemd: remove deviced-pre.service
- device-pre.service is not used anymore.
Thus it needs to be removed
Change-Id: I566ca70d8074357482a27de495c83363be1b6606
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Krzysztof Opasiak [Sat, 13 Aug 2016 15:55:31 +0000 (17:55 +0200)]
Use USB gadget and USB config HAL instead of direct manipulation
Thanks to new HALs provided for each Tizen device most of USB
specific code can be droped from deviced. Instead of it, deviced
now uses both HALs to get and apply USB configuration to USB
gadget subsystem.
Strongly based on initial work by:
Taeyoung Kim <ty317.kim@samsung.com>
Change-Id: I396c29a2e6d81feda6dbbc24f9d03022afb00697
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
taeyoung [Mon, 22 Aug 2016 00:21:48 +0000 (17:21 -0700)]
Merge "systemd: add user and group information of the systemd service files" into tizen
taeyoung [Tue, 9 Aug 2016 08:10:38 +0000 (17:10 +0900)]
systemd: add user and group information of the systemd service files
- deviced-pre.service: User and group are system_fw
since the file is used just for the deviced.
- zbooting-done.service: user and group are system_share
since the signal is used at several other modules.
- sdb-prestart.service: user and group are root
since it needs to change the information of sysfs.
The service file is changed not to be installed
with normal images because the file is just used
for debugging purposes.
Change-Id: I1abf3cdc455b6fff5108e62377370d1df7419cc8
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Kunhoon Baik [Sat, 13 Aug 2016 01:04:25 +0000 (10:04 +0900)]
Refactoring Standard Vibrate Engine
Circle and Forced Feedback Standard Engine use standard Core Engine.
Thus, Standard Core Engine was seperated.
Change-Id: I058f98b94a3a6c9ff9b4e2b9e2e95b99d91dbe71
pr.jung [Wed, 6 Jul 2016 10:22:21 +0000 (19:22 +0900)]
haptic: Seperate haptic operation for wearable-circle from haptic.c
Change-Id: I3c81b10bbe1909abe1bcb74e8ad6ee8c78401177
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Wed, 10 Aug 2016 07:15:07 +0000 (16:15 +0900)]
usb: add dbus methods and signals of Tizen 2.4
- dbus methods and signals supported in Tizen 2.4 is added.
Change-Id: Iea351d8038a8043d751cd10166b407d181c7678e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 11 Aug 2016 23:51:53 +0000 (08:51 +0900)]
common: apply Tizen coding rules
- Space is required before ":" and "("
Change-Id: I8bf8b8b3d747a54cf69818db24ec0d244eefa68e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 11 Aug 2016 07:10:44 +0000 (16:10 +0900)]
power: unmount cgroup after closing other apps
- Previously, cgroup is unmounted when poweroff popup is launched.
This is a critical bug and it should be fixed.
- Now, cgroup is unmounted just before turning off power.
Change-Id: Iafe16348a77aee6875e47e19b87cf755b85e8200
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 11 Aug 2016 06:57:04 +0000 (15:57 +0900)]
common: change fuser path
- The path of the fuser path is changed
from /sbin/fuser to /usr/bin/fuser by
upgrading psmisc package.
Change-Id: Iea29bdad6a8438fe5802618adf0fd8a74d1bd11d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
pr.jung [Thu, 11 Aug 2016 05:14:05 +0000 (14:14 +0900)]
block: Remove build warning
Change-Id: Ieb9b550178d92089e74d21486bfe5487bb63e908
Signed-off-by: pr.jung <pr.jung@samsung.com>
pr.jung [Wed, 10 Aug 2016 07:00:57 +0000 (00:00 -0700)]
Merge "block: Modify block module" into tizen
taeyoung [Fri, 5 Aug 2016 07:34:49 +0000 (16:34 +0900)]
devicectl: fix invalid parameter type
Change-Id: I8979e3e6a55896ffb319e708ee26841e2733dcd3
Signed-off-by: taeyoung <ty317.kim@samsung.com>
pr.jung [Thu, 21 Jul 2016 07:52:50 +0000 (16:52 +0900)]
block: Modify block module
1. Merge Block interface to BlockManager
- Before, deviced creates new object for every device node,
sends signal and receives dbus methods requests using Block interface.
It cause some timing issues.
- Now, block module will not creates new object for each node,
and only have BlockManager interface.
2. Check queue has unmount operation before mount
- If operation queue has unmount operation, then deviced doesn't need to mount device.
So, deviced dequeue operations before unmount operation.
3. Check operation is already done
- If operation is already done, deviced doesn't need to do it again.
4. Use specific number of thread
- Maximum number of thread is 5.
- If new block_device which use same devnode is inserted,
same thread which used before dealt with the new block_device.
- Each thread processes operation in the order of block_device is added to block_dev_list.
- After operation queue is empty from one block_device, thread processes operation for next block_device.
5. Add thread mutex and thread wait condition
- Add thread mutex for operation queue and op_len
- Remove block_device mutex (which was for operation queue)
- Wait when all operation queue of thread is empty (op_len == 0)
- Wakeup when first operation is added (op_len is changed to 1)
6. Make block_dev_list for each thread
- Use thread mutex for each block_dev_list of thread
- Dbus method calls should not get information about physically removed block device
7. Same device is dealt with the same thread
- All partitions from same device is dealt with the same thread
8. Remove BLOCK_DEV_DEQUEUE pipe command
Change-Id: Ia4064de11afafdcbeb9811cf4884978f22f27b25
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Wed, 3 Aug 2016 06:52:24 +0000 (15:52 +0900)]
devicectl: add power off/reboot comand
- Power off command
$ devicectl power off
- Reboot command
$ devicectl power reboot
Change-Id: I32abdd6c7cbb01ecd7b111ee5e8b25e6b3d33a2b
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Wed, 3 Aug 2016 05:26:49 +0000 (22:26 -0700)]
Merge "libdeviced: remove unused apis" into tizen
Paweł Szewczyk [Wed, 10 Feb 2016 12:32:13 +0000 (13:32 +0100)]
usbhost: Add API for handling device attach/detach
Change-Id: Ie333f7b403721f7b0611c57d172a930d1b1fc456
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
taeyoung [Wed, 3 Aug 2016 05:15:14 +0000 (22:15 -0700)]
Merge "display: change get/set brightness operation to use max brightness" into tizen
taeyoung [Wed, 27 Jul 2016 08:24:48 +0000 (17:24 +0900)]
libdeviced: remove unused apis
Change-Id: I4c3e34e0bc2d530c52c68fa2ce37518b09eff3af
Signed-off-by: taeyoung <ty317.kim@samsung.com>
José Bollo [Mon, 22 Jun 2015 13:32:42 +0000 (15:32 +0200)]
Removes hidden dependency
The depedency to the project platform/adaptation/system-plugin
that provides tizen-system-env.service is missing.
This removes the hidden dependency. This is a hack.
Please either explicit the dependency in spec file or keep that removal.
Change-Id: Id480a018a036ecbc3a76b15d2424e94c23cc4546
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 25 Jul 2016 08:27:10 +0000 (17:27 +0900)]
block: remove unused variables
Change-Id: Icbe575f938a7ddcc2c84e34a2c7325c398d2655d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Slava Barinov [Fri, 20 May 2016 07:52:40 +0000 (10:52 +0300)]
display: build fix for -fno-common
Fix linkage issues for build for '-fno-common' option which is used with
Address Sanitizer tool
Change-Id: Ie6d31a7782da61d326ce52b43622d73ff7e2128a
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
Paweł Szewczyk [Tue, 2 Feb 2016 17:53:54 +0000 (18:53 +0100)]
usbhost: Store policy in file
Policy is stored in one file at deviced shutdown and read from it at
startup
Change-Id: I8a5ef1da3c44d7b4757ac4e16a07f86863e09c3a
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Tue, 2 Feb 2016 16:20:31 +0000 (17:20 +0100)]
usbhost: Add access list
All policy entries are stored on list. For now we assume 'allow always'
for every request which was not found on access list.
Change-Id: I6b294e14e0a2c06bc9c79a063f2cd181436447b3
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Taeyoung Kim [Mon, 25 Jul 2016 00:58:13 +0000 (17:58 -0700)]
Merge "usb-host: Add introspection of requested device and caller" into tizen
Karol Lewandowski [Thu, 21 Jul 2016 16:18:16 +0000 (09:18 -0700)]
Merge "usbhost: Add API for opening device" into tizen
taeyoung [Thu, 21 Jul 2016 08:22:26 +0000 (17:22 +0900)]
telephony: remove telephony module
- Telephony module is not used currently.
Thus it is removed
Change-Id: I066f096e746b464a38983d64dcfb5fb26adce6a8
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 21 Jul 2016 02:45:25 +0000 (11:45 +0900)]
restart: remove restart module
- restart module is not used. Thus it is removed
Change-Id: I0366d36cc57f4ec0416000550078274d73ad77e5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Yunjin Lee [Wed, 20 Jul 2016 11:12:32 +0000 (20:12 +0900)]
Set SmackProcessLabel in service files
Change-Id: I6ce9ea92b78701727fe4f5997bb406bd9e1ac013
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
taeyoung [Wed, 20 Jul 2016 02:27:08 +0000 (11:27 +0900)]
power: send poweroff notifications before the poweroff operations
- Power off operations contain unloading devices and
disabling journald and cgroup. Thus poweroff notifications
need to be delivered to the user space before the poweroff
operations.
Change-Id: I7b4ed05c571fc6bfe2110527a3281ce5f3910a2c
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Fri, 15 Jul 2016 10:37:30 +0000 (19:37 +0900)]
display: add .wm_ready check routine
- Display cannot be turned on during booting time
if display manager is launched later than deviced.
In this case, the request to turn on the dpms is
failed.
- The existance of the file /run/.wm_ready shows
that the display manager works properly. Thus
deviced checks the file existance during booting.
Change-Id: Iece683fca040d855c122381576c7835462a1adf9
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 14 Jul 2016 11:56:31 +0000 (20:56 +0900)]
block: add the method which returns the primary mmc information
- Primary mmc information is used to install apps on the mmc.
Thus primary mmc information method is necessary to avoid
iterations with previous methods
Change-Id: I0d6ef92533788bf6696274436ba8e28b4624e25f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
pr.jung [Thu, 14 Jul 2016 05:39:18 +0000 (22:39 -0700)]
Merge "haptic: Modify higher bound for haptic level" into tizen