Add compatibility metadata for Treble-enabled non-A/B OTA packages.
Commit 21803d35 only added compatibility metadata for A/B OTA packages, because by that time we didn't use 'ro.treble.enabled' property to determine if a target was Treble-enabled. This CL uses 'ro.treble.enabled' to guard the packing of compatibility metadata for both of A/B and non-A/B OTA packages. It also switches to checking the system/vendor fingerprints to determine if there's an update to the partition (previously it was computing the SHA-1 of the images, which may have unintentionally changed due to issues that give non-repetitive builds). Bug: 64339310 Test: Generate OTA packages (full and incremental) on Treble-enabled targets (sailfish, as well as a non-A/B angler target with Treble-enabled locally); check that the compatibility.zip entry exists. Test: Generate OTA packages on Treble-unenabled non-A/B target (angler); check that the compatibility.zip entry doesn't exist. Test: Generate OTA packages on Treble-unenabled A/B target; check that the compatibility.zip entry doesn't exist. Change-Id: I2a1fcf612439d849ba8ccea217a0faf5d5ba8e14
Loading
Please register or sign in to comment