From c5547e10f8274eb894e5871f6a84cc389e2270c6 Mon Sep 17 00:00:00 2001
From: Daniel Micay
@@ -546,6 +551,43 @@ cd ../..
incremental updates from those to the most recent signed
target_files
zip.
Incremental updates shipping only the changes between two versions can be generated
+ as a much more efficient way of shipping updates than a full update package containing
+ the entire operating system. The GrapheneOS Updater app will automatically use a delta
+ update if one exists for going directly from the currently installed version to the
+ latest release. In order to generate a delta update, the original signed target files
+ package for both the source version and target version are needed. The
+ script/generate_delta.sh
script provides a wrapper script for generating
+ delta updates by passing the device, source version build number and target version
+ build number. For example:
script/generate_delta.sh crosshatch 2019.09.25.00 2019.10.07.21+ +
The script assumes that the releases are organized in the following directory + structure:
+ +releases +├── 2019.09.25.00 +│ └── release-crosshatch-2019.09.25.00 +│ ├── crosshatch-factory-2019.09.25.00.zip +│ ├── crosshatch-factory-2019.09.25.00.zip.sig +│ ├── crosshatch-img-2019.09.25.00.zip +│ ├── crosshatch-ota_update-2019.09.25.00.zip +│ ├── crosshatch-target_files-2019.09.25.00.zip +│ └── crosshatch-testing +└── 2019.10.07.21 + └── release-crosshatch-2019.10.07.21 + ├── crosshatch-factory-2019.10.07.21.zip + ├── crosshatch-factory-2019.10.07.21.zip.sig + ├── crosshatch-img-2019.10.07.21.zip + ├── crosshatch-ota_update-2019.10.07.21.zip + ├── crosshatch-target_files-2019.10.07.21.zip + └── crosshatch-testing+