system/bt
Rev. | Time | Author | Message |
---|---|---|---|
975c95c | 2022-09-10 07:19:46 | Mauro Rossi | s-x86 hci_packetizer: fix unused building errors Fixes the fol... |
e9aed61 | 2022-09-10 07:19:45 | Gaganpreet kaur | Fix for multiple com.android.bluetooth crash issues. Iss... |
960de84 | 2022-09-10 07:19:45 | Chih-Wei Huang | Avoid annoying crashing on VMware |
81040fa | 2022-09-10 07:19:44 | Chih-Wei Huang | Remove the unused function |
5e064b0 | 2022-09-10 07:19:43 | Chih-Wei Huang | HCI: don't abort on timeout Timeout is normal. Especiall... |
e140c13 | 2022-03-16 03:17:52 | Android Build Coastguard Worker | Merge cherrypicks of [16816453] into sc-v2-release. Chan... |
2dceafe | 2022-03-16 03:16:46 | Chienyuan Huang | Fix OOB of L2CAP_CMD_CREDIT_BASED_CONN_RES Change-Id: Ic... |
5de7ed3 | 2022-03-14 05:41:50 | Mauro Rossi | r-x86 hci_packetizer: fix unused building errors Fixes the fol... |
7bcd808 | 2022-03-14 05:41:50 | Chih-Wei Huang | Add back libbt-vendor |
58939df | 2022-03-14 05:41:50 | Gaganpreet kaur | Fix for multiple com.android.bluetooth crash issues. Iss... |
Name | Rev. | Time | Author |
---|---|---|---|
android-x86-8.1-r6 | c9b4109 | 2021-03-02 23:23:40 | Chih-Wei Huang |
android-x86-7.1-r5 | 42a3fb7 | 2020-05-20 14:07:45 | Chih-Wei Huang |
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 |
Name | Rev. | Time | Author | Message |
---|---|---|---|---|
s-x86 | 975c95c | 2022-09-10 07:19:46 | Mauro Rossi | hci_packetizer: fix unused ... |
r-x86 | 5de7ed3 | 2022-03-14 05:41:50 | Mauro Rossi | hci_packetizer: fix unused ... |
pie-x86 | d610035 | 2021-07-06 17:20:02 | Chih-Wei Huang | Android 9.0.0 Release 61 (... |
oreo-x86 | c9b4109 | 2021-03-02 23:23:40 | Chih-Wei Huang | Android 8.1.0 Release 81 (... |
cm-14.1-x86 | af557cb | 2021-02-14 22:40:57 | Chih-Wei Huang | Merge remote-tracking branc... |
nougat-x86 | 42a3fb7 | 2020-05-20 14:07:45 | Chih-Wei Huang | Avoid more annoying crashing |
q-x86 | 4b92ee8 | 2020-04-14 23:54:21 | Mauro Rossi | hci_packetizer: fix unused ... |
cm-14.0-x86 | 36ab0e7 | 2016-11-15 10:16:30 | Jaap Jan Meijer | [REVERT ME] Ignore time out... |
Just build AOSP - Fluoride is there by default.
Instructions for Ubuntu, tested on 15.10 with GCC 5.2.1.
sudo apt-get install libevent-dev
sudo apt-get install ninja-build
or download binary from https://github.com/ninja-build/ninja/releases
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
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
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
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