No Description

d0c ff3809e80d year to do 1 week ago
mysuitablephone 58f19486e8 search 2 months ago
suitablephones ff3809e80d year to do 1 week ago
.gitignore 386740dd9d setting 2 months ago a002819abb readme 2 months ago
docker-compose.yml c1428592d8 test postgres 4 months ago 22ed355e69 first commit 5 months ago
requirements.txt 58f19486e8 search 2 months ago 233b65ae7e added makemigrations 1 month ago

Suitable Phones

LineageOS Supported Devices Catalog and API

This project aims to provide a comprehensive catalog of all devices that are officially supported by the LineageOS project, as well as an API for accessing this information programmatically.


The project provides the following features:

  • A catalog of all devices with official support for LineageOS, including device name, codename, LineageOS version(s) supported, and a link to the official LineageOS wiki page for each device.
  • A RESTful API for accessing the device catalog programmatically. The API supports the following endpoints:
    • /search
      • q: string in codename or name or vendor
    • /devices
      • name: contains string
      • megapixel: greater than decimal
      • size_in: less than decimal
      • resolution: contains string (es 1280)
      • version: contains string Returns a list of all mantained devices in the catalog matching search filters, with basic device information.
    • /device
      • codename: Returns detailed information about a specific device, including supported LineageOS versions and a link to the official wiki page.


git clone
virtualenv .
source bin/activate
pip install -r requirements.txt

DB is in docker container

docker compose up -d
python migrate
python createsuperuser

Download Lineage official wiki as data source. Yaml files descripting all devices are in _"lineage_wiki/data/devices/"

git clone

Set LINEAGEWIKI variable in _mysuitablephone/ with the proper path of lineage_wiki.


LINEAGEWIKI = '/home/d0c/lineage_wiki'

Populate database:

python fetchphones


python runserver

API Usage

To use the API, you'll need to obtain an API key by registering an account on the project website. Once you have an API key, you can use it to authenticate your API requests.

Here are some example API requests: Get all devices


GET /devices



    "name": "Samsung Galaxy S20",
    "codename": "beyond2",
    "versions": ["18.1"],
    "wiki_url": ""
    "name": "OnePlus 6T",
    "codename": "fajita",
    "versions": ["18.1"],
    "wiki_url": ""

Get a specific device


GET /devices/fajita



  "name": "OnePlus 6T",
  "codename": "fajita",
  "versions": ["18.1"],
  "wiki_url": ""


Contributions to this project are welcome! If you'd like to improve the API or search results, please submit a pull request. Be sure to read the contributing guidelines first.


  • API key authentication to restrict access to authorized clients. ?