Ota updater for unofficial roms
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
replace 20161230 with your version which is on build.prop (in your new build ro.rom.version)
replace URL with your own but it should be direct url (like this )
I don't think so i need to tell you about this .
Setting up old builds release
checkout this json format
Stable or Beta ?
"stable" : "true" "prerelease" : "false",
if your old release is stable
"prerelease" : "true", "stable": "false"
"tag_name" : "Your build name like cm13-un----"
"name" : "set name of file (include .zip in extention) this will file name to be downloaded on device"
you know what to do here :D.
"browser_download_url" : "this should be direct link to your old release as we did in xml before "
"body" : "add your change log here and make sure you use this for new line "\n" "