@@ -71,6 +71,30 @@ The fields `device` and `channel` are mandatory and `incremental` is an optional
- The contents should be read as: Upgrades from major version 9 to major version 9 and to major version 10 are allowed. Upgrades from major version 10 to major version 10 and to major version 11 are allowed.
- Current version is always available as an upgrade (if a more recent build is found), even if file is not available (for backwards compatibility too).
## How to set incremental rollout percentage in build config file
- You can specify incremental rollout rules by adding values in `config.json` file. You can add the file only if you want percentage incremental rollout for a build.
- The format of file name will be : `<BUILD_NAME>.zip.config.json`
```shell
$ cd builds/full/test/guacamoleb/
$ tree
.
├── e.x.xx-xxyyzz-guacamoleb.zip # the full ROM zip file
└── e.x.xx-xxyyzz-guacamoleb.zip.config.json # the ROM build.config.json file
```
- E.g. : Suppose builds for "guacamoleb" devices are stored at "/mnt/rom/builds/full/test/guacamoleb". The file "/mnt/rom/builds/full/test/guacamoleb/e.x.xx-xxyyzz-guacamoleb.zip.config.json" should then have contents like:
```json
{
"rollout":{
"percentage":20
}
}
```
- The `percentage` value must be between 0 to 100. Do not add `%` sign after the value.
- The `config.json` file is not mandatory. In case it does not exist, a build will consider a 100% rollout percentage.
### ONLY for LineageOS 15.x and newer
If you are willing to use this project on top of your LineageOS 15.x ( or newer ) ROM builds, you may have noticed that the file named `build.prop` have been removed inside your ZIP file, and has been instead integrated within your `system.new.dat` file, which is basically an ext4 image ( you can find out more here: https://source.android.com/devices/tech/ota/block ).