OTA Source toolkit for other language sites

Discussion in 'Archive 2011' started by MarkHUK, Aug 18, 2011.

  1. MarkHUK

    MarkHUKFounder & Sys Op
    Staff Member

    Hi everyone,

    I'll keep this initial post short, essentially we've managed to get the end to end OTA process working including packaging a FULL English ROM as OTA!

    We'd like to thank MIUI.us for the ota binary tip-off to get the final piece of our puzzle done. We'd just like to make it clear we wrote our own PHP to handle the front and backend process and edited our own apk and strings to our preference, nothing was kanged except a little help on the binary to thanks @warttack for that.

    Onto business, we have developed scripts to handle OTA, these are based on PHP / MySQL in a Linux environment.

    You can see parts of the scripts here:

    1. OTA Database updater script - http://pastebin.com/qB8pUv9m

    This file basically will read your 'ota' web root folder for latest release you define in the script, we'll make it dynamic soon! it writes the required data to MySQL to be later retrieved in JSON output in the Updater.apk app.

    2. MySQL Schema for OTA Database - http://pastebin.com/RE4nNFMW

    Run the SQL file on a database named: ota

    3. JSON Updater.apk handler - http://pastebin.com/3HESrhv8

    This file handles the output of the JSON which is parsed into Updater.apk, this file needs to be called in Updater.apk at http://yoursite.com/ota/update.php

    The app sends a series of parameters, you'll see from the script what because we've commented the code.

    The config and other libs i'll add tomorrow - this really just to get you all going :) any questions please ask!

    Thanks,

    Mark
     

Share Our Site