Hyotaek Shim [Wed, 31 Oct 2018 03:04:36 +0000 (12:04 +0900)]
Plugin architecture - TV profile
Change-Id: Ib4d7eea6ccc78eb4cd1bdc803f32a8006524a1f9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Wed, 31 Oct 2018 02:31:09 +0000 (11:31 +0900)]
Plugin architecture - wearable profile
Change-Id: I4f05b4da3f3067878b07779870013b1d0ea24731
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Tue, 30 Oct 2018 12:50:36 +0000 (21:50 +0900)]
Plugin architecture - mobile profile
Change-Id: I65811fb7958cb4865c5e5c616953ca9267bbfd76
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Mon, 29 Oct 2018 05:35:35 +0000 (14:35 +0900)]
Change usb sequence to broadcast usb state after setting vconf value
Change-Id: Ifbbbc70b160e3a351a484d633c3b955ecb6d98d0
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: I8a729a1343d27dc04e5a5611c9fd6ccdf394d4a4
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Mon, 1 Oct 2018 09:37:27 +0000 (11:37 +0200)]
usb-host-test: disable unit start rate limiting in ffs daemon
The usb-host-ffs-test-daemon is, by design, an on-demand daemon. It is
restarted by each test case.
The test cases, however, are run very fast in big series, triggering
unit restart limiting mechanism in systemd and entering it into failure
state.
To prevent this from happening, this commit disables the limiting.
Change-Id: I6b107442cea14015df9ab8d01ce23382b51fd872
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
pr.jung [Mon, 1 Oct 2018 04:27:44 +0000 (13:27 +0900)]
Remove svace error
Change-Id: I25e34b89a92fbe495ddc8f00e3daca3f4ac35cbb
Signed-off-by: pr.jung <pr.jung@samsung.com>
lokilee73 [Tue, 18 Sep 2018 07:38:14 +0000 (16:38 +0900)]
Add two function to support multi leds.
1. dbus_multi_led_control : to control leds
2. dbus_getnumofleds : to get the number of leds
Change-Id: I1b2101c4532b266416a88f5f5bf5ad67dea6fd73
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
pr.jung [Mon, 17 Sep 2018 02:46:48 +0000 (11:46 +0900)]
Remove build warnings
Change-Id: I67bfaf29299825a9b8df19acd969a903af9e5dbc
Signed-off-by: pr.jung <pr.jung@samsung.com>
sanghyeok.oh [Thu, 6 Sep 2018 11:31:02 +0000 (20:31 +0900)]
dbus: replace iter_loop with iter_next
In case of g_variant_iter_loop,
in spite of it reaches end of iteration, trying to assign 0(or null) to param.
If array(with size - g_variant_iter_n_children(iter);) is used as param, it will causes segfault.
So change iter_loop to iter_next.
iter_next don't trying to assign value to param when it reaches end of iteration.
it just return FALSE
Change-Id: I11668d7ff6ee9ad71b62e829921dfd640469e5d7
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
sanghyeok.oh [Tue, 14 Aug 2018 05:03:22 +0000 (14:03 +0900)]
dbus: remove inappropriate usage of gdbus proxy
Change-Id: Ief812a5cf282fb2113e18fea7e5dde19c52b8ba1
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Hyotaek Shim [Mon, 13 Aug 2018 12:11:22 +0000 (21:11 +0900)]
Fix devices_init procedure to prevent starting dev before probing
Change-Id: I3fac32e208cd6412e0646bbf9c047b2730e9eed9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
sanghyeok.oh [Thu, 9 Aug 2018 01:06:39 +0000 (10:06 +0900)]
coverity fix
Change-Id: I8f26ba62367c6087350dfca570e7cf3e1a584fc6
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
sanghyeok.oh [Fri, 27 Jul 2018 06:23:27 +0000 (15:23 +0900)]
coverity fix
Change-Id: I5c3518dcb897fa95f49fcb7dd34b5ce8ae5bc232
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
lokilee73 [Thu, 26 Jul 2018 02:01:04 +0000 (11:01 +0900)]
Remove X related code
Display server was already changed to Wayland.
So, X related code is removed.
Change-Id: Id9d8ebe174e6eb98230a42310ba1b7daa6b89bf2
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Wed, 25 Jul 2018 07:58:46 +0000 (16:58 +0900)]
Minor fixes on poweroff functions
Change-Id: I9edb6c0692cbcb86b0abe63673a8ef5faa95a111
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Wed, 25 Jul 2018 02:36:38 +0000 (11:36 +0900)]
Remove delay time for power off animation
Time for power off animation is guanranteed by resourced.
Change-Id: I7bd70ca3c31f66d20a918a838e5d4ab11e484dfe
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 24 Jul 2018 10:41:57 +0000 (19:41 +0900)]
Change notification method from synchronization to asynchronization
for battery and temperature
There was a bug that caused delayed boot-up issue because of media notification.
Basically, we don't have to wait until notification is finished.
The same bug can be protected by chaning notification way to asynchronization
Change-Id: I52c8bd9d752b2ed4178090fd6ecdc78b0a9a9a0d
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 24 Jul 2018 05:49:52 +0000 (14:49 +0900)]
Re-arrange the type and event for poweroff
Remove duplicated function, poweroff_send_broadcast,
And move system_shutdown_send_system_event.
Change-Id: I527d3449ef01c387c088eb317a884d88a92002ae
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Mon, 23 Jul 2018 23:48:33 +0000 (08:48 +0900)]
Fix direct_set_debug.sh to work only for legacy usb gadget drivers
Change-Id: Id17ba7e233d0f3eba553a0e09dd8c6c49b33bc24
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Mon, 23 Jul 2018 11:11:47 +0000 (20:11 +0900)]
Fix build warnings
Change-Id: I28f7bd0b4d3649fba90d2f4e2d06d56e1ed5271b
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Mon, 23 Jul 2018 06:13:21 +0000 (15:13 +0900)]
Change from synchronization to asynchronization for MediaDeviceNotiOn
While target boots up, deviced sends a request to System-apps for MediaDeviceNotiOn.
And System-apps forwards it to notification.
However, When quickpanel is not ready, notification can't deal with it.
And booting time is extended to 8 seconds.
So, change the request from synchronization to asynchronization.
Change-Id: I7f484b8e976ec922323b4869935264a5b50e72cc
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Thu, 12 Jul 2018 05:21:52 +0000 (14:21 +0900)]
Minor fix for build errors
Change-Id: I15f345076780ac063468620e9ac902d8b8f0cd97
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Mon, 4 Jun 2018 05:12:43 +0000 (14:12 +0900)]
Tzip: fix a suspend failure problem on Tzip(fuse) mount
[ 6268.033010] PM: suspend entry (deep)
[ 6268.033013] PM: Syncing filesystems ... done.
[ 6268.038702] Freezing user space processes ...
[ 6288.043502] Freezing of tasks failed after 20.004 seconds (1 tasks refusing to freeze, wq_busy=0):
...
Reference: https://bugs.launchpad.net/ubuntu/+source/sshfs-fuse/+bug/388419
--- Remaining work ---
Between tzip_suspend() and actual system suspend (autosleep),
additional Tzip user processes might appear.
We still need to fix this race condition problem as well.
Change-Id: I9f9097e440e8bda86d3e0982436c559186a527d9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Tue, 10 Jul 2018 08:17:02 +0000 (17:17 +0900)]
Fix dbus returned error by unmatched signature
charge notification is unmatched between deviced and system-popup
Change-Id: Icbae53e130cb6dd600cba4cd406dbb1efdf37569
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Paweł Szewczyk [Wed, 13 Jun 2018 09:57:24 +0000 (11:57 +0200)]
usbhost: Ignore zeros when checking policy
Change-Id: I3b60ded8baa51e40788d5093061bb9a9873e4da0
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
lokilee73 [Tue, 15 May 2018 02:37:34 +0000 (11:37 +0900)]
Add voltage and temperature for battery infomation and dbus
Change-Id: Ida0fe1083c3d53ed32dda93c410d8263fcc59301
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Fri, 6 Jul 2018 04:33:45 +0000 (13:33 +0900)]
Change watchdog timeout from 30 sec. to 90 sec.
It has been observed,
after a long suspend timeout/delay, Systemd may kill processes by Watchdog timeout as soon as it is thawed.
This is a workaground patch to avoid such a problem.
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] Freezing of tasks failed after 20.006 seconds (1 tasks refusing to freeze, wq_bu$
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] shealth-exercis D 0 16604 3220 0x00400209
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] Call trace:
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] [<
ffffff8008085b70>] __switch_to+0x8c/0xa0
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] [<
ffffff80088d4720>] __schedule+0x37c/0x72c
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] [<
ffffff80088d4bcc>] schedule+0x8c/0xac
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] [<
ffffff80088d786c>] schedule_timeout+0x148/0x38c
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] [<
ffffff8008439f78>] kbase_destroy_context+0x394/0x448
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] [<
ffffff80084465d4>] kbase_release+0xf4/0x158
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] [<
ffffff80081ded58>] __fput+0xf4/0x1a8
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] [<
ffffff80081dee68>] ____fput+0xc/0x14
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] [<
ffffff80080bd378>] task_work_run+0xbc/0xe8
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] [<
ffffff80080891a0>] do_notify_resume+0x80/0x90
[Thu Jul 5 03:18:04 2018] [1: kworker/u4:9: 8153] [<
ffffff8008082f8c>] work_pending+0x8/0x10
...
Jul 05 14:37:25 localhost systemd[1]: storaged.service: Watchdog timeout (limit 30s)!
Jul 05 14:37:25 localhost systemd[1]: storaged.service: Killing process 3092 (storaged) with signal SIGABRT.
Change-Id: I4936d36151ab36cb5868a6c614143ddd9220baa1
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
pr.jung [Tue, 3 Jul 2018 03:12:50 +0000 (12:12 +0900)]
libdeviced: Remove internal apis to mount/unmount/format primary sdcard
- deviced_request_mount_mmc
- deviced_request_unmount_mmc
- deviced_request_format_mmc
- deviced_format_mmc
Change-Id: I2cb0c92496f5d38f654ebfc29eba1d8e64f413f9
Signed-off-by: pr.jung <pr.jung@samsung.com>
lokilee73 [Thu, 28 Jun 2018 13:05:27 +0000 (22:05 +0900)]
Fix crash by usbhost popup
crash happends by below dbus command, because "req" is null.
So, add exception code to avoid it.
dbus-send --system --type=method_call --print-reply --reply-timeout=120000
--dest=org.tizen.system.popup /Org/Tizen/System/Popup/System
org.tizen.system.popup.System.PopupLaunch dict:string:string:"_SYSPOPUP_CONTENT_","usbhost","_APP_PID_","1151"
Change-Id: If0a9182367f6001e336fe78986e59c0cb3d02a56
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Mon, 25 Jun 2018 01:43:32 +0000 (10:43 +0900)]
To fix dbus policy error with dpm
Change policy user from system_fw to security_fw
Change-Id: Ie79eb6e059746ca3a4042124b857e7eb03786e2d
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 21 Jun 2018 07:00:41 +0000 (16:00 +0900)]
Fix dbus returned error by unmatched signature between deviced and system-popup
Change-Id: I00ed9d5acf2c4f19a0e5488c74a4e7a7c358c3d2
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Wed, 20 Jun 2018 04:23:35 +0000 (13:23 +0900)]
Refactoring on check_lcd_is_on() return values
Change-Id: I82398431e64c5d9d94da0ba46979ddecf90b00fc
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Tue, 19 Jun 2018 11:43:11 +0000 (20:43 +0900)]
Add privilege check for dbus_changestate
Change-Id: I7b65c139857ad85830f8e4a89e7745bf25874329
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Tue, 19 Jun 2018 05:26:55 +0000 (14:26 +0900)]
Revert "Add a debugging code for blocked dpms_get_power()"
This reverts commit
95359826ccd4cbc45a262e289615a048f2cc8dcc.
Change-Id: Idf8c02227c1534637a8aad025764fe177f8da9b0
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Paweł Szewczyk [Wed, 13 Jun 2018 09:44:16 +0000 (11:44 +0200)]
usbhost: Fix signature of OpenDevice result
The OpenDevice method is expected to return two values: return code and
a file descriptor.
Change-Id: I523f7a74a132e6aef198fb97d1f58d64a2901367
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Hyotaek Shim [Mon, 11 Jun 2018 05:16:27 +0000 (14:16 +0900)]
Add a debugging code for blocked dpms_get_power()
Program terminated with signal SIGABRT, Aborted.
#0 0xb68c1964 in poll () at ../sysdeps/unix/syscall-template.S:84
84 ../sysdeps/unix/syscall-template.S: No such file or directory.
[Current thread is 1 (Thread 0xb6f4a180 (LWP 7281))]
(gdb) bt
#0 0xb68c1964 in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0xb6b7fc18 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0xb8c177a8,
timeout=<optimized out>, context=0xb8c10cf0) at gmain.c:4259
#2 g_main_context_iterate (context=0xb8c10cf0, block=block@entry=1, dispatch=dispatch@entry=1,
self=<optimized out>) at gmain.c:3955
#3 0xb6b7ffd8 in g_main_loop_run (loop=0xb8c10800) at gmain.c:4156
#4 0xb6e3f5c0 in g_dbus_connection_send_message_with_reply_sync (
connection=connection@entry=0xb8bd0868, message=message@entry=0xb51d8630,
flags=G_DBUS_SEND_MESSAGE_FLAGS_NONE, timeout_msec=10000, timeout_msec@entry=-
1225985936,
out_serial=out_serial@entry=0x0, cancellable=0x0, error=0xbeb38994, error@entry=0xbeb3898c)
at gdbusconnection.c:2844
#5 0xb6e3fb70 in g_dbus_connection_call_sync_internal (connection=0xb8bd0868,
bus_name=<optimized out>, object_path=object_path@entry=0xb6f9f0f4 "/org/enlightenment/wm",
interface_name=0xb6f9f0d8 "org.enlightenment.wm.dpms", method_name=<optimized out>,
method_name@entry=0xb6f9f0f4 "/org/enlightenment/wm", parameters=0x0,
parameters@entry=0xb6c9bce1 <dbus_handle_method_sync+104>,
reply_type=reply_type@entry=0xb6fa02a8, flags=flags@entry=G_DBUS_CALL_FLAGS_NONE,
timeout_msec=timeout_msec@entry=10000, fd_list=fd_list@entry=0x0,
out_fd_list=out_fd_list@entry=0x0, cancellable=cancellable@entry=0x0, error=0xbeb38a24,
error@entry=0x2710) at gdbusconnection.c:6901
#6 0xb6e42294 in g_dbus_connection_call_sync (connection=<optimized out>, bus_name=<optimized out>,
object_path=object_path@entry=0xb6f9f0f4 "/org/enlightenment/wm",
interface_name=<optimized out>, method_name=method_name@entry=0xb6fa02a8 "get",
parameters=parameters@entry=0x0, reply_type=reply_type@entry=0x0,
flags=flags@entry=G_DBUS_CALL_FLAGS_NONE, timeout_msec=timeout_msec@entry=10000,
cancellable=cancellable@entry=0x0, error=error@entry=0xbeb38a24) at gdbusconnection.c:7128
#7 0xb6c9bce0 in dbus_handle_method_sync (dest=<optimized out>,
path=0xb6f9f0f4 "/org/enlightenment/wm", iface=<optimized out>, method=0xb6fa02a8 "get",
signature=signature@entry=0x0, param=param@entry=0x0)
at /usr/src/debug/libsyscommon-4.1/src/libgdbus/dbus-system.c:1994
#8 0xb6f87100 in dpms_get_power (state=0xbeb38a6c)
at /usr/src/debug/deviced-5.0.0/src/display/dpms-wayland-none.c:90
Change-Id: Ia53fb83140509b9ed4db213df2ef09af1ae2f649
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Mon, 11 Jun 2018 05:02:30 +0000 (14:02 +0900)]
Modify WATCHDOG_TIMEOUT to 5 seconds
Change-Id: I41f635437cb8c6930780efbac4548311d5eeffce
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Fri, 8 Jun 2018 01:57:36 +0000 (10:57 +0900)]
Fix dbus policy to allow group users in Tzip
Change-Id: Ibc76b9c7c1c562286e82974937bdd54204e68bc1
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
pr.jung [Fri, 1 Jun 2018 02:18:24 +0000 (11:18 +0900)]
libdeviced: Remove unused internal APIs
- RequestSecureMount and RequestSecureUnmount doesn't exist.
Change-Id: I3fa24b8a4b245f102dca56bf004400ceaa84fa6c
Signed-off-by: pr.jung <pr.jung@samsung.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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
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>
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>
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>
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>
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
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
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>
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
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
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
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>
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>