aboutsummaryrefslogtreecommitdiffstats
path: root/install.c
Commit message (Collapse)AuthorAgeFilesLines
* support version 2 (2048-bit e=65537) keys in recoveryDoug Zongker2013-05-251-0/+6
| | | | | Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org> Change-Id: I9849c69777d513bb12926c8c622d1c12d2da568a
* Fix up RSA key loading bug in jellybean.Koushik Dutta2012-12-121-24/+44
| | | | Change-Id: Iaa6af3eceeac8a92e056abd0bcfffcc805426f61
* forward port CWM to jellybeanKoushik Dutta2012-07-151-1/+3
| | | | Change-Id: Ibd66afe03c9a2c183e4c7db35fe34adf0f5e24ff
* wipKoushik Dutta2011-11-161-2/+24
|\
| * save a last_install file with the result of the last package install attemptDoug Zongker2011-04-121-2/+24
| | | | | | | | | | | | | | | | | | | | | | When installing a package, create /cache/recovery/last_install, which contains the filename of the package and a 1 or 0 for success or failure. Also, don't mount ext4 and vfat filesystems as read-only (on devices where /cache is ext4, we need it to be read-write). Change-Id: I0cf2a1921bbd65e06343aa74e2006577fac77c2c
| * remove the notion of "root path"; support mixed flash typesDoug Zongker2010-09-211-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | Remove the wacky notion of "roots" and "root paths" (those things that look like "FOO:some/path" instead of just "/foo/some/path"). Let each device specify its own table of available partitions and how to mount them (needed for devices that use both MTD/yaffs2 and EMMC/ext4 partitions). (Cherrypicked from gingerbread w/slight edits.) Change-Id: I2479ce76b13e73f1d12035c89386c3a82b3edf51
* | more cwr5 work.Koushik Dutta2011-09-081-0/+6
| | | | | | | | Change-Id: I72bb14ef25a9067ccde3e40ea989c7990512687a
* | whoopsKoushik Dutta2011-05-251-1/+2
| | | | | | | | Change-Id: Ided86fe1991e5d9d6a707465429ec35ccc09743a
* | Merge branch 'gingerbread' of ↵Koushik Dutta2011-05-151-3/+3
|\ \ | | | | | | | | | git://github.com/CyanogenMod/android_bootable_recovery into gingerbread
| * | Do not close the zip archive prematurely. It may be accessed later for a ↵Koushik Dutta2011-05-131-3/+3
| | | | | | | | | | | | | | | | | | firmware update. Change-Id: I31c298f75bbcdc7998221aa2b3aa334926343139
* | | set the env for UPDATE_PACKAGE (the source zip) for update-binary. This ↵Koushik Dutta2011-05-151-0/+1
|/ / | | | | | | | | | | allows shell scripts to use the source zip. Change-Id: Ia8118b31408f687780dd45e14f540a7e76619cba
* | 3.0.0.4. Provide an error message if an Amend zip is provided.Koushik Dutta2011-01-021-0/+11
| | | | | | | | Change-Id: Ia740686a138cff01de2c1475acc0abccb18d9c2d
* | Merge from ClockworkMod recoveryKoushik Dutta2010-12-181-21/+104
|\ \ | | | | | | | | | Change-Id: Id5b312147173ced559a62d97029acede6c2f8766
| * | Refactor recovery's block device handling to work across variant hardware in ↵Koushik Dutta2010-11-101-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | merge with eclair recoveryKoushik Dutta2010-08-261-0/+62
| |\ \
| | * | galaxysKoushik Dutta2010-07-201-0/+2
| | | |
| * | | Merge from Froyo.Koushik Dutta2010-06-231-87/+13
| |\ \ \ | | |/ / | |/| |
| * | | null terminate script. wrapping menus. 1.7.7Koushik K. Dutta2010-03-231-4/+0
| | | |
| * | | run update-binary first. revert recovery API version to 2. use ↵Koushik K. Dutta2010-03-201-9/+16
| | | | | | | | | | | | | | | | RECOVERY_VERSION for the actual display version.
| * | | working recovery image!Koushik K. Dutta2010-02-121-10/+14
| | | |
| * | | Need to call register_package_root prior to installing the package. The ↵Koushik K. Dutta2010-02-111-6/+10
| | | | | | | | | | | | | | | | subsequent unregistering made me think that it was being registered at some point, but it was removed in the transition to eclair. The unregistration was dead code. It is being used now though.
| * | | update.zip somewhat working now...Koushik K. Dutta2010-02-111-20/+25
| | | |
| * | | Initial reintegration of legacy update process that used update-scriptKoushik K. Dutta2010-02-111-1/+8
| | | |
| * | | do not merge: cherry-picked 60151a295ccf726238dc47456d80b427db6d6a38 from ↵Doug Zongker2009-08-171-16/+18
| | | | | | | | | | | | | | | | master branch
* | | | remove the notion of "root path"; support mixed flash types (do not merge)Doug Zongker2010-09-201-11/+4
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | Remove the wacky notion of "roots" and "root paths" (those things that look like "FOO:some/path" instead of just "/foo/some/path"). Let each device specify its own table of available partitions and how to mount them (needed for devices that use both MTD/yaffs2 and EMMC/ext4 partitions). Change-Id: I18b0a572a71c5e087e0b7ae11b1774388339bfd1
* | | remove unneeded partition rootsDoug Zongker2010-09-171-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | Recovery itself no longer needs to access all these partitions; manipulation of them is done by the updater binary. This is a small first step towards removing roots entirely. Change-Id: I3fbcada32079a37db4cc097861dfa91e0a08da30
* | | 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-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
* | | Add __attribute__((format(printf, a, b))) to printf like functions.Nick Kralevich2010-06-241-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-281-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-141-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-141-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-171-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-111-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-041-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-281-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-011-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-031-0/+186
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-186/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+186