summaryrefslogtreecommitdiffstats
path: root/recovery.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove encrypted filesystem code from recoveryDoug Zongker2011-01-181-63/+1
| | | | | | | This was never used; encrypted filesystems are being done a different way now. Change-Id: I519c57b9be44d001f0b81516af7bfc252069892b
* clear recovery framebuffers on allocation; display icon right after ui_initDoug Zongker2010-11-011-0/+1
| | | | | | | | | | | Make ui_init() clear the framebuffer memory it maps in so the user isn't treated to a visible flash of random bits on recovery startup. Call ui_set_background() (to show the installing icon) right after ui_init() to display something while device_recovery_start() is working (which can take a second or two on some devices). Bug: 3145331 Change-Id: I11e7859fab5847370ea4f4932c3fb1558af26c5d
* save the log from recovery's last run in /cache/recovery/last_logDoug Zongker2010-09-291-17/+40
| | | | | | | Also, don't lose the start of the log whenever a wipe cache is performed. Change-Id: I29999762854eb36d1ff2bc20b4183c9077b19777
* handle old-style CACHE: packagesDoug Zongker2010-09-221-2/+18
| | | | Change-Id: I7bf52b56770c207ba1c8329243991b07ebb65779
* mount sdcard only on demand; fix sideload installsDoug Zongker2010-09-221-3/+6
| | | | | Bug: 3009493 Change-Id: I1a7f99fc41a6a7012742e82f8c06a0c75584890a
* remove the notion of "root path"; support mixed flash types (do not merge)Doug Zongker2010-09-211-76/+63
| | | | | | | | | | 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
* support for ext4/EMMC filesystems in updater binaryDoug Zongker2010-09-151-6/+6
| | | | | | | | | 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.
* (cherry-pick) support installing any .zip file on the sdcardDoug Zongker2010-09-151-25/+140
| | | | | | | | Replaces the "install sdcard:update zip" menu option with one that displays a menu of zip files (and subdirs) on the sdcard and lets you pick which one to install. Change-Id: Icff541525f2fdfc8939a91af626ecc386ac9dd07
* add --show_text option to recoveryDoug Zongker2010-09-031-0/+2
| | | | Change-Id: Ie6c6c920260dfa759fbb15b1f352d6bb0fa7146c
* Revert 21f0f97ebabb47adcbfe8d38b02685f2019b4eb3Ying Wang2010-09-011-2/+1
| | | | Change-Id: I46e4d7fe76e4219207e46f19e50188e38bb932b7
* Fix for crespo.Ying Wang2010-08-311-1/+2
| | | | Change-Id: I008510bf614606a46a630c7adc39464ce1143ec3
* make a copy of sideloaded packages in /tmp before verifyingDoug Zongker2010-07-091-2/+112
| | | | | | | | | | Copy a sideloaded package into /tmp, then verify and install the copy, to prevent malicious users from overwriting the package between verification and install. Bug: 2826890 package can be replaced during verification Bug: 2058160 Recovery should copy sideloaded (sd card) update ... Change-Id: I3de148b0f1a671f1974782b6855527caeaefda23
* DO NOT MERGEOscar Montemayor2010-04-021-18/+18
| | | | | | Encrypted File Systems integration. Recovery changes. Change-Id: I932f73a6f937aac061128e1134eab08c30f0471d
* bump updater API version to 3; deprecate firmware update commandDoug Zongker2010-02-031-10/+1
| | | | | | | | | 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
* change log recovery to generic device_recovery_start functionDoug Zongker2010-02-021-3/+3
| | | | | | | | | | Remove (or at least stop calling) the HTC-specific mechanism for preserving the recovery log from before a radio or hboot update. Replace it with a generic device_recovery_start() function which each device's code can implement to do whatever it wants on recovery startup. Change-Id: If3cca4b498c0b1cf0565236404ecf56a1fc46123
* save the recovery log from before HTC firmware updatesDoug Zongker2010-01-211-1/+3
| | | | | | | | | | | | | | When doing a firmware (radio or hboot) update on HTC devices, save the recovery log in block 1 of the cache partition, before the firmware image and the UI bitmaps. When we boot back into recovery after the firmware update to reformat the cache partition, copy that log out of cache before reformatting it and dump it into the current invocation's log. The practical upshot of all this is that we can see the log output from radio and hboot updates. Change-Id: Ie0e89566754c88f4bed6a90d8a0aa04047b01a27
* Recovery changes for Encrypted File Systems.Oscar Montemayor2009-12-101-14/+71
| | | | This change enables/disables the Encrypted file systems feature. It reads some properties form the data partition, wipes the partition out, and then rewrites the proper properties again into the data partition to signal that encrypted FS are enabled.
* am 988500b6: add terminator to recovery\'s getopt_long options arrayDoug Zongker2009-10-121-0/+1
|\ | | | | | | | | | | | | Merge commit '988500b615de24455e1fee69e72055bb1dca9c86' * commit '988500b615de24455e1fee69e72055bb1dca9c86': add terminator to recovery's getopt_long options array
| * add terminator to recovery's getopt_long options arrayDoug Zongker2009-10-061-0/+1
| | | | | | | | http://b/2170691 - recovery argument parsing is broken
* | am f93d8166: confirm before wiping user data in recoveryDoug Zongker2009-09-231-69/+107
|\| | | | | | | | | | | | | Merge commit 'f93d8166ef4c06f6ad71293ffa8a4ce469df4fa5' into eclair-plus-aosp * commit 'f93d8166ef4c06f6ad71293ffa8a4ce469df4fa5': confirm before wiping user data in recovery
| * confirm before wiping user data in recoveryDoug Zongker2009-09-231-69/+107
| | | | | | | | | | | | | | When using the hidden menu to wipe data in recovery, confirm before starting the wipe. (This does not affect booting with the --wipe_data flag, or using Alt+W on dream with the menu hidden -- those still wipe data immediately.)
* | merge from open-source masterJean-Baptiste Queru2009-09-011-3/+6
|\ \ | |/ |/|
| * Not all failures to fopen_root_path() are serious.Jay Freeman (saurik)2009-08-251-3/+6
| | | | | | | | Example: E:Can't open /cache/recovery/command.
* | do not merge: cherry-pick of c2d666bd4f6eb5f7a9f17b10435c161cb105b7c5 from masterDoug Zongker2009-08-181-0/+10
| |
* | resolved conflicts for merge of 64893ccc to masterDoug Zongker2009-07-161-28/+1
|\|
| * remove amendDoug Zongker2009-07-151-28/+1
| | | | | | | | | | | | | | | | 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.
* | add function for device-specific wipe data featuresDoug Zongker2009-06-191-2/+7
| | | | | | | | | | | | | | | | Some devices want to do special things when recovery wipes data (eg, wipe data in their baseband processor as well). Add a hook in the device-specific recovery library that gets called when data is wiped. Also add an amend root for the "mbm" partition.
* | resolved conflicts for merge of fb2e3af3 to masterDoug Zongker2009-06-181-2/+20
|\|
| * let the "firmware" command take the file straight from the packageDoug Zongker2009-06-181-1/+2
| | | | | | | | | | | | | | | | 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.
* | split out device-specific recovery UI code into vendor directoriesDoug Zongker2009-06-111-42/+29
|/ | | | | | | | | Take some device-specific details of the recovery UI (eg, what keys to press to bring up the interface and perform actions, exact text of the menu, etc.) and split them out into separate C functions. Arrange to take implementations of those functions from the appropriate vendor directory at build time. Provide a default implementation in case no vendor-specific one is available.
* remove unused permissions scheme from amendDoug Zongker2009-06-031-4/+0
| | | | | | | Amend (aka the recovery command language) had a half-implemented scheme of limiting which commands OTA packages were allowed to execute. It's not clear what this was ever supposed to be good for. Remove it.
* don't say "install complete" when it really isn'tDoug Zongker2009-05-291-1/+6
| | | | | | | 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 144070: Add an option to wipe cache (only) to the recovery menu.Doug Zongker2009-04-011-0/+9
| | | | Automated import of CL 144070
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-041-0/+471
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-041-471/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-111-23/+78
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-101-24/+79
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+361