OtaUpdater

Additional

Language
C++
Version
untagged-9c0c4a4c8217de00da09 (Jan 20, 2017)
Created
Dec 18, 2016
Updated
Jan 20, 2017
Owner
androidlover5842 (Grace5921)
Contributors
androidlover5842 (Grace5921)
Ahmed-Hady
MatthewBooth
3
Activity
Badge
Generate
Download
Source code

Promotion

OtaUpdater

Ota updater for unofficial roms

Usage :-

Device tree

Add this lines to your cm.mk or device.mk

## Replace link with your own 
PRODUCT_PROPERTY_OVERRIDES += ro.updater.uri=https://raw.githubusercontent.com/Grace5921/OtaUpdater/master/Updater.xml
## This is for old builds 
PRODUCT_PROPERTY_OVERRIDES += ro.updater.oldrelease.url=https://raw.githubusercontent.com/Grace5921/OtaUpdater/master/updater-old-release.json 
PRODUCT_PROPERTY_OVERRIDES += ro.rom.version=$(shell date +%Y%m%d)
## Set it true if you want toast like service started
PRODUCT_PROPERTY_OVERRIDES += ro.otaupdate.enable_toast=true
## Set it true if you want log of app in your logcat else false
PRODUCT_PROPERTY_OVERRIDES += ro.otaupdate.enable_log=true

Setting latest release xml

check this example layout file

https://github.com/Grace5921/OtaUpdater/blob/master/Updater.xml

replace 20161230 with your version which is on build.prop (in your new build ro.rom.version)

Setting url

replace URL with your own but it should be direct url (like this )

Setting Changelog

I don't think so i need to tell you about this .

Setting up old builds release

checkout this json format

Stable or Beta ?

set

"stable" : "true"
"prerelease" : "false",

if your old release is stable

else

"prerelease" : "true",
"stable": "false"

tag_name

"tag_name" : "Your build name like cm13-un----"

name

"name" : "set name of file (include .zip in extention) this will file name to be downloaded on device"

release_date

you know what to do here :D.

browser_download_url

"browser_download_url" : "this should be direct link to your old release as we  did in xml before "

body

"body" : "add your change log here and make sure you use this for new line "\n" "

Screen shots