OTA Source toolkit for other language sites


MarkHUK

Site Founder
Staff member
Nov 6, 2010
5,251
1,000,000
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.

<strong>You can see parts of the scripts here:</strong>
<h3>1. OTA Database updater script - http://pastebin.com/qB8pUv9m</h3>
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.
<h3>2. MySQL Schema for OTA Database - http://pastebin.com/RE4nNFMW</h3>
Run the SQL file on a database named: ota
<h3>3. JSON Updater.apk handler - http://pastebin.com/3HESrhv8</h3>
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