Szymon Janc
42817e6cc5
android: Always enable SSP if supported by controller
...
There is no HAL function to enable/disable SSP so always enable it if
supported by controller.
2013-10-31 15:46:29 +02:00
Andrei Emeltchenko
043251a8bc
android/daemon: Fix not reporting scan mode to Java
...
After set_adapter_property() higher layer expects callback to be returned
even if property is not changes. Otherwise Java timeouts and reset Bluetooth
enetring to the loop.
...
BluetoothAdapterState( 2850): Timeout will setting scan mode..
Continuing with disable...
...
2013-10-31 15:45:19 +02:00
Andrei Emeltchenko
5eaf3a88f3
android/daemon: Fix error setting property
...
Do not return error setting property which is already set. This fixes
bug with set_scan_mode which might return HAL_STATUS_DONE.
2013-10-31 15:44:43 +02:00
Luiz Augusto von Dentz
26ba19064d
android/hid: Add handling of HAL_EV_HID_CONN_STATE
...
This patches generate proper events when the connection state changes:
>hidhost connect
BlueZ D: android/hal-hidhost.c:hh_connect()
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_CONNECTING
if_hh->connect: BT_STATUS_SUCCESS
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_CONNECTED
>hidhost disconnect
BlueZ D: android/hal-hidhost.c:hh_disconnect()
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_DISCONNECTING
if_hh->disconnect: BT_STATUS_SUCCESS
connection_state_cb: bd_addr= connection_state=BTHH_CONN_STATE_DISCONNECTED
2013-10-31 15:00:14 +02:00
Luiz Augusto von Dentz
6a92a05be3
android/hal-hidhost: Add implementation of .connection_state_cb
2013-10-31 15:00:10 +02:00
Luiz Augusto von Dentz
043fd76a2b
android/hid: Add handling of incoming connections
2013-10-31 14:59:30 +02:00
Jerzy Kasenberg
3e4893a27b
android/client: Fix crash in get_profile_interface
...
This fixes crash due to uncheck input from user.
2013-10-31 13:51:59 +02:00
Szymon Janc
42876422b2
android: Add support for handling remove bond command
...
Bond state change is send when command complete for unpair device is
received and status was success.
2013-10-31 12:32:24 +02:00
Szymon Janc
08e6aadd83
android/hal: Add support for repacking received IPC data to HAL data
...
Some HAL defined types that are passed as type-len-value in properties
callback needs to be repacked at runtime to match defined types.
This is due to HAL using data types without strict refined sizes like
enums or unpacked structures. This is needed only if data is passed as
TLV. With data passed to callbacks as parameters compiler will handle
types convertion.
Currently only enum types are supported.
2013-10-31 10:55:43 +02:00
Andrei Emeltchenko
a49fa76fa8
android/haltest: Fix bug when building for Android 4.2.2
...
Since I started to use system Android headers instead of local this
bug was found.
2013-10-31 10:53:10 +02:00
Andrei Emeltchenko
dd4f0ea5f4
android/haltest: Use Android system headers instead of local
2013-10-31 10:52:53 +02:00
Szymon Janc
705b9a2d47
android: Add support for handling SSP reply command
2013-10-31 10:51:27 +02:00
Szymon Janc
1169f47966
android: Add support for handling pin reply command
2013-10-31 10:51:16 +02:00
Szymon Janc
e7d8ab6427
android: Add support for notify variant in SSP request event
2013-10-31 10:50:38 +02:00
Szymon Janc
c5b55f0345
android: Add support for entry variant in SSP request event
2013-10-31 10:50:35 +02:00
Szymon Janc
17ee50486b
android: Add initial support for sending SSP request event
...
Only consent and confirm variants are supported in this patch.
2013-10-31 10:50:28 +02:00
Szymon Janc
6e2e717e92
android: Add support for sending pin code request
2013-10-31 10:50:21 +02:00
Szymon Janc
a56bec6642
android: Add support for handling cancel bond command
2013-10-31 10:47:48 +02:00
Szymon Janc
9ec2351f61
android: Add support for handling create bond command
2013-10-31 10:47:26 +02:00
Szymon Janc
2ed04662f4
android: Set default IO capability on daemon start
...
There is no HAL function for setting IO capabilities so this is
hardcoded to DisplayYesNo as Android devices usually have screen
and input.
2013-10-31 10:47:11 +02:00
Szymon Janc
21bf46e168
android: Make load_link_keys function load keys
...
GSlist passed is expected to hold mgmt_link_key_info structures.
2013-10-31 10:46:56 +02:00
Szymon Janc
7e0bc2f00d
android: Add support for handling new link key mgmt event
...
When link key is emitted by kernel bond state change notification is
send to HAL. Storing link key is not yet implemented.
2013-10-31 10:45:51 +02:00
Szymon Janc
e7356e5e82
android: Add missing bond state definition to IPC header
2013-10-31 10:45:43 +02:00
Szymon Janc
424219cdf2
android: Add missing bonding state definitions to IPC specification
2013-10-31 10:45:33 +02:00
Andrei Emeltchenko
51236854f2
android: Use Android headers instead of local ones
...
Add path to Android libhardware library headers
2013-10-31 10:41:55 +02:00
Marcin Kraglak
a56aeec37d
android: Initial implementation of socket interface
...
Add stub implementation of socket interace on daemon side.
2013-10-31 10:30:00 +02:00
Marcin Kraglak
2a7971fc3e
android/hal: Add initial socket implementation
...
Added socket api opcodes and structures and its implementation
in hal-sock.c.
2013-10-31 10:29:40 +02:00
Jerzy Kasenberg
ea1347cf44
android/client: Define Android version for host
...
This patch defines PLATFORM_SDK_VERSION like it is handled in
Android.mk. This value corresponds to current copy of headers
from Android committed to bluez.
2013-10-30 17:04:33 +02:00
Luiz Augusto von Dentz
d9ea2226c0
android/hid: Fix not cleanup properly after disconnect
...
If the device is disconnected it should be removed from the list of
connected devices and free its data.
2013-10-30 16:42:19 +02:00
Jerzy Kasenberg
dbefd63d01
android: Fix compiler flags with Android version
...
This fixes commit that removed PLATFORM_SDK_VERSION when building
haltest. Now all android targets get this define.
2013-10-30 16:32:24 +02:00
Jakub Tyszkowski
ef4f77e680
android: Add missing discovery state definitions to IPC header
2013-10-30 12:12:14 +02:00
Jakub Tyszkowski
ccfc207b4f
android/hal: Add device state changed event handler
...
This is used to report property change of already reported remote
device.
2013-10-30 12:11:55 +02:00
Jakub Tyszkowski
56f12d1a33
android/hal: Add device found event handler
...
This is called when new remote device is found.
2013-10-30 12:11:46 +02:00
Jakub Tyszkowski
66f9de59f3
android/hal: Extract bt property repacking code for further reuse
...
This extracted part of code can be reused for repacking remote device
properties.
2013-10-30 12:11:33 +02:00
Jakub Tyszkowski
2cbbb5bbb6
android/hal: Add support for handling discovery state change event
2013-10-30 12:11:24 +02:00
Jakub Tyszkowski
98f4e39831
android/hal: Add support for start/cancel device discovery commands
2013-10-30 12:11:13 +02:00
Szymon Janc
b95fba99cf
android: Suppress compiler warnings not used in autotools build
...
Android build system is enabling some additional warnings that are not
enabled when building with autotools. This avoids spurious warnings
while building on Android.
2013-10-30 12:09:05 +02:00
Szymon Janc
0f8e15cb67
android: Add common place for adding compiler flags in Android.mk
...
This will contain CFLAGS common for all BlueZ code.
2013-10-30 12:09:03 +02:00
Jerzy Kasenberg
c26309164b
android/client: Fix crash in tab completion
...
When user pressed tab on third or later argument when
first two did not make sense tool crashed.
Now method is checked for NULL before accessing help field.
2013-10-30 12:06:45 +02:00
Szymon Janc
5ff30dbe65
android: Add README file with instructions
...
This file cotains help on how BlueZ for Android should be build, run
and test. Some hints and examples on how BlueZ can be intergrated into
Android are present as well.
2013-10-30 11:15:21 +02:00
Szymon Janc
556507b49d
android/hal: Add support for handling SSP request event
2013-10-29 15:06:08 +02:00
Szymon Janc
10e7618ca5
android/hal: Add support for handling pin request event
2013-10-29 15:05:15 +02:00
Andrei Emeltchenko
4e7e340b15
android: Fix build errors
...
The patch fixes following issues when building:
Make links to sco.h and rfcomm.h needed for Android sockets.
...
btio.c:39:30: fatal error: bluetooth/rfcomm.h: No such file or directory
compilation terminated.
...
btio.c:40:27: fatal error: bluetooth/sco.h: No such file or directory
compilation terminated.
...
2013-10-29 15:04:41 +02:00
Szymon Janc
b201633af3
android/hal: Add support for handling bond state change event
2013-10-29 14:11:42 +02:00
Szymon Janc
d9cbe6cacc
android: Update IPC headers to match SSP and PIN requests events
...
Name should be 249 bytes so it is always NULL terminated string.
Class of device is send as uint32. This will allow to make simple
passing of data in HAL library without need of copying data.
2013-10-29 14:11:34 +02:00
Szymon Janc
4360ee9b6b
android: Define class of device as four bytes in IPC doc
...
For PIN and SSP requests callback define CoD as 4 bytes. This will
allow HAL library to pass CoD direclty to callback. Will also match
how CoD is passed as property.
2013-10-29 14:11:27 +02:00
Szymon Janc
806721a4cb
build: Move Makefile.android to android/Makefile.am
...
This will keep all Android related changes within android directory.
2013-10-29 14:06:35 +02:00
Szymon Janc
2abdd0364c
android/hal: Set callbacks before initializing IPC
...
Notification thread is started on IPC init and it can be scheduled
before main thread.
Fix following crash on HAL init:
pid: 3392, tid: 3492, name: droid.bluetooth >>> com.android.bluetooth <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000028
eax 00000000 ebx ce047f64 ecx ce0405d0 edx f7763724
esi cdf3af00 edi f837fb90
xcs 00000023 xds 0000002b xes 0000002b xfs 00000000 xss 0000002b
eip ce042289 ebp cdf3a9f8 esp cdf3a9e0 flags 00010292
backtrace:
#00 pc 00003289 /system/lib/hw/bluetooth.default.so (bt_thread_associate+25)
#01 pc 000015f8 /system/lib/hw/bluetooth.default.so (notification_handler+40)
#02 pc 0000f804 /system/lib/libc.so (__thread_entry+276)
#03 pc 0002999d /system/lib/libc.so
#04 pc 00082ae7 /system/lib/libdvm.so (dvmThreadSelf()+39)
#05 pc 00010db9 /system/lib/libc.so (pthread_mutex_unlock+25)
2013-10-29 14:03:39 +02:00
Ravi kumar Veeramally
c9902d2b50
android: Add initial HID disconnect implementation.
...
Implemented basic HID disconnect method. Host disconnects
with bt device at L2CAP level.
2013-10-29 13:14:05 +02:00
Ravi kumar Veeramally
508e048e66
android: Add initial HID connect implementation
...
Implemented basic HID connect method. Host connects to
bt device at L2CAP level.
2013-10-29 13:13:01 +02:00
Szymon Janc
fe74c46d11
android: Use helper function to convert bdaddr to android format
...
This will make easier to understand why swap is needed.
2013-10-28 16:10:42 +02:00
Szymon Janc
11bdfcae84
android: Add helper functions for converting bdaddr transmitted over IPC
...
Android holds Bluetooth address in reverse order comparing to
bluetoothd. Add convenient functions for converting to and from that
format.
Convertion will done on daemon side to keep HAL library simple.
2013-10-28 16:10:42 +02:00
Szymon Janc
d4453aeb8d
android: Remove bogus hal_rsp_register_module structure
...
Core service Register ID command doesn't return any parameter.
2013-10-28 15:04:18 +02:00
Szymon Janc
7bf6940813
android: Fix HAL_OP_REMOVE_BOND value
...
This is a copy-and-paste mistake.
2013-10-28 15:04:09 +02:00
Szymon Janc
2a974c6341
android: Rename send_adapter_name to send_adapter_address
...
Make function name match what it acctually does.
2013-10-28 14:58:53 +02:00
Jerzy Kasenberg
5b5f62794e
android/client: Add clear screen on Cltr-L
...
This patch allows to clear screen on Ctrl-L.
2013-10-28 14:57:56 +02:00
Luiz Augusto von Dentz
3c10d4e015
android/hal-pan: Add implementation of .disconnect
2013-10-28 14:43:24 +02:00
Luiz Augusto von Dentz
ca999716d9
android/hal-pan: Add implementation of .connect
2013-10-28 14:42:55 +02:00
Luiz Augusto von Dentz
209f302f7b
android/hal-pan: Add implementation of .get_local_role
2013-10-28 14:42:38 +02:00
Luiz Augusto von Dentz
ab2a0efba8
android/hal-pan: Add implementation of .enable
2013-10-28 14:42:28 +02:00
Luiz Augusto von Dentz
1e8089a41a
android/hal-pan: Add implementation of .init
2013-10-28 14:42:20 +02:00
Jerzy Kasenberg
c8fea98cba
android/client: Add completion for hf methods
...
This patch adds completion functions to handsfree methods.
2013-10-28 14:41:23 +02:00
Jerzy Kasenberg
dcd6c057e0
android/client: Add code for handsfree methods
...
This patch adds implementation of handsfree methods to haltest.
2013-10-28 14:41:23 +02:00
Jerzy Kasenberg
ff1e7c076a
android/client: Add code for handsfree callbacks
...
This adds implementation for handsfree callbacks.
2013-10-28 14:41:23 +02:00
Jerzy Kasenberg
e0895c15cd
android/client: Add skeleton for handsfree calls
...
This patch adds skeleton for all methods of handsfree along with
all callbacks.
2013-10-28 14:41:23 +02:00
Luiz Augusto von Dentz
d15f317bd6
android/hal-av: Fix command struct names
...
The command struct names should start with hal_cmd as the others.
2013-10-28 12:58:56 +02:00
Grzegorz Kolodziejczyk
5a5158bb0f
android/hal: Add support for send av disconnect command
...
This allows HAL to send av disconnect command
2013-10-28 11:52:03 +02:00
Grzegorz Kolodziejczyk
11410bf9bb
android/hal: Add support for send av connect command
...
This allows HAL to send av connect command
2013-10-28 11:50:52 +02:00
Grzegorz Kolodziejczyk
c737af9301
android/hal: Add support for handling av audio state event
2013-10-28 11:48:55 +02:00
Grzegorz Kolodziejczyk
7bca531f62
android/hal: Add support for handling av connection state event
2013-10-28 11:47:47 +02:00
Grzegorz Kolodziejczyk
9b67ebb0e6
android/hal: Add skeleton for handling av notifications
...
Only default case is handled in skeleton
2013-10-28 11:24:12 +02:00
Grzegorz Kolodziejczyk
e2f41f5bde
android/hal: Fix typo in A2DP HAL service name
...
A2DP was misspelled as AD2P
2013-10-28 11:24:12 +02:00
Luiz Augusto von Dentz
c23b54e379
android: Rename setting_powered_changed to powered_changed
2013-10-27 13:57:11 +02:00
Szymon Janc
d21050de66
android: Add support for notifying HAL about scan mode change
...
If connectable or discoverable setting changes property change is send
to HAL.
2013-10-27 13:52:33 +02:00
Szymon Janc
3676715fd5
android: Always set adapter to pairable on init
...
There is no operation to enable/disable pairable mode in Android HAL.
2013-10-27 13:23:35 +02:00
Szymon Janc
9be3bd6609
android: Add support for setting adapter scan mode
...
This allows to set all modes defined: none, connectable and
'connectable and discoverable'.
2013-10-27 13:23:35 +02:00
Szymon Janc
e73aba7105
android: Add missing scan mode difinitions to IPC header
2013-10-27 13:23:35 +02:00
Szymon Janc
36235e21e4
android: Add initial code for handling adapter set property command
...
No commands are handled yet.
2013-10-27 13:23:35 +02:00
Szymon Janc
27eeafd652
android: Use common exit path for commands in bt_adapter_handle_cmd
...
All adapter commands return no parameters so putting error and success
response on common exit path. This will make function easier to follow
when more commands support will be added.
2013-10-27 13:23:35 +02:00
Andrei Emeltchenko
eb53c75bec
android/hal: Use debug helpers from hal client
...
Debug helpers really helps a lot when debugging on Android target. The
patch uses helper functions already defined for hal test tool so
we do not need to reimplement them.
2013-10-27 13:17:53 +02:00
Andrei Emeltchenko
81af6f918c
android/hal: Use defined function to check that interface is ready
2013-10-27 13:17:53 +02:00
Andrei Emeltchenko
39bf745e92
android/hal: Associate thread to Java
...
Without thread assiciation callbacks are not received by Java.
They are blocked by JNI:
E/BluetoothServiceJni( 2844): Callback env check fail: env: 0x0, callback: 0x0
E/BluetoothServiceJni( 2844): Callback: 'adapter_state_change_callback' is not
called on the correct thread
2013-10-25 16:08:04 +03:00
Luiz Augusto von Dentz
d52939fde9
android: Rename ipc_send_error to ipc_send_rsp
2013-10-25 15:22:24 +03:00
Luiz Augusto von Dentz
1610f70cd6
android: Rename ERROR enum and command to STATUS
...
This is more consistent with HAL interface which does name the enum as
bt_status_t and does use BT_STATUS prefix.
2013-10-25 15:13:48 +03:00
Szymon Janc
7d9d4d8772
android: Add initial support for handling adapter get property command
...
Support for HAL_BT_PROP_BDADDR property only.
2013-10-25 15:00:29 +03:00
Szymon Janc
a9be0747a6
android: Add missing success status definition to IPC header
...
This is used in HAL callbacks to indicate success.
2013-10-25 15:00:29 +03:00
Szymon Janc
1c0d8eefac
android/hal: Add support for handling adapter properties change event
2013-10-25 15:00:29 +03:00
Szymon Janc
ea73f7b785
android/hal: Add support for sending adapter SSP reply command
...
This allows HAL to reply to SSP request.
2013-10-25 15:00:29 +03:00
Szymon Janc
96bdbe13a9
android: Add missing SSP variant definitions to IPC header
2013-10-25 15:00:22 +03:00
Szymon Janc
ea713c98e6
android: Add missing SSP Variant definitions to IPC document
...
Those are used to specify SSP association model.
2013-10-25 14:29:02 +03:00
Szymon Janc
6748668dc7
android/hal: Add support for sending adapter PIN reply command
...
This allows HAL to reply to PIN code request.
2013-10-25 14:28:57 +03:00
Szymon Janc
c853f60dd1
android/hal: Add support for sending adapter remove bond command
...
This allows HAL to remove bonding.
2013-10-25 14:28:52 +03:00
Szymon Janc
6312df1ed5
android/hal: Add support for sending cancel bond command
...
This allows HAL to cancel pending bonding.
2013-10-25 14:28:47 +03:00
Szymon Janc
34043763e3
android/hal: Add support for sending create bond command
...
This allows HAL to start bonding.
2013-10-25 14:28:42 +03:00
Szymon Janc
0e35111ec4
android/hal: Add support for sending adapter get properties command
...
This allows HAL to get all adapter properties.
2013-10-25 14:28:36 +03:00
Szymon Janc
0c5d044175
android/hal: Add support for sending adapter get property command
...
This allows HAL to get adapter property.
2013-10-25 14:28:30 +03:00
Szymon Janc
32e236d70e
android/hal: Add support for sending adapter set property command
...
This allows HAL to set adapter property.
2013-10-25 14:28:25 +03:00
Szymon Janc
56bfb47be9
android: Add properties defines to hal-msg.h
...
Android HAL defines some properties as adapter specific, some as
device specific and some as common. We split those to separate
adapter and device properties hence overlaping or holes in codes.
2013-10-25 14:28:21 +03:00
Szymon Janc
e4db4fdd60
android: Remove not needed local variable in connect_hal
...
err variable was set but never read.
2013-10-25 14:28:16 +03:00
Jerzy Kasenberg
9acf421380
android/client: Add processing of .haltestrc
...
This patch allows tool to read commands from .haltestrc.
So it is possible to call some functions that are typically used.
So user can have:
adapter init
adapter get_profile_interface socket
adapter get_profile_interface pan
adapter get_profile_interface hidhost
adapter get_profile_interface a2dp
pan init
av init
2013-10-25 14:17:54 +03:00
Jerzy Kasenberg
a5383e2137
android/client: Add source command to haltest
...
New command allows to read script file into tool and
execute its contents as if it was typed.
2013-10-25 14:17:54 +03:00
Jerzy Kasenberg
1927259430
android/client: Fix incorrect casts of addresses
...
This fixes printing of addresses.
If char is set to be signed (as it should) some addresses were
printed with leading FFFFFF.
2013-10-25 13:31:44 +03:00
Jerzy Kasenberg
81e2fa91a3
android/client: Fix various coding style issues
...
Mostly indentation of arguments in functions and calls.
Prefix p remove from puser/penum_func.
Some empty lines added after closing } when needed.
Magic number for string length changed to preprocessor define.
Added spaces after casts.
2013-10-25 11:12:37 +03:00
Andrei Emeltchenko
9918a415ab
android: Make haltest and bluetoothd depend on HAL lib
...
The patch makes haltest and bluetoothd depend on bluetooth.default target
which is already defined. glib dependency Android resolves itself.
Fixes issue that for the fresh build only bluetooth.default.so is built.
2013-10-25 11:09:39 +03:00
Szymon Janc
17f8aa67a6
android: Fix debug logs when running on Android
...
Current Android log backed dones't enable debug logs. Instead of coping
code from src/log.c, just use it on Android as well.
No functionality is lost as currently Android log backed only prints
to standard output.
2013-10-24 18:39:00 +03:00
Szymon Janc
54345db3b1
android: Use adapter index in mgmt functions
...
Instead of hardcoding index 0 use real index of adapter. This fix
using invalid index if adapter ID happens to be different than 0.
This should not happen on Android but is possible while testing on
Linux PC.
2013-10-24 18:32:47 +03:00
Szymon Janc
194d2d5d3d
android: Use default adapter in adapter functions
...
There is no need to pass pointer to adapter between function as there
is only one adapter in android daemon. Also default_adapter is renamed
to adapter.
There is no need to pass adapter pointer as user data since there is
only one adapter present.
2013-10-24 18:32:44 +03:00
Szymon Janc
78761a80af
android: Remove not needed adapter parameter from bt_adapter_ready
...
There is no need to pass adapter pointer in bt_adapter_ready callback
as there is only one present.
2013-10-24 18:31:41 +03:00
Szymon Janc
5d044fff91
android: Fix bt_adapter_init
...
Make bt_adapter_init return void and use ready callback for error
reporting. This also fix returning incorrect status and invalid
mgmt_if unref (mgmt_send return 0 on error or >0 on success).
2013-10-24 18:31:33 +03:00
Szymon Janc
f9c5137dfd
android: Start command watch after notify channel is connected
...
Daemon should start processing commands only after both communication
channels were connected.
2013-10-24 18:23:08 +03:00
Luiz Augusto von Dentz
55a25cb83c
android/hal-msg: Reduce length of defines and struct names
...
The current defines and struct names are way too big and sometimes
incosistent.
2013-10-24 10:46:24 +03:00
Andrei Emeltchenko
d60490a7c3
android: Enable AV interface
...
Include av_interface to get_interface function.
2013-10-24 10:24:24 +03:00
Andrei Emeltchenko
4569aaf0b5
android: haltest: Enable av interface in test tool
2013-10-24 10:24:23 +03:00
Jerzy Kasenberg
e5c9c6c3b0
android: Add calls to av methods in haltest
...
This patch adds calls to av interface in haltest.
2013-10-23 19:34:22 +03:00
Szymon Janc
ff3d7aa235
android: Fix use of invalid service ID in response
...
Adapter should use HAL_SERVICE_ID_BLUETOOTH service ID.
2013-10-23 19:33:22 +03:00
Szymon Janc
3dbfab4372
android/hal: Verify if command response service ID match
...
Received response service ID should match command service ID in
command, abort if it doesn't.
2013-10-23 19:33:03 +03:00
Szymon Janc
d7e0cfe033
android: Send notification on adapter power state change
2013-10-23 19:32:30 +03:00
Szymon Janc
f94baef84e
android/hal: Fix crash while receiving notification
...
This fix following crash:
Invalid read of size 8
at 0x408B33: notification_handler (hal-ipc.c:122)
by 0x4E39E99: start_thread (pthread_create.c:308)
Address 0x8 is not stack'd, malloc'd or (recently) free'd
2013-10-23 19:32:16 +03:00
Szymon Janc
280d52cefd
android: Add missing adapter state values to IPC header
2013-10-23 19:32:08 +03:00
Szymon Janc
9e6bcb42b3
android: Add missing adapter state values to IPC documentation
2013-10-23 19:31:59 +03:00
Andrei Emeltchenko
6c47a0a0a6
android: Use helper function for finding headers
...
Using helper function allows us to overcome possible location
change in future Android releases. This was inspired by
Szymon Janc's comment to my previous patch.
2013-10-23 17:39:53 +03:00
Andrei Emeltchenko
e3e957e068
android: Fix compilation error
...
The patch fixes errors with undefined symbols EXIT_FAILURE on Android.
2013-10-23 16:06:32 +03:00
Lukasz Rymanowski
5619f854f9
android: Fix build error for Android
...
Android uses functions and defines from sys/capability.h which
requires additional include. However file capability.h shows up
in bionic in version Android 4.3, therefore we do check
PLATFORM_SDK_VERSION to no break builds of previous Android versions.
In previous Android version unistd.h contain this functionality.
2013-10-23 15:58:29 +03:00
Andrei Emeltchenko
63c3679a81
android: Make use of Android system headers instead of local one
...
Since the headers were copied to android/ folder Android build started
to use those instead of original Android system headers. The patch
puts Android system headers first.
2013-10-23 15:58:27 +03:00
Johan Hedberg
16102bea3d
android: Add convenience variable for adapter bdaddr
2013-10-23 14:32:03 +03:00
Szymon Janc
46467fd5d1
android: Add support for registering and unregistering hid service
2013-10-23 14:26:40 +03:00
Szymon Janc
9f696ad971
android: Add initial code for socket service
...
Only handle register/unregister for now.
2013-10-23 14:26:40 +03:00
Szymon Janc
97732368fb
android: Add bt_adapter_get_address function
...
It will be used to obtain adapter address.
2013-10-23 14:26:40 +03:00
Szymon Janc
eea8d8e2d8
android: Add support for registering "bluetooth" service
2013-10-23 14:24:58 +03:00
Szymon Janc
ec2dc713b1
android: Add initial code for services unregister
...
This will be used to disable services on respective HAL cleanup calls.
2013-10-23 14:24:24 +03:00
Szymon Janc
f4fc4273eb
android: Add initial code for services register
...
This will be used to enable services on respective HAL init calls.
2013-10-23 14:23:59 +03:00
Andrei Emeltchenko
3adac8d715
android: Check that service is started
...
Add check that we are able to start Bluetooth service in
Android. If service is not started we should not try to connect to it.
2013-10-23 14:02:07 +03:00
Johan Hedberg
de10a3d060
android/hid: Fix service type in error response
2013-10-23 13:22:39 +03:00
Luiz Augusto von Dentz
89a85ed6a8
android: Fix checking return of hal_ipc_cmd
...
hal_ipc_cmd should never return negative values
2013-10-23 13:16:17 +03:00
Luiz Augusto von Dentz
2f1277b170
android: Use sock prefix
...
This adds sock prefix for static function and replaces those that had
bt_sock as prefix.
2013-10-23 13:06:50 +03:00
Luiz Augusto von Dentz
0ee10ed2e5
android: Use pan prefix instead of bt_pan
...
This replaces the use of bt_pan as function prefix with pan.
2013-10-23 13:06:50 +03:00
Johan Hedberg
5526825ed9
android/client: Fix various coding style issues
2013-10-23 13:04:40 +03:00
Jerzy Kasenberg
674d6fe8a5
android: Add calls to pan methods to haltest
...
This patch allows to call pan methods in haltest.
2013-10-23 13:00:46 +03:00
Jerzy Kasenberg
7c33cf97a3
android: Add calls to socket methods in haltest
...
This patch adds calls to socket methods.
2013-10-23 12:59:39 +03:00
Andrei Emeltchenko
136136c333
android: Create header links for lib
...
BlueZ headers are referring as bluetooth/* for headers which are
located in lib/*. Create symlinks for now until we find better solution.
2013-10-23 10:59:23 +03:00
Ravi kumar Veeramally
9cbea426e1
android: Add initial code for hidhost set hid information
...
This adds the initial code for hidhost .set_info interface
2013-10-23 10:58:35 +03:00
Ravi kumar Veeramally
012b23595a
android: Add initial code for hidhost send data
...
This adds the initial code for hidhost .send_data interface
2013-10-23 10:58:07 +03:00
Ravi kumar Veeramally
d1f285e9ff
android: Add initial code for hidhost get and set report
...
This adds the initial code for hidhost .get_report and .set_report
interfaces
2013-10-23 10:57:43 +03:00
Ravi kumar Veeramally
d5a7a9980f
android: Add initial code for hidhost get and set protocol
...
This adds the initial code for hidhost .get_protocol and .set_protocol
interfaces
2013-10-23 10:56:19 +03:00
Ravi kumar Veeramally
3590e6b8e9
android: Add initial code for hidhost virtual unplug
...
This adds initial code for hidhost .virtual_unplug interface
2013-10-23 10:55:21 +03:00
Ravi kumar Veeramally
66b6ea20ad
android: Return right from hal_ipc_cmd call in hal hid disconnect
...
Do not print any error message and return from hal_ipc_cmd call in hal
hid disconnect
2013-10-23 10:54:59 +03:00
Ravi kumar Veeramally
5c12b56155
android: Return right from hal_ipc_cmd call in hal hid connect
...
Do not print any error message and return from hal_ipc_cmd call in hal
hid connect
2013-10-23 10:54:25 +03:00
Andrei Emeltchenko
938a145e97
android: Fix compilation error for Android 4.2.2
...
On our current target the tools cannot be compiled.
2013-10-23 10:50:19 +03:00
Johan Hedberg
80e024d2b1
android: Move load_link_keys_complete() to a more sensible location
2013-10-23 10:30:57 +03:00
Johan Hedberg
59d3fe7e37
android: Detect adapter removal in daemon and exit
2013-10-23 10:20:30 +03:00