summaryrefslogtreecommitdiffstats
path: root/install.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* support for ext4/EMMC filesystems in updater binaryDoug Zongker2010-09-151-1/+1
| | | | | | | | | 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-151-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
* Add __attribute__((format(printf, a, b))) to printf like functions.Nick Kralevich2010-06-251-1/+1
| | | | | | Fix potential string format bug. Change-Id: Ie05aac53b2c45a48bd68e340b76ccb21edfd28b7
* bump updater API version to 3; deprecate firmware update commandDoug Zongker2010-02-031-84/+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
* fix parsing of dumpkeys outputDoug Zongker2010-01-291-4/+4
| | | | | | | | %i can't be used to read unsigned ints (though it happens to work with bionic). Change to %x and %u as appropriate. Change-Id: I8ea9ca16a939501757cf70fc5953abee26c8231c http://b/2402231 - Parser for /res/keys interprets n0inv as a signed int
* verify whole-file signature instead of jarsigner signaturesDoug Zongker2009-08-151-16/+18
| | | | | | | In recovery, verify a signature that covers the entire zip file, instead of using the jarsigner format to verify individual files. Bug: 1328985
* remove amendDoug Zongker2009-07-151-103/+2
| | | | | | | | Yank all the code to install OTA packages out of the recovery binary itself. Now packages are installed by a binary included in the package (run as a child of recovery), so we can make improvements in the installation process without waiting for a new release to use them.
* improve updater progress barDoug Zongker2009-06-241-1/+13
| | | | | | Let recovery accept set_progress commands to control progress over the 'current segment' of the bar. Add a set_progress() builtin to the updater binary.
* let the "firmware" command take the file straight from the packageDoug Zongker2009-06-181-22/+44
| | | | | | | | To do a firmware-install-on-reboot, the update binary tells recovery what file to install before rebooting. Let this file be specified as "PACKAGE:<foo>" to indicate taking the file out of the OTA package, avoiding an extra copy to /tmp. Bump the API version number to reflect this change.
* fixes to edify and updater scriptDoug Zongker2009-06-121-0/+10
| | | | | | | | | | | | | | | | | | | | | A few more changes to edify: - fix write_raw_image(); my last change neglected to close the write context, so the written image was corrupt. - each expression tracks the span of the source code from which it was compiled, so that assert()'s error message can include the source of the expression that failed. - the 'cookie' argument to each Function is replaced with a State object, which contains the cookie, the source script (for use with the above spans), and the current error message (replacing the global variables that were used for this purpose). - in the recovery image, a new command "ui_print" can be sent back through the command pipe to cause text to appear on the screen. Add a new ui_print() function to print things from scripts. Rename existing "print" function to "stdout".
* edify extensions for OTA package installation, part 2Doug Zongker2009-06-121-1/+2
| | | | | | | | | | | | | | | | | | Adds more edify functions for OTAs: is_mounted getprop apply_patch apply_patch_check apply_patch_space write_raw_image write_firmware_image package_extract_file This allows us to install radios, hboots, boot images, and install incremental OTA packages. Fixes a couple of dumb bugs in edify itself: - we were doubling the size of the function table each time it was *not* full, rather than each time it was full - "no such function" errors weren't visible to the parser, so they didn't prevent execution of the script.
* edify extensions for OTA package installation, part 1Doug Zongker2009-06-121-1/+1
| | | | | | | | | | | | | | | Adds the following edify functions: mount unmount format show_progress delete delete_recursive package_extract symlink set_perm set_perm_recursive This set is enough to extract and install the system part of a (full) OTA package. Adds the updater binary that extracts an edify script from the OTA package and then executes it. Minor changes to the edify core (adds a sleep() builtin for debugging, adds "." to the set of characters that can appear in an unquoted string).
* allow OTA package to provide binary instead of scriptDoug Zongker2009-06-051-1/+169
| | | | | Allow installation of OTA packages which do not contain an update-script, but instead contain an update-binary.
* don't say "install complete" when it really isn'tDoug Zongker2009-05-291-1/+1
| | | | | | | Change the recovery UI so that when there is a hboot or radio update pending (which the user most do a home+back reboot to actually install), the UI tells them so, instead of saying "Install from sdcard complete."
* AI 144130: Don't build OTA package keys into the recovery binary; readDoug Zongker2009-04-021-8/+88
| | | | | | | them from an external file in the recovery image. Use the test-keys for all builds. Automated import of CL 144130
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-041-0/+186
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-041-186/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+186