platform/core/connectivity/bluetooth-frwk.git
6 years agoModify the package name for bluetooth-haltests 00/187200/1 accepted/tizen/unified/20180823.072123 submit/tizen/20180821.044826 submit/tizen/20180822.041942
DoHyun Pyun [Tue, 21 Aug 2018 02:21:42 +0000 (11:21 +0900)]
Modify the package name for bluetooth-haltests

Change-Id: I60f9b05a8020945964b1e93146f227b29544459e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoModify OAL hal test binary name 97/187097/1 accepted/tizen/unified/20180821.090920 submit/tizen/20180820.023013
DoHyun Pyun [Mon, 20 Aug 2018 02:27:54 +0000 (11:27 +0900)]
Modify OAL hal test binary name

Change-Id: I60e870bd23f1eb4d4d36551d78d26767732f254d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoNotification was faling as Gatt serv info was NULL 71/186671/1
Abhishek Chandra [Mon, 13 Aug 2018 09:06:49 +0000 (14:36 +0530)]
Notification was faling as Gatt serv info was NULL

String pointer were compaired for the path in
__bt_gatt_get_service_state , which was causing the
API to return NULL.

Fix : string compairition for service path is used.

Change-Id: I5ec7d768f9a63780cbc18ef1f8b00c31542c3adc
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years agoRemove the coverage check option for OAL library 73/186473/3 accepted/tizen/unified/20180816.134643 submit/tizen/20180814.011534
DoHyun Pyun [Fri, 10 Aug 2018 00:56:01 +0000 (09:56 +0900)]
Remove the coverage check option for OAL library

Change-Id: I0bc439758904b1c311ff4dcf7ef763c5d0ec5ffb
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix memory leak: cb_device_properties in oal-device-mgr.c 04/186304/1
Taesoo Jun [Thu, 9 Aug 2018 00:53:37 +0000 (09:53 +0900)]
Fix memory leak: cb_device_properties in oal-device-mgr.c

Change-Id: Ie5cec6a51ea2e5b20d24df202d727eae31680a79
Signed-off-by: Taesoo Jun <steve.jun@samsung.com>
6 years agoBT 5.0: Implement Is feature support API's 27/186027/5
Anupam Roy [Mon, 6 Aug 2018 21:04:10 +0000 (02:34 +0530)]
BT 5.0: Implement Is feature support API's

This patch implements FRWK API's which check
whether adapter supports LE 2M PHY and
LE CODED PHY features or not

Change-Id: I31284348e3c18f2b2122883c7b83b5d7486dfb62
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
6 years agoMerge "Implement local LE features adapter property" into tizen
Pyun DoHyun [Wed, 8 Aug 2018 06:14:41 +0000 (06:14 +0000)]
Merge "Implement local LE features adapter property" into tizen

6 years agoImplement local LE features adapter property 15/186215/1
Anupam Roy [Wed, 8 Aug 2018 06:13:29 +0000 (11:43 +0530)]
Implement local LE features adapter property

This patch handles Adapter's local LE features property
which will indicate whether adapter supports LE 2M PHY
and LE CODED PHY. This property is emitted by bluetoothd
as adapter's property changed event and handled in
bluetooth HAL layer. LE features are further propagated to
bt-service via new OAL event OAL_EVENT_BLE_LOCAL_FEATURES.
LE features will be finally saved in bt-service daemon.
Application can read these values directly from bt-service.

Change-Id: I9e1b617851693b7bab038a9f10861c6bf3ba8835
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
6 years agodevice : Handle "Does Not Exist" error in get_ida 08/186008/1
Seungyoun Ju [Mon, 6 Aug 2018 11:31:35 +0000 (20:31 +0900)]
device : Handle "Does Not Exist" error in get_ida

[Problem] Even though LE RPA device is not paired, operation failed
 error code (BLUETOOTH_ERROR_INTERNAL) is reported.
[Cause & Measure] Check error->message and report BLUETOOTH_ERROR_NOT_PAIRED
 when LE RPA device is not bonded
[Checking Method] N/A

Change-Id: I726c389c8f2cc0d9458a803ac4bb3463a9e25b60

6 years agoEnhance BT On scenario in power off 06/186006/1
Seungyoun Ju [Fri, 27 Jul 2018 09:30:20 +0000 (18:30 +0900)]
Enhance BT On scenario in power off

[Problem] BT is not turned on when flight mode is unset during power
 off. This is not usual case but it happens sometimes in wearable model.
 Specific case is described in "Checking Method".
[Cause & Measure] If BT on is requested during power off, just update
 vconf of bt state. So that in next boot, BT is turned on.
[Checking Method] BT On -> Cool down (LimitAction) / Flight mode on ->
 BT Off -> Cool down (ShutDown) -> Flight mode off -> BT On, but it's not done
 -> Power off -> Power On -> BT should be turned on

Change-Id: I63775e38b09b77d7eb7c4cf9ae8e8445902b793a

6 years agoMerge "Add new error codes." into tizen
Pyun DoHyun [Fri, 3 Aug 2018 01:22:30 +0000 (01:22 +0000)]
Merge "Add new error codes." into tizen

6 years agoAdded Event Handling in HAL 85/185785/2
Abhishek Chandra [Thu, 2 Aug 2018 08:33:11 +0000 (14:03 +0530)]
Added Event Handling in HAL

[Problem] Start/Stop notify ,Gatt Connected and
disconnected event was not received till bt-service .

[Solution] Added Event handling for Notification change,
Gatt Connected and Disconnected was missing in the
HAL layer .

Change-Id: I72112ace1ed56d711e5a95e799cf2d27989f38ae
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years agoAdd new error codes. 77/185777/1
Deokhyun Kim [Thu, 2 Aug 2018 08:02:24 +0000 (17:02 +0900)]
Add new error codes.

 - BLUETOOTH_ERROR_NO_DATA
 - BLUETOOTH_ERROR_AUTHORIZATION_REJECTED

Change-Id: I8637ca558bcc0856008d357de96edd80f4665b7c
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoVerify 16 testcases for BT HAL (OAL layer) 81/185581/2 accepted/tizen/unified/20180802.090247 submit/tizen/20180801.080227 submit/tizen/20180801.235030
DoHyun Pyun [Wed, 1 Aug 2018 01:30:44 +0000 (10:30 +0900)]
Verify 16 testcases for BT HAL (OAL layer)

Change-Id: I622e388c7ea930e19e979960dd0cdd29d9c9b77c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoAdd HAL testcases for oal adapater 16/185516/1 accepted/tizen/unified/20180801.080104 submit/tizen/20180731.041022
DoHyun Pyun [Tue, 31 Jul 2018 08:23:43 +0000 (17:23 +0900)]
Add HAL testcases for oal adapater

Change-Id: Iffacb93377869fca5fb66e80e605f8bbbc1b367b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoMerge "Modified dbus permission for obex" into tizen
Pyun DoHyun [Mon, 30 Jul 2018 07:44:19 +0000 (07:44 +0000)]
Merge "Modified dbus permission for obex" into tizen

6 years agoFix Coverity issues in bluetooth-frwk 66/185266/1
Wootak Jung [Fri, 27 Jul 2018 06:31:05 +0000 (15:31 +0900)]
Fix Coverity issues in bluetooth-frwk

859540, 859527

Change-Id: Ic453cb1dd6094daca0aabc022660a304e766cd0e

6 years agoModified dbus permission for obex 25/184525/2
Amit Purwar [Thu, 19 Jul 2018 10:49:53 +0000 (16:19 +0530)]
Modified dbus permission for obex

Change-Id: Ibb789a70fc7cf0f7cd265bc6e4d440fcbda4bbd6
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoMerge "Add HAL testcases for oal manager" into tizen
DoHyun Pyun [Thu, 19 Jul 2018 06:47:47 +0000 (06:47 +0000)]
Merge "Add HAL testcases for oal manager" into tizen

6 years agoFix : Bluetooth log is not removed on user binary 93/184593/1
Seungyoun Ju [Tue, 26 Sep 2017 07:52:06 +0000 (16:52 +0900)]
Fix : Bluetooth log is not removed on user binary

[Problem] Bluetooth log is not deleted on user binary.

[Cause & Measure] Directory owner / group is modified manually. It
 causes inconsistency with system setting. The base directory which is
 passed from dump daemon has setuid bit. So the files and directories
 created by bluetooth script have the same group id to the base
 directory. So bluetooth script doesn't need to change ownership of
 files and directories. This patch removes chown part from script and
 adds write permission to group.

[Checking Method] *#9900# on User binary

Change-Id: Ibfde6fd7a37483dcdd3b0c4f8872dbb436095870

6 years agoFix : Bluetooth disabled event is sent twice 92/184592/1
Seungyoun Ju [Tue, 19 Sep 2017 13:40:24 +0000 (22:40 +0900)]
Fix : Bluetooth disabled event is sent twice

[Problem] Bluetooth disabled event is sent twice when it is turned off
 by entering flight mode. It causes applications malfunction.
 For example, normally disabled event is received by weconnd after all GATT
 services have been removed. But in problem situation, the first
 disabled event happens too early so bluetooth resources (GATT services)
 remain at that time. It makes weconnd enter to strange condition (BT off but
 there are some GATT services). And after bluetooth resources are
 cleared, the second disabled event happens again. But this event is not
 processed by weconnd because it is same state to previous one.

[Cause & Measure] The first event was sent in wrong context (at Powered
 property change). This patch makes the event happen only when
 bluetoothd is terminated. So that, only one disabled event is sent
 after all bluetooth resources are cleared.

[Checking Method] Check disabled event when entering to flight mode.
 This patch is tested under below situation also.
 1. BT on / off
 2. Flight mode on -> Flight mode off
 3. Flight mode on -> BT on -> Flight mode off
 4. Recovery (TxTimeout or Hardware error by sending dbus signal)

Change-Id: Ief9dff1b4074143e1cab41b688cc960f0c73760e

6 years agoAdd HAL testcases for oal manager 69/184569/1
DoHyun Pyun [Thu, 19 Jul 2018 02:00:44 +0000 (11:00 +0900)]
Add HAL testcases for oal manager

Change-Id: Icdc8ea3b9e27b3c7bd5dfee393dc0f6e7017a0d5
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoAdd the base code for Bluetooth HAL testcases 18/184118/1
DoHyun Pyun [Mon, 16 Jul 2018 00:46:20 +0000 (09:46 +0900)]
Add the base code for Bluetooth HAL testcases

Change-Id: I936551aad88dada2f4da3d2dd2cee24466f0c16e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix Coverity issues in Bluetooth-frwk 85/184085/3 accepted/tizen/unified/20180717.063047 submit/tizen/20180715.232650
Atul Rai [Fri, 13 Jul 2018 10:49:11 +0000 (16:19 +0530)]
Fix Coverity issues in Bluetooth-frwk

This patch fixes coverity issues in BT-API, bt-service, BT-OAL and BT-HAL.
Fixed coverity Ids are as below:
859518, 859522, 859523, 859524, 859527, 859533, 859535, 859540,
859542, 859547, 859557, 859562, 859564, 859569, 859575

Change-Id: Ie920767a4581a3a6b206f2842d2a9a6fffc052c9
Signed-off-by: Atul Rai <a.rai@samsung.com>
6 years agoCoverity Fixes in BTAPI and BTHAL 66/183966/2
Anupam Roy [Thu, 12 Jul 2018 15:34:03 +0000 (21:04 +0530)]
Coverity Fixes in BTAPI and BTHAL

This patch fixes below Coverity issues:-

859630, 859619, 859613, 859641, 859629
859628, 859625, 859623, 859615, 859608
859603, 859588, 859643, 859632, 859626
859597, 859639, 859591, 859606

Change-Id: Ic81ffc7e6b98144af30f6e72f0a65e4f1eeff920
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
6 years agoUpdate dbus conf for Agent1 96/183896/1
Seungyoun Ju [Thu, 12 Jul 2018 05:50:37 +0000 (14:50 +0900)]
Update dbus conf for Agent1

[Problem] Below calls are not blocked in sdb default user shell
 $ dbus-send --system --type=method_call --print-reply --dest=org.projectx.bt /org/tizen/adapter_agent org.bluez.Agent1.RequestPinCode objpath:/org/bluez/hci0/dev_78_F7_BE_91_30_26
 $ dbus-send --system --type=method_call --print-reply --dest=org.projectx.bt /org/tizen/adapter_agent org.bluez.Agent1.ReplyAuthorize uint32:0
[Cause & Measure] Some rules are already specified by other bus conf.
 And same destination and different rules exist in multiple files.
 So this patch adds more specific target to rules and removes duplicated
 ones.
[Checking Method] Call dbus method

Change-Id: I71e4ea31cb5539456632aa9a7ec17ea9019fdec6

6 years agoMerge changes Ic0213db6,If8b2ae56 into tizen
Pyun DoHyun [Wed, 11 Jul 2018 00:14:02 +0000 (00:14 +0000)]
Merge changes Ic0213db6,If8b2ae56 into tizen

* changes:
  [BT-Service] Fix Coverity issues
  [HAL]Fix Resource leak (CoverityID:859600, 859593)

6 years ago[BT-Service] Fix Coverity issues 41/183741/1
Atul Rai [Tue, 10 Jul 2018 11:34:55 +0000 (17:04 +0530)]
[BT-Service] Fix Coverity issues

This patch fixes following Coverity issues:
Id: 859618, 859586, 859605, 859624

Change-Id: Ic0213db613df41e663f351cd5d0c667404e6f23d
Signed-off-by: Atul Rai <a.rai@samsung.com>
6 years ago[HAL]Fix Resource leak (CoverityID:859600, 859593) 40/183740/1
Atul Rai [Tue, 10 Jul 2018 06:38:16 +0000 (12:08 +0530)]
[HAL]Fix Resource leak (CoverityID:859600, 859593)

Change-Id: If8b2ae56bc402e7e5bcf2eb4f656c7ee9681d744
Signed-off-by: Atul Rai <a.rai@samsung.com>
6 years agoadded dbus policy to allow method_call from bluez to bluetooth-frwk 84/183684/1 submit/tizen/20180710.070923
Amit Purwar [Mon, 9 Jul 2018 09:27:10 +0000 (14:57 +0530)]
added dbus policy to allow method_call from bluez to bluetooth-frwk

Change-Id: I71e2c32fa280cd8d1045923832082594cf3d9e1e
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoFix : Some properties of adapter couldn't be handled 29/183529/1
Seungyoun Ju [Fri, 6 Jul 2018 09:06:40 +0000 (18:06 +0900)]
Fix : Some properties of adapter couldn't be handled

[Problem] Some property changed events for adapter object couldn't be handled
[Cause & Measure] It returns in the iterate loop

Change-Id: I23043706ef888d5594e70a64792b91bbd7b36747

6 years agoDeinitialize adv slot and scanner 27/183527/1
injun.yang [Fri, 6 Jul 2018 08:42:50 +0000 (17:42 +0900)]
Deinitialize adv slot and scanner

[Problem] When application request BLE scanning, IN_PROGRESS error returned
[Cause & Measure] After recover bluetooth, adv slot and scanner is not initialized.
[Checking Method] Recover BT durning LE scanning

Change-Id: I117a602ac99bc98c9e063c10734d86e32f95de59
Signed-off-by: injun.yang <injun.yang@samsung.com>
6 years agoSet a default LE(LL) TX packet length to maximum 24/183524/2
Sangki Park [Fri, 6 Jul 2018 08:30:13 +0000 (17:30 +0900)]
Set a default LE(LL) TX packet length to maximum

[Problem] N/A
[Cause & Measure] To support LE packet length extension
[Checking Method] Make a LE connection and check TX/RX size

(AS IS)
    > LL_LENGTH_REQ (DEV -> Gear)
            RX Max : Octets: 251 , Time: 2120  ms
                    TX Max : Octets: 251 , Time: 2120  ms
                    < LL_LENGTH_RSP (Gear -> DEV)
            RX Max : Octets: 251 , Time: 2120  ms
                    TX Max : Octets: 27   , Time: 328  ms

                    (TO BE)
    > LL_LENGTH_REQ (DEV -> Gear)
            RX Max : Octets: 251 , Time: 2120  ms
                    TX Max : Octets: 251 , Time: 2120  ms
                    < LL_LENGTH_RSP (Gear -> DEV)
            RX Max : Octets: 251 , Time: 2120  ms
                    TX Max : Octets: 251 , Time: 2120  ms

Change-Id: Ic193a6f07b75596c1279803cecb63711e53b0c47

6 years agoCode cleanup 23/183523/2
injun.yang [Fri, 6 Jul 2018 08:03:21 +0000 (17:03 +0900)]
Code cleanup

Change-Id: Id446db2902cdefbae4a8aa3401053744f493495e
Signed-off-by: injun.yang <injun.yang@samsung.com>
6 years agoFix improper use of "GetAll" D-Bus method 16/183516/1
Nagaraj D R [Fri, 6 Jul 2018 06:22:37 +0000 (15:22 +0900)]
Fix improper use of "GetAll" D-Bus method

[Problem]Unnecessary use of "GetAll" dbus method on bluetoothd
interface where "Get" dbus method could have been used
[Cause & Measure]Base code issue.
Measure : Replace "GetAll" dbus method with "Get" in places
where only a particular property of a D-Bus object is required

Change-Id: If68b5a9215e9816baf9209303f13aebb3763867e

6 years agoDon't unregister hold advertising information 10/183510/1
Seungyoun Ju [Fri, 6 Jul 2018 06:05:09 +0000 (15:05 +0900)]
Don't unregister hold advertising information

[Problem] Restarted advertising triggered by LE connection request
 doesn't have the information about sender and handle. It causes some
 malfunctions (e.g. Connect LE to out-of-range LE device twice. The
 second one is requested as Directed Advertising (Slave role request))
[Cause & Measure] Advertising information is flushed once it is stopped
 by LE connection request. So even though it is restarted by hold
 advertising logic, there is no sender / advertising handle information.
 It causes the next time hold advertising failed.
 This patch doesn't unregister hold state advertising slot. Because it
 will be used again after timer is expired. Or, once timer is cancelled,
 it will be unregistered properly.
[Checking Method] Connect LE to out-of-range LE device twice

Change-Id: Ia79dd8ab5ba06778d946856883879c1f5a93d898

6 years agoCheck whether dbus name is acquired normally. 06/183506/1
Deokhyun Kim [Fri, 6 Jul 2018 05:52:43 +0000 (14:52 +0900)]
Check whether dbus name is acquired normally.

[Problem] bt-service is terminated before dbus method is called.
[Cause & Measure] dbus own_name is too delayed when system is busy.
  Call g_bus_own_name with callback functions. And then terminate bt-service
  after checking bus_name acquired.
[Checking Method] Repeat to on/off BT

Change-Id: I63b2d8d0714217f21d72d77b7d6f2afb8a75ea1d

6 years agoCheck priviledge 03/183503/1
injun.yang [Fri, 6 Jul 2018 05:16:43 +0000 (14:16 +0900)]
Check priviledge

Change-Id: Ic9ef23563166f7ef0041368423a3e14187397a51
Signed-off-by: injun.yang <injun.yang@samsung.com>
6 years agoFix : Request MTU 99/183499/1
injun.yang [Fri, 6 Jul 2018 05:02:24 +0000 (14:02 +0900)]
Fix : Request MTU

Change-Id: Ia38191d2313bbb3ec5d3148985c72a29b1c6b785
Signed-off-by: injun.yang <injun.yang@samsung.com>
6 years agoHandling le connection interval 98/183498/1
injun.yang [Fri, 6 Jul 2018 04:56:23 +0000 (13:56 +0900)]
Handling le connection interval

[Problem] Whenever several application set the le connection interval,
 it overwirted and affect LE throughput
[Cause & Measure] Manage all demand and keep the minimum interval
 [Checking Method] Set le connection interval

Change-Id: I32b75169c30e7fae8e7419785e5aaa15c6ad8f62
Signed-off-by: injun.yang <injun.yang@samsung.com>
6 years agoFix : Multiple advertising feature was not working 06/183206/1
injun.yang [Tue, 3 Jul 2018 09:36:58 +0000 (18:36 +0900)]
Fix : Multiple advertising feature was not working

[Problem] Multiple advertising feature was not working
[Cause & Measure] Advertising slot was not initialized because BT
chipset supported slot count is over the defined maximum. Platform can
support the large number of slots if BT chipset can. So we don't need
to define maximum value of slots. This patch removes the maximum value
of slots.
[Checking Method] Turn on Bluetooth and check advertising slot's
initialization.

Change-Id: Ic0a3293b4f4e7f7b048b61074fb95b9898efba7e

6 years agoFix the crash 05/183205/1
injun.yang [Tue, 3 Jul 2018 09:35:38 +0000 (18:35 +0900)]
Fix the crash

- le_adv_slot is accessed in __bt_hold_current_advertising_timeout_cb()
      after it's freed.

Change-Id: Id9c394e07f33c8df09b6a8c0f07f0e0afe4b9294
Signed-off-by: injun.yang <injun.yang@samsung.com>
6 years agoFix the memory leak 04/183204/1
injun.yang [Tue, 3 Jul 2018 09:32:46 +0000 (18:32 +0900)]
Fix the memory leak

Change-Id: I59acfc652c1bcf742e919c456fcee15ac34e25d6
Signed-off-by: injun.yang <injun.yang@samsung.com>
6 years agoCode optimize 67/183167/1
injun.yang [Tue, 3 Jul 2018 05:55:06 +0000 (14:55 +0900)]
Code optimize

Change-Id: Id79d33f51003da6786e7bbd18b581836b7e75719
Signed-off-by: injun.yang <injun.yang@samsung.com>
6 years agoChange the name of dbus property of EIR manufacturer data 41/182941/1
injun.yang [Fri, 29 Jun 2018 04:40:49 +0000 (13:40 +0900)]
Change the name of dbus property of EIR manufacturer data

Same property for adv is introduced in upstream

Change-Id: Ib65befe8105d88ca0bdd788ce904e3bfa592e3e2
Signed-off-by: injun.yang <injun.yang@samsung.com>
6 years agoImprove inefficient logic converting UUID to string 21/182821/1
Deokhyun Kim [Thu, 28 Jun 2018 07:33:35 +0000 (16:33 +0900)]
Improve inefficient logic converting UUID to string

Change-Id: Id0ab908edd526cd4c9af977612ab159f24c02ff2
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoHandled multiple gatt char with same uuid in a service 64/182564/1 accepted/tizen/unified/20180627.070039 submit/tizen/20180626.232422
Amit Purwar [Tue, 26 Jun 2018 07:05:28 +0000 (12:35 +0530)]
Handled multiple gatt char with same uuid in a service

Change-Id: Ib0eeeea41a002d5eccde82e75e09f9e1fc75b069
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoFixed gatt characteristic property 30/182230/1
Amit Purwar [Thu, 21 Jun 2018 10:39:48 +0000 (16:09 +0530)]
Fixed gatt characteristic property

This change fix the issue that Gatt characteristic property
was not sent when descriptor is not present.

Change-Id: I8dc6ec159ed049a3d550c2b8660506c5193a2a0c
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoFixed zero length data of descriptor read 86/181986/2
Amit Purwar [Tue, 19 Jun 2018 10:23:42 +0000 (15:53 +0530)]
Fixed zero length data of descriptor read

Change-Id: If1fe3d0ed882ae9ab9dc1b9d808f5f45c17d4fc1
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoSet owner & group of auto-pair-blacklist as 'network_fw' 05/181805/2 accepted/tizen/unified/20180620.131458 submit/tizen/20180619.032800
Deokhyun Kim [Mon, 18 Jun 2018 10:25:51 +0000 (19:25 +0900)]
Set owner & group of auto-pair-blacklist as 'network_fw'

 - fopen(auto-pair-blacklist,w) fails

Change-Id: Ib8d2a21a30fd2e6aecf52202ae41cf5fedf777a5
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoRemove handling for device found event in obex 99/181799/2
Atul Rai [Mon, 18 Jun 2018 10:17:20 +0000 (15:47 +0530)]
Remove handling for device found event in obex

This patch handles following:
1/ Removes handling of device found event from obex
2/ Removes unused code from obex event receiver
3/ Fixes Memory leak and GLib issues ipsp event reciever

Change-Id: I23cf6b3f89c81d23b6c6d8b747b86cb816fd547b
Signed-off-by: Atul Rai <a.rai@samsung.com>
6 years ago[HAL]Add NULL check before calling g_variant_unref 98/181798/2
Atul Rai [Mon, 18 Jun 2018 10:16:24 +0000 (15:46 +0530)]
[HAL]Add NULL check before calling g_variant_unref

Change-Id: I6830b7c305ec696e8cbd3aed95a5e9db77a72e5a
Signed-off-by: Atul Rai <a.rai@samsung.com>
6 years agoFix build warnings in bluetooth-frwk 97/181797/2
Atul Rai [Mon, 18 Jun 2018 10:15:07 +0000 (15:45 +0530)]
Fix build warnings in bluetooth-frwk

Change-Id: I17a391471d2ea4a83bbad3053da836582e926cc9
Signed-off-by: Atul Rai <a.rai@samsung.com>
6 years agoFixed gatt char read value when length of value is zero 71/181771/3
Amit Purwar [Mon, 18 Jun 2018 07:10:35 +0000 (12:40 +0530)]
Fixed gatt char read value when length of value is zero

Change-Id: I5515f6a02c728b9e1eeff038654d067dc01b3773
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoAdd bt-driver-insmod.service trigger logic 97/181697/1
Wootak Jung [Mon, 18 Jun 2018 01:18:43 +0000 (10:18 +0900)]
Add bt-driver-insmod.service trigger logic

Change-Id: I50c045b7116cea43bdff0fc9fb5c211ed7d3a04e

6 years agoImplemented enable and disable Gatt watch notification 64/181364/3 submit/tizen/20180614.065332 submit/tizen/20180617.234448
Amit Purwar [Tue, 12 Jun 2018 11:56:50 +0000 (17:26 +0530)]
Implemented enable and disable Gatt watch notification

Implemented enable and disable the watch notification on
gatt characteristic

Change-Id: I192746b8a6ec2d8012f8590dd0b9be45334f9c8e
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoFix: glib error 67/181267/1
injun.yang [Mon, 11 Jun 2018 10:41:06 +0000 (19:41 +0900)]
Fix: glib error

Change-Id: I7e664429d6508f105ef5041af63f97cc2a6d1615

6 years agoFix invalid UTF-8 charactor error in AVRCP track info 22/181122/1
Atul Rai [Fri, 8 Jun 2018 09:09:17 +0000 (14:39 +0530)]
Fix invalid UTF-8 charactor error in AVRCP track info

Change-Id: I26c27ec1e7febb31569109ec4ada31b8f75fdfca
Signed-off-by: Atul Rai <a.rai@samsung.com>
6 years agoRevert "Enable adapter and discoverable mode if headless device" 71/180971/1
DoHyun Pyun [Thu, 7 Jun 2018 02:39:01 +0000 (11:39 +0900)]
Revert "Enable adapter and discoverable mode if headless device"

This reverts commit 79849f72fef6a026ff89e2f201b3be27ce3f9dbe.

Change-Id: I27ce383da9f034900a419d8ef12dfc56b04a5c11
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoAllow dbus mothod call for system_fw group 55/180755/1 accepted/tizen/unified/20180611.015235 submit/tizen/20180607.003351
injun.yang [Mon, 4 Jun 2018 01:16:56 +0000 (10:16 +0900)]
Allow dbus mothod call for system_fw group

Change-Id: I7e47dc64730b41a12ef341f0904d9717a20a4418

6 years agoSet the write request type for gatt characteristic 22/180722/1
Amit Purwar [Fri, 1 Jun 2018 09:41:16 +0000 (15:11 +0530)]
Set the write request type for gatt characteristic

Change-Id: Ie75eaeecb7aa784be8e01d6a5112ba52b173d2cb
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoEnable adapter and discoverable mode if headless device 10/180610/1 submit/tizen/20180531.061844
Wootak Jung [Thu, 31 May 2018 07:00:52 +0000 (16:00 +0900)]
Enable adapter and discoverable mode if headless device

Change-Id: I9c32f299367d787355d36ecabbbb96c17c43221a

6 years agoEnhance debug message 12/180412/3
injun.yang [Tue, 29 May 2018 08:08:53 +0000 (17:08 +0900)]
Enhance debug message

Change-Id: I053db03105b03f4e0416e8a052dd742ba930a157

6 years agoMerge "Modify the dbus policy for agent1" into tizen
DoHyun Pyun [Mon, 28 May 2018 05:09:12 +0000 (05:09 +0000)]
Merge "Modify the dbus policy for agent1" into tizen

6 years agoModify the dbus policy for agent1 61/179861/2
DoHyun Pyun [Wed, 23 May 2018 04:50:11 +0000 (13:50 +0900)]
Modify the dbus policy for agent1

Change-Id: I1dc605be738a3c354288850a9f87c7492581125a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoUse the file activation to run bt-stack-down.sh script 71/180271/1
DoHyun Pyun [Mon, 28 May 2018 04:35:54 +0000 (13:35 +0900)]
Use the file activation to run bt-stack-down.sh script

Change-Id: Ie3708161a4f275f7888991fed57e7b4314923abc
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoUse the multi-user target group for the common profile 65/180265/1
DoHyun Pyun [Mon, 28 May 2018 03:25:50 +0000 (12:25 +0900)]
Use the multi-user target group for the common profile

Change-Id: Idf1f10fa526bb689c8a9ac56cf57b04e5768c73e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoRemove the file activation logic to insmod the artik530 64/180264/1
DoHyun Pyun [Mon, 28 May 2018 03:25:40 +0000 (12:25 +0900)]
Remove the file activation logic to insmod the artik530

Change-Id: I267a427ce88d93576a78f2f0144080bc16ec2207
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoDisable auto enable logic by bt-core 61/180161/1
DoHyun Pyun [Fri, 25 May 2018 06:56:41 +0000 (15:56 +0900)]
Disable auto enable logic by bt-core

Change-Id: Ia2ca1578bd189b8590ac6c17958810f927c8d00b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix prevent issue 00/180000/1 accepted/tizen/unified/20180524.060223 accepted/tizen/unified/20180527.044852 submit/tizen/20180524.052210 submit/tizen/20180525.015431
Wootak Jung [Thu, 24 May 2018 04:45:09 +0000 (13:45 +0900)]
Fix prevent issue

Change-Id: I7a2f9f1bf6b19a70e40cbf80d624d55d7eab77e5

6 years agoFix prevent issues 94/179994/1
Wootak Jung [Thu, 24 May 2018 03:38:12 +0000 (12:38 +0900)]
Fix prevent issues

Change-Id: Iadec24b45ee77613553e75ef89103dd135046362

6 years agoRemove unused mashal codes 81/179981/1
DoHyun Pyun [Thu, 24 May 2018 00:04:37 +0000 (09:04 +0900)]
Remove unused mashal codes

Change-Id: If6f1199ea369bfcd6f715eb0fb21831bd3a98ff5
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoSet the smack label as '_' of the library 57/179957/1
DoHyun Pyun [Wed, 23 May 2018 12:05:17 +0000 (21:05 +0900)]
Set the smack label as '_' of the library

Change-Id: If19a9a1607739fe78a8d9f33a368d0ed84a4b39c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix the write request functionality from GATT client 56/179956/1
DoHyun Pyun [Wed, 23 May 2018 12:04:33 +0000 (21:04 +0900)]
Fix the write request functionality from GATT client

Change-Id: I8c18e0de026ed5bde935fd8978f22daec771cc28
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agogatt client adaptation feature changes on HAL 00/179400/4
Amit Purwar [Thu, 17 May 2018 14:13:41 +0000 (19:43 +0530)]
gatt client adaptation feature changes on HAL

Change-Id: Idef21c381035f119072575ff28ebd4b07c37c780
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agogatt client adaptation feature changes bt-api bt-service OAL 01/179401/5
Amit Purwar [Thu, 17 May 2018 14:17:51 +0000 (19:47 +0530)]
gatt client adaptation feature changes bt-api bt-service OAL

Change-Id: If19155c4dc6aaa6367094a02a346d949d29be183
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoFix wrong expression in dbus policy 43/179643/1
Wootak Jung [Mon, 21 May 2018 01:23:06 +0000 (10:23 +0900)]
Fix wrong expression in dbus policy

Change-Id: Ibc5d72822c721a0ffe4536e3eb8624ccaa9d60d9

6 years agoAllow the dbus method call for bluetooth.admin privilege app 43/179343/1 accepted/tizen/unified/20180518.060634 submit/tizen/20180517.230415
DoHyun Pyun [Thu, 17 May 2018 07:34:15 +0000 (16:34 +0900)]
Allow the dbus method call for bluetooth.admin privilege app

BT system popup will call dbus method directly to confirm the pairing.
So we should allow the method from app user if it has the privilege

Change-Id: I0cafcebad827cb5fd516ed4a1e5b2d5015281d65
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix TCT fail issue on ARTIK530 18/179218/2 accepted/tizen/unified/20180517.062349 submit/tizen/20180517.000204
DoHyun Pyun [Wed, 16 May 2018 09:13:37 +0000 (18:13 +0900)]
Fix TCT fail issue on ARTIK530

ARTIK530's BT kernel is not ported yet. Because of this,
LE scan operation is not working physically. This patchset
is for the exception case.

Change-Id: I03b6e2a312d4b493c2bd2d00f957df9324941286
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoAdjust the timing to load BT driver 60/179160/1 accepted/tizen/unified/20180517.062311 submit/tizen/20180516.064227
DoHyun Pyun [Wed, 16 May 2018 06:40:31 +0000 (15:40 +0900)]
Adjust the timing to load BT driver

Change-Id: Ieba46283aec98db78f35e8f2dc39c0b2ee66a380
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoAdd the allow and deny own dbus policy 75/178375/1
DoHyun Pyun [Thu, 10 May 2018 00:50:29 +0000 (09:50 +0900)]
Add the allow and deny own dbus policy

Change-Id: Ib5af0b85404d031b087d97e4353e881868343e38
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoAdd bt-driver-insmod.service trigger logic 72/178372/1 accepted/tizen/unified/20180510.070900 submit/tizen/20180510.004118
Wootak Jung [Thu, 10 May 2018 00:31:02 +0000 (09:31 +0900)]
Add bt-driver-insmod.service trigger logic

Change-Id: I0e4b4b994d7a0c74440d495c70d7f96ee914bb68

6 years agoFix privilege violation 59/178059/2
Wootak Jung [Tue, 8 May 2018 04:32:32 +0000 (13:32 +0900)]
Fix privilege violation

Need default deny policy for internal interface

Change-Id: If7ecc83424efb736f6d30a0ac43a0a510bf51437

6 years agoModify the dbus policy for user session 28/177728/3
DoHyun Pyun [Thu, 3 May 2018 06:50:51 +0000 (15:50 +0900)]
Modify the dbus policy for user session

Change-Id: I26e95019d71e78f70e7cccd3f57d92d26f487438
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix the svace issue 47/177147/2 accepted/tizen/unified/20180427.062420 submit/tizen/20180426.103200
Hyuk Lee [Thu, 26 Apr 2018 01:18:34 +0000 (10:18 +0900)]
Fix the svace issue

Change-Id: I196e12ddc9ad87007464221d21b7888b69e41180
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
6 years agoAdd disconnect logic when dpm policy is updated 14/176914/2
Wootak Jung [Fri, 20 Apr 2018 01:16:23 +0000 (10:16 +0900)]
Add disconnect logic when dpm policy is updated

Change-Id: I9aaaf07e823c7a123478e7221fabe27be61797d5

6 years agoFix the crash issue in OAL event loop 72/176572/3 accepted/tizen/unified/20180423.062836 submit/tizen/20180423.011216
Hyuk Lee [Fri, 20 Apr 2018 05:05:48 +0000 (14:05 +0900)]
Fix the crash issue in OAL event loop

Change-Id: Id955d5e63429139ba2c7a869347956311c27b3d1
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
6 years agoFix bt_core dbus policy issue 12/176312/2
Wootak Jung [Wed, 18 Apr 2018 09:03:50 +0000 (18:03 +0900)]
Fix bt_core dbus policy issue

Change-Id: I34c3863ecba512615267ed46a07135429b21ed67

6 years agoMerge "Add default deny policy in conf files" into tizen
Pyun DoHyun [Wed, 18 Apr 2018 06:16:45 +0000 (06:16 +0000)]
Merge "Add default deny policy in conf files" into tizen

6 years agoAdd default deny policy in conf files 51/176151/4
Wootak Jung [Tue, 17 Apr 2018 06:57:35 +0000 (15:57 +0900)]
Add default deny policy in conf files

Remove at_console policy

Change-Id: I31a6089386e9bf9d095fa9390215a746aac4e263

6 years agoRemove the package dependency for pkgmgr and dbus-glib-1 64/176264/2 submit/tag/20180416.022000
DoHyun Pyun [Wed, 18 Apr 2018 02:28:55 +0000 (11:28 +0900)]
Remove the package dependency for pkgmgr and dbus-glib-1

Change-Id: I3b2e8a621594cae48db31bfcd69074dc02463646
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoMerge "Add the AVRCP delay changed callback" into tizen
Pyun DoHyun [Wed, 18 Apr 2018 00:38:39 +0000 (00:38 +0000)]
Merge "Add the AVRCP delay changed callback" into tizen

6 years agoFix privilege check logic 39/176139/1
Wootak Jung [Tue, 17 Apr 2018 05:06:46 +0000 (14:06 +0900)]
Fix privilege check logic

BT_CHECK_PRIVILEGE is required in 1st param to check privilege

Change-Id: Iff6760952080e8a05479169ca13b6ed2f6acab8d

6 years agoAdd the rfkill udev rule file 43/175643/2
Hyuk Lee [Wed, 11 Apr 2018 08:28:16 +0000 (17:28 +0900)]
Add the rfkill udev rule file

Change-Id: I8e7af48093446359d684eb1743f140688abfd8b2
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
6 years agoMerge "Add the media transport interface to adaptation code" into tizen
Pyun DoHyun [Mon, 9 Apr 2018 05:21:06 +0000 (05:21 +0000)]
Merge "Add the media transport interface to adaptation code" into tizen

6 years agoAdd the media transport interface to adaptation code 00/174100/6
Hyuk Lee [Wed, 28 Mar 2018 05:56:49 +0000 (14:56 +0900)]
Add the media transport interface to adaptation code

Change-Id: I6cfd4c4b10a87894b4326c331f32a845a239a845
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
6 years agoRemove unnecessary dpm policy check logic 03/175103/2 accepted/tizen/unified/20180409.060335 submit/tizen/20180409.022828
Wootak Jung [Mon, 9 Apr 2018 01:09:10 +0000 (10:09 +0900)]
Remove unnecessary dpm policy check logic

dpm policy was already done during rfcomm connection.
no need to check dpm policy in socket writing

Change-Id: I5412d2b4c273a0627911cf52beeb0ded44587a87

6 years agoAdd the AVRCP delay changed callback 47/174547/1
Hyuk Lee [Tue, 3 Apr 2018 02:22:51 +0000 (11:22 +0900)]
Add the AVRCP delay changed callback

Change-Id: Ieaf16bba7a03aeb8c8984f1a5fab8cada3b9a5eb
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
6 years agoMerge "Svace fix: WGID-319844 'characteristic.handle' doubble free" into tizen accepted/tizen/unified/20180323.062146 accepted/tizen/unified/20180403.182512 submit/tizen/20180322.235038 submit/tizen/20180401.231313
Pyun DoHyun [Thu, 22 Mar 2018 23:49:12 +0000 (23:49 +0000)]
Merge "Svace fix: WGID-319844 'characteristic.handle'  doubble free" into tizen

6 years agoMerge "Svace fix WGID:324430 :statement in the source code might be unreachable durin...
Pyun DoHyun [Thu, 22 Mar 2018 23:48:59 +0000 (23:48 +0000)]
Merge "Svace fix WGID:324430 :statement in the source code might be unreachable during program execution" into tizen