platform/core/connectivity/bluetooth-frwk.git
7 years agoAdd missed patchset 75/144275/1
injun.yang [Wed, 16 Aug 2017 06:20:49 +0000 (15:20 +0900)]
Add missed patchset

Some code missed from below commit

commit 6ef7f5f7ca21435c3c0b0b50c6dedfe6a807f655
Author: Seungyoun Ju <sy39.ju@samsung.com>
Date:   Thu Jun 22 15:21:01 2017 +0900

Refactoring GATT client service changed logic

Change-Id: Ib63bfd076514de95df3d6a72fee2da76a57663a1
Signed-off-by: injun.yang <injun.yang@samsung.com>
7 years agoDebug message cleanup 49/144249/1
injun.yang [Wed, 16 Aug 2017 05:16:51 +0000 (14:16 +0900)]
Debug message cleanup

Change-Id: Iec220a08090d40b40cd58a1e7bea7d242940e8da
Signed-off-by: injun.yang <injun.yang@samsung.com>
7 years agoAdd SmackProcessLabel option in systemd service files 73/143673/1 accepted/tizen/unified/20170814.060137 submit/tizen/20170811.080019
DoHyun Pyun [Fri, 11 Aug 2017 02:36:43 +0000 (11:36 +0900)]
Add SmackProcessLabel option in systemd service files

Change-Id: Ia16b28474228a6135b299e65797c19a09aed3a25
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd the PIE option for the excutable binary 93/143193/1 accepted/tizen/unified/20170811.021137 submit/tizen/20170809.230017
DoHyun Pyun [Wed, 9 Aug 2017 04:16:41 +0000 (13:16 +0900)]
Add the PIE option for the excutable binary

Change-Id: Ia2a6bb65e6da5b2b7a083bd29acbe4eb671b071c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoMerge "Handle the privilege permission error for agent methods" into tizen
DoHyun Pyun [Tue, 8 Aug 2017 23:35:39 +0000 (23:35 +0000)]
Merge "Handle the privilege permission error for agent methods" into tizen

7 years agoApply Tizen3.0 Gatt client product patch 86/142986/1 accepted/tizen/unified/20170809.135141 submit/tizen/20170808.231821
h.sandeep [Tue, 8 Aug 2017 06:27:22 +0000 (11:57 +0530)]
Apply Tizen3.0 Gatt client product patch

=================================================
 commit 19bdcca142a1369080998e61c552d422c5dca302
 Author: Seungyoun Ju <sy39.ju@samsung.com>
 Date:   Thu Apr 20 21:36:37 2017 +0900
     Fix : Simultaneous GATT client requests are failed
=================================================

Change-Id: Iefb332ae6adc881e4c20fd7bd93ae26e3ee7bda9
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoHandle the privilege permission error for agent methods 55/142955/3
DoHyun Pyun [Tue, 8 Aug 2017 04:44:22 +0000 (13:44 +0900)]
Handle the privilege permission error for agent methods

Change-Id: I267ed55df361f145bf0d7e4e6d2bf9dcbcf7defa
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoApply tizen 3.0 based product patchsets 13/142513/3 accepted/tizen/unified/20170808.171414 submit/tizen/20170808.020532
DoHyun Pyun [Fri, 4 Aug 2017 06:38:13 +0000 (15:38 +0900)]
Apply tizen 3.0 based product patchsets

--------------------------------------------------
commit a049ded240d77ce4c14bda87796c4d3b06764270
Author: Sreeraj Mohan Kottapuzhackal <sreeraj.mk@samsung.com>
Date:   Mon Jul 24 13:16:05 2017 +0530

    Fix for crash while pairing device
--------------------------------------------------

Change-Id: I2206a657cddc27f8bca3d9ce7fffff4bf81be953
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years ago[OTP] Handle GattConnected event 01/142101/3
Gowtham Anandha Babu [Wed, 2 Aug 2017 12:06:21 +0000 (17:36 +0530)]
[OTP] Handle GattConnected event

Change-Id: I3002836c52408c0e8c9697adcb6cc247e209ded9
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years ago[OTP] Fix OACP Create procedure 32/141632/1
Gowtham Anandha Babu [Tue, 1 Aug 2017 07:23:45 +0000 (12:53 +0530)]
[OTP] Fix OACP Create procedure

Change-Id: Ifa72fc6e7cf23b8533587ed1cce38e5cefcf9f4e
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years ago[GATT] Fix ATT application ecode 22/140722/2
Gowtham Anandha Babu [Wed, 26 Jul 2017 06:58:56 +0000 (12:28 +0530)]
[GATT] Fix ATT application ecode

1) Add error codes defined in Common Profile and
Service Error Code descriptions (see Supplement to the
Bluetooth Core Specification, sections 1.2 and 2).

2) Seperate out OTP specific application ecode.

Change-Id: I666707b76f5252a7662ff8ffc295660678d964e3
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years ago[GATT Server] Delivery the specific error code to central device 15/140615/2 accepted/tizen/4.0/unified/20170816.011228 accepted/tizen/4.0/unified/20170816.014632 accepted/tizen/unified/20170727.190506 submit/tizen/20170725.234514 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
injun.yang [Tue, 25 Jul 2017 14:54:13 +0000 (20:24 +0530)]
[GATT Server] Delivery the specific error code to central device

[Problem] Unalbe to pass application error code to central device
[Cause & Measure] Pass the specific error code to central device
[Checking Method] Reponse with the specific error to central device

Change-Id: I72fdfdef011f7f357e95eb4932e703e0cae08480
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoFix static analysis tool warnings 16/140016/2 submit/tizen/20170724.081454 submit/tizen/20170725.090318
Atul Rai [Fri, 21 Jul 2017 10:31:18 +0000 (16:01 +0530)]
Fix static analysis tool warnings

Change-Id: I1b1dcc4a27366352fadd7370bb8a14f173e37938
Signed-off-by: Atul Rai <a.rai@samsung.com>
7 years agoadded the failure condition for realloc 20/140020/2
Amit Purwar [Fri, 21 Jul 2017 10:49:15 +0000 (16:19 +0530)]
added the failure condition for realloc
removed the print after return

Change-Id: I1dfb2bf75f36c9c1b71651c480c5eaa1a7a01d04
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
7 years agofixed the GDbusProxy in GATT: register, unregister and service callabck 24/139924/1
Amit Purwar [Fri, 21 Jul 2017 05:04:24 +0000 (10:34 +0530)]
fixed the GDbusProxy in GATT: register, unregister and service callabck

Change-Id: I807f9a4a25e544a6f7630ca23b9737f017c3bb73
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
7 years agoMerge "[GATT Client] Delivery ATT error code to higher layer" into tizen accepted/tizen/unified/20170721.201846 submit/tizen/20170721.013619
Pyun DoHyun [Fri, 21 Jul 2017 01:35:19 +0000 (01:35 +0000)]
Merge "[GATT Client] Delivery ATT error code to higher layer" into tizen

7 years ago[GATT Client] Delivery ATT error code to higher layer 77/139377/4
Gowtham Anandha Babu [Tue, 18 Jul 2017 13:34:07 +0000 (19:04 +0530)]
[GATT Client] Delivery ATT error code to higher layer

[Problem] ATT error code is not passed to application.

[Cause & Measure] GATT application need to know ATT
error code to handling error case. Specially application
error code defined by a higher layer specification.

[Checking Method] GATT error handling

Change-Id: I37747073962baa2b1098eb801ce033fb0b0c4c85
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoAdd missed code for the discovery state logic 11/139311/1 accepted/tizen/unified/20170721.024454 submit/tizen/20170719.005005
DoHyun Pyun [Tue, 18 Jul 2017 09:56:03 +0000 (18:56 +0900)]
Add missed code for the discovery state logic

Change-Id: I23773d65601d4e7ee013ff2233c0e839f993bfa1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoMerge "Modify the device discovery status" into tizen accepted/tizen/unified/20170718.174144 submit/tizen/20170717.090652
Pyun DoHyun [Tue, 18 Jul 2017 05:35:34 +0000 (05:35 +0000)]
Merge "Modify the device discovery status" into tizen

7 years agoModify the device discovery status 20/139120/2
Hyuk Lee [Mon, 17 Jul 2017 10:28:30 +0000 (19:28 +0900)]
Modify the device discovery status

Change-Id: Ic877d145691f2cc16e4a35818e3cd7c5628ea359
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years ago[OTP] Fix OACP Create request 85/138785/2
Gowtham Anandha Babu [Thu, 13 Jul 2017 15:22:50 +0000 (20:52 +0530)]
[OTP] Fix OACP Create request

1) Changed Object type UUID implementation
   to support all types(16/32/128 bits) of UUIDs.
2) Fixed Object Metadata Write logic,
   so that changes reflect in object list.
3) Modified OACP Create logic to align with PTS.

Change-Id: If652a0a32be6334c30d4302ad4caa9fb5a7cf92f
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years ago[OTP] Fix PTS fail cases 81/138781/1
Gowtham Anandha Babu [Thu, 13 Jul 2017 15:16:06 +0000 (20:46 +0530)]
[OTP] Fix PTS fail cases

Change-Id: Ib26a7e7465c49da3d9570f602c05799020171e8f
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoMerge "[OTP] Fix object type uuid format" into tizen accepted/tizen/unified/20170711.180534 submit/tizen/20170710.052629
Pyun DoHyun [Mon, 10 Jul 2017 00:50:38 +0000 (00:50 +0000)]
Merge "[OTP] Fix object type uuid format" into tizen

7 years agoAdd a BT developer 80/137580/1
Taesoo Jun [Thu, 6 Jul 2017 11:34:10 +0000 (20:34 +0900)]
Add a BT developer

Change-Id: I0b44dc47917a5b4ce702af6b7650d3e07ef57385

7 years ago[OTP] Fix object type uuid format 06/137406/2
Gowtham Anandha Babu [Wed, 5 Jul 2017 13:54:13 +0000 (19:24 +0530)]
[OTP] Fix object type uuid format

According to spec, object type UUID should be
16/32/128 bits.

Change-Id: Ice83951e6963374e0bd4966f7b3dc5428dcf12a8
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoMerge "[OTP] Fix PTS fail cases" into tizen
Pyun DoHyun [Thu, 29 Jun 2017 23:07:40 +0000 (23:07 +0000)]
Merge "[OTP] Fix PTS fail cases" into tizen

7 years ago[OTP] Fix PTS fail cases 09/136409/2
Gowtham Anandha Babu [Thu, 29 Jun 2017 09:42:36 +0000 (15:12 +0530)]
[OTP] Fix PTS fail cases

The patch fixes below TCs:
1) OTS/SR/CR/BV-01-C
2) All OACP & OLCP cases (Modify indication length)

Change-Id: I920f49b6126b8da855770aa0833878db01691667
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoAdd the SetAbsoluteVolume API for AVRCP controller 45/135845/1
Hyuk Lee [Tue, 27 Jun 2017 04:34:33 +0000 (13:34 +0900)]
Add the SetAbsoluteVolume API for AVRCP controller

Change-Id: I14dffc525cf62a2059e30b21dec7bf9e16c56a69
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years ago[OTP] Handle Object Delete request 02/135602/1
Gowtham Anandha Babu [Fri, 23 Jun 2017 09:25:10 +0000 (14:55 +0530)]
[OTP] Handle Object Delete request

Change-Id: Ie4dcc536892d78ed9672fa40748363d9a2454879
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years ago[OTP] Handle Object Execute request 36/134936/2
Gowtham Anandha Babu [Tue, 20 Jun 2017 10:03:22 +0000 (15:33 +0530)]
[OTP] Handle Object Execute request

Change-Id: I670c9ccd884b71236cfeea38ed3ac1cf21c02f02
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years ago[OTP] Handle Object Write request 26/134626/3
Gowtham Anandha Babu [Mon, 19 Jun 2017 13:23:02 +0000 (18:53 +0530)]
[OTP] Handle Object Write request

Change-Id: I82634c3334a24b98cf85239de820ca2026f0661f
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoMerge "[OTP] Handle Object Create request" into tizen
Pyun DoHyun [Wed, 14 Jun 2017 04:16:58 +0000 (04:16 +0000)]
Merge "[OTP] Handle Object Create request" into tizen

7 years agoRemove some package dependencies for the headless image 74/133874/1 accepted/tizen/unified/20170615.020639 submit/tizen/20170614.010332
DoHyun Pyun [Wed, 14 Jun 2017 00:03:39 +0000 (09:03 +0900)]
Remove some package dependencies for the headless image

capi-network-tethering and capi-content-mime-type package is not used
in the headless image. So we devide this function's usage to the headed
plugin.

Change-Id: If3810136c9bca995fe2933559e7ea8755009e57a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years ago[OTP] Handle Object Create request 85/133785/2
Gowtham Anandha Babu [Tue, 13 Jun 2017 10:23:54 +0000 (15:53 +0530)]
[OTP] Handle Object Create request

Change-Id: Ie4a4a9ab144d506c8f3c9b972e54538cc91178b5
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoRemove the psmics package dependency 81/133681/1 accepted/tizen/unified/20170613.194514 submit/tizen/20170613.061617
DoHyun Pyun [Tue, 13 Jun 2017 06:14:55 +0000 (15:14 +0900)]
Remove the psmics package dependency

Change-Id: I03b39a7459a574cef4b50811364f0170a3e5d5ba
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years ago[OTP] Handle Object Select request 03/132803/2
Gowtham Anandha Babu [Wed, 7 Jun 2017 15:05:53 +0000 (20:35 +0530)]
[OTP] Handle Object Select request

Change-Id: I3e275fa02e4a5873a5c633a4736c870eb6e8aeef
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoFix the memset size errors 65/132865/1
DoHyun Pyun [Thu, 8 Jun 2017 04:55:09 +0000 (13:55 +0900)]
Fix the memset size errors

Change-Id: I022f15c8f8a0c9c7fa3afe835c78010b9cece3d2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoModify the pid and gid of bt-service to network_fw 74/131574/1
DoHyun Pyun [Tue, 30 May 2017 05:25:57 +0000 (14:25 +0900)]
Modify the pid and gid of bt-service to network_fw

Change-Id: I2f134debfbae79c20f47d66fb790ad06f1f3027a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years ago[OTP] Fix Object Read logic 22/131522/1
Gowtham Anandha Babu [Mon, 29 May 2017 13:38:11 +0000 (19:08 +0530)]
[OTP] Fix Object Read logic

Change-Id: I4eec15c25d44da3163f7624d4d2f63ea1421c047
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoMerge "[OTP] Add support for OACP Read" into tizen
Pyun DoHyun [Mon, 29 May 2017 03:46:20 +0000 (03:46 +0000)]
Merge "[OTP] Add support for OACP Read" into tizen

7 years ago[OTP] Add support for OACP Read 79/130879/2
Gowtham Anandha Babu [Wed, 24 May 2017 08:11:42 +0000 (13:41 +0530)]
[OTP] Add support for OACP Read

Change-Id: Ic98585d0158b5d3a1cca756f50bfb0faba0f0fe3
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoGATT-Clinet: Fix the Write and read dbus reply parameter mismatch. 21/130721/2
h.sandeep [Wed, 24 May 2017 00:00:17 +0000 (05:30 +0530)]
GATT-Clinet: Fix the Write and read dbus reply parameter mismatch.

Change-Id: Id2deb6feca75ba54e39cd5cad8b09a8488562f63
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoMerge "[Bluetooth][OTP] Add object browsing support" into tizen submit/tizen/20170523.010304
Pyun DoHyun [Mon, 22 May 2017 02:17:39 +0000 (02:17 +0000)]
Merge "[Bluetooth][OTP] Add object browsing support" into tizen

7 years ago[Bluetooth][OTP] Add object browsing support 34/128834/3
Gowtham Anandha Babu [Thu, 11 May 2017 13:43:39 +0000 (19:13 +0530)]
[Bluetooth][OTP] Add object browsing support

Client side changes:
1) Exposed characterstics_write_value BT-API
2) Send "GattValueChanged" indication to otp-application

Server side changes:
1) Change implementation to support both single and
   multiple object(s).

Change-Id: I9fd250505b739b858f26ee7618737e058bc95a8d
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoHandle GATT operations for OTP 70/128970/1
Gowtham Anandha Babu [Tue, 2 May 2017 15:52:55 +0000 (21:22 +0530)]
Handle GATT operations for OTP

Expose GATT Read & StartNotify methods to CAPI for
OTP client operations.

Change-Id: I2070a27beeb352946329be1f1094a2ab770f57a1
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoRevert "[Bluetooth][OTP-Client] Handle GATT operations for OTP" 67/128967/1 accepted/tizen/unified/20170512.165728 submit/tizen/20170512.071153 tizen_4.0.m1_release
DoHyun Pyun [Fri, 12 May 2017 07:08:58 +0000 (16:08 +0900)]
Revert "[Bluetooth][OTP-Client] Handle GATT operations for OTP"

This reverts commit d9f33483f2498b7476080df530c8558dc5ddf8da.

Change-Id: I73d1ad9afc95ae02dfcb3861596cd30121ddbfc9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the svace issue (WGID : 212857) 56/128956/1
Hyuk Lee [Fri, 12 May 2017 06:50:12 +0000 (15:50 +0900)]
Fix the svace issue (WGID : 212857)

Change-Id: Iaa3c17a61273f5a816de42d449e650159810391e
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years ago[Bluetooth][OTP-Client] Handle GATT operations for OTP 65/127965/5
Gowtham Anandha Babu [Tue, 2 May 2017 15:52:55 +0000 (21:22 +0530)]
[Bluetooth][OTP-Client] Handle GATT operations for OTP

Expose GATT Read & StartNotify methods to CAPI for
OTP client operations.

Change-Id: I0dee5572ee155f4440aa260730783811e5785348
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoFix build error (add the initializing) 12/128212/1 accepted/tizen/unified/20170508.153107 submit/tizen/20170508.015850
Hyuk Lee [Mon, 8 May 2017 04:51:55 +0000 (13:51 +0900)]
Fix build error (add the initializing)

Change-Id: Ie38d09f39d1c3eacc7fb5b37fa221262d7c76858
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years agoFix the build error 07/128207/1
Hyuk Lee [Mon, 8 May 2017 04:34:28 +0000 (13:34 +0900)]
Fix the build error

Change-Id: Ib2c8b4517d30d652cd9f65c6cc45049c5122b4ee
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years agoFix the svace issue (WGID:212294, 212308..) 32/128132/1
Hyuk Lee [Mon, 8 May 2017 01:03:38 +0000 (10:03 +0900)]
Fix the svace issue (WGID:212294, 212308..)

Change-Id: I90b913816369751373bd8996a40deb1a661331de
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years agoChange sscanf to strtol function for the secure coding 54/127554/1 accepted/tizen/unified/20170428.033209 submit/tizen/20170428.004210
DoHyun Pyun [Mon, 17 Apr 2017 08:37:21 +0000 (17:37 +0900)]
Change sscanf to strtol function for the secure coding

Change-Id: Iace5f687b2f4aae5cbb93b265273f85572e823c8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoMerge "[Bluetooth][OTP-Server] Handle object browsing" into tizen
Pyun DoHyun [Mon, 24 Apr 2017 04:47:39 +0000 (04:47 +0000)]
Merge "[Bluetooth][OTP-Server] Handle object browsing" into tizen

7 years agoFix the svace issue 93/126193/3 submit/tizen/20170424.043020
Hyuk Lee [Thu, 20 Apr 2017 10:30:02 +0000 (19:30 +0900)]
Fix the svace issue

Change-Id: Ibcd74251d0cb1401b127995d1bef3073eeab1ee8
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years agoRemove the appcore-efl package dependency 25/126525/1
DoHyun Pyun [Mon, 24 Apr 2017 04:27:06 +0000 (13:27 +0900)]
Remove the appcore-efl package dependency

Change-Id: I8bd841130039ae53a26052acf739bee2d0aef2a4
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years ago[Bluetooth][OTP-Server] Handle object browsing 40/126240/6
Gowtham Anandha Babu [Thu, 20 Apr 2017 15:03:53 +0000 (20:33 +0530)]
[Bluetooth][OTP-Server] Handle object browsing

1) Expose and advertise OTS service
2) Handle GATT & OLCP operations on server side

Change-Id: If5940cbf37d0216329210d6e0a1ffb83c7e6b904
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoAdd the API function interface for LE OOB pairing 07/124907/1 accepted/tizen/unified/20170418.072731 submit/tizen/20170418.011550
DoHyun Pyun [Thu, 13 Apr 2017 04:18:15 +0000 (13:18 +0900)]
Add the API function interface for LE OOB pairing

Change-Id: Ia266568762687533db3f4be41d9447dcf3b6d253
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years ago[Bluetooth][OTP] Add base code for OTP server role 57/121657/7
Gowtham Anandha Babu [Tue, 28 Mar 2017 10:34:42 +0000 (16:04 +0530)]
[Bluetooth][OTP] Add base code for OTP server role

Implement OTP server role:
-------------------------
1) Add logic for init / deinit the OTP server.
2) On init, OTP server will run as a process
   called bt-otp.
3) Add support to indicate OTP server state(enabled/disabled)
   to applicaton.

All TODOs will be handled in upcoming patch set.

Change-Id: I98aa0a8988884d612ac05e8b52e4c5ccf637a500
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoMerge "A2DP role change: framework API." into tizen accepted/tizen/unified/20170410.155713 submit/tizen/20170410.040751
Pyun DoHyun [Wed, 5 Apr 2017 06:10:34 +0000 (23:10 -0700)]
Merge "A2DP role change: framework API." into tizen

7 years agoSupport i586 unified build 65/123265/1 accepted/tizen/unified/20170406.054713 submit/tizen/20170405.055649
DoHyun Pyun [Wed, 5 Apr 2017 05:53:48 +0000 (14:53 +0900)]
Support i586 unified build

Change-Id: I780058cfa171e436b773a90df26a2771890cb882
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the build error for unified x86_64 build 19/123219/1 submit/tizen/20170405.005116
DoHyun Pyun [Wed, 5 Apr 2017 04:06:22 +0000 (13:06 +0900)]
Fix the build error for unified x86_64 build

Change-Id: I84075259228923addaa4b8a01d52e0435edb566e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd the RFCOMM direction define for all profile rpms 60/123160/1
DoHyun Pyun [Wed, 5 Apr 2017 00:49:47 +0000 (09:49 +0900)]
Add the RFCOMM direction define for all profile rpms

Change-Id: Ie18ff604e8266600af48ad3032b69cce9fd07017
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoerror fix for Unified profile 01/123001/2 submit/tizen/20170404.073146
hk57.kim [Tue, 4 Apr 2017 07:14:54 +0000 (16:14 +0900)]
error fix for Unified profile

- This is for Tizen 4.0.
- fix issue of having choice of .so files for Unified profile

Change-Id: Idbebb07a367203668a871c065ca129a56a724574
Signed-off-by: hk57.kim <hk57.kim@samsung.com>
7 years agoFix the svace issue (146981, 147807, 168145, 174996) 44/122944/10
DoHyun Pyun [Tue, 4 Apr 2017 04:52:37 +0000 (13:52 +0900)]
Fix the svace issue (146981, 147807, 168145, 174996)

Change-Id: If5e7b2bfba9704be9289f66dd1d6c758a9482703
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoA2DP role change: framework API. 11/122911/2
Abhishek Chandra [Tue, 4 Apr 2017 03:35:42 +0000 (09:05 +0530)]
A2DP role change: framework API.

Change-Id: I1b3412e225af54646431105af396a275c21e895c
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
7 years agoMerge "[Tizen] Remove emulator build dependencies" into tizen
Pyun DoHyun [Thu, 30 Mar 2017 05:22:51 +0000 (22:22 -0700)]
Merge "[Tizen] Remove emulator build dependencies" into tizen

7 years ago[Tizen] Remove emulator build dependencies 63/122063/1
hk57.kim [Thu, 30 Mar 2017 05:15:34 +0000 (14:15 +0900)]
[Tizen] Remove emulator build dependencies

- This is for Tizen 4.0.
- Added backward-compatibility that does not deteriorate 4.0 Configurability

- When you SR this, you need to create JIRA-TRE issue of:
  : add bluetooth-frwk-extension-emulator for all(common/mobile/wearable/ivi/tv) emulator

(It's add, not replace.)

Change-Id: Ic5f5002f962694eea9bd83334774d38ec7f4f4ae
Signed-off-by: hk57.kim <hk57.kim@samsung.com>
7 years agoGATT-Client: Modify Read and Write procedure as per Bluez 5.43 76/121676/3 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170330.151723 accepted/tizen/ivi/20170330.223802 accepted/tizen/mobile/20170330.223703 accepted/tizen/tv/20170330.223733 accepted/tizen/unified/20170330.223828 accepted/tizen/wearable/20170330.223746 submit/tizen/20170330.042352
h.sandeep [Fri, 17 Mar 2017 09:31:55 +0000 (15:01 +0530)]
GATT-Client: Modify Read and Write procedure as per Bluez 5.43

Change-Id: I6b3967fae826dcf9cad32657611c0c7b8f3c482c
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoRemove adapter_proxy unreference 47/121347/1
Sangki Park [Mon, 27 Mar 2017 08:43:11 +0000 (17:43 +0900)]
Remove adapter_proxy unreference

This unnecessary unreference causes the following error log.
> g_dbus_proxy_get_object_path: assertion 'G_IS_DBUS_PROXY (proxy)' failed

The adapter_proxy is a common resource and must be maintained.

Change-Id: Iec1f6a82e30baefa8eb6bab6f7e7aba081fd1e7a
Signed-off-by: Sangki Park <sangki79.park@samsung.com>
7 years agoModify the install path for license file 59/121159/1 accepted/tizen/common/20170327.142939 accepted/tizen/ivi/20170328.054927 accepted/tizen/mobile/20170328.054804 accepted/tizen/tv/20170328.054848 accepted/tizen/unified/20170328.054946 accepted/tizen/wearable/20170328.054907 submit/tizen/20170327.075259
DoHyun Pyun [Mon, 27 Mar 2017 07:16:04 +0000 (16:16 +0900)]
Modify the install path for license file

Change-Id: I9305b3c12cd78e119b8b28990ca4786d10a405d3
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoModify the plugin loading path for ARCH64 80/120780/1 accepted/tizen/common/20170324.122714 accepted/tizen/ivi/20170324.110818 accepted/tizen/mobile/20170324.110605 accepted/tizen/tv/20170324.110714 accepted/tizen/unified/20170324.110859 accepted/tizen/wearable/20170324.110747 submit/tizen/20170324.071911
Lee Hyuk [Fri, 24 Mar 2017 07:10:41 +0000 (16:10 +0900)]
Modify the plugin loading path for ARCH64

Change-Id: I829ba7ab6628faf03d71fd1510f8f8cda3576fe4
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoAuto accept for requesting to headless device 88/120588/2
Lee Hyuk [Thu, 23 Mar 2017 08:23:28 +0000 (17:23 +0900)]
Auto accept for requesting to headless device

Change-Id: I64043a8a5f812ed198a1392de83af67ee537efad
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoModify the BuildRequire in specfile 37/118937/2
Lee Hyuk [Wed, 15 Mar 2017 01:13:45 +0000 (10:13 +0900)]
Modify the BuildRequire in specfile

Change-Id: Ieb72dfc6101019265758477ab25e345f97796c21
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoChange log directory's owner 43/118243/1
Seungyoun Ju [Wed, 8 Mar 2017 07:59:11 +0000 (16:59 +0900)]
Change log directory's owner

[Model] COMMON
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] BT hcidump is not gathered
[Cause & Measure] Directory owner is set as invalid user. So bt-hci-logdump.sh
 cannot acesss it
[Checking Method] *#9900#

[Team] Basic connection
[Developer] Seungyoun Ju
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I2c075f804baafebe0cc84bad8f264f7bbe60928f

7 years agoChange log directory's owner 42/118242/1
Seungyoun Ju [Fri, 28 Oct 2016 11:13:40 +0000 (20:13 +0900)]
Change log directory's owner

[Model] COMMON
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] BT hcidump is not gathered
[Cause & Measure] Directory owner is set as root. So bt-hci-logdump.sh
 cannot acesss it
[Checking Method] *#9900#

[Team] Basic connection
[Developer] Seungyoun Ju
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I1bd1e35ba2b07d729f4620d39e1734bd30ff1ece

7 years agoMerge "Add the plugin for Headed/Headless device" into tizen accepted/tizen/common/20170309.175414 accepted/tizen/ivi/20170309.072231 accepted/tizen/mobile/20170309.072200 accepted/tizen/tv/20170309.072213 accepted/tizen/unified/20170310.075634 accepted/tizen/wearable/20170309.072220 submit/tizen/20170309.022241 submit/tizen_unified/20170310.011401
Pyun DoHyun [Wed, 8 Mar 2017 08:13:57 +0000 (00:13 -0800)]
Merge "Add the plugin for Headed/Headless device" into tizen

7 years agoAdd the plugin for Headed/Headless device 25/117525/6
Lee Hyuk [Mon, 6 Mar 2017 09:14:34 +0000 (18:14 +0900)]
Add the plugin for Headed/Headless device

Change-Id: I05213deae05f05d80c3f5d67272f2e4ec923b7c1
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoFix the build error for Tizen 4.0 gcc62 toolchain 20/117720/1 accepted/tizen/common/20170307.133949 accepted/tizen/ivi/20170307.102534 accepted/tizen/mobile/20170307.102445 accepted/tizen/tv/20170307.102509 accepted/tizen/unified/20170309.032449 accepted/tizen/wearable/20170307.102523 submit/tizen/20170307.074634 submit/tizen_unified/20170308.100406
DoHyun Pyun [Tue, 7 Mar 2017 07:43:55 +0000 (16:43 +0900)]
Fix the build error for Tizen 4.0 gcc62 toolchain

Change-Id: Ie7308d03fca3cc4771dca788ea659f11311d2a18
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoModify the systemd restarting option to on-failure 27/115627/1 accepted/tizen/common/20170303.090601 accepted/tizen/ivi/20170302.121710 accepted/tizen/mobile/20170302.121223 accepted/tizen/tv/20170302.121508 accepted/tizen/wearable/20170302.121556 submit/tizen/20170220.233016 submit/tizen/20170302.014914
DoHyun Pyun [Mon, 20 Feb 2017 23:28:40 +0000 (08:28 +0900)]
Modify the systemd restarting option to on-failure

Change-Id: I7762d05c81c69ae4e4ec7a05e1be8dbdb8e7cba3
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix SVACE issues(Id: 11323, 11324, 169036, 171525, 171526) 47/113847/1
Atul Rai [Thu, 9 Feb 2017 04:41:09 +0000 (10:11 +0530)]
Fix SVACE issues(Id: 11323, 11324, 169036, 171525, 171526)

Change-Id: I528f831d7962280b026f3576db8e012e0d038108
Signed-off-by: Atul Rai <a.rai@samsung.com>
7 years agoMerge latest tizen_3.0 bug fix codes 43/113243/3
DoHyun Pyun [Tue, 7 Feb 2017 03:44:54 +0000 (12:44 +0900)]
Merge latest tizen_3.0 bug fix codes

--------------------------------------------------
commit 2eebae6d9922f8c3f7c759db0f98ce5156426a69
Author: Lee Hyuk <hyuk0512.lee@samsung.com>
Date:   Wed Jan 25 17:16:28 2017 +0900

    Fix the memory leak in bt-core
--------------------------------------------------

Change-Id: I4a3060bb1740e16e59e7dc8788a8c6f1b63a0126
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years ago[4.0] Remove Target_Name Dependency 45/111645/1
hk57.kim [Mon, 23 Jan 2017 08:13:11 +0000 (17:13 +0900)]
[4.0] Remove Target_Name Dependency

- This is for Tizen 4.0

- We are going to unify repositories as well as build projects.

- When you SR this, you need to create JIRA-TRE issue of:

  : add bluetooth-frwk-extension-TM1 for TM1 (mobile)
(It's add, not replace.)

Change-Id: Ia686199d61fde0d3d880eb3093d1772279e25647
Signed-off-by: hk57.kim <hk57.kim@samsung.com>
7 years agoReverse dependency direction. 35/110435/1 submit/tizen/20170116.115935
MyungJoo Ham [Mon, 16 Jan 2017 11:01:32 +0000 (20:01 +0900)]
Reverse dependency direction.

To remove the need for Prefer, that are going to be not required
anymore in a week anyway.

Change-Id: Ifcaa326f7a9a096b17793140885a72ee61606ebd
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoChange service description to avoid confusion 96/109996/1
Łukasz Stelmach [Thu, 12 Jan 2017 10:42:12 +0000 (11:42 +0100)]
Change service description to avoid confusion

Change the Description filed in the service files to avoid confiusion
with the service provided by platform/upstream/bluetooth.

Change-Id: Ieedb59d71e13ca5d36a1680de9dcd0e044759163

7 years agoDPM: Fix DPM GCC6 warning errors. 45/105345/1 submit/tizen/20161219.111502 submit/tizen/20170112.021958
h.sandeep [Fri, 16 Dec 2016 08:25:09 +0000 (13:55 +0530)]
DPM: Fix DPM GCC6 warning errors.

Change-Id: I152f2a1a11757ef180655e27d063510a47847fd5
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoFix the build error for GCC6 95/104295/1
DoHyun Pyun [Tue, 13 Dec 2016 04:35:45 +0000 (13:35 +0900)]
Fix the build error for GCC6

Change-Id: Ia548b1c8092d9c1ffe0593e19b7720dc02d28811
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the bug for dbus connection and proxy deinitialization 75/102475/1
DoHyun Pyun [Tue, 6 Dec 2016 02:01:28 +0000 (11:01 +0900)]
Fix the bug for dbus connection and proxy deinitialization

Change-Id: Id81a3924fb85697bf2056a6c1403f9e3ff9275ca
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoRecover bluetoothd crash 74/102474/1
Seungyoun Ju [Fri, 2 Dec 2016 01:47:26 +0000 (10:47 +0900)]
Recover bluetoothd crash

[Problem] After bluetoothd crash is happened, keep BT off state
[Cause & Measure] bluetoothd crash was not recovered
[Checking Method] Terminate bluetoothd (because of chipset malfunction)

Change-Id: I563c8873a78eb8fd6c6cf229e437886f6ea7e5c6
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoAdd response_needed parameter in the write value requested callback 73/102473/1
DoHyun Pyun [Fri, 2 Dec 2016 01:43:22 +0000 (10:43 +0900)]
Add response_needed parameter in the write value requested callback

Change-Id: Ife10ca1f323905ee615c61938042a09ccc38fdf0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agobt-api: Do not log the _bt_check_privilege() using macro 72/102472/1
Syam Sidhardhan [Wed, 30 Nov 2016 12:36:41 +0000 (18:06 +0530)]
bt-api: Do not log the _bt_check_privilege() using macro

Here we are replacing the _bt_send_request() macro with the
direct function call inorder to not print the _bt_check_privilege()
method call. This helps us in reducing the prints and also if there
is any error the caller is always printing the details.

-       result = _bt_send_request(service_type, service_function,
+       result = _bt_sync_send_request(service_type, service_function

Change-Id: Ibe5b1d3acb4eff978b93ff4fdecb4ad2806b330a
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
7 years agobt-api: Fix incorrect macro expansion for service function 71/102471/1
Syam Sidhardhan [Wed, 30 Nov 2016 12:35:00 +0000 (18:05 +0530)]
bt-api: Fix incorrect macro expansion for service function

The _bt_send_request() and _bt_send_request_async() macros are
designed in such a way that we should always pass a "#define value"
or "enum type" as the first two params. Otherwise it will just print
the variable name.

Change-Id: I137c59a780ffd0000cd79dbafe0379389405d5ce
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
7 years agoRemove Profile Build Dependenceis: do it at runtime 58/100158/4
MyungJoo Ham [Fri, 25 Nov 2016 07:19:12 +0000 (16:19 +0900)]
Remove Profile Build Dependenceis: do it at runtime

- This is for Tizen 4.0.

  : Tizen 4.0 Configurability and Build Blocks require
  to remove all profile-depending build options in spec files.
  (No More profile macros)

- It is recommended to distinguish features/profiles at runtime.
 unless it incurs too much overhead, which requires you to
 create multiple binaries and subpackages.
  However, because there are different service files per profile,

- Please create JIRA-TRE issue when you SR this commit:

  - Add bluetooth-frwk-profile_common for common profile if common has bluetooth-frwk
  - Add bluetooth-frwk-profile_mobile for mobile profile if mobile has bluetooth-frwk
  - Add bluetooth-frwk-profile_wearable for wearable profile if wearable has bluetooth-frwk
  - Add bluetooth-frwk-profile_tv for tv profile if tv has bluetooth-frwk
  - Add bluetooth-frwk-profile_ivi for ivi profile if ivi has bluetooth-frwk

Conflicts:
bt-api/CMakeLists.txt
bt-core/CMakeLists.txt
bt-service/bt-service-adapter.c
packaging/bluetooth-frwk.spec

Change-Id: I813f9f9351571bfad6c437e073da92117fdc80eb
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years ago[HPS] Disable HPS feature from binary 34/101734/1 submit/tizen/20161205.050350
Sudha Bheemanna [Fri, 2 Dec 2016 05:36:59 +0000 (11:06 +0530)]
[HPS] Disable HPS feature from binary

Disable inclusion of HPS feature in binary tizen 3.0

Change-Id: I796aae6c2584498f23ec97dfb678325d828f4042
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoFix : ADV_IND data is not present while le scanning 41/101641/1
Injun Yang [Thu, 1 Dec 2016 11:55:43 +0000 (20:55 +0900)]
Fix : ADV_IND data is not present while le scanning

[Problem] While LE scanning, ADV_IND data is not present
[Cause & Measure] ADV_IND data is not delivered to application
[Checking Method] LE scan

Change-Id: I5b3a535eb5cd080070e03e913dfa6669d0a28bf6
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoRemove dbus-glib APIs and headers 88/101488/1
Biman Paul [Thu, 6 Oct 2016 08:22:11 +0000 (13:52 +0530)]
Remove dbus-glib APIs and headers

[Problem] Unused deprecated dbus-glib code
[Cause & Measure] removed dbus-glib codes

Change-Id: I6d3108ec83e724ff41e111052489225ed92f476c

7 years agoFix "g_variant_get" API usage error 87/101487/1
Nagaraj D R [Wed, 30 Nov 2016 06:58:50 +0000 (12:28 +0530)]
Fix "g_variant_get" API usage error

g_variant_get expects address, as its parameter
and not the local value

Change-Id: I221e26e43f03c4b2476a210190769668b31c3de1

7 years agobt-api: gatt-client: Fix memory leak 45/101045/1
Syam Sidhardhan [Wed, 30 Nov 2016 05:35:55 +0000 (11:05 +0530)]
bt-api: gatt-client: Fix memory leak

[Model]COMMON
[BinType] AP
[Customer]N/A

[Issue#]Memeory leak reported by cppcheck automated tool
[Request]Internal
[Occurrence Version]PK6

[Problem]Memeory leak reported by cppcheck tool
[Cause & Measure]We were no freeing the memory
[Checking Method]Gatt test tool

[Team]BT
[Developer]Syam Sidhardhan <s.syam@samsung.com>
[Solution company] Samsung
[Change Type]N/A

Change-Id: I2002d1f47cc3381a7db442cb72e3880af1a09aac
(cherry picked from commit 24374850100b737a9132c7b02a61955aed97326f)

7 years agoFix svace 2.2 version issues 71/100771/2
DoHyun Pyun [Tue, 29 Nov 2016 07:31:54 +0000 (16:31 +0900)]
Fix svace 2.2 version issues

Change-Id: I1e267e154c703d921683eb77a2516ec25a03b01b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoDPM: Sync API return value with other bt-service modules. 86/100886/3
h.sandeep [Tue, 29 Nov 2016 11:41:15 +0000 (17:11 +0530)]
DPM: Sync API return value with other bt-service modules.

1. All the API return values synchronozed as per bt-service
modules.
2. Moved the getter API return values to API out parameter.
3. Fix the Svace 2.2 issue.

Change-Id: Ie76f2cbc913bfbdb567606635e0e817b2f237056
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoPXP: Modify APIs and Signal handle implementation 19/99919/2
h.sandeep [Thu, 24 Nov 2016 11:12:56 +0000 (16:42 +0530)]
PXP: Modify APIs and Signal handle implementation

1. Add Seperate APIs for Monitor and reporter role.
2. Add implementation to moinotr the PID for reporter service.
3. Remove the property changed handler for monitor role.

Change-Id: I033bc604d7fc2971eecaa65647cec50af7f29840
Signed-off-by: h.sandeep <h.sandeep@samsung.com>