Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4250081 authored by Thomas Wouters's avatar Thomas Wouters Committed by Julian Xhokaxhiu
Browse files

Update docs to match new uri formatting

parent 12239458
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -85,22 +85,35 @@ In order to integrate this in your CyanogenMod based ROM, you need to add the `c

```properties
# ...
cm.updater.uri=http://my.ota.uri/api
cm.updater.uri=http://my.ota.uri/api/v1/{device}/{type}/{incr}
# ...
```

> As of [e930cf7](https://github.com/LineageOS/android_packages_apps_Updater/commit/e930cf7f67d10afcd933dec75879426126d8579a):  
> Optional placeholders replaced at runtime:  
>   {device} - Device name  
>   {type} - Build type  
>   {incr} - Incremental version

#### LineageOS ( >= 15.x)

In order to integrate this in your LineageOS based ROM, you need to add the [`lineage.updater.uri`](https://github.com/LineageOS/android_packages_apps_Updater/blob/lineage-15.0/src/org/lineageos/updater/misc/Constants.java#L39) property in your `build.prop` file. See this example:

```properties
# ...
lineage.updater.uri=http://my.ota.uri/api
lineage.updater.uri=http://my.ota.uri/api/v1/{device}/{type}/{incr}
# ...
```

> Since https://review.lineageos.org/#/c/191274/ is merged, the property `cm.updater.uri` is renamed to `lineage.updater.uri`. Make sure to update your entry.

> As of [5252d60](https://github.com/LineageOS/android_packages_apps_Updater/commit/5252d606716c3f8d81617babc1293c122359a94d):  
> Optional placeholders replaced at runtime:  
>   {device} - Device name  
>   {type} - Build type  
>   {incr} - Incremental version


### android_packages_apps_CMUpdater

In order to integrate this in your [CyanogenMod](https://github.com/lineageos/android_packages_apps_CMUpdater/blob/cm-14.1/res/values/config.xml#L12) or [LineageOS](https://github.com/LineageOS/android_packages_apps_Updater/blob/cm-14.1/res/values/strings.xml#L29) based ROM, you can patch the relative line inside the package.