No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Simao Gomes Viana fc73447a12 Merge tag 'android-8.1.0_r45' into HEAD 6 months ago
audio_a2dp_hw audio_a2dp_hw: fix fd leak on open 1 year ago
bta Don't use Address after it was deleted 7 months ago
btcore Linux build fix 1 year ago
btif HFP: Fix out of bound access in phone number processing 7 months ago
build Linux build fix 1 year ago
conf Get rid of GATT_TRACE_* logs in favour of base/logging.h 1 year ago
device Add support force disable sco enhanced sync commands 11 months ago
doc osi: Remove unused eager_reader code 2 years ago
embdrv Get rid of bdcpy, bdcmp and other BD_ADDR helpers 1 year ago
hci Revert "Add support for FM vendor operations such as ON/OFF" 1 year ago
include Add support force disable sco enhanced sync commands 11 months ago
main Get rid of GATT_TRACE_* logs in favour of base/logging.h 1 year ago
osi DO NOT MERGE Truncate new line characters when adding string to config 1 year ago
service Cleanup RawAddress usage 1 year ago
stack HID Host: Check L2CAP packet data length 7 months ago
test Clean-up BTIF profile queue on profile shutdown 1 year ago
tools Linux build fix 1 year ago
types Inline comparison operators for RawAddress 1 year ago
udrv Enable extra A2DP control log messages 1 year ago
utils Revert "Revert "Make Bluetooth audio threads use RT scheduling"" 1 year ago
vendor_libs Merge "test_vendor: Fragment tests" am: 7453a5d341 am: b8b17af6b8 am: d0e79aecb5 1 year ago
vnd Get rid of BLE_ANDROID_CONTROLLER_SCAN_FILTER 2 years ago
.clang-format Add .clang-format 2 years ago
.gitignore gn-build: Add tinyxml2 as a secondary source 3 years ago
.gn build: Add gtest as a secondary source 3 years ago
Android.bp Make RawAddress into a class (1/3) 1 year ago
Android.mk Convert build system to soong using Android.bp 2 years ago
BUILD.gn MCAP: Add a test tool for MCAP 1 year ago
CleanSpec.mk Add BOARD_BLUETOOTH_BDROID_HCILP_INCLUDED 4 years ago
EventLogTags.logtags Add BT_HCI_UNKNOWN_MESSAGE_TYPE log event 2 years ago
MODULE_LICENSE_APACHE2 Add NOTICE and MODULE_LICENSE files 4 years ago
NOTICE Add NOTICE and MODULE_LICENSE files 4 years ago
OWNERS Use email address in OWNERS files. 2 years ago
PREUPLOAD.cfg Run clang-format on every commit 2 years ago
README.md Compile audio codec libraries on linux 2 years ago

README.md

Fluoride Bluetooth stack

Building and running on AOSP

Just build AOSP - Fluoride is there by default.

Building and running on Linux

Instructions for Ubuntu, tested on 14.04 with Clang 3.5.0 and 16.10 with Clang 3.8.0

Download source

mkdir ~/fluoride
cd ~/fluoride
git clone https://android.googlesource.com/platform/system/bt

Install dependencies (require sudo access):

cd ~/fluoride/bt
build/install_deps.sh

Then fetch third party dependencies:

cd ~/fluoride/bt
mkdir third_party
cd third_party
git clone https://github.com/google/googletest.git
git clone https://android.googlesource.com/platform/external/aac
git clone https://android.googlesource.com/platform/external/libchrome
git clone https://android.googlesource.com/platform/external/libldac
git clone https://android.googlesource.com/platform/external/modp_b64
git clone https://android.googlesource.com/platform/external/tinyxml2
git clone https://android.googlesource.com/platform/hardware/libhardware

And third party dependencies of third party dependencies:

cd fluoride/bt/third_party/libchrome/base/third_party
mkdir valgrind
cd valgrind
curl https://chromium.googlesource.com/chromium/src/base/+/master/third_party/valgrind/valgrind.h?format=TEXT | base64 -d > valgrind.h
curl https://chromium.googlesource.com/chromium/src/base/+/master/third_party/valgrind/memcheck.h?format=TEXT | base64 -d > memcheck.h

NOTE: If system/bt is checked out under AOSP, then create symbolic links instead of downloading sources

cd system/bt
mkdir third_party
cd third_party
ln -s ../../../external/aac aac
ln -s ../../../external/libchrome libchrome
ln -s ../../../external/libldac libldac
ln -s ../../../external/modp_b64 modp_b64
ln -s ../../../external/tinyxml2 tinyxml2
ln -s ../../../hardware/libhardware libhardware
ln -s ../../../external/googletest googletest

Generate your build files

cd ~/fluoride/bt
gn gen out/Default

Build

cd ~/fluoride/bt
ninja -C out/Default all

This will build all targets (the shared library, executables, tests, etc) and put them in out/Default. To build an individual target, replace “all” with the target of your choice, e.g. ninja -C out/Default net_test_osi.

Run

cd ~/fluoride/bt/out/Default
LD_LIBRARY_PATH=./ ./bluetoothtbd -create-ipc-socket=fluoride

Eclipse IDE Support

  1. Follows the Chromium project Eclipse Setup Instructions until “Optional: Building inside Eclipse” section (don’t do that section, we will set it up differently)

  2. Generate Eclipse settings:

  cd system/bt
  gn gen --ide=eclipse out/Default
  1. In Eclipse, do File->Import->C/C++->C/C++ Project Settings, choose the XML location under system/bt/out/Default

  2. Right click on the project. Go to Preferences->C/C++ Build->Builder Settings. Uncheck “Use default build command”, but instead using “ninja -C out/Default”

  3. Goto Behaviour tab, change clean command to “-t clean”