Steven Polley dad2cfe137
All checks were successful
lineageos-ota-server / build (push) Successful in 35s
build weekly on friday
2025-12-08 15:24:58 -07:00
2025-12-08 15:24:58 -07:00
2023-06-03 23:07:55 -06:00
2023-06-03 23:10:29 -06:00
2023-06-03 23:13:51 -06:00
2024-06-28 12:00:56 -06:00
2023-06-09 17:04:15 -06:00
2024-11-11 06:25:50 -07:00

Build Status

lineageos-ota-server

A highly-scalable and lightweight OTA Server for LineageOS. The OTA server supports a single device model (eg: Google Pixel), if you intend to have OTA's available for a variety of device models, just create an additional OTA server instance for each device.

alt text

docker compose example

The service listens on port 8080 by default. Mount the output directory for the builds of the device you wish to serve to the /out folder. Also, mount a persistent public directory which will be served publicly. The public folder can be shared across multiple OTA server instances if you wish.


version: '3.8'

  lineageos-ota:
    image: registry.deadbeef.codes/lineageos-ota-server:latest
    restart: always
    expose:
      - "8080"
    volumes:
      - /data/android/lineage/out/target/product/sunfish:/out
      - /data/android/public/sunfish:/public
    

How to point device to OTA server

The recommended way is to include the configuration inside your build of the ROM. We do this by by including the URL as a system build.prop by doing the following:

Create new file /data/android/lineage/vendor/lineage/build/core/deadbeef-ota.mk

Edit (create if not exist) /data/android/lineage/vendor/extra/product.mk

# Include deadbeef.codes OTA server
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
        lineage.updater.uri=https://lineageos-ota-{device}.stevenpolley.net

# Default ADB shell
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
        persist.sys.adb.shell=/system_ext/bin/bash

Description
OTA Server for LineageOS
Readme 81 KiB
Languages
Go 96.1%
HTML 2.5%
Dockerfile 1.4%