summaryrefslogtreecommitdiffstats
path: root/tools/releasetools
Commit message (Collapse)AuthorAgeFilesLines
* resolved conflicts for merge of a86fcc29 to masterKenny Root2012-04-093-5/+20
|\ | | | | | | Change-Id: I3868c19bfd309b5b43b5642152a120931fe37315
| * Support the setting of file security contexts in OTA and update packages.Stephen Smalley2012-04-063-8/+40
| | | | | | | | | | | | | | | | | | | | Pass the file_contexts configuration to the releasetools scripts so that the security contexts of files can be properly set for OTA and update packages. Requires Ica5fb73d6f2ffb981b74d1896538988dbc4d9b24 Change-Id: I5a63fd61a7e74d386d0803946d06bcf2fa8a857e
| * check entire recovery partition on startupDoug Zongker2011-12-021-8/+1
| | | | | | | | | | | | | | | | Checksum the entire recovery partition at boot time to see if we need to rewrite it, rather than just the first 2kb. Bug: 5668350 Change-Id: I777754f92e8da630ae3c09bb0d4c41884ff62f39
* | don't generate retouch commands in OTA scriptsDoug Zongker2012-02-282-45/+11
| | | | | | | | | | | | | | Doing ASLR at OTA time is now obsolete; we can stop emitting this code in OTA scripts. Change-Id: I2bcf8ef0697ea5590120f89dcd302f273daf531e
* | releasetools: Fix image size checkingAndrew Boie2012-02-211-12/+15
| | | | | | | | | | | | | | | | | | A block of code that should be evaluated for all image types was instead only being run for yaffs partitions. Change-Id: I83ccbd7fa3c1bc02b9bba0832701ecc258e40a7d Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
* | add device-specific hooks at start of OTA phasesDoug Zongker2012-01-172-0/+20
| | | | | | | | Change-Id: I47534e6d40e7918ee8cb9e87d76d9030b9273708
* | check entire recovery partition on startupDoug Zongker2011-12-021-8/+1
| | | | | | | | | | | | | | | | Checksum the entire recovery partition at boot time to see if we need to rewrite it, rather than just the first 2kb. Bug: 5668350 Change-Id: I777754f92e8da630ae3c09bb0d4c41884ff62f39
* | am 29ea81eb: am 4a84a13e: am a5f534df: use frozensets to represent APK cert setsDoug Zongker2011-11-111-4/+5
|\ \ | |/ | | | | | | * commit '29ea81eb977699a2b026f08d13f213a7d216cb7e': use frozensets to represent APK cert sets
| * use frozensets to represent APK cert setsDoug Zongker2011-11-111-4/+5
| | | | | | | | Change-Id: Ic92c83be0c3f6a76bf1bd21f0216cd1b87586959
* | Build cache.img on demandYing Wang2011-11-103-7/+52
| | | | | | | | | | | | | | | | | | Bug: 5153694 To build cache.img, set BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE (required, ext4 only for now), BOARD_CACHEIMAGE_PARTITION_SIZE (optional) in BoardConfig.mk. Change-Id: I1d8b91646aa1dba88285e008ad3335768bcbddd2
* | am 53bef54c: am 4b87f575: am 278c9781: to be upgraded, APKs must have ↵Doug Zongker2011-11-101-2/+2
|\ \ | |/ | | | | | | | | | | exactly the same set of certs * commit '53bef54cfff0cb9c6a67494b3e385a9617f75d03': to be upgraded, APKs must have exactly the same set of certs
| * to be upgraded, APKs must have exactly the same set of certsDoug Zongker2011-11-091-2/+2
| | | | | | | | Change-Id: I0d528d3d55e5ee553e57e63ed1f998172c6306f8
* | Revert "Build cache.img."Ying Wang2011-11-023-35/+0
| | | | | | | | This reverts commit 531bdb546af5127ed9c1012871d780930eb990f5.
* | Build cache.img.Ying Wang2011-11-013-0/+35
| | | | | | | | Change-Id: I3dbe7afa4934fa718ba20605eebd2e3ce2ae82ab
* | Unify the user image building codeYing Wang2011-10-312-41/+142
|/ | | | | | | | | Bug: 5398808 Before this change we have duplicate code in the Makefile and the python-based releasetool. That's a real headache to maintain. Change-Id: I8ddf04a79c6886540e89d990f723d8f77c9dd883
* Support signing target_files without a recovery.fstab.Jeff Davidson2011-10-261-1/+2
| | | | Change-Id: I7d6f511c69d589bf035ac3eb7eeee4b0e0505faa
* add missing parameter to ReplaceOtaKeysDoug Zongker2011-10-051-1/+1
| | | | Change-Id: Ib596235a8e3b3588d363fea82b92b69895ee5408
* change OTA tools to handle variable dev keysDoug Zongker2011-10-042-34/+65
| | | | | | | | The signing and OTA-building tools now understand the default_sys_dev_certificate value which may be present in the META/misc_info.txt file of the target-files packages. Change-Id: I64f09ec0b77a5184b6ddb74019255518776ee773
* allow APKs to be signed with multiple certsDoug Zongker2011-09-291-26/+29
| | | | | | | The Package Manager handles this now. To share a UID, all packages must be signed with exactly the same set of certs. Change-Id: I2fd08923f55f02ae2f1d503266ab124be2472921
* patch the /system/build.prop file lastDoug Zongker2011-08-261-1/+15
| | | | | | | | | | | | | | | | | | | Works around a problem observed on a retail device: incremental update from build 1 to build 2 partially completed, leaving a mix of files from the two builds. (Why it booted into the regular system instead of recovery to restart update installation is still a mystery.) build.prop was one of the files updated, so the device reported itself as having build 2. The device hobbled along for months in this state, until build 3 was released and the 2-to-3 incremental package repeatedly failed (because some of the files it was trying to patch were build 1). This change makes updating build.prop the very last thing does by an incremental update script, so if installation is aborted and the regular system starts (and works at all), it will continue reporting itself as build 1 and be sent the 1-to-2 OTA package again. Change-Id: I1edc1dcef2bd2495b6fd96517c2f4c574b994f27
* am 6d38bdfc: resolved conflicts for merge of a74a4811 to honeycomb-plus-aospYing Wang2011-08-113-4/+12
|\ | | | | | | | | * commit '6d38bdfc7b9ff699370b4a40dcbdddce0ea713b8': sha module is deprecated
| * resolved conflicts for merge of a74a4811 to honeycomb-plus-aospYing Wang2011-08-113-4/+12
| |\ | | | | | | | | | Change-Id: I8400ac2bead6aa1a9902d44bf65906084ad353ad
| | * sha module is deprecateddavid2011-08-103-7/+19
| | | | | | | | | | | | | | | | | | | | | This patch removes the deprecated warnings from the python scripts. Change-Id: I052a0aab3fb28dd1d78de1307edafda6b6c35e5f
| | * am 080ed92e: Merge "Close inherited PIPE before doing work" into gingerbreadYing Wang2011-03-153-0/+19
| | |\ | | | | | | | | | | | | | | | | * commit '080ed92e77fc7c24ca3bac1a1dc06057390bfdb8': Close inherited PIPE before doing work
| | | * Merge "Close inherited PIPE before doing work" into gingerbreadYing Wang2011-03-153-0/+19
| | | |\
| | | | * Close inherited PIPE before doing workYing Wang2010-12-133-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gmake in Darwin has file descriptor leak. In a full build, ota_from_target_files will inherits more than 2000 open PIPEs from gmake and fails in a call to select.select(). This change fixes the build by closing the PIPEs before doing real work. Change-Id: Ife021382198642a97bbbf0b623e4f24f3d86b2b2
* | | | | pass blobs to write_raw_image() instead of using temp fileDoug Zongker2011-04-121-3/+2
|/ / / / | | | | | | | | | | | | Change-Id: I73b71541596612552d52a8f7b1ccdd74451ac6fc
* | | | resolved conflicts for merge of 0a1f3236 to honeycomb-plus-aospYing Wang2011-03-072-46/+2
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: I6596f4a65a99eed98bdca2d8a6840bc378297b6d
| * | | am a73b6561: Drop support for target files with no recovery.fstab.Ying Wang2011-03-042-46/+2
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit 'a73b6561cee39ad416f4af327dbe72ec565d2423': Drop support for target files with no recovery.fstab.
| | * | Drop support for target files with no recovery.fstab.Ying Wang2011-03-042-46/+2
| | |/ | | | | | | | | | | | | | | | Change-Id: I099298cfffc2546975732a3bf0df60f96ccbdac4 Meanwhile don't build the ota and update zip files if no recovery.fstab found.
| * | Product-configurable sparse ext images.Ying Wang2010-12-281-8/+15
| |/ | | | | | | | | | | Also pass extfs sparse image flag to the release tool. Change-Id: I79a6a71873634a231aa8990cee22374259601505
* | remove vestigial WriteFirmwareImage functionDoug Zongker2011-03-021-12/+0
| | | | | | | | | | | | | | | | Nothing calls this, and the updater function it calls no longer exists. The HTC-device-specific thing it used to do was moved to HTC extension libraries. Change-Id: I2252adf44ea0c5beb6e9379215d7337880f66f68
* | increase java heap size when signing packagesDoug Zongker2011-02-231-1/+1
| | | | | | | | | | | | Large OTA packages are causing signapk to run out of memory. Change-Id: I511b9b5fb2d303805006ca76458f44bf72faeff2
* | read partition length from recovery.fstabDoug Zongker2011-02-232-6/+20
| | | | | | | | | | | | Don't hardcode magical partition behavior in the script generator. Change-Id: I4aeea022f8a32a7c9f316be2c2514510344ca0e0
* | Close inherited PIPE before doing workYing Wang2011-02-103-0/+19
| | | | | | | | | | | | | | | | | | Gmake in Darwin has file descriptor leak. In a full build, ota_from_target_files will inherits more than 2000 open PIPEs from gmake and fails in a call to select.select(). This change fixes the build by closing the PIPEs before doing real work. Change-Id: Ie7035d7add0b1da3afb6bf9c2009d40f8c7d29b3
* | support TARGET_EXTRA_RECOVERY_KEYSDoug Zongker2011-02-011-2/+17
| | | | | | | | | | | | | | | | | | | | | | Specifying one or more key files (without .x509.pem extension) as TARGET_EXTRA_RECOVERY_KEYS causes them to be included as acceptable keys for recovery packages. They are *not* included in otacerts.zip, so actual downloaded over-the-air packages can't use them, but they can be used to sign sideload-only packages. Bug: 3413359 Change-Id: I6f248ffa35f0c6b125dd8a7517493017e236c776
* | fix check_target_files_signaturesDoug Zongker2011-01-271-4/+2
| | | | | | | | | | | | | | common.UnzipTemp now returns a 2-tuple instead of just a string. Bug: 3398407 Change-Id: Ifd0408283aaa15752caa549f4510a0a3db03c3fd
* | support use of prebuilt bootable imagesDoug Zongker2011-01-253-69/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | img_from_target_files now, with the -z flag, will produce an output zip with only the bootable partitions (boot and recovery). img_ and ota_from_target_files can take, instead of a simple "target_files.zip", a name of the form "target_files.zip+bootable_images.zip", where the second zip contains bootable images that should be used instead of building them from the target_files.zip. (This should be the zip produced by the above -z flag, perhaps with the images messed with in some way, such as by an unnamed OEM's extra signature wrapper for their "secure boot" process.) Bug: 3391371 Change-Id: Iaf96dfc8f30e806ae342dcf3241566e76ae372d4
* | Fix build breakMichael Chan2011-01-191-1/+1
| | | | | | | | Change-Id: Ie07f042a9f25bf3329cf2cea8fdeea3e208da775
* | Teach the build system to reserve the last 16 Kbytes of /data for the crypto ↵Ken Sumrall2011-01-191-4/+8
| | | | | | | | | | | | | | | | | | footer If making /data and it's an EMMC interface, reserve the last 16 Kbytes of the partition for the crypto footer. Change-Id: Ia2c0bb53a545f074e79fc9d6ac04faee75fb9be4
* | Pass extfs sparse image flag to the release tool.Ying Wang2010-11-171-6/+11
| | | | | | | | Change-Id: Icb2a1c4fddb2b6153298ba1b849016aa3d792773
* | resolved conflicts for merge of 18c00c5c to masterYing Wang2010-09-281-1/+1
|\ \ | |/ | | | | Change-Id: I7f6870b654e24a268a14b9c47eb8d384993273f2
| * Fix userdata partition's ext4 mount point to data.Ying Wang2010-09-271-1/+1
| | | | | | | | | | Bug: 3041475 Change-Id: I07306cd9c90072626dfc132d6655618ae70e64be
* | am 8317e664: am 96a57e73: make info_dict and GetTypeAndDevice available to ↵Doug Zongker2010-09-263-29/+27
|\ \ | |/ | | | | | | | | | | | | | | device extensions Merge commit '8317e66433903badaec8ebd2b9ec2b8153f3d612' * commit '8317e66433903badaec8ebd2b9ec2b8153f3d612': make info_dict and GetTypeAndDevice available to device extensions
| * make info_dict and GetTypeAndDevice available to device extensionsDoug Zongker2010-09-263-29/+27
| | | | | | | | Change-Id: I3aa04cb6d7988fc1fdd7f179634b09ceab5749fb
| * accommodate both new and old target-files when creating incrementals (do not ↵Doug Zongker2010-09-221-7/+35
| | | | | | | | | | | | merge) Change-Id: Ibc211164bf1dee8275e15d10cbe81b63d666069f
* | accommodate both new and old target-files when creating incrementalsDoug Zongker2010-09-221-23/+24
| | | | | | | | | | | | (cherry-picked from gingerbread.) Change-Id: I925bf122b0012302a85c0b6f04cca48eb694b0c4
* | resolved conflicts for merge of e1daf61d to masterDoug Zongker2010-09-211-1/+1
|\ \ | |/ | | | | Change-Id: Idf5767f68dd19b51940ea69528cdd389b04d56b9
| * arg: system_size, not system_imgDoug Zongker2010-09-211-1/+1
| | | | | | | | Change-Id: Iba5d10204c93159a4f12ea8e8d8687db5b9dd5ca
| * add recovery.fstab as dependency so it triggers rebuild (do not merge)Doug Zongker2010-09-211-1/+2
| | | | | | | | | | | | | | | | Make recovery image depend on the fstab file so it gets rebuilt when fstab changes. Add support for "emmc" fstab partition type to edify_generator. Change-Id: Ic5df4e86c24321bf7d82a644e3e4770352e4f64b