Faire un don

  • R/O
  • HTTP
  • SSH

system-bt: Résumé du dépôt


Commits Récents RSS

Révision l'heure Auteur Message:
93da998 2020-12-30 07:22:37 Mauro Rossi r-x86 hci_packetizer: fix unused building errors Fixes the fol...
5f824d0 2020-12-30 07:22:36 Chih-Wei Huang Add back libbt-vendor
0f0674b 2020-12-30 07:22:35 Gaganpreet kaur Fix for multiple crash issues. Iss...
366e992 2020-12-30 07:22:34 anitha3x A work around fix for incorrect controller response. Rea...
c057c43 2020-12-30 07:22:33 Chih-Wei Huang Avoid annoying crashing on VMware
19ec160 2020-12-30 07:22:33 Chih-Wei Huang Remove the unused function
f9d2d09 2020-12-30 07:22:32 Chih-Wei Huang HCI: don't abort on timeout Timeout is normal. Especiall...
87c6f2c 2020-11-13 03:46:01 android-build-team Robot Merge cherrypicks of [13045621, 13045608, 13045392, 13045...
0277c56 2020-11-13 03:35:17 Hansong Zhang Fix a security issue in Bug: 169342531 Tes...
0142639 2020-11-13 03:35:13 Chen Chen Check Classic key before cross-key derivation Bug: 15885...

Tags récemment modifiées

Nom Révision l'heure Auteur
android-x86-8.1-r5 f5543f1 2020-05-08 11:55:55 Chih-Wei Huang
android-x86-8.1-r4 8d930b9 2020-03-16 19:40:40 Chih-Wei Huang
android-x86-9.0-r1 f27b26c 2020-02-14 12:38:38 Chih-Wei Huang
android-x86-9.0-r2 f27b26c 2020-02-14 12:38:38 Chih-Wei Huang
android-x86-7.1-r3 f5493c8 2019-10-16 23:30:17 Chih-Wei Huang
android-x86-7.1-r4 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


Nom Révision l'heure Auteur Message:
r-x86 93da998 2020-12-30 07:22:37 Mauro Rossi hci_packetizer: fix unused ...
nougat-x86 42a3fb7 2020-05-20 14:07:45 Chih-Wei Huang Avoid more annoying crashing
oreo-x86 f5543f1 2020-05-08 11:55:55 Chih-Wei Huang Android 8.1.0 release 76 ...
pie-x86 ea3f41f 2020-05-06 11:05:54 Chih-Wei Huang Android 9.0.0 release 56 ...
q-x86 4b92ee8 2020-04-14 23:54:21 Mauro Rossi hci_packetizer: fix unused ...
cm-14.1-x86 966d244 2019-10-22 16:39:42 Chih-Wei Huang Merge remote-tracking branc...
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
Afficher sur ancien navigateur de dépôt.