aboutsummaryrefslogtreecommitdiffstats
path: root/updater
Commit message (Collapse)AuthorAgeFilesLines
* Remove HAVE_SELINUX guardsKenny Root2013-03-174-18/+2
| | | | Change-Id: Iddb0a977a8e809413defd4e7a9bb21311f5db862
* Fix up mounts.c usage.Koushik Dutta2012-11-242-59/+9
| | | | Forward port write_raw_image changes to jellybean.
* Pull in android 4.2 updater bits willy nilly. Next commit will fix.Koushik Dutta2012-11-242-24/+107
| | | | Change-Id: Id2616d1fead045688a5acf13b3420016322f664b
* One more 4.2 dependency for ext4...Ricardo Cerqueira2012-11-241-1/+1
| | | | Change-Id: If8a7f00e0269b37f2865c0910d4e9efa21018cda
* recovery: Update for new libext4_utils library nameRicardo Cerqueira2012-11-241-1/+1
| | | | Change-Id: I0a820a6f9a9b0e092426e5eaa4760a89fe3ccdf6
* Forward port write_raw_image changes to jellybean.Koushik Dutta2012-07-182-58/+7
| | | | Change-Id: I124adeeed93f4ec97d1e14c1572e313024f11008
* updater: fix mounts.c referenceKoushik Dutta2012-07-151-0/+1
| | | | Change-Id: I1045d8671a0ea6b20f0a1a3c67c384b3dd2dc6c1
* fix more cwm forward port breaksKoushik Dutta2012-07-151-1/+1
| | | | Change-Id: Idf0b4384dbf25da39ff6adb5515824beca8eb8cb
* derped up the updaterKoushik Dutta2012-07-154-154/+143
| | | | Change-Id: Idbfb2399fcf6dbcf29f3049ff155d56f9a9a2a68
* Fix build on gcc 4.6.Evan McClain2012-05-181-2/+2
| | | | | | | | Several programs were not linked against libcrecovery which has the __system function. Change-Id: I12b33a9157ab74825129896d0f2177fa83638464 Signed-off-by: Evan McClain <aeroevan@gmail.com>
* Remove random offset message during installationRobert Burns2012-02-131-2/+0
| | | | Change-Id: I2281a571e37ba9fac2b99806ce9c63e591b4d39f
* remove dedupeKoushik Dutta2011-11-161-1/+2
|
* wipKoushik Dutta2011-11-162-26/+151
|\
| * Support multiple recovery updater extensions.Michael Ward2011-07-141-2/+2
| | | | | | | | Change-Id: I787c086223b674050c0a12fc575add9badb471af
| * make write_raw_image able to take a blobDoug Zongker2011-04-121-27/+40
| | | | | | | | | | | | | | write_raw_image() can now take either a blob or a filename as the source. The blob format eliminates the need for a temp file. Change-Id: I0c6effec53d47862040efcec75e64b7c951cdcf7
| * Reserve the last 16 Kbytes of /data for the crypto footer.Ken Sumrall2011-01-191-8/+11
| | | | | | | | | | | | | | When formatting /data, if it's an ext4 filesystem, reserve the last 16 Kbytes for the crypto footer. Change-Id: I7b401d851ee87732e5da5860df0287a1c331c5b7
| * Update arguments to make_ext4fsColin Cross2010-12-291-1/+1
| | | | | | | | Change-Id: Id96e98da76b3091987b01651f980797b1d6b49d8
| * add missing sparseness parameterDoug Zongker2010-09-151-1/+1
| | | | | | | | Change-Id: Ie6e309b127e80cd6475f1deaa5dbadf9f5cc2746
| * resolved conflicts for merge of 9f89b0e4 to masterDoug Zongker2010-09-151-1/+1
| |\ | | | | | | | | | Change-Id: Id458df96fd56830fdb35397e95a80274761ecff5
| * \ am 858f0a76: am 8e5e4dad: close update package before installing; allow remountDoug Zongker2010-09-151-1/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '858f0a763d0f736eb721f54257b6164886bfcbfc' * commit '858f0a763d0f736eb721f54257b6164886bfcbfc': close update package before installing; allow remount
| * | | Changes to work with updated make_ext4fs tool that supports creating sparse ↵Ken Sumrall2010-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | images. An extra parameter was added to the make_ext4fs() function, we these tools need to be updated to match. Change-Id: Id640a7f2b03153eb333b00337f0f991ff5332349
| * | | Working ASLR implementationHristo Bojinov2010-08-022-2/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Separate files for retouch functionality are in minelf/* ASLR for shared libraries is controlled by "-a" in ota_from_target_files. Binary files are self-contained. Retouch logic can recover from crashes. Signed-off-by: Hristo Bojinov <hristo@google.com> Change-Id: I76c596abf4febd68c14f9d807ac62e8751e0b1bd
| * | | Mute unwanted error messageYing Wang2010-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL removes the following line from the top of build logs: "diff: out/target/product/*/obj/PACKAGING/updater_extensions_intermediates/register.inc.list: No such file or directory" Change-Id: I79c15a69a0b1b0da0e45620b45a7a0fea5625250
| * | | support for ext4/EMMC filesystems in updater binaryDoug Zongker2010-07-012-25/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the mount and format functions take extra parameters describing the filesystem type and add support for mounting and formatting ext4 filesystems on EMMC. Change recovery to consistently use stdout for status messages instead of mixing stdout and stderr.
* | | | Merge branch 'gingerbread' of ↵Steve Kondik2011-07-261-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | git://android.git.kernel.org/platform/bootable/recovery into upstream-2.3.5
| * | | | Mute unharmful build warning at the top of the build log:Ying Wang2011-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | diff: out/target/product/generic/obj/PACKAGING/updater_extensions_intermediates/register.inc.list: No such file or directory Change-Id: I269b1703b6091b343db45b1c5cdd0962c738788b
* | | | | fix boot image not flashing properly, prevent the error in the future.Koushik Dutta2011-05-291-1/+3
| | | | | | | | | | | | | | | | | | | | Change-Id: I6163e5a519ef28e9e9ea12d5a46d525d1d9d8fb2
* | | | | also set UPDATE_PACKAGE in updater for old recoveriesKoushik Dutta2011-05-161-0/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I90e3feb0c1655279d58751ce800f299d9b4f3d03
* | | | | Support for ext2 and ext3 update-binary.Koushik Dutta2011-01-021-0/+18
| | | | | | | | | | | | | | | | | | | | Change-Id: Ide34392bd8ac56878aa3e992b275a39d6b6bc7cf
* | | | | Fix the buildKoushik Dutta2010-12-181-2/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I2ae07e94eb68dd261b3978671aec88c25cd2518e
* | | | | revert updater changes except what is necesary to do a write_raw_image on ↵Koushik Dutta2010-12-181-12/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | emmc devices. Change-Id: I674c7b5873b7758bf15f0b55c34ec01513e6f23c
* | | | | Merge from ClockworkMod recoveryKoushik Dutta2010-12-182-92/+23
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | Change-Id: Id5b312147173ced559a62d97029acede6c2f8766
| * | | | recovery: Autodetection of device flash typeSteve Kondik2010-11-142-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Detect flash type at runtime rather than requiring this to be set in the device configuration. The detection is based on the existence of /proc/mtd, /proc/emmc, or /dev/block/bml1. Change-Id: I464962a567022c5862c249f06d36c2d1cddeacba
| * | | | Fix up updater to use the new refactored block device support.Koushik Dutta2010-11-102-149/+19
| | | | | | | | | | | | | | | | | | | | Change-Id: I597f3d83ef14d2640192e0026a0fe1a93023bfc6
| * | | | Refactor recovery's block device handling to work across variant hardware in ↵Koushik Dutta2010-11-101-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a cleaner fashion. Re add firmware update Change-Id: I699ad22390ed14e597d17a7bcb32ad1b1af00b4b support mmc misc Change-Id: Iff02f8d03db6835f501d052140cebeefee521305 fix compile errors Change-Id: I032edbd157a8a15f561bb83330c715ebaa008d18 fix compile errors Change-Id: Idff3449be3376f22fceefc2c35637527f8df8f3f Initial work to clean up the block devices. Change-Id: I4be20ac124864a281be9cd116e211a2618404a27 all done Change-Id: I0338f62f6a045556ebe90b0200685be113178319 fix up nandroid Change-Id: I886f00271183e6d2921c080b0939341f2cf12a4d
| * | | | [recovery]: Add support for OTA upgrade on mmc devices.Shashank Mittal2010-10-122-4/+52
| | | | | | | | | | | | | | | | | | | | Change-Id: I8f230dfa5be4e9f142765797d949e10434e1fdeb
| * | | | initial support for bml backup and restoreKoushik Dutta2010-09-131-2/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I7e6f1a76371c0d1c1f4cfac0413ba6fa7743f17a
| * | | | add bmlutilsKoushik Dutta2010-09-132-6/+6
| | | | | | | | | | | | | | | | | | | | Change-Id: Ia402c4fcd2881cfb7cf7318718933ed64a19ec6b
| * | | | initial support for flashing samsung kernels via redbend_uaKoushik Dutta2010-09-132-1/+15
| | | | | | | | | | | | | | | | | | | | Change-Id: I9033146899d596c6d0a4ba8a5fad080d799d96ae
| * | | | Merge from Froyo.Koushik Dutta2010-06-233-126/+316
| |\ \ \ \ | | |/ / /
| * | | | publish update-binary as a utilityKoushik Dutta2010-05-011-0/+6
| | | | |
* | | | | do not merge - update to match ext4utils apiBrian Swetland2010-09-151-1/+1
| |_|_|/ |/| | | | | | | | | | | Change-Id: I9d34e491022d7dfed653a861b0728a0a656f1fbe
* | | | support for ext4/EMMC filesystems in updater binaryDoug Zongker2010-09-152-25/+64
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Make the mount and format functions take extra parameters describing the filesystem type and add support for mounting and formatting ext4 filesystems on EMMC. Change recovery to consistently use stdout for status messages instead of mixing stdout and stderr.
* | | close update package before installing; allow remountDoug Zongker2010-09-141-1/+3
| |/ |/| | | | | | | | | | | | | Close the update package before invoking the binary, to allow the installer to unmount /cache if it wants to. Add a function to allow remounting of a mount as read-only. Change-Id: Idfcc96c3da66083295177f729263560be58034e4
* | refactor applypatch and friendsDoug Zongker2010-02-221-65/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the applypatch function to take meaningful arguments instead of argc and argv. Move all the parsing of arguments into main.c (for the standalone binary) and into install.c (for the updater function). applypatch() takes patches as Value objects, so we can pass in blobs extracted from the package without ever writing them to temp files. The patching code is changed to read the patch from memory instead of a file. A bunch of compiler warnings (mostly about signed vs unsigned types) are fixed. Support for the IMGDIFF1 format is dropped. (We've been generating IMGDIFF2 packages for some time now.) Change-Id: I217563c500012750f27110db821928a06211323f
* | relocate applypatch; add type system and new functions to edifyDoug Zongker2010-02-182-52/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move applypatch to this package (from build). - Add a rudimentary type system to edify: instead of just returning a char*, functions now return a Value*, which is a struct that can carry different types of value (currently just STRING and BLOB). Convert all functions to this new scheme. - Change the one-argument form of package_extract_file to return a Value of the new BLOB type. - Add read_file() to load a local file and return a blob, and sha1_check() to test a blob (or string) against a set of possible sha1s. read_file() uses the file-loading code from applypatch so it can read MTD partitions as well. This is the start of better integration between applypatch and the rest of edify. b/2361316 - VZW Issue PP628: Continuous reset to Droid logo: framework-res.apk update failed (CR LIBtt59130) Change-Id: Ibd038074749a4d515de1f115c498c6c589ee91e5
* | bump updater API version to 3; deprecate firmware update commandDoug Zongker2010-02-033-42/+7
| | | | | | | | | | | | | | | | | | Remove support for the HTC-specific "firmware" update command and the corresponding edify function write_firmware_update(). This functionality is now done by an edify extension library that lives in vendor/htc. Change-Id: I80858951ff10ed8dfff98aefb796bef009e05efb
* | add a one-argument version of package_extract_fileDoug Zongker2010-02-011-24/+69
|/ | | | | | | | | | | Add a version of package_extract_file that returns the file data as its return value (to be consumed by some other edify function that expects to receive a bunch of binary data as an argument). Lets us avoid having two copies of a big file in memory (extracting it into /tmp, which is a ramdisk, and then having something load it into memory) when doing things like radio updates. Change-Id: Ie26ece5fbae457eb0ddcd8a13d74d78a769fbc70
* delete files before symlinking; log error messagesDoug Zongker2009-09-181-3/+21
| | | | | | The symlink() function should remove existing files before creating symlinks, so scripts are idempotent. Log messages when various system calls fail (but don't make the whole script fail).
* add a run_program() function to edifyDoug Zongker2009-09-101-0/+49
| | | | | Handy for producing debugging OTA packages (eg, running sqlite3 or whatever in recovery).