Marcin Kraglak
5658fadf26
android/hal: Send get_remote_services cmd
2013-11-04 10:20:07 +02:00
Marcin Kraglak
ef4e9a8884
android: Fix typo in get_remote_services command
2013-11-04 09:37:13 +02:00
Andrei Emeltchenko
f2782699e8
android/daemon: Add logs to trace failed cmd
2013-11-04 09:33:19 +02:00
Andrei Emeltchenko
be06afd877
android/hal: Add extra logs to HAL
...
Use exported functions from hal test tool to print properties.
2013-11-04 09:29:09 +02:00
Andrei Emeltchenko
5ad3530e8b
android/haltest: Fix print device name
2013-11-04 09:28:49 +02:00
Andrei Emeltchenko
2563307c2d
android/haltest: Use pointer as parameter for debug
...
Pass structure as pointer. This makes it consistent with the rest of
the code and helps to reuse this function in other parts.
2013-11-04 09:28:33 +02:00
Andrei Emeltchenko
59dcd70722
android/haltest: Export print property
...
Export property printing debug function.
2013-11-04 09:28:16 +02:00
Marcel Holtmann
e996efa8ed
monitor: Fix decoding of link policy values
2013-11-03 02:09:04 -08:00
Marcel Holtmann
d590e1314c
monitor: Improve device id decoding
2013-11-03 01:56:21 -08:00
Luiz Augusto von Dentz
bcbbe2d1f3
android/socket: Log not implemented HAL functions
...
This makes it easier to spot which functions the HAL is calling.
2013-11-01 16:40:40 +02:00
Luiz Augusto von Dentz
da48ebbe18
android/hid: Log not implemented HAL functions
...
This makes it easier to spot which functions the HAL is calling.
2013-11-01 16:40:38 +02:00
Luiz Augusto von Dentz
bb7f3b6304
android/adapter: Log not implemented properties
...
This makes it easier to stop which functions the HAL is calling.
2013-11-01 16:40:35 +02:00
Andrei Emeltchenko
33323282cd
android/daemon: Add handler for device disconnected
...
Send event to callback thread which shall call acl state change callback.
2013-11-01 16:39:07 +02:00
Andrei Emeltchenko
c70142b3f4
android/hal: Add debug prints for every HAL callback
...
This allows us to trace callbacks to Java.
2013-11-01 16:39:07 +02:00
Andrei Emeltchenko
2a33a44431
android/daemon: Add debug handlers for unhandled mgmt event
...
Add debug prints to some mgmt events.
2013-11-01 16:39:07 +02:00
Andrei Emeltchenko
981b04355e
android/hal: Handle acl_state_changed event
2013-11-01 16:39:07 +02:00
Andrei Emeltchenko
6554000ab7
android/daemon: Implement mgmt device connected event
...
Send HAL_EV_ACL_STATE_CHANGED event to HAL through IPC.
2013-11-01 16:39:07 +02:00
Andrei Emeltchenko
789ed3dbcb
android/ipc: Update HAL IPC header
...
Add ACL states to the header.
2013-11-01 16:39:07 +02:00
Marcel Holtmann
33c400b88b
android: Fix up the GATT client to handle KitKat API changes
2013-11-01 06:25:30 -07:00
Marcel Holtmann
97b1deec59
android: Copy the KitKat Bluetooth hardware headers
2013-11-01 06:24:55 -07:00
Luiz Augusto von Dentz
5e1e3a097d
android/hid: Add handling of HAL_EV_HID_INFO
2013-11-01 15:23:26 +02:00
Luiz Augusto von Dentz
a05dcf3e53
android/hal-hidhost: Add implemention of .hid_info_cb
2013-11-01 15:23:26 +02:00
Luiz Augusto von Dentz
e01894ce63
android/hid: Fix passing vendor id as version to uHID
2013-11-01 15:23:26 +02:00
Luiz Augusto von Dentz
65ec172c2b
android/hid: Rename hdev vars to dev
2013-11-01 15:23:26 +02:00
Marcel Holtmann
194d97df9d
android: Make system-emulator start daemon only once
2013-11-01 06:07:42 -07:00
Andrei Emeltchenko
a3b0003409
android/daemon: Update CoD and RSSI only when they exist
...
This avoid sending zeroed Class of Device and making it unidentified.
...
prop[0]: type=BT_PROPERTY_CLASS_OF_DEVICE len=4 val=000000
prop[1]: type=BT_PROPERTY_REMOTE_RSSI len=1 val=-75
prop[2]: type=BT_PROPERTY_BDNAME len=249 val=Microsoft Bluetooth Number Pad
...
2013-11-01 14:07:06 +02:00
Marcel Holtmann
22eb024fe9
android: Add support for device id information
2013-11-01 03:53:56 -07:00
Marcel Holtmann
629447a588
android: Add the missing HAVE_CONFIG_H check to adapter.c
2013-11-01 03:51:46 -07:00
Marcel Holtmann
3ac9589731
android: Run through valgrind with the system-emulator
2013-11-01 03:40:05 -07:00
Marcel Holtmann
86691b3a57
android: Allow connect() for property_set to fail
2013-11-01 03:18:47 -07:00
Ravi kumar Veeramally
46a977c7a0
android/hid: Initial implementation for uHID
...
This patch reads data on interrupt channel and feeds into uHID.
Kernel will take care rest of the things and connects bt mouse
and keyboard:
[168988.557647] input: bluez-input-device as /devices/virtual/misc/uhid/input54
2013-11-01 11:13:10 +02:00
Ravi kumar Veeramally
8e423452a2
android/hid: Fetch record before attempting to connect
...
This patch fetch HID record and store the information needed by uHID.
2013-11-01 11:13:07 +02:00
Andrei Emeltchenko
2b81efe25b
android/hid: Shutdown HID L2CAP sockets on unregister
...
Fixes address already in use issue if we reenable HID.
...
bluetoothd[2894]: Failed to listen on ctrl channel:
l2cap_bind: Address already in use (98)
...
2013-11-01 09:45:47 +02:00
Marcel Holtmann
86eb638a46
android: Monitor child process termination
2013-10-31 14:56:35 -07:00
Marcel Holtmann
d98c7855f4
android: Disable connectable and discoverable before power on
2013-10-31 13:21:48 -07:00
Marcel Holtmann
47142caf95
android: Switch controller off when shutting the daemon down
2013-10-31 12:42:22 -07:00
Marcel Holtmann
aab3d0a838
android: Power off controller when daemon gets killed
2013-10-31 12:36:09 -07:00
Marcel Holtmann
86267e88a5
android: Don't use abort() for exit
2013-10-31 12:36:09 -07:00
Grzegorz Kolodziejczyk
2da233c69d
android: Add support for setting adapters name
2013-10-31 21:31:00 +02:00
Marcel Holtmann
8dadd1165d
android: No need for volatile sig_atomic_t when using signalfd
2013-10-31 12:14:16 -07:00
Marcel Holtmann
ff153bce22
android: Exit daemon if no controller is found within 5 seconds
2013-10-31 12:06:18 -07:00
Marcel Holtmann
2978367ae0
android: Add system-emulator for wrapping daemon start
2013-10-31 09:51:29 -07:00
Andrei Emeltchenko
4ae7735196
android/hid: Add error message to error print
2013-10-31 16:58:09 +02:00
Andrei Emeltchenko
89dc0b402d
android/hidhost: Fix not unregistering HID
...
If HID is not unregistered it cannot be registered again and we get
following error:
...
E/BluetoothHidServiceJni( 2849): Failed to initialize Bluetooth HID, status: 1
...
2013-10-31 16:57:58 +02:00
Jakub Tyszkowski
928162d185
android: Add support for remote device name confirmation
2013-10-31 16:51:49 +02:00
Jakub Tyszkowski
06325fef7c
android: Add device found notifications passing
...
This patch adds remote device found and remote device properties changed
notifications passing using IPC.
2013-10-31 16:48:44 +02:00
Jakub Tyszkowski
b332aa7487
android: Add name property length define
...
Add define for adapter and remote device name property.
2013-10-31 16:48:42 +02:00
Jakub Tyszkowski
509ca56c47
android: Add device discovery mgmt event handling
...
This patch provides basic handling of device found events from management
interface. Temporary device adress list is being used to determine which
devices has already been reported and device property changed event should
be sent instead of device found event.
2013-10-31 16:47:35 +02:00
Jakub Tyszkowski
2cf38bce89
android: Add support for starting and cancelling device discovery
...
Android will cancel ongoing discovery after some period of time so there
is no need for another timeout inside the daemon itself.
2013-10-31 16:46:18 +02:00
Jerzy Kasenberg
c6c6ef6898
android/client: Add GATT server methods
...
This patch implements GATT server method calls.
2013-10-31 16:02:23 +02:00