Menu

Tree [68d062] cm-14.0-x86 /
 History

HTTPS access


File Date Author Commit
 audio_a2dp_hw 2016-07-28 Andy Hung Andy Hung [30a8f5] audio_a2dp_hw: Always update frame counter in o...
 bta 2016-01-25 Andre Eisenbach Andre Eisenbach [fcaad6] Do not enable A2DP sink by default
 btcore 2015-11-25 Pavlin Radoslavov Pavlin Radoslavov [b663e4] Add missing initialization of module OSI_MODULE
 btif 2016-07-07 Andre Eisenbach Andre Eisenbach [ea06f0] Disable auto-pairing for hands-free devices
 build 2016-02-25 Jakub Pawlowski Jakub Pawlowski [5caf67] Build on linux: final changes and instructions.
 conf 2016-04-11 Andre Eisenbach Andre Eisenbach [70952e] Move autopair blacklist to interop database
 device 2016-04-11 Andre Eisenbach Andre Eisenbach [70952e] Move autopair blacklist to interop database
 doc 2016-03-30 Alain Vongsouvanh Alain Vongsouvanh [7c6f8f] Bring back support for legacy bt_config.xml
 embdrv 2016-06-23 Andre Eisenbach Andre Eisenbach [470aee] Remove SBC frame scrambling
 hci 2016-02-25 Pavlin Radoslavov Pavlin Radoslavov [7a78cd] Fix a crash triggered when firmware config take...
 include 2016-01-25 Andre Eisenbach Andre Eisenbach [fcaad6] Do not enable A2DP sink by default
 main 2016-04-11 Andre Eisenbach Andre Eisenbach [70952e] Move autopair blacklist to interop database
 osi 2016-03-23 Ying Wang Ying Wang [5dd5b1] Tell the build system this is a host module.
 profile 2016-02-12 Pavlin Radoslavov Pavlin Radoslavov [0b60bb] Cleanup C and C++ compiler flags
 service 2016-01-21 Alex Vakulenko Alex Vakulenko [086d55] Fix build break in system/bt
 stack 2016-05-10 Jakub Pawlowski Jakub Pawlowski [0f89e9] Change initial order of commands after establis...
 test 2016-06-21 Sharvil Nanavati Sharvil Nanavati [1f433c] DO NOT MERGE Fix potential DoS caused by delive...
 tools 2016-06-21 Sharvil Nanavati Sharvil Nanavati [1f433c] DO NOT MERGE Fix potential DoS caused by delive...
 udrv 2016-06-21 Sharvil Nanavati Sharvil Nanavati [1f433c] DO NOT MERGE Fix potential DoS caused by delive...
 utils 2016-02-24 Jakub Pawlowski Jakub Pawlowski [299894] Move properties get/set code to osi
 vendor_libs 2016-05-18 Pavlin Radoslavov Pavlin Radoslavov [de394d] Add a missing OSI_NO_INTR() wrapper around sock...
 vnd 2015-03-06 Satya Calloji Satya Calloji [444a8d] LE Privacy 1.2 and LE secure connections
 .gitignore 2015-05-29 Arman Uguray Arman Uguray [bbb125] gn-build: Add tinyxml2 as a secondary source
 .gn 2015-05-21 Arman Uguray Arman Uguray [5c57fa] build: Add gtest as a secondary source
 Android.mk 2016-02-16 Andre Eisenbach Andre Eisenbach [302bae] Remove the need for -Wno-constant-logical-operand
 BUILD.gn 2016-02-23 Jakub Pawlowski Jakub Pawlowski [107588] Update build files for Fluoride on Linux
 CleanSpec.mk 2014-04-17 Richie Hsieh Richie Hsieh [c928a4] Add BOARD_BLUETOOTH_BDROID_HCILP_INCLUDED
 MODULE_LICENSE_APACHE2 2015-03-07 Conley Owens Conley Owens [4305de] Add NOTICE and MODULE_LICENSE files
 NOTICE 2015-03-07 Conley Owens Conley Owens [4305de] Add NOTICE and MODULE_LICENSE files
 README.md 2016-03-30 Alain Vongsouvanh Alain Vongsouvanh [7c6f8f] Bring back support for legacy bt_config.xml

Read Me

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 15.10 with GCC 5.2.1.

Install required libraries

sudo apt-get install libevent-dev

Install build tools

  • Install ninja build system
sudo apt-get install ninja-build

or download binary from https://github.com/ninja-build/ninja/releases

  • Install gn - meta-build system that generates NinjaBuild files.

Get sha1 of current version from here and then download corresponding executable:

wget -O gn http://storage.googleapis.com/chromium-gn/<gn.sha1>

i.e. if sha1 is "3491f6687bd9f19946035700eb84ce3eed18c5fa" (value from 24 Feb 2016) do

wget -O gn http://storage.googleapis.com/chromium-gn/3491f6687bd9f19946035700eb84ce3eed18c5fa

Then make binary executable and put it on your PATH, i.e.:

chmod a+x ./gn
sudo mv ./gn /usr/bin

Download source

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

Then fetch third party dependencies:

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

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

Fluoride currently has dependency on some internal Android projects, which also need to be downloaded. This will be removed in future:

cd ~/fluoride
git clone https://android.googlesource.com/platform/system/core
git clone https://android.googlesource.com/platform/hardware/libhardware
git clone https://android.googlesource.com/platform/system/media

Configure your build

We need to configure some paths to make the build successful. Run:

cd ~/fluoride/bt
gn args out/Default

This will prompt you to fill the contents of your "out/Default/args.gn" file. Make it look like below. Replace "/home/job" with path to your home directory, and don't use "~" in build arguments:

# Build arguments go here. Examples:
#   is_component_build = true
#   is_debug = false
# See "gn args <out_dir> --list" for available build arguments.

libhw_include_path = "/home/job/fluoride/libhardware/include"
core_include_path = "/home/job/fluoride/core/include"
audio_include_path = "/home/job/fluoride/media/audio/include"

Then generate your build files by calling

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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.