779701db515d1a0d363d5a8896252f331bc4e22a |
|
09-Feb-2012 |
Stephen Smalley <sds@tycho.nsa.gov> |
Extend recovery and updater to support setting file security contexts. Extend minzip, recovery, and updater to set the security context on files based on the file_contexts configuration included in the package. Change-Id: Ied379f266a16c64f2b4dca15dc39b98fcce16f29
/bootable/recovery/minzip/Zip.c
|
6aece33b3f3af6a161e326af36bc894427fcf5ad |
|
01-Feb-2010 |
Doug Zongker <dougz@android.com> |
add a one-argument version of package_extract_file 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
/bootable/recovery/minzip/Zip.c
|
1c4ceae38f3fd7eb1e451d430acb5d99f257b0f9 |
|
08-May-2009 |
Doug Zongker <dougz@android.com> |
undo temporary alignment hack Remove the memory alignment that mysteriously made OTA installs work, in anticipation of a kernel that fixes the actual problem. Handle EINTR properly.
/bootable/recovery/minzip/Zip.c
|
683c4628039a8cb6dad1a086fae23a7d71438414 |
|
06-May-2009 |
Doug Zongker <dougz@android.com> |
align data passed to write() on 32k boundaries In donut, OTA installation often encounters the write() system call doing short writes -- which is legal but unexpected -- or failing with ENOSPC when plenty of space is available. Passing aligned memory buffers to write() appears to prevent (or at least reduce the frequency) of these problems. b/1833052 has been filed to look at the underlying problem, but this change aligns buffers we use with write() so we can OTA for now (or see if this problem still occurs).
/bootable/recovery/minzip/Zip.c
|
596271fa71d79e3eec03c7cf6ac76cb026dd8578 |
|
30-Apr-2009 |
Doug Zongker <dougz@android.com> |
handle short writes when unzipping files minzip fails if write() doesn't write all the data in one call. Apparently this was good enough before, but it causes OTAs to fail all the time now (maybe due to the recently-submitted kernel)? Change code to attempt continuing after short writes.
/bootable/recovery/minzip/Zip.c
|
c24a8e688a6312764254beac2b2520bb0c5e998d |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/bootable/recovery/minzip/Zip.c
|
ffb48f64fec674c6dd923eb8b1eb3f743e05a8ba |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/bootable/recovery/minzip/Zip.c
|
23580ca27a0a8109312fdd36cc363ad1f4719889 |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/bootable/recovery/minzip/Zip.c
|