Fota server

From MozillaWiki
Jump to: navigation, search

Basically, [1] provides most of the information about hosting a FOTA server. I just summarize these information into step-by-step instruction.

Setting up FOTA server in customer side requires the following 3 steps:

step 1. config the update server URL in b2g phone:
The URL is stored in gecko preference ( see [2] ). There are several pre-defined parameters can be used for generating server URL, e.g. PRODUCT_MODEL and CHANNEL.
The detailed URL formatting rule can be found in [3].

step 2. put corresponding update.xml on the FOTA server.
The update server URL should be able to retrieve an XML file that describe the actual URL for downloading the update package and related attribute about the update package. (see [1] for the example of update.xml)

step 3. put corresponding update package on the FOTA server.
In [4], our customer can generate a complete update package or an incremental update package and put the update package on the location specified in update.xml provided in step 2.

[1] https://wiki.mozilla.org/B2G/Updating#Hosting_updates_.28respectively.2C_polling_for_updates_on_the_client_side.29
[2] http://mxr.mozilla.org/mozilla-central/source/b2g/app/b2g.js#477
[3] http://dxr.mozilla.org/mozilla-central/toolkit/mozapps/update/nsUpdateService.js.html#l2830
[4] https://wiki.mozilla.org/B2G/Updating#Building_updates_for_multiple_software_versions