OSDN Git Service

add recovery update code to system images
authorDoug Zongker <dougz@android.com>
Tue, 4 Feb 2014 20:17:58 +0000 (12:17 -0800)
committerDoug Zongker <dougz@android.com>
Tue, 4 Feb 2014 21:50:35 +0000 (13:50 -0800)
commitc9253822ea31c1d35d3fc2b495b45b476c240a1d
tree0500a076b6ac39f4b039249a6739b089415d4269
parente858190fc4bb0f7390efa232c963e8669adac4c8
add recovery update code to system images

Currently, the "img" zip files generated by the build system lack the
script and data needed to rewrite the recovery partition, while the
"ota" zip files do (when installed).

In order to move towards block-based OTAs, we want the result of
flashing an image and the result of installing the corresponding OTA
package to be identical.

Generate the recovery-from-boot patch and install script as part of
the process of building the target-files.  This requires breaking the
code to generate that out of ota_from_target_files into its own tool
that we can run from the Makefile.  (ota_from_target_files can still
do this, so it continues to work with older target-files.)

Bug: 12893978
Change-Id: I80e62268840780b81216e548be89b47baf81b4ac
core/Makefile
tools/releasetools/common.py
tools/releasetools/make_recovery_patch [new file with mode: 0755]
tools/releasetools/ota_from_target_files