• R/O
  • HTTP
  • SSH

system-bt: Repository summary


Recent Commits RSS

Rev. Time Author Message
218668a 2020-02-14 14:15:13 Chih-Wei Huang oreo-x86 Avoid more annoying crashing
7f4f039 2020-02-11 11:03:14 Chih-Wei Huang pie-x86 Android 9.0.0 Release 53 (6107734) -----BEGIN PGP SIGNA...
7719734 2020-01-20 19:51:15 Chih-Wei Huang Android 9.0.0 release 52 -----BEGIN PGP SIGNATURE----- ...
c20f248 2020-01-03 07:56:23 Zongheng Wang SDP: add return after SDP disconnection A return is need...
9363911 2019-12-30 11:54:22 Mauro Rossi q-x86 hci_packetizer: fix unused building errors Fixes the fol...
1d788d2 2019-12-17 05:40:06 Ted Wang Fix potential OOB write in btm_read_remote_ext_features_c...
abc3023 2019-12-17 05:40:06 Venkata Jagadeesh Garaga GAP: Correct the continuous pkt length in l2cap L2cap co...
c138c62 2019-12-13 16:16:49 Chih-Wei Huang Add back libbt-vendor
09b2386 2019-12-13 16:15:34 Gaganpreet kaur Fix for multiple crash issues. Iss...
cba6846 2019-12-13 16:14:32 anitha3x A work around fix for incorrect controller response. Rea...

Recently edited Tags

Name Rev. Time Author
android-x86-7.1-r3 f5493c8 2019-10-16 23:30:17 Chih-Wei Huang
android-x86-8.1-r3 ff2742a 2019-10-15 17:47:31 Chih-Wei Huang
android-x86-8.1-r2 f32527f 2019-06-05 18:35:26 Chih-Wei Huang
android-x86-8.1-r1 ae95628 2019-01-08 17:16:56 Chih-Wei Huang
android-x86-7.1-r1 f020a64 2018-02-04 16:51:04 xiezhongtian
android-x86-7.1-r2 f020a64 2018-02-04 16:51:04 xiezhongtian


Name Rev. Time Author Message
oreo-x86 218668a 2020-02-14 14:15:13 Chih-Wei Huang Avoid more annoying crashing
pie-x86 7f4f039 2020-02-11 11:03:14 Chih-Wei Huang Android 9.0.0 Release 53 (...
q-x86 9363911 2019-12-30 11:54:22 Mauro Rossi hci_packetizer: fix unused ...
cm-14.1-x86 966d244 2019-10-22 16:39:42 Chih-Wei Huang Merge remote-tracking branc...
nougat-x86 f5493c8 2019-10-16 23:30:17 Chih-Wei Huang Android 7.1.2 Release 39 (...
cm-14.0-x86 36ab0e7 2016-11-15 10:16:30 Jaap Jan Meijer [REVERT ME] Ignore time out...

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

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

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

wget -O gn<gn.sha1>

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

wget -O gn

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

Then fetch third party dependencies:

cd ~/fluoride/bt
mkdir third_party
git clone
git clone
git clone
git clone

And third party dependencies of third party dependencies:

cd fluoride/bt/third_party/libchrome/base/third_party
mkdir valgrind
cd valgrind
curl | base64 -d > valgrind.h
curl | 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
git clone
git clone

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/" 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


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.


cd ~/fluoride/bt/out/Default
LD_LIBRARY_PATH=./ ./bluetoothtbd -create-ipc-socket=fluoride
Show on old repository browser