GithubHelp home page GithubHelp logo

ota's Introduction

CosmicOTA

A very simple OTA checker with Android Settings look and feel.

How it works

It parses the OTA xml file that you put in your file hosting and compares the version number with the local one. If the version is newer, it notifies the user for a new ROM update.

How to use

  • Prepare the OTA xml file. Use this template.
  • Upload it to your file hosting and create a hot link of it
  • Copy the ota_conf template to app/src/main/assets folder
    • If you are buiding this app as part of the ROM, you need to copy ota_conf in the android root folder.
    • The Android.mk will pick it up and copy it to app/src/main/assets folder automatically.
  • Replace the "ota_url" with your OTA xml hot link
  • Define how CosmicOTA should know about the "version". The version must be parseable to a date.
    • Usually, the version is a part of a build name. For example, the 20150426 in the SlimSaber-bacon-5.0.2-20150426.
  • Adjust the OTA configuration according to your build name on how should CosmicOTA parse the version
    • Find a key in build.prop that represents the SlimSaber-bacon-5.0.2-20150426 and set it in the "version_name"
    • Set the delimiter in "version_delimiter" to "-"
    • Set the date format in "version_format" to "yyyyMMdd"
    • Set the position in "version_position" to "3" (zero based)
  • Find a key in build.prop that represents your device name and set it in the "device_name"
    • CosmicOTA will search this device name in the OTA xml file

Credits

Screenshots

Screenshot

ota's People

Contributors

fusionjack avatar sagarshah1729 avatar westcripp avatar

Watchers

 avatar  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.