Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-bt: Repository summary

system/bt


Recent Commits RSS

Rev. Time Author Message
8d930b9 2020-03-16 19:40:40 Chih-Wei Huang oreo-x86 android-x86-8.1-r4 Android 8.1.0 release 74 -----BEGIN PGP SIGNATURE----- ...
218668a 2020-02-14 14:15:13 Chih-Wei Huang Avoid more annoying crashing
f27b26c 2020-02-14 12:38:38 Chih-Wei Huang pie-x86 android-x86-9.0-r1 Avoid more annoying crashing
7f4f039 2020-02-11 11:03:14 Chih-Wei Huang 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...
19547d2 2020-01-03 07:56:04 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...

Recently edited Tags

Name Rev. Time Author
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-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

Branches

Name Rev. Time Author Message
oreo-x86 8d930b9 2020-03-16 19:40:40 Chih-Wei Huang Android 8.1.0 release 74 ...
pie-x86 f27b26c 2020-02-14 12:38:38 Chih-Wei Huang Avoid more annoying crashing
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...

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 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
Show on old repository browser