Skip to content

Pre-requistes

BGraph is divided in two components: the builder and the viewer.

Viewer dependencies:

  • python3.8

Builder dependencies

  • git (v22+): since partial checkouts are used, a modern version of git is needed. The project has been tested with Git 2.29.
  • repo: Google project to query AOSP repository . See the installation instruction from Google.
  • A repo client.
  • Optional: An AOSP mirror to have a faster building time.

The mirror is not necessary, but it reduces the number of requests to Google servers.

Tip

An alternative way to install repo is to use the one packaged for your distribution, but it is not recommended.

Installation

Tip

Install BGraph in a virtualenv.

With pip

pip install bgraph

With poetry

Note

Poetry is a python packaging and dependency manager

$ git clone git@github.com:quarkslab/bgraph.git
$ cd bgraph
$ poetry install --no-dev

Checks (for building)

$ mkdir android-current && cd android-current
$ repo init -u https://android.googlesource.com/platform/manifest -c --depth=1 --partial-clone --clone-filter=blob:none 

If this commands succeeded, you are good to go!