{"id":24570538,"url":"https://github.com/grapheneos-archive/platform_system_bt","last_synced_at":"2025-10-04T20:31:54.647Z","repository":{"id":43496336,"uuid":"87482268","full_name":"GrapheneOS-Archive/platform_system_bt","owner":"GrapheneOS-Archive","description":null,"archived":true,"fork":false,"pushed_at":"2023-02-06T16:57:09.000Z","size":60894,"stargazers_count":1,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"12.1","last_synced_at":"2025-04-02T14:22:08.925Z","etag":null,"topics":["android","grapheneos","security"],"latest_commit_sha":null,"homepage":"https://grapheneos.org/","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GrapheneOS-Archive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-06T22:54:56.000Z","updated_at":"2023-03-30T09:30:57.000Z","dependencies_parsed_at":"2023-02-18T17:16:05.597Z","dependency_job_id":null,"html_url":"https://github.com/GrapheneOS-Archive/platform_system_bt","commit_stats":null,"previous_names":[],"tags_count":100,"template":false,"template_full_name":null,"purl":"pkg:github/GrapheneOS-Archive/platform_system_bt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapheneOS-Archive%2Fplatform_system_bt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapheneOS-Archive%2Fplatform_system_bt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapheneOS-Archive%2Fplatform_system_bt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapheneOS-Archive%2Fplatform_system_bt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrapheneOS-Archive","download_url":"https://codeload.github.com/GrapheneOS-Archive/platform_system_bt/tar.gz/refs/heads/12.1","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapheneOS-Archive%2Fplatform_system_bt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278368629,"owners_count":25975476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","grapheneos","security"],"created_at":"2025-01-23T16:20:43.263Z","updated_at":"2025-10-04T20:31:53.289Z","avatar_url":"https://github.com/GrapheneOS-Archive.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fluoride Bluetooth stack\n\n## Building and running on AOSP\nJust build AOSP - Fluoride is there by default.\n\n## Building and running on Linux\n\nInstructions for a Debian based distribution:\n* Debian Bullseye or newer\n* Ubuntu 20.10 or newer\n* Clang-11 or Clang-12\n* Flex 2.6.x\n* Bison 3.x.x (tested with 3.0.x, 3.2.x and 3.7.x)\n\nYou'll want to download some pre-requisite packages as well. If you're currently\nconfigured for AOSP development, you should have all required packages.\nOtherwise, you can use the following apt-get list:\n\n```sh\nsudo apt-get install repo git-core gnupg flex bison gperf build-essential \\\n  zip curl zlib1g-dev gcc-multilib g++-multilib \\\n  x11proto-core-dev libx11-dev lib32z-dev libncurses5 \\\n  libgl1-mesa-dev libxml2-utils xsltproc unzip liblz4-tool libssl-dev \\\n  libc++-dev libevent-dev \\\n  flatbuffers-compiler libflatbuffers1 \\\n  openssl openssl-dev\n```\n\nYou will also need a recent-ish version of Rust and Cargo. Please follow the\ninstructions on [Rustup](https://rustup.rs/) to install a recent version.\n\n### Download source\n\n```sh\nmkdir ~/fluoride\ncd ~/fluoride\ngit clone https://android.googlesource.com/platform/system/bt\n```\n\nInstall dependencies (require sudo access). This adds some Ubuntu dependencies\nand also installs GN (which is the build tool we're using).\n\n```sh\ncd ~/fluoride/bt\nbuild/install_deps.sh\n```\n\nThe following third-party dependencies are necessary but currently unavailable\nvia a package manager. You may have to build these from source and install them\nto your local environment.\n\n* libchrome\n* modp_b64\n\nWe provide a script to produce debian packages for those components, please\nfollow the instructions in build/dpkg/README.txt.\n\nThe googletest packages provided by Debian/Ubuntu (libgmock-dev and\nlibgtest-dev) do not provide pkg-config files, so you can build your own\ngoogletest using the steps below:\n\n```\n$ git clone https://github.com/google/googletest.git -b release-1.10.0\n$ cd googletest        # Main directory of the cloned repository.\n$ mkdir build          # Create a directory to hold the build output.\n$ cd build\n$ cmake ..             # Generate native build scripts for GoogleTest.\n$ sudo make install -DCMAKE_INSTALL_PREFIX=/usr\n```\n\n### Stage your build environment\n\nFor host build, we depend on a few other repositories:\n* [Platform2](https://chromium.googlesource.com/chromiumos/platform2/)\n* [Rust crates](https://chromium.googlesource.com/chromiumos/third_party/rust_crates/)\n* [Proto logging](https://android.googlesource.com/platform/frameworks/proto_logging/)\n\nClone these all somewhere and create your staging environment.\n```sh\nexport STAGING_DIR=path/to/your/staging/dir\nmkdir ${STAGING_DIR}\nmkdir -p ${STAGING_DIR}/external\nln -s $(readlink -f ${PLATFORM2_DIR}/common-mk) ${STAGING_DIR}/common-mk\nln -s $(readlink -f ${PLATFORM2_DIR}/.gn) ${STAGING_DIR}/.gn\nln -s $(readlink -f ${RUST_CRATE_DIR}) ${STAGING_DIR}/external/rust\nln -s $(readlink -f ${PROTO_LOG_DIR}) ${STAGING_DIR}/external/proto_logging\n```\n\n### Build\n\nWe provide a build script to automate building assuming you've staged your build\nenvironment already as above.\n\n\n```sh\n./build.py --output ${OUTPUT_DIR} --platform-dir ${STAGING_DIR} --clang\n```\n\nThis will build all targets to the output directory you've given. You can also\nbuild each stage separately (if you want to iterate on something specific):\n\n* prepare - Generate the GN rules\n* tools - Generate host tools\n* rust - Build the rust portion of the build\n* main - Build all the C/C++ code\n* test - Build all targets and run the tests\n* clean - Clean the output directory\n\nYou can choose to run only a specific stage by passing an arg via `--target`.\n\nCurrently, Rust builds are a separate stage that uses Cargo to build. See\n[gd/rust/README.md](gd/rust/README.md) for more information.\n\n### Run\n\nBy default on Linux, we statically link libbluetooth so you can just run the\nbinary directly:\n\n```sh\ncd ~/fluoride/bt/out/Default\n./bluetoothtbd -create-ipc-socket=fluoride\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapheneos-archive%2Fplatform_system_bt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrapheneos-archive%2Fplatform_system_bt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapheneos-archive%2Fplatform_system_bt/lists"}