+- ``com.playjam.UpdateService``
+
+
+
+Update download process
+=======================
+Firmware updates are downloaded by a separate downloading process
+in ``com.playjam.UpdateService``.
+
+Updates are downloaded in small chunks that are combined to a single file
+in the end.
+Firmware updates are standard Android OTA ``.zip`` update files that
+were renamed to ``.img`` by PlayJam. (``GameStick-Software-v2071.img``).
+
+The download URL given in the HTTP reponse is appended with ``&i=`` plus
+the chunk index number.
+
+Two special chunk numbers exist:
+
+``-2``
+ Returns the total size of the download (plain text ``long`` value)
+``-1``
+ Returns the number of chunks (plain text, ``int``)
+
+``-2`` is fetched first, ``-1`` second and then ``0``, ``1`` and so forth.
+
+After download and chunk combination, the file is verified by standard Android
+mechanism ``android.os.RecoverySystem.verifyPackage()``.
+
+Information about the new firmware is written to ``/data/GameStickCache/update.info``.