Fairphone tools

A collection of tools developed at Fairphone related to Android development:

  • lava/: tools to interact with LAVA, the automated testing system.
  • scripts in the root directory:
    • fetch-and-push-partner: a script to fetch the AOSP partner security branches in the Android tree and push them to our own repositories.
    • merge-partner-on-aosp: a script to merge the AOSP partner security branches in the Android tree.
    • ota_install: a script to push an OTA to a device and initiate the update process with the Fairphone Updater.

Developing

Code style, linters, and formatters must be used before submitting any new tool.

Within a Python 3.6 environment:

$ pip install -r requirements-dev.txt

Bash/Shell

Note: Portable shell scripts are favoured over Bash scripts.

Follow what the Bashate style checker recommends.

$ bashate --verbose <file>

Python

Note: Python 3 is favoured over Python 2.

Let the Black formatter craft Python source for you.

$ black -l 80 --verbose <file>