Skip to content

Latest commit

 

History

History
82 lines (58 loc) · 2.06 KB

CONTRIBUTING.md

File metadata and controls

82 lines (58 loc) · 2.06 KB

Contributing to adb-updater

Workflow

  1. clone this repository

    git clone --recurse-submodules 'https://github.com/Microeinstein/adb-updater.git'
    # or
    git clone --recurse-submodules 'git@github.com:Microeinstein/adb-updater.git'

Local machine (posix)

  1. build the lister helper

  2. create a virtual environment (recommended);
    I suggest using an env which supports native packages other than pip ones, like miniconda

    conda create -p './venv'
    conda activate './venv'
    conda install  python=3.10  libpython-static=3.10
    pip install -r 'requirements.txt'
    pip install pyinstaller
  3. do your hacking on your favorite IDE/editor;
    I personally use VSCodium with ms extensions for the whole project

  4. build the project

    # check the script for other flags
    bash build.sh;  # --clean --onefile
  5. run the project

    bash build.sh  run
    # or
    export PYTHONPATH="./src"
    python -m adb_updater;  # ...

Local machine (Windows)

It is suggested to use bash from Git for Windows, which is taken from MSYS2;
last (un)official working versions for Windows 7:


  1. build the lister helper

Docker

The current Dockerfile makes use of

  • archlinux image + AUR for Android SDK and lister building,
  • python:3.10.12-slim-buster image for project building,
  • debian:buster-slim for project running.

A new adbkey will be generated at the last layer.

  1. build all

    # install: docker  docker-buildx
    docker --debug  build -t adb-updater  '.'
  2. run the project

    # connect your device and check for the usb path
    lsusb
    docker run -it --device=/dev/bus/usb/BUS/DEV  adb-updater:latest