platform/core/system/deviced.git
4 years agoRemoved "route add" in rndis usb mode 04/225704/1
INSUN PYO [Mon, 24 Feb 2020 05:06:30 +0000 (14:06 +0900)]
Removed "route add" in rndis usb mode

Ifconfig command will also automatically add route information to the routing table in the kernel.
So if you run "route add" additionally, you have duplicate routing table entries.

sh-3.2# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0
cns1.sec.samsun 192.168.0.1     255.255.255.255 UGH   0      0        0 wlan0
cns2.sec.samsun 192.168.0.1     255.255.255.255 UGH   0      0        0 wlan0
192.168.0.0     *               255.255.255.0   U     0      0        0 wlan0
192.168.0.1     *               255.255.255.255 UH    0      0        0 wlan0
192.168.129.0   *               255.255.255.0   U     0      0        0 usb0   <== here
192.168.129.0   *               255.255.255.0   U     0      0        0 usb0   <== here

Change-Id: I96c290ce5de1da81ff7b9f99cfaefc8a64b618ac

4 years agoadd static keyword to locally used functions 63/224563/2
sanghyeok.oh [Tue, 11 Feb 2020 12:10:34 +0000 (21:10 +0900)]
add static keyword to locally used functions

Change-Id: Ia9869628db2e6fe89f3a95d89894f4c31eeb9592
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
4 years agoAdd LCD_OFF_COMPLETE notifier 84/225584/1
Youngjae Cho [Fri, 21 Feb 2020 05:49:59 +0000 (14:49 +0900)]
Add LCD_OFF_COMPLETE notifier

DEVICE_NOTIFIER_LCD_OFF_COMPLETE is used for disabling lbm on LCDOFF.

Change-Id: I88064ef316dd69623be197e5824c168c0069bf74
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoAdd strings for LCDON triggered from bezel/backkey 99/225499/3
Youngjae Cho [Thu, 20 Feb 2020 08:40:45 +0000 (17:40 +0900)]
Add strings for LCDON triggered from bezel/backkey

Change-Id: I2dc3a91991ee318b5419822f8f161d648820715d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agosync usb mode index with vconf 67/225567/1
INSUN PYO [Fri, 21 Feb 2020 03:47:17 +0000 (12:47 +0900)]
sync usb mode index with vconf

Change-Id: Ifa79010dd982e48df995a02a6c6dc519c0e40733

4 years agoAdd FreqStrength to locate optimal position for D2D charging 61/225461/3
Youngjae Cho [Thu, 20 Feb 2020 05:54:28 +0000 (14:54 +0900)]
Add FreqStrength to locate optimal position for D2D charging

For D2D charge, user doesn't know the optimal location for charging.
To improve this, support information about frequency strength to user
so that they can adjust device charging position.

Change-Id: Id002cc62b1aaf37d31328fcc47e0ef3368a0a20f
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoUpdate pm_cur_state correctly in lcd_on_direct() 49/225449/1
Youngjae Cho [Thu, 20 Feb 2020 04:17:39 +0000 (13:17 +0900)]
Update pm_cur_state correctly in lcd_on_direct()

Change-Id: Ic72bbd46a90a597e814de87b45f9c2962d3d7e0d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoFix dbus method: change_usb_client_mode() 66/225366/8 accepted/tizen/unified/20200221.093446 submit/tizen/20200220.052758
Youngjae Cho [Wed, 19 Feb 2020 08:23:02 +0000 (17:23 +0900)]
Fix dbus method: change_usb_client_mode()

Change-Id: I285ecde35f611642bbec068ddade0482107603a5
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoRemove to check if mtp-responder.service exists. 83/225283/2 accepted/tizen/unified/20200220.122436 submit/tizen/20200218.230813
INSUN PYO [Wed, 19 Feb 2020 00:00:21 +0000 (09:00 +0900)]
Remove to check if mtp-responder.service exists.

If you disable mtp mode if there is not mtp service.
The predefined usb mode and current usb state do not match.

So, mtp-responder-dummy.service is created int libdevice-node.
This prevents inconsistencies between predefined usb mode and the current state.

Change-Id: I05dec48b4aabe8bbf0f9139502a2092e518d1aa3

4 years agoMerge "Fix usb mode<->vconf conversion" into tizen
INSUN PYO [Wed, 19 Feb 2020 07:28:34 +0000 (07:28 +0000)]
Merge "Fix usb mode<->vconf conversion" into tizen

4 years agoFix usb mode<->vconf conversion 11/224811/11
Youngjae Cho [Thu, 13 Feb 2020 07:40:09 +0000 (16:40 +0900)]
Fix usb mode<->vconf conversion

We consider usb mode is always valid wherease usb vconf may not
represent the mode correctly as it is determined manually. (eg.
As mode mapping table or vconf definition is hard-coded manually,
it can cause mismatch as usb policy changes.) So mode update always
take place, but vconf update doesn't if converted vconf is invalid.
You can see this in usb_state_set_selected_mode(). usb_selected_mode
is always updated regardless of converted vconf is valid or not. The
vconf update, on the other hand, doesn't take place if the converted
vconf is invalid.

Change-Id: I4f7b0d7529b3612947baf2b9869f4b77571d264f
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoEnable rndis usb mode for tv and iot profile 19/225219/2
INSUN PYO [Tue, 18 Feb 2020 06:07:35 +0000 (15:07 +0900)]
Enable rndis usb mode for tv and iot profile

Iot profile use rndis usb mode without usb tethering feature.
So, all profile have to support usb rndis mode.

Change-Id: Ib75aaf0c141fcb8b554cdcd2adea9a8ad37e3b02

4 years agoAdd iot-display.conf 90/225190/1 accepted/tizen/unified/20200219.130218 submit/tizen/20200218.060818
Hyotaek Shim [Tue, 18 Feb 2020 05:36:27 +0000 (14:36 +0900)]
Add iot-display.conf

Change-Id: I40b5b40f7cabb5165baaaacf6776139f1faf22cc
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoIntroduce critical-log API from dlog 87/225087/4
Youngjae Cho [Mon, 17 Feb 2020 08:14:58 +0000 (17:14 +0900)]
Introduce critical-log API from dlog

Below are added as critical-log
- Power(Display) lock/unlock
- PowerOff/Reboot
- Battery status/health

Change-Id: I6f2f5b1ee660d4f6a8a426b71d311719f9304a36
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoDelete critical-log module 08/225108/1
Youngjae Cho [Mon, 17 Feb 2020 09:47:41 +0000 (18:47 +0900)]
Delete critical-log module

Replace critical-log module to dlog API

Change-Id: Ie2e7c6ddebe47a1d5c89cf494f7ce0fe6102f89f
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoAdd dbus interface for setting DIM_FLAG 96/224896/6 accepted/tizen/unified/20200216.215210 submit/tizen/20200214.104608
Youngjae Cho [Fri, 14 Feb 2020 02:43:05 +0000 (11:43 +0900)]
Add dbus interface for setting DIM_FLAG

Path       : /Org/Tizen/System/DeviceD/Display
Interface  : org.tizen.system.deviced.display
Method     : DimStayControl
Signature  : "(i)"
Parameter  : 0(Unset flag), 1(Set flag)

Control DimStay. Update DIM_FLAG and change brightness accordingly.

Change-Id: I7b3197a965044fdf9e0313ebf8b4d1f383ea7017
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoFix coverity issue 24/224824/1
Youngjae Cho [Thu, 13 Feb 2020 08:36:57 +0000 (17:36 +0900)]
Fix coverity issue

CID 1123903 (#1 of 1): Incorrect deallocator used (ALLOC_FREE_MISMATCH)

Change-Id: I88366204c9bb349e42dd3a79688a1c13280fe622
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoAdd static configurations for usb gadget mode according to sdb debugging on/off 22/224722/3
INSUN PYO [Wed, 12 Feb 2020 10:59:58 +0000 (19:59 +0900)]
Add static configurations for usb gadget mode according to sdb debugging on/off

On:
SET_USB_SDB (USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB)

Off:
SET_USB_DEFAULT (USB_FUNCTION_MTP | USB_FUNCTION_ACM)

Change-Id: I88248ee3508a9529f875bb85a12b020907e40798

4 years agoAdd static configurations for usb gadget mode according to tethering on/off 87/224687/7
INSUN PYO [Wed, 12 Feb 2020 08:00:20 +0000 (17:00 +0900)]
Add static configurations for usb gadget mode according to tethering on/off

On:
SET_USB_RNDIS_SDB (USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_RNDIS)

Off:
SET_USB_SDB (USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_MTP)

Change-Id: I18cad16c6cebfa6d168beb2acca6462e673d2701
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoMerge "Improved log readability" into tizen
INSUN PYO [Wed, 12 Feb 2020 07:24:29 +0000 (07:24 +0000)]
Merge "Improved log readability" into tizen

4 years agoChange usb_cur_mode from bitOR to index. 05/224505/7
INSUN PYO [Tue, 11 Feb 2020 06:15:23 +0000 (15:15 +0900)]
Change usb_cur_mode from bitOR to index.

In MCD 4.0, VCONFKEY_USB_SEL_MODE has been changed to usb function index instead of bitOR of USB_FUNCTION_OOO.
Deviced works internally as bitOR of USB_FUNCTION_OOO, so you must convert it when you read/write from vconf.
Since these two values are not 1:1 mapping, so you have to be careful when you convert bitOR to usb function index.

Mapping table
//////////////////////////////////////////////////////////////////////////////////////////////
[SET_USB_NONE]            = USB_FUNCTION_NONE
[SET_USB_DEFAULT]         = USB_FUNCTION_MTP | USB_FUNCTION_ACM
[SET_USB_SDB]             = USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB
[SET_USB_SDB_DIAG]        = USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_DIAG
[SET_USB_RNDIS_TETHERING] = USB_FUNCTION_RNDIS | USB_FUNCTION_SDB | USB_FUNCTION_ACM
[SET_USB_RNDIS]           = USB_FUNCTION_RNDIS
[SET_USB_RNDIS_SDB]       = USB_FUNCTION_RNDIS | USB_FUNCTION_SDB | USB_FUNCTION_ACM
[SET_USB_DIAG_SDB]        = USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_DIAG
[SET_USB_RNDIS_DIAG]      = USB_FUNCTION_RNDIS | USB_FUNCTION_DIAG
[SET_USB_DIAG_RMNET]      = USB_FUNCTION_DIAG | USB_FUNCTION_RMNET
[SET_USB_ACM_SDB_DM]      = USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_DM
[SET_USB_RNDIS_SDB_ACM]   = USB_FUNCTION_RNDIS | USB_FUNCTION_ACM | USB_FUNCTION_SDB

Reverse mapping table
//////////////////////////////////////////////////////////////////////////////////////////////
USB_FUNCTION_NONE                                                          = SET_USB_NONE
USB_FUNCTION_RNDIS                                                         = SET_USB_RNDIS
USB_FUNCTION_MTP | USB_FUNCTION_ACM                                        = SET_USB_DEFAULT
USB_FUNCTION_DIAG | USB_FUNCTION_RNDIS                                     = SET_USB_RNDIS_DIAG
USB_FUNCTION_DIAG | USB_FUNCTION_RMNET                                     = SET_USB_DIAG_RMNET
USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB                     = SET_USB_SDB
USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_RNDIS                   = SET_USB_RNDIS_SDB
USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_DM                      = SET_USB_ACM_SDB_DM
USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_DIAG = SET_USB_SDB_DIAG

Mapping excluded from reverse table
//////////////////////////////////////////////////////////////////////////////////////////////
USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_RNDIS                   = SET_USB_RNDIS_TETHERING
USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_RNDIS                   = SET_USB_RNDIS_SDB_ACM
USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_DIAG = SET_USB_DIAG_SDB

Change-Id: I3bd0227e274a45135218ae1b015926e13dd9469a

4 years agoImproved log readability 96/224596/1
INSUN PYO [Wed, 12 Feb 2020 02:20:09 +0000 (11:20 +0900)]
Improved log readability

Change-Id: I5b48879b74fd9a73e8ff889781146cd73ceddc5e

4 years agoFix coverity issue 35/224535/2
Youngjae Cho [Tue, 11 Feb 2020 08:53:57 +0000 (17:53 +0900)]
Fix coverity issue

CID 1099199 (#1 of 1): Read from pointer after free (USE_AFTER_FREE)
20. deref_after_free: Dereferencing freed pointer elem.

Change-Id: I85c34f351db0cc10ce384176b90ba72067e3c051
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoFix lockcheck interval 22/224522/1
Youngjae Cho [Tue, 11 Feb 2020 07:56:20 +0000 (16:56 +0900)]
Fix lockcheck interval

Change-Id: Ifac60f83149cb94f8ac1392950fe57b454203cad
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoRefactoring usb current mode 68/224468/6 accepted/tizen/unified/20200212.125906 submit/tizen/20200211.051146 submit/tizen/20200213.232703
INSUN PYO [Tue, 11 Feb 2020 00:51:00 +0000 (09:51 +0900)]
Refactoring usb current mode

Change-Id: Ieaec11ed3cf352c60adf30724552a7fbdfb5a015

4 years agoFix svace issue 97/224397/4
Yunmi Ha [Mon, 10 Feb 2020 08:15:01 +0000 (17:15 +0900)]
Fix svace issue

- Remove memory-leak
- Remove unreachable code

Change-Id: Ie4f9a2819e0e839e21fa7a35aa672ed12f08f158
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoDon't check if timeout is 0 in dbus_sethbm_timeout() 64/224464/2
Youngjae Cho [Tue, 11 Feb 2020 00:27:40 +0000 (09:27 +0900)]
Don't check if timeout is 0 in dbus_sethbm_timeout()

When turning off hbm, it is natural that both the value and the timeout
should be zero as parameters. For turning on the hbm, timeout 0 will be
checked again in hbm_set_state_with_timeout().

Change-Id: I97819bacdff3c156cf5c458ca5f4f230f83f1eb2
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoApply changeable RNDIS IP address 80/224280/2 accepted/tizen/unified/20200211.055725 submit/tizen/20200207.105942
INSUN PYO [Fri, 7 Feb 2020 10:16:28 +0000 (19:16 +0900)]
Apply changeable RNDIS IP address

Change-Id: Icddea9c594cf9aee5afa9d203a5681276ca8f016

4 years agoAdd log related to engineer mode for usb state 61/223761/3 accepted/tizen/unified/20200210.131756 submit/tizen/20200205.015759 submit/tizen/20200205.041356 submit/tizen/20200207.103010
INSUN PYO [Tue, 4 Feb 2020 00:52:24 +0000 (09:52 +0900)]
Add log related to engineer mode for usb state

Change-Id: Iad11d4ec9021c6854a912b3596a193545ac4b5d0

4 years agoChange powerlock/unlock signal name for consistency 23/223723/2
Youngjae Cho [Mon, 3 Feb 2020 07:34:06 +0000 (16:34 +0900)]
Change powerlock/unlock signal name for consistency

Change-Id: I7c4c81431511d7aa696220c55b49546d69574f7a
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoChange version 94/223694/1
Hyotaek Shim [Mon, 3 Feb 2020 05:53:26 +0000 (14:53 +0900)]
Change version

Change-Id: I1d0ae4cdcc6290f81c289e53ce36596d2d64f9db
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoChange version 63/223563/2
Youngjae Cho [Fri, 31 Jan 2020 01:32:50 +0000 (10:32 +0900)]
Change version

Change-Id: Ib3bdef354fd5bec99665783e663c4c2ca078ffff
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoGenerate signal about power lock/unlock information 15/223615/5
Youngjae Cho [Fri, 31 Jan 2020 07:24:20 +0000 (16:24 +0900)]
Generate signal about power lock/unlock information

Change-Id: I75b2a36ff57243bf13a8d6bcd8047d40a015939f
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoProvide time info for suspend/wakeup signal 05/223605/3
Youngjae Cho [Fri, 31 Jan 2020 06:23:33 +0000 (15:23 +0900)]
Provide time info for suspend/wakeup signal

Change-Id: Ia79922caa6a1cde39022c4d092b781217eace58b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoAdd pmqos ultrapowersaving 60/223560/1 submit/tizen/20200131.025416
Youngjae Cho [Fri, 31 Jan 2020 01:18:15 +0000 (10:18 +0900)]
Add pmqos ultrapowersaving

Change-Id: I56d47fbc1741c04e01f0b630f8125d6b2f645f0d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoModify powersaving within the touchscreen_start() 13/223313/9
Youngjae Cho [Tue, 28 Jan 2020 11:15:51 +0000 (20:15 +0900)]
Modify powersaving within the touchscreen_start()

Change-Id: I979e67d4d0caeb2095ee1e2014c368c4a009d291
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoRemove unused function usb_state_get_mode_str() 95/223395/1
INSUN PYO [Wed, 29 Jan 2020 08:14:51 +0000 (17:14 +0900)]
Remove unused function usb_state_get_mode_str()

To break bad dependencies with libdeviced, remove unused functions.

Change-Id: I72d9712e955f96e3de3acdbb623a40a64a675f15

4 years agoFix dbus policy 61/223361/7
Hyotaek Shim [Wed, 29 Jan 2020 05:28:30 +0000 (14:28 +0900)]
Fix dbus policy

01-21 17:04:28.264 E/W-SETTING(P14042, T14042): StDeviceModel.cpp: _sendDbusMessage(748) >
[0;31m* Critical * dbus_connection_send error(org.freedesktop.DBus.Error.AccessDenied:Rejected
send message, 2 matched rules; type="method_call", sender=":1.3163"
(uid=5001 pid=14042 comm="/usr/apps/com.samsung.clocksetting/bin/setting-dev")
interface="org.tizen.system.deviced.touch" member="SetSensitivity" error name="(unset)"
requested_reply="0" destination="org.tizen.system.deviced" privilege="(n/a)"
(uid=0 pid=2682 comm="/usr/bin/deviced ")
rule(<deny send_destination="org.tizen.system.deviced" send_type="method_call" />))

Change-Id: I209fec572db02cf6ce83b5e40966739b78e6846b
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoFix build warning 12/223312/7
INSUN PYO [Tue, 28 Jan 2020 11:20:34 +0000 (20:20 +0900)]
Fix build warning

Change-Id: If9c91e88101653de559727d8685f6625a7329d5c

4 years agoAdd an additional condition for touchscreen_stop() 97/223297/1
Youngjae Cho [Tue, 28 Jan 2020 08:49:17 +0000 (17:49 +0900)]
Add an additional condition for touchscreen_stop()

Check for the display_conf in case touchscreen_stop() is called
before touchscreen_init().

Change-Id: Ieaf676e1f07487de082a9ddf27941fd61c6e2b1d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoFix touchscreen_stop 76/223276/2
Hyotaek Shim [Tue, 28 Jan 2020 07:06:41 +0000 (16:06 +0900)]
Fix touchscreen_stop

Touchscreen powersaving/enable/disable is required also for AOD mode.

Change-Id: I3602de43d76dd8c36af144e2a1633d526aca4f71
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoFix Poweroff, reboot enum for PowerOff.ChangeState 94/222994/6 accepted/tizen/unified/20200129.022554 submit/tizen/20200122.232403
Hyotaek Shim [Wed, 22 Jan 2020 04:32:53 +0000 (13:32 +0900)]
Fix Poweroff, reboot enum for PowerOff.ChangeState

0: None
1: Power Off Popup is launched (not supported since Tizen5.5)
2: Poweroff
3: Restart
4: Exit

Change-Id: I704ca9da1e8c4b50a9eff0e148e3945d1f0d1919
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoDo not unref timeout_source right after the attach 81/222881/3 submit/tizen/20200121.085712 submit/tizen/20200121.090851
Youngjae Cho [Tue, 21 Jan 2020 05:56:48 +0000 (14:56 +0900)]
Do not unref timeout_source right after the attach

Unref right after the attach make gsource be automatically freed on
returning G_SOURCE_REMOVE by callback. This make potential segfault.
To avoid this, move the unref after the callbacks.

Change-Id: I4022565b5f9d667867d2a99dbe8b915ae76648f5
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoauto-test: add dbus interface for deviced 31/219631/7
sanghyeok.oh [Fri, 6 Dec 2019 12:59:08 +0000 (21:59 +0900)]
auto-test: add dbus interface for deviced

Change-Id: I7b4b693c081e41729fa541dad9652ca30f57dc49
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
4 years agoFix display savelog output format 48/222648/3
Youngjae Cho [Fri, 17 Jan 2020 02:55:01 +0000 (11:55 +0900)]
Fix display savelog output format

Change-Id: Ie2e578782f7e98484b2cc095f3b4d59000df5158
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoDelete duplicate request check 89/222589/3
Youngjae Cho [Thu, 16 Jan 2020 09:23:49 +0000 (18:23 +0900)]
Delete duplicate request check

Delete duplicate request condition. This can be problem when request
timeout happen. When the timeout happen it cannot update state, causing
mismatch between real state and variable state.

Change-Id: I3c1557e0abc198645e44f5e44b99cc63ee386bd7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoFix segfault when referencing undefined function 02/222602/1
Youngjae Cho [Thu, 16 Jan 2020 11:16:38 +0000 (20:16 +0900)]
Fix segfault when referencing undefined function

Change-Id: I1c076acaa49255ae2f884f4471480785b35e867b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoSupport touch wakeup, touchscreen powersaving 56/222556/2 submit/tizen/20200116.064903
Youngjae Cho [Thu, 16 Jan 2020 05:20:34 +0000 (14:20 +0900)]
Support touch wakeup, touchscreen powersaving

Change-Id: I39e4b002a4acf24dabf5c1f78ef4c30e46aede9d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoFix to determine network interface name at runtime in rndis mode 66/222566/2
INSUN PYO [Thu, 16 Jan 2020 06:35:21 +0000 (15:35 +0900)]
Fix to determine network interface name at runtime in rndis mode

TM1, TW2, XU3 : use "usb0" name
TW3 : use "rndis0" name

/////////////////////////////////////////////////////////////////////////////////////////////////////////////
TM1, TW2
 - It is not configfs, so it has no /sys/kernel/config/usb_gadget/hal-gadget/functions/rndis.default/ifname.
 - Use "usb0" interface name fixed by kernel.

TW3 (tizen 5.5)
 - It is not configfs.
 - Kernel does not support rndis.

TW3 (tizen 6.0)
 - It is configfs.
 - "/sys/kernel/config/usb_gadget/hal-gadget/functions/rndis.default/ifname" has "rndis0" intarface name.

XU3
 - It is configfs.
 - "/sys/kernel/config/usb_gadget/hal-gadget/functions/rndis.default/ifname" has "usb0" intarface name.

Change-Id: Ibf902121e11007e84321e5fee421273fc03a1a58

4 years agoFix function return type 46/222546/2
Youngjae Cho [Thu, 16 Jan 2020 04:16:06 +0000 (13:16 +0900)]
Fix function return type

Change-Id: I5a64d4d2bd3c9a55ecc4449812308979f59bae1e
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoFix type of extcon_notifier member variable 22/222422/1
Youngjae Cho [Wed, 15 Jan 2020 01:12:44 +0000 (10:12 +0900)]
Fix type of extcon_notifier member variable

Change-Id: Id1325fd93d277ef3485963bbc48889c5fa1037b4
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoIgnore AddPowerOffWait in the middle of poweroff sequence 07/222407/2
Hyotaek Shim [Tue, 14 Jan 2020 12:14:03 +0000 (21:14 +0900)]
Ignore AddPowerOffWait in the middle of poweroff sequence

Change-Id: I22f92c7c2b57f8adca8c245f23b38a2cca428810
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoStart poweroff_start_animation() right after PowerOff event broadcasting 06/222406/4
Hyotaek Shim [Tue, 14 Jan 2020 11:46:26 +0000 (20:46 +0900)]
Start poweroff_start_animation() right after PowerOff event broadcasting

Change-Id: I890e75dc8973d77f260dc16a61e4cdec7c170fab
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoAdd spare time for AddPowerOffWait requests 05/222405/2
Hyotaek Shim [Tue, 14 Jan 2020 11:41:11 +0000 (20:41 +0900)]
Add spare time for AddPowerOffWait requests

Some services are executed under PowerOff event, and trigger AddPowerOffWait.

Change-Id: I3fac3e48bff151e6c4ccd7db6f6292a23068790a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoMake dpms_set_state() synchronous 48/220948/9
Youngjae Cho [Thu, 26 Dec 2019 04:00:28 +0000 (13:00 +0900)]
Make dpms_set_state() synchronous

Make dpms_set_state() synchronous. This change allowes the two
get/set client to use the same dpms_context, which enables
merging those two client into one.

Change-Id: I41bb33e0dd25ff3306e2450e921e65887d13f905
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoAdd dbus method for touchscreen enable/disable 50/222350/3
Youngjae Cho [Tue, 14 Jan 2020 02:22:59 +0000 (11:22 +0900)]
Add dbus method for touchscreen enable/disable

Change-Id: Ib96ac050d0e4ee934440838b3a4f50302f86fc98
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoFix memory leak 39/222239/2 accepted/tizen/unified/20200114.130716 submit/tizen/20200113.072921
INSUN PYO [Mon, 13 Jan 2020 01:04:39 +0000 (10:04 +0900)]
Fix memory leak

Change-Id: Ie04df74cf2c15d0bc23c634ace44ec1b9834c06b

4 years agoFix bug. use "and" operation(&) instead of "or" operation(|) 00/222200/1
INSUN PYO [Fri, 10 Jan 2020 09:37:12 +0000 (18:37 +0900)]
Fix bug. use "and" operation(&) instead of "or" operation(|)

Change-Id: I09107adac1b695294de3b4196b7173f69bc1c85c
(cherry picked from commit 43bbe64b8453dc6c93da3a756219dd23a6a9a9e3)

4 years agoEnable usb_mode udev event for factory mode. 78/222178/3
INSUN PYO [Fri, 10 Jan 2020 05:00:10 +0000 (14:00 +0900)]
Enable usb_mode udev event for factory mode.

Factory jig internally disconnects only signal cable(in Blue and White) of USB cable.
It makes a strange state.

In general, when the USB cable is disconnected, switch udev event and usb_mode udev event occur.
But, in factory jig case, usb_mode udev event only occurs.

Without luck, data-router.service crashs on factory jig because of one's own problems.
So, we have to restart data-router.service when usb_mode udev event happens.

And, sdbd.service and mtp-response.service also restart as a preventive measure.

Change-Id: Ia538383aefd82bad9eaf976fc4dedef605c60026

4 years agoFix display to release lock on booting done. 57/222157/3
Youngjae Cho [Fri, 10 Jan 2020 04:39:52 +0000 (13:39 +0900)]
Fix display to release lock on booting done.

Change-Id: I1743869f2ca7d218ef3745cab71c1f7785edadde
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoFix GCC-9 build error on x86_64, aarch64 51/222051/2 accepted/tizen/unified/20200110.123516 submit/tizen/20200109.085058
Youngjae Cho [Thu, 9 Jan 2020 08:39:23 +0000 (17:39 +0900)]
Fix GCC-9 build error on x86_64, aarch64

Change-Id: I7ede3309e98ddf58ad11e5feffec4f01abfdc40b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoSupport display blink on logdump 22/222022/2
Youngjae Cho [Thu, 9 Jan 2020 05:43:40 +0000 (14:43 +0900)]
Support display blink on logdump

Change-Id: I9ee202204711b196c2d10807a8da09845bacc203
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoExtend USB gadget configuration for further usage #2 23/222023/2 submit/tizen/20200109.072530
INSUN PYO [Thu, 9 Jan 2020 06:12:29 +0000 (15:12 +0900)]
Extend USB gadget configuration for further usage #2

Change-Id: I9d0086b2bea235baab8241b0f7e89d3fca47c8e5

4 years agoRename functions, variables for consistency 75/221775/6 accepted/tizen/unified/20200109.065544 submit/tizen/20200108.103615
Youngjae Cho [Tue, 7 Jan 2020 09:25:40 +0000 (18:25 +0900)]
Rename functions, variables for consistency

dbus_platformlcdcontrol()  -> dbus_changestatebyreason()
display_platform_on()      -> display_on_by_reason()
display_platform_off()     -> display_off_by_reason()
display_platform_control() -> deleted
enum platform_control      -> deleted

Change-Id: I66e0024e235983629d7c8853510ab5bae2921906
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoFix build warning on x86_64, aarch64 63/221863/2 accepted/tizen/unified/20200109.065525 submit/tizen/20200108.065117
Youngjae Cho [Wed, 8 Jan 2020 06:05:56 +0000 (15:05 +0900)]
Fix build warning on x86_64, aarch64

warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Change-Id: I8a17c36bb5b79e01ce814be2cfa563ca95780836
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agobattery-monitor: modified to use consecutive sessions 33/219833/7
sanghyeok.oh [Tue, 10 Dec 2019 12:29:01 +0000 (21:29 +0900)]
battery-monitor: modified to use consecutive sessions

Monitoring data consists of multiple sessions.
Session means monitoring data within device enabled(on) state.
So display battery monitor should distinguish each lcd on-off as session.

Change-Id: I99d1e91857af802890de9f851ff08c69797bffba
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
4 years agoFix log type specifier 40/221840/1
Youngjae Cho [Wed, 8 Jan 2020 02:44:10 +0000 (11:44 +0900)]
Fix log type specifier

Change-Id: If0b713d19c48bbde1e855401fcf09e9b4e24e083
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoRemove warning for GCC-9 22/221522/11 submit/tizen/20200107.015739
sanghyeok.oh [Fri, 3 Jan 2020 08:21:52 +0000 (17:21 +0900)]
Remove warning for GCC-9

Change-Id: If89275f76837f5d3ba6ccf16145abe4526d186b9
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
4 years agoMerge "[Tizen 6.0] Support build with glibc 2.30" into tizen
sanghyeok oh [Mon, 6 Jan 2020 09:21:38 +0000 (09:21 +0000)]
Merge "[Tizen 6.0] Support build with glibc 2.30" into tizen

4 years ago[Tizen 6.0] Support build with glibc 2.30 72/221472/3
Mikhail Kashkarov [Mon, 16 Dec 2019 04:54:19 +0000 (07:54 +0300)]
[Tizen 6.0] Support build with glibc 2.30

The current glibc definitions of the htole* macros don't allow their use
in a static context:

descs_gen.c:59:12: error: initializer element is not constant
   59 |   .magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC),
      |            ^~~~~~~

Import solution from https://patchwork.kernel.org/patch/10517059/

Change-Id: I0019f890de17fbf4d9c89777b0ac07ccb7a74171
Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
4 years agoEnable usb tethering for wearable profile 71/221471/1 accepted/tizen/unified/20200105.221215 submit/tizen/20200103.021604
INSUN PYO [Fri, 3 Jan 2020 00:18:40 +0000 (09:18 +0900)]
Enable usb tethering for  wearable profile

Change-Id: I15349031f74ef7773337aa6b500757e5234580ca
(cherry picked from commit b34ca1a93580481ba270071cf5b233d84e9f9501)

4 years agoSupport extcon counter using device-notifier 29/221129/9 accepted/tizen/unified/20191227.142559 submit/tizen/20191227.111333
Youngjae Cho [Fri, 27 Dec 2019 09:01:11 +0000 (18:01 +0900)]
Support extcon counter using device-notifier

Change-Id: If4c43890024c147561d31e41ade60066c3f321fa
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoExtend USB gadget configuration for further usage 16/221116/7
INSUN PYO [Fri, 27 Dec 2019 07:13:57 +0000 (16:13 +0900)]
Extend USB gadget configuration for further usage

Change-Id: I6ea6de9ead0ba0dbef89d71ab0717b2c6b2477c9
(cherry picked from commit 234a312b38c2407ea41020df6d7508501caa91ff)

4 years agoAdd a dbus policy rule for /csa partition 10/221110/3
Hyotaek Shim [Fri, 27 Dec 2019 06:22:54 +0000 (15:22 +0900)]
Add a dbus policy rule for /csa partition

<check send_destination="org.tizen.system.deviced" send_interface="org.tizen.system.deviced.Csa"
        privilege="http://tizen.org/privilege/internal/default/platform"/>

Change-Id: I1e31836a350e14e1c5efa100493c5df15c3aa2d4
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoWatchdog timeout 90 -> 30 sec to reduce delay from unexpected poweroff failure 00/221100/1
Hyotaek Shim [Fri, 27 Dec 2019 06:01:06 +0000 (15:01 +0900)]
Watchdog timeout 90 -> 30 sec to reduce delay from unexpected poweroff failure

Change-Id: Ib86c4507fd127e046958ea63083500dcabdce881
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoAdd /shared/.h files in deviced.pc 97/221097/3
Hyotaek Shim [Fri, 27 Dec 2019 05:52:36 +0000 (14:52 +0900)]
Add /shared/.h files in deviced.pc

Change-Id: I93b5166b898f54122e295ebbb93441b600be702f
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoAdd deviced header in deviced.pc for product plugin modules 43/221043/2
Hyotaek Shim [Thu, 26 Dec 2019 12:33:09 +0000 (21:33 +0900)]
Add deviced header in deviced.pc for product plugin modules

BuildRequires: pkgconfig(deviced)

Change-Id: I250f5780b646dd9b56d48b607a531249a8dbe62a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoRevert "Safe umount an sdcard partition (/opt/media/SDCardA1)" 26/220526/2 accepted/tizen/unified/20191219.143625 submit/tizen/20191219.082139
Hyotaek Shim [Thu, 19 Dec 2019 07:18:43 +0000 (07:18 +0000)]
Revert "Safe umount an sdcard partition (/opt/media/SDCardA1)"

This reverts commit bf9160eaaae561158273f08316da80c857960286.

Change-Id: Ia8c827d76ed4710891a27c0c97c938ca33353905

4 years agoChange DPMS_GET_TIMEOUT to 5 seconds 08/220308/2
Youngjae Cho [Tue, 17 Dec 2019 00:50:11 +0000 (09:50 +0900)]
Change DPMS_GET_TIMEOUT to 5 seconds

Change-Id: I892308efa4c6c4cecdca9b5f1361d590e48ab660
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoSeparate context of DPMS get/set request 11/220211/1
Youngjae Cho [Mon, 16 Dec 2019 06:09:31 +0000 (15:09 +0900)]
Separate context of DPMS get/set request

Separate DPMS client into two, get/set, each of which is only in charge
of get or set request. And attached to different context so
that they can be handled in different context.
 * dpms_set_state() --> handled within the default context
 * dpms_get_state() --> handled within the dpms_context

Change-Id: I34c7388f83d8bb54a8bfc12c65c2fc45455b9ce1
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoRefactoring display-dpms 06/220006/5
Youngjae Cho [Thu, 12 Dec 2019 08:23:51 +0000 (17:23 +0900)]
Refactoring display-dpms

- Separate initialization from dpms_is_available() to init_dpms().
- Integrate dpms exit sequence into exit_dpms() for poweroff.
- Delete pointer 'wl_glib_data' and use pointer 'info' instead,
  which are practically same.
- Fix usage of disconnect_interface_with_dpms() considering
  GSource finalize.

Change-Id: I7579b7338ee263b4c991cc8a055cefc0eb392f02
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoFix typo 37/219937/2
Youngjae Cho [Thu, 12 Dec 2019 02:24:56 +0000 (11:24 +0900)]
Fix typo

Fix process_background(), process_foreground() log.

Change-Id: If80620f63c0997b6339aa788656bd416b4fb5d66
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoDelete disabling hardkey sound while touchscreen pressed 66/219866/2 accepted/tizen/unified/20191211.121103 submit/tizen/20191211.053721
Youngjae Cho [Wed, 11 Dec 2019 05:23:42 +0000 (14:23 +0900)]
Delete disabling hardkey sound while touchscreen pressed

Change-Id: Ie0f358de9da8a6a54b65874b320255fe9977a7a9
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agobattery-monitor: initial module 56/214356/13
sanghyeok.oh [Fri, 20 Sep 2019 12:10:55 +0000 (21:10 +0900)]
battery-monitor: initial module

Change-Id: Ib353d1baf71816e7cdfe89e9b879759d05504f9f
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
4 years agoremove cmake warning 09/219709/1
sanghyeok.oh [Mon, 9 Dec 2019 09:01:31 +0000 (18:01 +0900)]
remove cmake warning

Change-Id: I2e164564262605f91b1aa0c0454b257c33628be9
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
4 years agoChange unref location of dpms_loop, dpms_context 45/218545/7 accepted/tizen/unified/20191127.020306 submit/tizen/20191126.121759
Youngjae Cho [Mon, 25 Nov 2019 08:43:04 +0000 (17:43 +0900)]
Change unref location of dpms_loop, dpms_context

Change-Id: I7272dfc095424b4a7d3bf7cd4a65f2e714e5c5df
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoExit mainloop after poweroff call to systemd 45/218645/2
Youngjae Cho [Tue, 26 Nov 2019 09:06:10 +0000 (18:06 +0900)]
Exit mainloop after poweroff call to systemd

Change-Id: I150d0638026632c655f2f7280edb77070f7ce034
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoRemove default value at systemd services 90/218290/1
INSUN PYO [Thu, 21 Nov 2019 05:33:43 +0000 (14:33 +0900)]
Remove default value at systemd services

https://www.freedesktop.org/software/systemd/man/systemd.service.html
 - Behavior of notify is similar to exec; ... If NotifyAccess= is missing or set to none, it will be forcibly set to main.
 - WatchdogSec= ... If NotifyAccess= is not set, it will be implicitly set to main.

Change-Id: I6392252b39036367dc56c62854219b4df73e0ad2

4 years agoMake get_lcd_power() use dpms to get lcd power 07/217807/4 accepted/tizen/unified/20191118.122822 submit/tizen/20191118.061624
Youngjae Cho [Thu, 14 Nov 2019 08:49:11 +0000 (17:49 +0900)]
Make get_lcd_power() use dpms to get lcd power

Deviced used to set lcd power by requesting to dpms(dpms_set_state), but
get lcd power by reading node directly through HAL(display_dev->get_state).
To make this get/set machanism same, get mechanism changed to use
dpms(dpms_get_state), removed all regarding HAL. Also, make dpms_get_state
synchronous and dpms_set_state asynchronous to ensure latency issue.

Change-Id: Ib93cb55d18f3e175a16c7138288b09ac76d25f05
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoAdd touchscreen execute 94/217494/2 accepted/tizen/unified/20191113.010239 submit/tizen/20191112.072646
Youngjae Cho [Tue, 12 Nov 2019 06:28:14 +0000 (15:28 +0900)]
Add touchscreen execute

Change-Id: Ia97235271addd8c10690e1b0dbfdc92b3b8c0231
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agodisplay-dpms: use get_state listener to get get_dpms request event 89/217089/2 accepted/tizen/unified/20191112.034025 submit/tizen/20191111.071211
Junkyeong Kim [Wed, 6 Nov 2019 07:31:14 +0000 (16:31 +0900)]
display-dpms: use get_state listener to get get_dpms request event

Change-Id: Iae31d9d3d95fcdd6c886c3be5988d7b19759bc72
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
4 years agosvace fix 37/217237/4
sanghyeok.oh [Fri, 8 Nov 2019 02:02:44 +0000 (11:02 +0900)]
svace fix

Change-Id: I520705e248ae242f8aba8c1821380d774cee3046
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
4 years agoExclude battery critical-log in case of -DBATTERY_MODULE=off 99/217299/4
Youngjae Cho [Fri, 8 Nov 2019 06:33:26 +0000 (15:33 +0900)]
Exclude battery critical-log in case of -DBATTERY_MODULE=off

Change-Id: I9adfd7018964fb14b73f1453876ee0fc3d5b78ea
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoDisable reboot option check 64/217364/1 accepted/tizen/unified/20191111.105547 submit/tizen/20191111.023004 submit/tizen/20191111.023037
Hyotaek Shim [Mon, 11 Nov 2019 02:13:52 +0000 (11:13 +0900)]
Disable reboot option check

Change-Id: If0ab215661dd131c04558ae055260b2fa72e1246
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoRemove pweroff_popup, shorten long key press interval 15/216915/2
Youngjae Cho [Tue, 5 Nov 2019 01:29:05 +0000 (10:29 +0900)]
Remove pweroff_popup, shorten long key press interval

Change-Id: Ic0ce8d155ec698265f582f813de5874dd8925416
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoDelete trailing '\n' character in log of ctime_r 21/216521/1
Youngjae Cho [Mon, 28 Oct 2019 01:52:03 +0000 (10:52 +0900)]
Delete trailing '\n' character in log of ctime_r

Change-Id: I494de2e480bbc3aff092136f75d114560763f747
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoStop checking lock if process had been terminated 94/215894/9
Youngjae Cho [Thu, 17 Oct 2019 08:19:47 +0000 (17:19 +0900)]
Stop checking lock if process had been terminated

Change-Id: I960c850c033f6ab2297293ba092c101a1cf77775
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoAdd config file of critical-log to iot and tv profiles. 14/215914/1
INSUN PYO [Thu, 17 Oct 2019 11:03:12 +0000 (20:03 +0900)]
Add config file of critical-log to iot and tv profiles.

Because of "config-parser.c: config_parse(127) > Failed to read '/etc/deviced/critical-log.conf'. line=0" error on XU3.

Change-Id: I9fef3ca3a21052544e9c00aa0ef831d46069bb32

4 years agoRemove unused code regarding /usr/bin/save_blenv 59/215459/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.023311 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090849 accepted/tizen/unified/20191011.023405 submit/tizen/20191010.021317 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 tizen_5.5.m2_release
Hyotaek Shim [Tue, 8 Oct 2019 10:05:49 +0000 (19:05 +0900)]
Remove unused code regarding /usr/bin/save_blenv

Change-Id: If4418c367927abe2edef46afedb4831797eef154
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoFix ASAN build errors 28/215328/1 accepted/tizen/unified/20191007.234854 submit/tizen/20191007.054826
Hyotaek Shim [Mon, 7 Oct 2019 05:47:29 +0000 (14:47 +0900)]
Fix ASAN build errors

[  288s] CMakeFiles/deviced.dir/src/battery/lowbat-handler.c.o:(.bss+0x140): multiple definition of `old_battery'
[  288s] CMakeFiles/deviced.dir/src/battery/battery-time.c.o:(.bss+0x200): first defined here
[  288s] CMakeFiles/deviced.dir/src/battery/lowbat-handler.c.o: In function `lowbat_initialized':
[  288s] /home/abuild/rpmbuild/BUILD/deviced-5.5.0/src/battery/lowbat-handler.c:102: multiple definition of `battery'
[  288s] CMakeFiles/deviced.dir/src/battery/battery-time.c.o:/home/abuild/rpmbuild/BUILD/deviced-5.5.0/src/battery/battery-time.c:363: first defined here

Change-Id: Ibf76f7265dfc1bf41c2b8e72de3dd6ed888ab7fc
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>