Commit graph

33 commits

Author SHA1 Message Date
Ajay Panicker
6366e2328f Add guest mode functionality (3/5)
Add a flag to enable() to start Bluetooth in restricted
mode. In restricted mode, all devices that are paired during
restricted mode are deleted upon leaving restricted mode.
Right now restricted mode is only entered while a guest
user is active

Bug: 27410683
Change-Id: I994a2933fd60301927ff2df65da634f81d4c9428
2016-04-20 00:45:11 +00:00
Ajay Panicker
a7d043576d Revert "Add guest mode functionality (3/5)"
This reverts commit 72642d6583.

Change-Id: Iebd5764811dd66c87ca2d633900a2094eb085b38
2016-03-28 21:59:06 +00:00
Ajay Panicker
72642d6583 Add guest mode functionality (3/5)
Add a flag to enable() to start Bluetooth in restricted
mode. In restricted mode, all devices that are paired during
restricted mode are deleted upon leaving restricted mode.
Right now restricted mode is only entered while a guest
user is active

Bug: 27410683
Change-Id: Ibededbdb832275db4b6e78af83d26754f8b5a9ec
2016-03-28 18:35:03 +00:00
Andre Eisenbach
cbe2d3a8f4 Bluetooth: Additional status codes for wakelock ops
Add additional status codes to better track wakelock acquisition or
release failures.

Bug: 27721443
Change-Id: I99fb442277dac81df0d84d9a9f7a3340158377a8
2016-03-17 16:46:39 -07:00
Andre Eisenbach
b245a8237a Add ability to add interop entries dynamically (1/2)
Add ability and interface for adding dynamic entries to the interop
workaround database.

Bug: 26548845
Change-Id: I17f8cbdf1e63c316aa52903be7ec526c9b1376bb
2016-02-18 10:49:54 -08:00
Marie Janssen
addd3133f3 Add arguments to native dumpsys support
Arguments are passed through in order to support metrics logging and
future support for other dumpsys support in the native daemon.

Change-Id: Icaa75b9f36cca7e2dd2ceb5f94b27dec657d34e4
(cherry picked from commit 4236525865b119af9d2e2f5a87ac21c91fc90333)
2016-01-26 20:13:31 +00:00
Adam Lesinski
af8db0642c Add Bluetooth network traffic accounting to HAL API
Introduces a UID traffic struct and includes it in the API
for querying energy usage data.

Also adds the calling UID as a parameter for starting sockets
so that network traffic can be tracked.

Bug:26039657
Change-Id: I30a48bcf0abae2fae11454e0d5bb76017b42beea
2016-01-21 00:57:18 +00:00
Jakub Pawlowski
85d3e791cc Add structure for holding Bluetooth OOB data.
Change-Id: I0f59bf6343e519a7da830f57d242f9bdf18fca93
2016-01-07 13:39:09 -08:00
Ajay Panicker
b3759712b0 Implement Bluetooth settings factory reset (4/5)
Implemented the factory reset function to be used to reset all bluetooth
settings on device to factory default

Bug: 16161518
Change-Id: I69358db95582ddd0f2f640f76cf0931f797d369b
2015-08-04 15:14:03 -07:00
Casper Bonde
5ccdc518ab SAP: Make it possible to enforce a 16-digit pin code (2/5)
This change enable the posibility to enforce using a
16-digit pin or MITM for a RFCOMM or L2CAP connection.

This is needed for the SIM access profile.

Change-Id: I4d43eefa76e8abc1bcfad6dfd9004d8e82168bf4
Signed-off-by: Casper Bonde <c.bonde@samsung.com>
2015-06-09 13:57:53 -07:00
Andre Eisenbach
34ab95a369 Bluetooth native dumpsys logging support (1/5)
Bug: 18508263
Change-Id: Id7b69a6ed7d817a0f048cb8ebf0889c600171926
2015-05-12 15:56:10 +00:00
Satya Calloji
51225020dc LE low power scan feature
LE low power extended scan feature header changes
based on Google spec v0.95

Bug: 20029342
Change-Id: Id1020a4da177d0bc421fdd123c5355a291cc0475
2015-04-17 14:27:17 -07:00
kschulz
9a92a7bff0 L2CAP and SDP Search API for BT profiles (1/2)
Added interface to create SDP records, to allow the upper
layers to set the content of the SDP record, including
both a RCFOMM channel and a l2cap PSM.

Change-Id: I7c47848a10b3d3091afbeadb4de8a8d7ea812288
2015-04-10 16:48:44 -07:00
Satya Calloji
a8b49d3fee OnFound/OnLost feature API changes based on spec v0.90
Bug: 19609671
Change-Id: Id28e188159aa41c940723fb5b12cade0a48e506b
2015-03-27 09:40:52 -07:00
Andre Eisenbach
01206e579c Add transport parameter to createBond() function (1/4)
Change-Id: I8373ace899444c138907aaecc0f067188b0a7d90
2014-08-04 17:22:29 -07:00
Prerepa Viswanadham
378de1a9e0 Incorrect data type. bt_local_le_features_t of wrong size
b/16653133

Change-Id: Icd7a3de6161669f4c54c6042bf80314e72f5f0ff
2014-07-30 23:41:29 +00:00
Satya Calloji
be7f044b64 LE energy info feature
Header changes for energy info feature

Change-Id: Ic341ad9089b444960c36beff726fa9ddb5c901a2
2014-07-23 18:52:50 +00:00
Hemant Gupta
053cccfe14 Bluetooth: Support MAP Client role on Bluedroid.
Implementation of MAP Client (MCE) role on
Bluedroid stack. Include MAP Client Interface ID.

Change-Id: Icdf11b7f09a161e35aa3aa68b9b5fa315e18fd65
2014-07-01 10:36:44 -07:00
Hemant Gupta
4d8645547d [1/2] Bluetooth: Security: Handle authentication rejected error status
Handle authentication rejected error status in failure scenario.

Change-Id: Ibd59d161ee5481ced2cb078a6ee6f4a6b045bcd4
2014-06-29 11:53:55 -07:00
Andre Eisenbach
0d553bc12f LE: Add is_connected() function (1/3)
Change-Id: I1b94ab0c8b0ff2e1026a4f5bbe95dca25be3d104
2014-06-19 11:32:12 -07:00
Mike Lockwood
21e50b1898 Use separate HAL interfaces for A2DP source and sink roles.
Both use the same structs for APIs and callbacks, but now
source and sink mode can operate independently with separate
Bluetooth profile services in the framework.

An extra callback btav_audio_config_callback is used for reporting
audio configuration for A2DP sink role

Change-Id: I6e8172b66ff95e61721d1c35790609b7ae2be030
2014-06-13 09:09:58 -07:00
Mike Lockwood
7da4cb8b6f Move AVRCP controller support to a different HAL interface
This allows us to add a new BluetoothProfile subclass for
the AVRCP controller role independent of the existing AVRCP target support.

Change-Id: I504bbf58a88808d1a884266992ae0c635c62aca1
2014-06-13 09:09:58 -07:00
Mike Lockwood
5735b772ee Merge "Bluetooth: Add support for HFP Client role." 2014-06-12 17:09:07 +00:00
Hemant Gupta
e7737c81e8 Bluetooth: Add support for HFP Client role.
Implementation changes in HAL for HFP Client role.
Include HFP Client Interface ID.

Change-Id: I1117c6a0c53e7e7059e46711f7a26639d2bbaee3
2014-06-12 13:20:32 -07:00
Sharvil Nanavati
3bd8cba787 Add callouts for bluedroid to acquire wake locks and set wake alarms.
Since bluedroid is running outside of system_server, it does not have
the necessary Linux capabilities or filesystem permissions to access
/sys/power/wake_* and /dev/alarm (or any other wake alarm). This change
provides a mechanism by which bluedroid can call back up into Java code
and use the standard Android APIs to get wake locks / wake alarms.

Change-Id: I714fd394224d38da5ff0f82de5559599d522010b

Conflicts:
	include/hardware/bluetooth.h
2014-06-12 14:01:25 -07:00
Ganesh Ganapathi Batta
460343a1b5 Add support for retrieving local LE features via get_adapter_properties
Change-Id: I337614aa96ec08f631667dc4a18b4e5c993a79b1
2014-06-12 01:34:38 +00:00
Matthew Xie
d34c7d3d1a Revert "bt: add interface function to provide wakelock access"
This reverts commit 19f3696f85.
2014-05-23 17:07:19 -07:00
Dmitry Grinberg
19f3696f85 bt: add interface function to provide wakelock access
Change-Id: I7ea173aee49ae7fdfe81a24a9b3666efc1c29ed4
2014-05-22 19:26:25 -07:00
Glenn Kasten
08708c5e1f Fix file permissions
Change-Id: Iffc2941d98ee16796cf3d44dec1cfa376d9362bb
2013-08-20 12:49:27 -07:00
Zhihai Xu
a17b75bb17 Add debug menu to enable btsnoop
bug: 8059358
Change-Id: Ib28ffe12d9b42726a0c12ecb144624862745e9ca
2013-06-10 20:23:45 -07:00
Ravi Nagarajan
482ba78a99 Initial version of RC HAL for AVRCP 1.3
Change-Id: Idbea1294d091cbe0b9ebc3a7a0cad9f0c738e32c
2013-03-20 18:45:13 -07:00
Ganesh Ganapathi Batta
fefb334390 Initial version of BLE support for Bluedroid
Change-Id: Iacf3a56943b31c4fd4f4b833ed675a35cbd47104
2013-02-27 18:14:00 -08:00
Andre Eisenbach
05f49546a9 Initial Bluetooth open source release
Change-Id: I27bb95db854806d7deedaf6c622b17cb09f62f16
2012-09-18 12:52:41 -07:00