Skip to content

Working on build.prop

Sumit Rajdev edited this page Jan 13, 2017 · 3 revisions

Ota Build.prop Usage

Here you will find how to use this app

ro.updater.uri

ro.updater.uri is needed for notifying users if they are in old rom you should keep updating it since it's main part.

You can simply add url to your build.prop and reboot (make sure you replace with your own)

ro.updater.uri=https://raw.githubusercontent.com/Grace5921/OtaUpdater/master/Updater.xml

or using for AOSP tree

PRODUCT_PROPERTY_OVERRIDES += ro.updater.uri=https://raw.githubusercontent.com/Grace5921/OtaUpdater/master/Updater.xml

you can add this line any where in your tree but it should be a make file

ro.updater.oldrelease.url

This is needed to show your old or new builds is list you can look at this sample json file .

You can simply add this line to your build.prop or by AOSP compilation method

ro.updater.oldrelease.url=https://raw.githubusercontent.com/Grace5921/OtaUpdater/master/updater-old-release.json

with AOSP :-

PRODUCT_PROPERTY_OVERRIDES += ro.updater.oldrelease.url=https://raw.githubusercontent.com/Grace5921/OtaUpdater/master/updater-old-release.json

Make sure you replaced url with your own else it will show Build 1 ....

##ro.rom.version

ro.rom.version is used for setting your rom version it not matters what you set by default i have used current build date as version like

date +%Y%m%d=20170113 (my date)

so it will be my rom version and you have to use same version(output can be found in your build.prop or dun that command in shell) in updater.xml

By AOSP

PRODUCT_PROPERTY_OVERRIDES += ro.rom.version=$(shell date +%Y%m%d)

by editing Build.prop

ro.rom.version=YYYYMMDD

don't add "/"

##ro.otaupdate.enable_toast

ro.otaupdate.enable_toast will let you allow to know that app is working after boot or not

if ro.otaupdate.enable_toast=false then it will not show any toast like service started or something else (if you use this app first time then you should set it to true ).

By AOSP

PRODUCT_PROPERTY_OVERRIDES += ro.otaupdate.enable_toast=true

By editing Build.prop

ro.otaupdate.enable_toast=true

set it to false if you release rom

#ro.otaupdate.enable_log

ro.otaupdate.enable_log will let you allow to get logs of app like RomUpdater: something went wrong or RomUpdater: Http://MyRomUrl.xml

By aosp

PRODUCT_PROPERTY_OVERRIDES += ro.otaupdate.enable_log=true

By editing build.prop

ro.otaupdate.enable_log=true

Set it to false if you are releasing rom

Getting Ota.mk Example

this is what i did to make it easy

https://github.com/I8552-CM/device_samsung_delos3geur/blob/master/ota.mk

and added this like to my cm.mk

https://github.com/I8552-CM/device_samsung_delos3geur/blob/master/cm.mk#L19

Clone this wiki locally