commit | b77972402e605aa0f9b08c9f4c8d249022bea912 | [log] [tgz] |
---|---|---|
author | Håkan Kvist <hakan.kvist@sony.com> | Wed Dec 13 15:02:28 2023 +0100 |
committer | Håkan Kvist <hakan.kvist@sony.com> | Wed Dec 20 08:45:26 2023 +0100 |
tree | 69fad20084e7707ae3bd0c00681c7c405c410ff7 | |
parent | 3f2432967b1797385bdb22e98ca7768ce40321f1 [diff] |
Detect downgrade by checking build time for all partitions Checking ro.build.date.utc to detect a downgrade is not enough in the case where several target files are merged, as timestamps can differ for each partition. The solution is to check the build timestamp for each partition and ro.build.date.utc. With this change ota generation will be aborted during creation instead of rejected when installing on device. This also fixes the --override_timestamp so it is possible to generate a package where timestamps are reversed, as was added in: 3e6161a3b33da5a46c80c79e2d815168923e83c3. Issue: 315913966 Test: Manual, confirm that ota generation is aborted when timestamp on post vendor partitions is newer than on pre. Ota created successfully with --override_timestamp parameter and installation successful Test: atest --host releasetools_test Change-Id: I275e67a3840f4ef2263381c253231068e72f47d2
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.