Gu Chaojie [Thu, 26 Feb 2015 07:40:03 +0000 (15:40 +0800)]
fix dbus interface random load issue
Change-Id: I6cfa028624058325b988e1e20fb706bc1f4582fa
Signed-off-by: Gu Chaojie <chao.jie.gu@intel.com>
Changlong Xie [Wed, 14 Jan 2015 06:47:56 +0000 (14:47 +0800)]
Add nap deactivate timeout
Change-Id: I2a0760d423460ead8d71a8de9a107b7f942cbae6
Signed-off-by: Changlong Xie <changlongx.xie@intel.com>
wu zheng [Wed, 14 Jan 2015 03:31:15 +0000 (19:31 -0800)]
Merge changes Ia01e84dd,Ibcd242d4 into devel
* changes:
BlueZ/Nap: Fix "connected" value wrong issue
Fix nap_activate failed in bt_nap_disconnect_all
Changlong Xie [Fri, 9 Jan 2015 00:44:09 +0000 (08:44 +0800)]
BlueZ/Nap: Fix "connected" value wrong issue
Change-Id: Ia01e84dd2b3a46d69c9d2e5acf40a8b4a8880f0c
Signed-off-by: Changlong Xie <changlongx.xie@intel.com>
Changlong Xie [Mon, 12 Jan 2015 05:05:28 +0000 (13:05 +0800)]
Fix nap_activate failed in bt_nap_disconnect_all
Make sure nap_deactivate accomplished
Change-Id: Ibcd242d444e94e7755f0c25944a1c44f34a97eac
Signed-off-by: Changlong Xie <changlongx.xie@intel.com>
wu zheng [Fri, 9 Jan 2015 06:23:23 +0000 (14:23 +0800)]
Add the test of device_foreach_connected_profiles
Add test cases for device_foreach_connected_profiles.
At the same time, to fix bt_device_is_profile_connected issue.
Change-Id: Ida9f095b0f2d5c669af0209c603e960dc3d3f7d8
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Fri, 9 Jan 2015 05:53:55 +0000 (13:53 +0800)]
Add appearance to device info for Tizen2.3
The param of appearance is added to device info in Tizen2.3.
Change-Id: Ifd87def885d5025a86876efa7a12cbcb93b97e4d
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Fri, 9 Jan 2015 05:29:58 +0000 (13:29 +0800)]
Implement the audio and nap_disconnect of Tizen2.3
bt_audio_connect missed the profile of Tizen2.3 BT.
nap_disconnect need to be implemented for Tizen2.3.
Change-Id: Id352bcc7781000ef3ca0d266a534c384a9607813
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Tue, 6 Jan 2015 09:59:10 +0000 (17:59 +0800)]
Implement bt_socket_is_service_used to match Tizen2.3
To match Tizen2.3, bt_socket_is_service_used is implemented.
Change-Id: I20dc65f3f1ea5fa48abe9c477fc7b37b057ce246
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Tue, 6 Jan 2015 09:39:07 +0000 (17:39 +0800)]
Implement bt_device_is_profile_connected to match Tizen2.3
To match Tizen2.3, bt_device_is_profile_connected is implemented.
Change-Id: I4123630fd9e7aa3cb58714cfb12ff91db00e4575
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Tue, 6 Jan 2015 09:09:58 +0000 (17:09 +0800)]
Implement bt_nap_disconnect_all to match Tizen2.3
To match Tizen2.3, bt_nap_disconnect_all is implemented.
Change-Id: Ifd843aba5a5431909685120175b64f8ff47de692
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Tue, 30 Dec 2014 10:22:55 +0000 (18:22 +0800)]
Remove Discovery Removed Devices event to match Tizen2.3
BT_ADAPTER_DEVICE_DISCOVERY_REMOVED has been removed in Tizen2.3.
To match it, NTB removed it too.
Change-Id: I3089993bd5f5a02539378638d9f57c0816d44064
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Tue, 30 Dec 2014 09:45:17 +0000 (17:45 +0800)]
Implement get_version and get_local_info to match Tizen2.3
bt_adapter_get_version
bt_adapter_get_local_info
The above functions have been implemented.
Change-Id: Ib883c50e9c87ae210a6a684e7241422a686f2687
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 25 Dec 2014 08:05:11 +0000 (16:05 +0800)]
Add appearance param to discover devices struct
appearance is needed in Tizen2.3.
Support it in bt_adapter_device_discovery_info_s.
Change-Id: I90d78f09ceed70a54d64d6ffb5d9784e47f9c8c6
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Wed, 24 Dec 2014 09:33:28 +0000 (17:33 +0800)]
Fix connectable can't support the new device issue
If new device is found/paired,
the new device can't be supported to get/set connectable.
Fixed it.
Change-Id: I27ba53b791c43778fc9e89aef342e1faca127951
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Wed, 24 Dec 2014 07:04:40 +0000 (15:04 +0800)]
Add the test cases of get version/get local info
bt_adapter_get_version
bt_adapter_get_local_info
The above points' test cases have been added.
At the same time, fixed some messages issues in test cases.
Change-Id: I6551d61955837affd32ed884272b873b5f9f0b87
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Wed, 24 Dec 2014 06:37:01 +0000 (14:37 +0800)]
Add the test cases of oob
Set remote oob, get local oob and remove oob.
The test cases have been added in NTB.
Change-Id: I06fc421386ba13750cbce620926b70c8b770cbd1
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Wed, 24 Dec 2014 06:32:32 +0000 (14:32 +0800)]
Fix set/get "EIR" value issues
Set/get "EIR" value is fix array.
Therefore, modify NTB to use fix array to set/get "EIR"
Change-Id: I52c006616befb7e265843ea77785e8ec87e8dcda
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Tue, 23 Dec 2014 10:34:31 +0000 (18:34 +0800)]
Implement Tizen2.3 to add the OOB features
bt_adapter_get_local_oob_data
bt_adapter_set_remote_oob_data
bt_adapter_remove_remote_oob_data
The above points have been implemented.
It still exists some issues.
Later, the related patches will fix them.
Change-Id: I70e982bfab6c9b8c1f275dee38783dbe0d05fbd8
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Tue, 23 Dec 2014 08:33:11 +0000 (16:33 +0800)]
Support Tizen2.3 to add the OOB features
bt_adapter_get_local_oob_data
bt_adapter_set_remote_oob_data
bt_adapter_remove_remote_oob_data
The above points have been added.
Change-Id: Ic6e11f7014286838cc6e2531d3691e99f7a9995f
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Tue, 23 Dec 2014 08:10:32 +0000 (16:10 +0800)]
Implement bt_device_get_service_mask_from_uuid_list
bt_device_get_service_mask_from_uuid_list is the new CAPI.
It comes from Tizen2.3.
Some Marcos are not defined in the patch.
Later, the Marcos will be done in the next patch.
Change-Id: Ib7fdf4f6fdb465da9542aedd9eae6d1dc7db8a07
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Tue, 23 Dec 2014 07:47:00 +0000 (15:47 +0800)]
Implement the connectable related features to match Tizen2.3
bt_adapter_set_connectable_changed_cb
bt_adapter_unset_connectable_changed_cb
bt_adapter_get_connectable
bt_adapter_set_connectable
The above points have been implemented.
Change-Id: I878da6329cda5510c43b45c3ad1e7f5548e23d30
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Fri, 19 Dec 2014 07:22:14 +0000 (15:22 +0800)]
Support Tizen2.3 to add the connectable status features
New connectable features exist in Tize2.3.
At current, add the features to NTB.
Change-Id: I491cdffef8e25a694dcc23b090a239653c04664d
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 18 Dec 2014 08:57:48 +0000 (16:57 +0800)]
Support Tizen2.3 to modify the param of connection state changed
Tizen2.3 has modified bt_device_connection_state_changed_cb.
Therefor, add the patch to match the requirement of Tizen2.3
Change-Id: I34992744e6a90f18e91634a0b962846f407e99c2
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 18 Dec 2014 07:51:47 +0000 (15:51 +0800)]
Support Tizen2.3 to add the param of bt_socket_connection_s
Tizen2.3 has modified the param of bt_socket_connection_s.
Therefor, add the patch to match the requirement of Tizen2.3
Change-Id: Ibf56ef711da1738ff8c4d1700c8a19c664eb816e
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 18 Dec 2014 07:04:10 +0000 (15:04 +0800)]
Add the Tizen2.3 CAPI bt_device_create_bond_by_type
bt_device_create_bond_by_type doesn't exist in
Tizen before Tizen-2.3 and add it to match Tizen-2.3.
Change-Id: I1d02af96499288ad6a9e4e956d971a5ae556cd65
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 18 Dec 2014 07:00:16 +0000 (15:00 +0800)]
Add the Tizen2.3 CAPI bt_adapter_recover
bt_adapter_recover doesn't exist in Tizen before Tizen2.3.
Add it to match Tizen2.3.
Change-Id: I673810473b5902e116f12dbb2bf2241ffa25c741
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 18 Dec 2014 06:53:57 +0000 (14:53 +0800)]
Add the missed basic BT CAPIs in Tizen2.3
bt_device_get_service_mask_from_uuid_list
bt_adapter_get_version
bt_adapter_get_local_info
The basic BT CAPIs are new capis in Tizen2.3.
Add the CAPIs defines firstly.
Change-Id: Idf81e22b6a1100f291c44bff7aca1ed44a822db7
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 18 Dec 2014 06:47:55 +0000 (14:47 +0800)]
Modify bt_socket_accept to match Tizen2.3
Tizen2.3 have been used in Tizen.
Therefore, bt_socket_accept need to be modified to match it.
Change-Id: I4e46619905e953697d14eec4aaeb348d6ecabcef
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
Changlong Xie [Wed, 17 Dec 2014 04:34:10 +0000 (12:34 +0800)]
SRC/pair: bug fix
1. Add relay_agent judgement in relay_agent_disconnected
2. Add "xxx=NULL" after free_relay_agent(xxx) to prevent memory leak
3. Add g_bus_unwatch_name(watch_id) in unregister_relay_agent_handler
4. Remove redundant code
Change-Id: I6918e9cc8bed9520afa08c364ce4748c6e305f91
Signed-off-by: Changlong Xie <changlongx.xie@intel.com>
wu zheng [Tue, 16 Dec 2014 09:53:50 +0000 (01:53 -0800)]
Merge "Modify wrong word spelling" into devel
Changlong Xie [Tue, 16 Dec 2014 05:12:36 +0000 (13:12 +0800)]
Modify wrong word spelling
Replace "serach" with "search"
Change-Id: I66aa62921deec2ba52b2b17495ccd8eaef5b1fc8
Signed-off-by: Changlong Xie <changlongx.xie@intel.com>
Changlong Xie [Tue, 16 Dec 2014 06:19:01 +0000 (14:19 +0800)]
SRC/opp: bug fix
1. Add relay_agent judgement in relay_agent_disconnected
2. Add "xxx=NULL" after free_relay_agent(xxx) to prevent memory leak
3. Add g_bus_unwatch_name(watch_id) in unregister_relay_agent_handler
4. Remove redundant code
Change-Id: Id0a710a706fb485cf1521edc43755cfaf3b6f38e
Signed-off-by: Changlong Xie <changlongx.xie@intel.com>
wu zheng [Mon, 15 Dec 2014 05:38:40 +0000 (13:38 +0800)]
Update the todo list
Add the more todo tasks in the files.
Change-Id: I2bc7cd6fe9a39b69095ad70c78f49c9cf19c2368
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Fri, 12 Dec 2014 09:32:21 +0000 (17:32 +0800)]
Fix the second register obex agent error issue
If register obex agent program crash,
opp server should remove the register obex agent.
However, it isn't removed.
The root cause is the disconnect function error.
The patch fixed it.
Change-Id: Ib09a6ff93d8b6a0b8add8ef819801abebf52a9c8
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Fri, 12 Dec 2014 06:54:08 +0000 (14:54 +0800)]
Release 0.3
Change-Id: I1f7fe5b7b244a251f4fb2f05ef56fd178de5ed80
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
Changlong Xie [Fri, 12 Dec 2014 02:48:35 +0000 (10:48 +0800)]
Implement handle_display_passkey
Change-Id: Iddf6ac127fe1986a041ac5df859a7f51ee8ad280
Signed-off-by: Changlong Xie <changlongx.xie@intel.com>
wu zheng [Thu, 11 Dec 2014 03:11:13 +0000 (11:11 +0800)]
Fix the enable/disable BT crash issue
When disable BT, obex unregister is inovked.
However, the connection of unregister is not set.
It results in the issue and fix it.
Change-Id: Id781a7e0ab23a62b1640b3b849a8ed7dce9246bc
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Fri, 5 Dec 2014 07:07:58 +0000 (15:07 +0800)]
Match BT_AUDIO_PROFILE_TYPE_ALL to connect all audio profiles
If use BT_AUDIO_PROFILE_TYPE_ALL to invoke audio conn/disconn,
NTB doesn't connect/disconnect all audio profiles with devices.
bt_audio_connect/disconnect exist in the param.
Therefore, add the functions to match BT_AUDIO_PROFILE_TYPE_ALL.
Change-Id: I8920cb5606193f5c2d179a998f06602919722105
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Fri, 5 Dec 2014 04:57:45 +0000 (20:57 -0800)]
Merge "Fix the code error of vconf" into devel
wu zheng [Fri, 5 Dec 2014 04:53:57 +0000 (20:53 -0800)]
Merge "Remove the callback of phone name modification" into devel
wu zheng [Fri, 5 Dec 2014 04:53:36 +0000 (20:53 -0800)]
Merge changes I463e8a65,I7d50fd63 into devel
* changes:
Add to check the phone name modification
Add the flight mode vconf to NTB
wu zheng [Fri, 5 Dec 2014 04:52:41 +0000 (20:52 -0800)]
Merge "Plugin: Set flight mode VCONF state value" into devel
wu zheng [Fri, 5 Dec 2014 04:46:10 +0000 (12:46 +0800)]
Fix the code error of vconf
1.Missed the 'else' and add it.
2.static is needed to be used in a file.
3.Move tizen3's define from .h to bluetooth_tizen3.c
Change-Id: I0b03409b1f6a4c449eb2f9308a4b7ca7bc10032a
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 4 Dec 2014 10:50:37 +0000 (18:50 +0800)]
Remove the callback of phone name modification
After NTB exit, phone name callback need to be set to null.
Change-Id: I7fab84a68941345b3ee6b1f0dae90735b8323873
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 4 Dec 2014 10:46:51 +0000 (18:46 +0800)]
Add to check the phone name modification
If phone name is modified, BT name need to be modified too.
BT name should be the same with phone name.
Change-Id: I463e8a653d714fe5525dea28f89eccdc94281d79
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 4 Dec 2014 10:07:45 +0000 (18:07 +0800)]
Add the flight mode vconf to NTB
Flight mode need to be checked in time.
Therefore, add the checking of flight mode function.
At the same time, if flight mode is off and bt status is on,
BT will open. If flight mode is on, bt will be closed.
Change-Id: I7d50fd637565eddf5f2a9365254cc4a34887d05f
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 4 Dec 2014 07:17:27 +0000 (15:17 +0800)]
Plugin: Set flight mode VCONF state value
Change-Id: I45b8c5da81a0977084e6e02ac9e5f83321af0dbd
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
Changlong Xie [Thu, 4 Dec 2014 06:26:30 +0000 (14:26 +0800)]
CAPI/Adapter: fix bt_adapter_set_visibility failed
We should set DiscoverableTimeout fisrt then set Discoverable
Change-Id: I700f2d23808b62e3bcabe2b95fa0f4ad6776a2e2
Signed-off-by: Changlong Xie <changlongx.xie@intel.com>
wu zheng [Thu, 4 Dec 2014 05:55:51 +0000 (21:55 -0800)]
Merge changes Ib4a1e661,Id43a63f3,I5fa465cf,I75be4f99,I53778a39, ... into devel
* changes:
Check if opp server/client init or not before using opp functions
Sending the error info of OPP client to upper layer
Fix the crash of opp session failed
Add the info dbus message of transfer cancel
Enable the cancel client transfer files
Fix the opp init issue and disconnect signal
Modify the opp implementation for stabilization
Fix the issue that push callback can't be callbacked
wu zheng [Thu, 4 Dec 2014 04:35:30 +0000 (12:35 +0800)]
Check if opp server/client init or not before using opp functions
Before using opp server/client functions,
If opp server/client init or not need to be checked.
If not, the related opp functions can't be used.
Only after opp server/client init, the related opp functions can be used.
Change-Id: Ib4a1e661becdd76c605b1a480bb11b8430c3a225
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Wed, 3 Dec 2014 08:24:54 +0000 (16:24 +0800)]
Sending the error info of OPP client to upper layer
If OPP client session and transfer error,
no any info is for upper layer.
applications need to know the info.
Sending the info after OPP client session and transfer error.
Change-Id: Id43a63f36066bd5a2dfa0f6e44775731d51f348a
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Wed, 3 Dec 2014 07:37:14 +0000 (15:37 +0800)]
Fix the crash of opp session failed
If opp session failed, free relay agent is invoked.
session path can't be get this time,
session isn't created.
Therefore, it is not necessary to remove session.
Change-Id: I5fa465cff5a94c7e189f344a1cf4538a19db18a9
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Wed, 3 Dec 2014 06:50:01 +0000 (14:50 +0800)]
Add the info dbus message of transfer cancel
If user cancel opp transfer, the application should get the info.
The patch add to send the info dbus message of cancel.
When cancel transfer files, the info will be sent.
At the same time, the server transfer list error is fixed.
Change-Id: I75be4f9909acc43fd23957bf010da1aa7612240d
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Mon, 1 Dec 2014 11:06:56 +0000 (19:06 +0800)]
Enable the cancel client transfer files
The transfer file can be cancel.
Some issues result in client transfer files can't cancel.
After cancel, session is removed too.
The queue sending files are checked after cancel.
Change-Id: I53778a39c868c43f2c4371b20d551b4a7ffd0f97
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Mon, 1 Dec 2014 06:00:38 +0000 (14:00 +0800)]
Fix the opp init issue and disconnect signal
It is wrong to init opp.
Add the patch to fix it.
And add the signal disconnection after the transfer finish.
Change-Id: I404358761863671093e6945db8af3911442ff93a
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Mon, 1 Dec 2014 03:06:37 +0000 (11:06 +0800)]
Modify the opp implementation for stabilization
The old opp implementation depend on the dbus messages.
Sometime, the order of dbus message is uncertainty.
Therefore, modify the opp implementation.
Not depend on the order of dbus messages and more stabilization.
The new implementation is to invoke the opp interfaces directly.
Not use the dbus proxy.
Change-Id: I5997a7d9163e45130579360f41f9f9496f117273
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Sun, 30 Nov 2014 08:57:55 +0000 (16:57 +0800)]
Fix the issue that push callback can't be callbacked
The condition of cmp is error.
It results in the issue.
The condition has been modified.
Change-Id: Ied976a15de30d58485db35197a28297299b2210a
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 27 Nov 2014 11:01:55 +0000 (03:01 -0800)]
Merge changes I98419b2c,I82577441 into devel
* changes:
Plugin: Set enable/disable VCONF state value
Bluetooth-Service/Plugin: Set/get platform storage value
wu zheng [Thu, 27 Nov 2014 02:53:21 +0000 (10:53 +0800)]
To avoid the paired devices are added twice
When add the paired devices to privilege file,
It is not sure that the paired device has been removed
by the remote device and re-piared.
To avoid it, the patch is added.
Change-Id: Ib5969f7dd94958566b176d0ea07a2a8ad3d79177
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
Wu Jiangbo [Tue, 25 Nov 2014 10:19:08 +0000 (18:19 +0800)]
Plugin: Set enable/disable VCONF state value
Change-Id: I98419b2c95670f4e07a1bf56a8f510531a638436
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
Wu Jiangbo [Tue, 25 Nov 2014 09:21:45 +0000 (17:21 +0800)]
Bluetooth-Service/Plugin: Set/get platform storage value
For Tizen, it use VCONF as the storage database, it can storage
enable status value, and get it for every time where you want.
Change-Id: I82577441bbec9bbd18067f21ca3c7029431bb4b1
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
wu zheng [Wed, 26 Nov 2014 10:49:00 +0000 (18:49 +0800)]
Fix the agent register in multi-user mode
In multi-user mode, register BT agent maybe fail.
Therefore, the related release task need to be done.
In single user mode, it is not very necessary.
Change-Id: I5294b9737349cb3c115093ba2646fb05734df42e
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Wed, 26 Nov 2014 10:42:59 +0000 (18:42 +0800)]
Fix the register opp server failure issue
register opp server failure should return directly.
The source code missed the return.
It results in the crash.
Change-Id: I7485ebca5e928bdca8df13655ba0b8920f8d2b78
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Wed, 26 Nov 2014 10:41:01 +0000 (18:41 +0800)]
Fix the percent error of opp client
The value of percent opp client is error.
The patch fixed it.
Change-Id: Ie5404b85b5f478962309a109ce0f5f81bbe14e89
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Wed, 26 Nov 2014 09:24:27 +0000 (17:24 +0800)]
Add the policy for one user have only one BT agent
One user only one BT agent.
It is useful for user does not confuse which application can popup.
To support multi-user mode, multi-applcation register agent in a user.
It will result in to confuse which application is default BT agent.
Change-Id: I983c676d004608c6fbc52ad7a34a8832ab537fbf
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Wed, 26 Nov 2014 09:21:10 +0000 (17:21 +0800)]
Add the policy of opp server recv files
opp server should recv files by the paired user
with the remote devices.
At the same time, the user should register obex agent.
To avoid opp server confusion,
one user only register one obex agent.
Change-Id: I924641775c050dfbc68e942b6600dc6a1848d312
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Wed, 26 Nov 2014 06:08:26 +0000 (14:08 +0800)]
Add the passive paired privileges checking
The passive paired need to be checked too.
In our design, the regist agent of user have the passive paired privileges.
The default agent user will accept the paired.
Therefore, the related privileges should be provided to the user.
Change-Id: I2773cb1977efc7539b3caaf1395a356e28b8093c
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Tue, 25 Nov 2014 10:07:20 +0000 (18:07 +0800)]
Add the privileges checking when opp server
The privileges need to be checked before recv files.
The patch will check the user privilege before recv the files.
If the user have no privileges, the file will be rejected.
Change-Id: I1094e7f89e3d9cffc8b648caf5c0b99d7dacf9f3
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Tue, 25 Nov 2014 09:55:16 +0000 (17:55 +0800)]
Modify the not right name
hdo is not right, modify it to hdp
Change-Id: I256b25825b4261e982855ece3d6582e70439ed94
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Tue, 25 Nov 2014 07:08:46 +0000 (23:08 -0800)]
Merge changes I012a7ea3,I85be49bd,I8a4d2fd9,If272788c,I53d01ad4, ... into devel
* changes:
Modify opp to match multi-user mode
Modify opp capis to match multi-user opp features
The opp related operations are put to daemon of opp
Add the functions of obex to implment multi-user of OPP
Modify the property_proxy to fix getting properties issues
Remove the no standard CAPIs
wu zheng [Tue, 25 Nov 2014 02:30:46 +0000 (10:30 +0800)]
Add the TODO file
TODO file is needed to record the todo task in NTB.
Change-Id: I81e36d51615867ab04d8619b3d4bc8439817aa6f
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Mon, 24 Nov 2014 11:24:56 +0000 (19:24 +0800)]
Modify opp to match multi-user mode
The old opp doesn't match multi-user mode.
opp daemon need to run with obexd in the same user.
To Tizen design, it is not possible.
Therefore, the opp design is modify.
opp daemon handle all the opp functions.
It fixed the bug of TC-2090.
Change-Id: I012a7ea3123a9d50708cea4ff475aaaf333463d0
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Mon, 24 Nov 2014 09:13:49 +0000 (17:13 +0800)]
Modify opp capis to match multi-user opp features
At current, opp capis use the opp interfaces directly.
In the multi-user mode, the opp interfaces can't be used directly.
Change-Id: I85be49bdb8813a68d82f2812d8036162f20a2589
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Mon, 24 Nov 2014 07:54:19 +0000 (15:54 +0800)]
The opp related operations are put to daemon of opp
To be ready for supporting multi-user opp feature.
the opp related operations will be put to daemon of opp.
Change-Id: I8a4d2fd99b2c545e9d555d2217ce82899ae542b4
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Mon, 24 Nov 2014 04:33:11 +0000 (12:33 +0800)]
Add the functions of obex to implment multi-user of OPP
To be ready for implmenting multi-user of OPP.
Add some needed functions to obex lib.
Change-Id: If272788cb10531012211d09325365a1eee72e162
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Mon, 24 Nov 2014 03:14:57 +0000 (11:14 +0800)]
Modify the property_proxy to fix getting properties issues
proxy.property_proxy can't get obexd properties.
The right proxy is parent->properties_proxy.
Therefore, modify it.
Change-Id: I53d01ad4070fd1fab39487372e494b04852cff95
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Mon, 24 Nov 2014 03:00:32 +0000 (11:00 +0800)]
Remove the no standard CAPIs
Some internal capis are defined.
The capis shouldn't be shown to the upper app.
Therefore, remove them.
Change-Id: If93984aef4eb80ebaeb93eb0e47bfaf5d9382bea
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
Corentin Lecouvey [Fri, 21 Nov 2014 16:15:02 +0000 (17:15 +0100)]
send a notification to register opp agent when enabling bluetooth
Change-Id: I04279000ff3f97635b83c971f943fb7fa0499750
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Corentin Lecouvey [Fri, 21 Nov 2014 09:50:39 +0000 (10:50 +0100)]
add data parameter to bt_opp_agent_on()
It allows to forward opp data to plugin
Change-Id: I4d311806c98c645436a44c73e13530c7379c18a2
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
wu zheng [Tue, 4 Nov 2014 08:16:10 +0000 (16:16 +0800)]
Modify the return value definition
Bluez.c should not use the Tizen related return value.
It is common lib. Therefore, the related value is modified.
Change-Id: I76056cf8e77ddb67687ac7bfe130d2f681a20302
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Fri, 31 Oct 2014 05:28:49 +0000 (13:28 +0800)]
Using connman enable/disable BT to replace old enable/disable
According to the requirement of Tizen,
connman need to control the BT enable/disable.
Added the return value too.
Change-Id: I956029c1a56a2e6f5b25d19c153af1144824bfd1
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Fri, 24 Oct 2014 02:19:46 +0000 (19:19 -0700)]
Merge "Remove the uid param to fix the BT security issue" into devel
wu zheng [Fri, 24 Oct 2014 02:19:35 +0000 (19:19 -0700)]
Merge "Add the features of mutli-user bt phase1 to opp" into devel
wu zheng [Fri, 24 Oct 2014 02:19:24 +0000 (19:19 -0700)]
Merge "Fix the remove bt device crash issue" into devel
wu zheng [Thu, 23 Oct 2014 07:17:36 +0000 (00:17 -0700)]
Merge "Implementing the feature of multi-user bt phase1" into devel
wu zheng [Tue, 21 Oct 2014 02:36:51 +0000 (10:36 +0800)]
Remove the uid param to fix the BT security issue
Transferring uid will be a hole.
Someone will use the hole to use the paired/connected BT devices.
Therefore, uid is get from dbus.
Change-Id: I633772df0317284d60fe4635f5bd219c2f2bac56
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 16 Oct 2014 07:33:31 +0000 (15:33 +0800)]
Add the features of mutli-user bt phase1 to opp
Before sending the files, opp will check the privileges firsly.
The privileges come from mutli-user bt requirements.
Change-Id: Id5dccbc0306ead66dedc997f923b0b4ba109fc3a
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 16 Oct 2014 06:50:27 +0000 (14:50 +0800)]
Fix the remove bt device crash issue
In the device removed process,
object->interfaces is in the circle.
However, the device destroy function remove the list device
in object->interfaces.
It is strength and will result in the program crash.
Therefore, fix it.
At the same time, fix the related adapter and gatt too.
And remove the unuseful source code.
Change-Id: I17e26118b1f17cc1d3e316f29e360b889978b7f0
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Thu, 16 Oct 2014 06:27:01 +0000 (14:27 +0800)]
Implementing the feature of multi-user bt phase1
According to the multi-user bt phase1 desgin,
user isolation is implemented.
Please check https://wiki.tizen.org/wiki/Multi-user_Bluetooth
A file is used to save who and which device has been paired.
According to it, only paired user can use the related devices.
Change-Id: I900ab59072cdde7012a9a4153c3772e6dbab062e
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
Corentin Lecouvey [Thu, 18 Sep 2014 14:49:52 +0000 (16:49 +0200)]
add data parameter to bt_pairing_agent_on()
It allows to forward pairing data to plugin
Change-Id: I89ef12f1cd27aec3e253f43946e4ec7746964f01
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Corentin Lecouvey [Mon, 30 Jun 2014 15:01:35 +0000 (17:01 +0200)]
adapt NTB to Tizen 3
This patch aims to send popup data to notification-service.
Then a notification-service client is supposed to subscribe to bt_agent
notifications in order to display them and handle user replies.
This approach is not compliant with proposed bt_agent CAPI which is based
on dbus callbacks. It is not possible to catch new user popups by dbus
callbacks and by notification-service at the same time.
To use notification-service we need a synchronous bt_agent API for user
replies.
Change-Id: Ib38f7baf62b0d4c128df1700263bc4d9b2c36af6
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Corentin Lecouvey [Wed, 10 Sep 2014 13:34:16 +0000 (15:34 +0200)]
add bluetooth-api.pc symbolic link for compatibility
Change-Id: I3d4e405dab453426cbe35164132b8ad4f73efd97
wu zheng [Wed, 17 Sep 2014 07:04:06 +0000 (15:04 +0800)]
Support to set socket server links number and missed socket features
We used number to record the socket server links number.
However, it is difficult to control each socket server link.
We modify it and use glist to control it and implement the missed
socket server features.
Modify the related test cases too.
Change-Id: If7a4b672251895a48356a5bf7af155481e81c46b
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Fri, 5 Sep 2014 09:58:25 +0000 (17:58 +0800)]
Add the socket server remote_address
remote_address is not saved.
The current patch fix it.
Change-Id: I11a08bab25f2d4c2d5ad4db8df7bfb5fb69f2b8a
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Fri, 5 Sep 2014 09:43:25 +0000 (17:43 +0800)]
Add the condition of socket get data
socket get data need the G_IO_IN condition.
BTW, remove some unuseful code.
Change-Id: I6bdabc21e86b22ae0799e86695c02332bc3b3180
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
wu zheng [Fri, 5 Sep 2014 05:18:41 +0000 (22:18 -0700)]
Merge "ADD CAPI: Gatt discover characteristic Gatt Set/unset changed callback Gatt get characteristic declaration Gatt write characteristic value Gatt read characteristic value Signed-off-by: Gu Chaojie <chao.jie.gu@intel.com>" into devel
wu zheng [Thu, 4 Sep 2014 06:59:42 +0000 (14:59 +0800)]
Fix the crash of socket disconnection
When socket disconnection, channel is needed to report fd handle.
However, channel has been removed.
It results in the crash and fix it.
BTW, remove unuseful source code.
Change-Id: I8cfd02e7fd6dddd6e5540dc18acbc22f3031ece4
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
Gu Chaojie [Wed, 3 Sep 2014 11:43:29 +0000 (19:43 +0800)]
ADD CAPI:
Gatt discover characteristic
Gatt Set/unset changed callback
Gatt get characteristic declaration
Gatt write characteristic value
Gatt read characteristic value
Signed-off-by: Gu Chaojie <chao.jie.gu@intel.com>
Change-Id: Ief7feee73f15e2e94840e105f1ef9fd1cb0867ec
wu zheng [Tue, 26 Aug 2014 07:31:50 +0000 (15:31 +0800)]
Fix assertion 'G_IS_OBJECT (object)' failed issue
Proxy comes from interface
g_object_unref will result in that G_IS_OBJECT (object)' failed.
Therefore, g_object_unref only unref once.
Change-Id: Ia8b94d3ebd69143b50b5bf7cb4b0f5f319afd0a9
Signed-off-by: Wu Zheng <wu.zheng@intel.com>