| 3fdad47b |
android/gatt: Change check permissions order
Firstly we should check if characteristic needs MITM permissions,
and next check for ENCRYPTION permissions. Now remote device can
increase security to MITM immediatelly (i.e. from sec LOW to HIGH). |
Marcin Kraglak |
11 years ago |
1 file, +8, -8 |
| 1f27eabe |
android/hog: Add support to auto discover primary if not set
This adds support to auto discover primary service stopping once HoG
UUID is found. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +103, -1 |
| 48b4dfbc |
android/hog: Strip dependencies from input plugin
This strip any dependecy from input plugin so the code can be used by
hidhost interface. |
Luiz Augusto von Dentz |
11 years ago |
4 files, +198, -287 |
| d2c3065e |
android/hog: Add copy to HoG implementation from input plugin |
Luiz Augusto von Dentz |
11 years ago |
1 file, +886, -0 |
| 85a71aa4 |
android/ipc: Add support for sending FD in notifications |
Szymon Janc |
11 years ago |
2 files, +10, -1 |
| 7b78c20b |
android/hal-ipc: Pass FD to notification handlers |
Szymon Janc |
11 years ago |
10 files, +85, -85 |
| 02dc1cdd |
android/hal-ipc: Move daemon starting to bluetooth HAL |
Szymon Janc |
11 years ago |
2 files, +8, -6 |
| 1c393c18 |
android/hal-ipc: Split IPC init and accept to separate functions
This allows to perform custom action between listening and accepting
eg starting bluetoothd. |
Szymon Janc |
11 years ago |
3 files, +58, -41 |
| 5272cc49 |
android/hal-ipc: Move exit calls under label in notification_handler
This reduce number of exit points in preparation for destroy callback. |
Szymon Janc |
11 years ago |
1 file, +8, -5 |
| 248a15da |
android/hal-ipc: Move exit calls under failed label in hal_ipc_cmd
This reduce number of exit points in preparation for destroy callback. |
Szymon Janc |
11 years ago |
1 file, +26, -23 |
| c7bdb67b |
android/hal-ipc: Move exit calls outside of handle_msg
This reduce number of exit points in preparation for destroy callback. |
Szymon Janc |
11 years ago |
1 file, +19, -18 |
| e95e9c04 |
android/hal-ipc: Fix missing mutex unlock
This is a preparation for destroy callback. |
Szymon Janc |
11 years ago |
1 file, +1, -0 |
| d8c3723d |
android/hal-ipc: Allow to pass custom path to IPC |
Szymon Janc |
11 years ago |
3 files, +4, -4 |
| b1015bbb |
android/ipc: Make struct service_handler private |
Szymon Janc |
11 years ago |
2 files, +5, -5 |
| c4f4fdc9 |
android: Re-enable support for Android 4.4.2
Due to very unfortunate change Android 4.4.3-r1.1 BT GATT HAL API is
not backward compatible. This adds support for 4.4.3-r1.1 and 4.4.2.
On android PLATFORM_VERSION is used to determine which API should be
used. On Linux we always build with latest API. |
Szymon Janc |
11 years ago |
4 files, +44, -1 |
| 0655ac0d |
android/gatt: Update set_adv_data IPC to HAL API change |
Szymon Janc |
11 years ago |
3 files, +38, -13 |
| fa8f26fe |
android: Update HAL API to Android 4.4.3-r1.1 |
Szymon Janc |
11 years ago |
2 files, +6, -2 |
| 93af47ef |
android: Load Identity Resolving Keys
Load IRKs from file. |
Jakub Tyszkowski |
11 years ago |
1 file, +62, -0 |
| 62cc5889 |
android: Store remote's Identity Resolving Key
Persistent storage is used so we can load IRKs on startup. |
Jakub Tyszkowski |
11 years ago |
1 file, +58, -0 |
| 9beb1faa |
android/health: Fix MDEP data type
MDEP data type size is 2 octets. |
Ravi kumar Veeramally |
11 years ago |
2 files, +2, -2 |
| 86eb3416 |
android/hal-ipc-api: Update Health MDEP command parameter |
Ravi kumar Veeramally |
11 years ago |
1 file, +2, -1 |
| 42b98fd6 |
android/gatt: Fix error status override |
Andrei Emeltchenko |
11 years ago |
1 file, +3, -1 |
| c2d4c9bd |
android/tester: Update expected UUIDs with MPS
Some tests verify that all local UUIDs are present. |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +14, -6 |
| 81e1cd3c |
android: Add Android CTS tests results |
Szymon Janc |
11 years ago |
2 files, +33, -0 |
| e55af38a |
android/README: Update information about GATT HAL support |
Szymon Janc |
11 years ago |
1 file, +12, -3 |
| cfc9452c |
android/hal-pan: Use compact syntax for event handlers |
Szymon Janc |
11 years ago |
1 file, +4, -10 |
| 96927801 |
android/hal-hidhost: Use compact syntax for event handlers |
Szymon Janc |
11 years ago |
1 file, +13, -30 |
| c7cd6e43 |
android/hal-bluetooth: Use compact syntax for event handlers |
Szymon Janc |
11 years ago |
1 file, +32, -58 |
| a3bd6579 |
android/hal-a2dp: Use compact syntax for event handlers |
Szymon Janc |
11 years ago |
1 file, +4, -10 |
| 39437cd5 |
android/hal-health: Add app state event handler |
Ravi kumar Veeramally |
11 years ago |
1 file, +11, -0 |
| 73aa8b84 |
android/hal-msg: Add application id to mdep config cmd struct
Register application cmd is fragmented into application and multiple
MDEP configurations data. Passing app id helps to find which mdep data
belongs to which registered application. |
Ravi kumar Veeramally |
11 years ago |
2 files, +2, -0 |
| 8801bcae |
android/hal-health: Fix passing buf not cmd for passing data |
Ravi kumar Veeramally |
11 years ago |
1 file, +1, -1 |
| 5209ff50 |
android/pts: Update GAP TC_CONN_CPUP_BV_06_C test result |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +6, -1 |
| 6fb74ba2 |
doc: Update test coverage |
Johan Hedberg |
11 years ago |
1 file, +2, -2 |
| 404c3568 |
tools/mgmt-tester: Add SSP just-works test case
This patch adds a test case to ensure that we do not get any user space
confirmation callbacks when we're supposed to be doing just-works
pairing. |
Johan Hedberg |
11 years ago |
1 file, +26, -0 |
| 1ff1d4e9 |
android/gatt: Rename app unregister function
Its used for client and server apps unregistering |
Jakub Tyszkowski |
11 years ago |
1 file, +5, -8 |
| aee0b144 |
android/gatt: Use common code for server and client apps unregister |
Jakub Tyszkowski |
11 years ago |
1 file, +1, -11 |
| 04c4bab2 |
android/gatt: Use fill_gatt_response in response processing
This makes use of fill_gatt_response in function doing reads on queue
with pending responses. |
Jakub Tyszkowski |
11 years ago |
1 file, +12, -25 |
| 4ca3d8bc |
android/gatt: Move response filling functions up
Its needed to be called from read_requested_attributes. |
Jakub Tyszkowski |
11 years ago |
1 file, +40, -40 |
| 663c2ca5 |
android/gatt: Improve response filling function
Some functionality was extracted so it can be used from functions
already having device and pending response pointers without redundant
search. Parameters order was improved and some were removed. Function
name was changed as the real sending is done elsewere. |
Jakub Tyszkowski |
11 years ago |
1 file, +37, -32 |
| 9f6f6cb2 |
android/gatt: Fix double processing of pending responses list
send_gat_response should have been used to only fill the response
data since when pending reponses queue was introduced and response
sending was moved to queue processing function. |
Jakub Tyszkowski |
11 years ago |
1 file, +4, -6 |
| 64daf61e |
android/gatt: Dont process pending requests if queue is empty
Processing empty queue can result with crash:
bluetoothd[1670]:
external/bluetooth/bluez/attrib/gattrib.c:g_attrib_ref() 0x6035878:
ref=2
02-23 21:36:05.650 I/bluetoothd( 1669): ==1670== Invalid
read of size 1
02-23 21:36:05.650 I/bluetoothd( 1669): ==1670== at 0x12151E:
send_dev_pending_response (gatt.c:3914)
02-23 21:36:05.650 I/bluetoothd( 1669): ==1670== by 0x121B33:
process_dev_pending_requests (gatt.c:4228)
02-23 21:36:05.650 I/bluetoothd( 1669): ==1670== by 0x123955:
att_handler (gatt.c:5049) |
Jakub Tyszkowski |
11 years ago |
1 file, +3, -0 |
| dd27e2dc |
android/gatt: Always check for complete response queue
This moves the check for pending responses to response sending function
as it should always be used with this check. Since sending only complete
response is allowed, the function name was changed to better represent
what it does. |
Jakub Tyszkowski |
11 years ago |
1 file, +17, -15 |
| 6136954a |
android/gatt: Rename app connection handling function
These are handling app connections thus we should make this clear by
proper naming. |
Jakub Tyszkowski |
11 years ago |
1 file, +7, -7 |
| c5162672 |
input: Fix access to uninitialized data when authorizing connections
There were bt_io_get() failure code paths in two places that would
access "src" and "dst" when they are uninitialized. This would happen
e.g. if the HID device disconnects before we've authorized the
connection. To fix this we now save the remote address in a more
complete confirm context and use the source address already available in
the server context. |
Johan Hedberg |
11 years ago |
1 file, +23, -22 |
| 257dfac9 |
doc: Update test-hfp coverage statistics |
Szymon Janc |
11 years ago |
1 file, +2, -2 |
| 7f26eab8 |
shared/hfp: Fix crash due to invalid free
If there are no characters before '\r' memchr() will return pointer
matching passed string. This will results either in double free (if
'\r' happen to be the first byte in ringbuffer buffer) or in freeing
pointer inside ringbuffer buffer (if '\r' is not the first byte). |
Szymon Janc |
11 years ago |
1 file, +3, -1 |
| ee9dc0d4 |
unit/test-hfp: Add test for parsing empty string
Test if parser is properly handling single '\r'. |
Szymon Janc |
11 years ago |
1 file, +3, -0 |
| ec20ba7a |
android/hal-audio: Fix memory leak
Fixes clang warning:
...
android/hal-audio.c:484:3: warning: Potential leak of memory pointed to
by 'preset'
... |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -1 |
| 49cc4676 |
android/avrcp: Fix accessing pointer |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -1 |