Giter Club home page Giter Club logo

api's Introduction

AOSiP Updater Backend

Copyright (c) 2017 The LineageOS Project
Copyright (c) 2018-2019 AOSiP

Adding a new device

  1. Add your device to devices.json, sorted alphanumerically by codename. Fields are documented below.
  2. Submit your change to gerrit

devices.json

devices.json is an array of objects, each with several fields:

  • codename: The codename of the device - example beryllium
  • device: The full name - example Pocophone F1
  • maintainer: Your name
  • xda: URL to XDA thread of your device

Development set up:

  1. Setup a virtualenv - python3 -m venv ./venv
  2. Activate it - source venv/bin/activate
  3. Install requirements with pip install -r requirements.txt
  4. Configure your environment appropriately - see the beginning of app.py for some variables you may need to modify
  5. Run with ./app.py

Example API Calls:

Obtaining rom list for a device:
GET /<device>/<romtype>
<device> - Codename of device. Example: beryllium
<romtype> - Buildtype of rom. Example: official

api's People

Contributors

akhilnarang avatar zifnab06 avatar fourkbomb avatar luk1337 avatar invisiblek avatar harryyoud avatar msfjarvis avatar mikeng avatar luca020400 avatar syphyr avatar razorloves avatar jrior001 avatar tincho5588 avatar divadsn avatar anirudhgupta109 avatar haggertk avatar vince2678 avatar moto999999 avatar ujwalp15 avatar stricted avatar deadman96385 avatar rashed97 avatar flex1911 avatar bgcngm avatar alberto97 avatar webgeek1234 avatar gtrcraft avatar n1kolaa avatar olefb avatar olivier97 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.