/lineageos-apk-extractor

Extract Lineage OS APKs from Latest Zip files and upload to Github Releases.

Primary LanguagePythonMIT LicenseMIT

LineageOS APKs

build build

Development

  • AFAIK there is no API provided by LineageOS team, so currently the project uses bs4 to parse download page
  • APKs are released on tprasadtp/los-xx-apks repositories to deal with multiple devices.

Build

  • Create a python virtual environment & activate it
  • Install dependencies
    make install
  • Set device codename name. See https://download.lineageos.org/ for codenames.
    export DEVICE=coral
  • Download, Verify and extract payload.bin
    make build-payload
  • Check that images are extractd to build/$DEVICE
  • Mount desired image and check path of required APKs
  • Update data/transfer-$DEVICE.json to match you image and APKs. For some targets, predefined transfer.json is available.
  • Define Image name (Without extensions or path)
    export APK_IMG=product
  • Mount image and copy APKs (Requires root)
    make apks