1. 18 Jan, 2017 1 commit
  2. 18 Oct, 2016 1 commit
    • Tianjie Xu's avatar
      Replace minzip with libziparchive · 8cf5c8f6
      Tianjie Xu authored
      Clean up the duplicated codes that handle the zip files in
      bootable/recovery; and rename the library of the remaining
      utility functions to libotautil.
      
      Test: Update package installed successfully on angler.
      Bug: 19472796
      
      Change-Id: Iea8962fcf3004473cb0322b6bb3a9ea3ca7f679e
      8cf5c8f6
  3. 01 Sep, 2016 3 commits
    • Tianjie Xu's avatar
      Switch recovery to libbase logging · c21edd46
      Tianjie Xu authored
      Clean up the recovery image and switch to libbase logging.
      
      Bug: 28191554
      Change-Id: Icd999c3cc832f0639f204b5c36cea8afe303ad35
      (cherry picked from commit 74778143)
      c21edd46
    • Tianjie Xu's avatar
      Switch recovery to libbase logging · 7b0ad9c6
      Tianjie Xu authored
      Clean up the recovery image and switch to libbase logging.
      
      Bug: 28191554
      Change-Id: Icd999c3cc832f0639f204b5c36cea8afe303ad35
      Merged-In: Icd999c3cc832f0639f204b5c36cea8afe303ad35
      7b0ad9c6
    • Tianjie Xu's avatar
      Switch recovery to libbase logging · 74778143
      Tianjie Xu authored
      Clean up the recovery image and switch to libbase logging.
      
      Bug: 28191554
      Change-Id: Icd999c3cc832f0639f204b5c36cea8afe303ad35
      74778143
  4. 05 May, 2016 1 commit
    • Alistair Strachan's avatar
      updater, minzip: Remove unnecessary O_SYNC flags. · 733285fe
      Alistair Strachan authored
      Remove O_SYNC from mzExtractRecursive() and PackageExtractFileFn().
      These functions deal with extracting whole files from the update
      package onto a filesystem. If run on ext4 on a rotating disk, for
      example, the O_SYNC flag will cause serious performance problems
      and the extraction proecss can take over 30 minutes, with no
      obvious benefits.
      
      This API function already calls fsync(fd) after each file is
      extracted to ensure data and metadata is written to the underlying
      block device, so the O_SYNC calls should be superfluous and safely
      removable.
      
      This change does not affect the OTA patch paths or any modification
      of the bootloader partition or writes to other 'emmc' partitions.
      Signed-off-by: default avatarAlistair Strachan <alistair.strachan@imgtec.com>
      Change-Id: I9cbb98a98e6278bf5c0d7efaae340773d1fbfcd2
      733285fe
  5. 02 Apr, 2016 1 commit
  6. 21 Mar, 2016 1 commit
  7. 23 Feb, 2016 2 commits
    • Tianjie Xu's avatar
      Surpress warnings in minzip/Zip.c · 66296554
      Tianjie Xu authored
        bootable/recovery/minzip/Zip.c:514:5: warning: Value stored to 'compRemaining' is never read
          compRemaining = pEntry->compLen;
              ^               ~~~~~~~~~~~~~~~
        bootable/recovery/minzip/Zip.c:778:9: warning: Null pointer argument in call to memory copy function
          memcpy(p, helper->targetDir, helper->targetDirLen);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      Bug: 27229894
      Change-Id: I0482bac3a4fcddc191783d1e5b5a83cf29fa4e85
      66296554
    • Yabin Cui's avatar
      Fix integer overflows in recovery procedure. · 1273956e
      Yabin Cui authored
      Bug: 26960931
      Change-Id: Ieae45caccfb4728fcf514f0d920976585d8e6caf
      (cherry picked from commit 4f2df162)
      1273956e
  8. 22 Feb, 2016 1 commit
  9. 20 Feb, 2016 1 commit
  10. 18 Feb, 2016 1 commit
  11. 10 Feb, 2016 1 commit
  12. 22 Jan, 2016 1 commit
    • nkk71's avatar
      minzip: Add support for >2GB zipfile · 6069a793
      nkk71 authored
      normal zip limit is 4GB, but due to signed variables it will only
      access 2GB (32bit signed integer is from -2GB to +2GB).
      
      these changes allow for a theoretical limit of 4GB zips to be flashed.
      RAM restrictions still apply, and on a 32bit system it's likely to max
      out at approx 2.8GB flashable zip, above that mmap will probably fail.
      
      Note: the flashable zip also needs a compatible update-binary which
      include these changes.
      (this also applies to both aroma installer if it's being used).
      
      Change-Id: Ib3af2945c9bd4890a2e6dc45acfc2b80ec55473b
      6069a793
  13. 22 Dec, 2015 1 commit
  14. 16 Nov, 2015 2 commits
  15. 25 Oct, 2015 1 commit
  16. 15 Oct, 2015 1 commit
    • that's avatar
      Improve error handling for zip install · 5064048e
      that authored
      - minzip: don't crash with corrupted zips (e.g. 4096 null bytes)
      - twinstall: output error when zip doesn't contain update-binary
      - twinstall: add strerror(errno) to system-level errors
      - twinstall: correct message if /file_contexts could not be extracted
      - twinstall: use TWFunc::Wait_For_Child for better waitpid errors
      - twinstall: minor code cleanup
      
      Change-Id: I53b156b0ec08755af2742bb71d1523ae38f4a82e
      5064048e
  17. 17 Jul, 2015 1 commit
    • Tao Bao's avatar
      Clean up LOG functions. · dd4d9818
      Tao Bao authored
      For fatal errors, use LOGE to show messages.
      
      Bug: 22236461
      Change-Id: I2b7d761576894ac37fcbadcba690ae14affe8f07
      (cherry picked from commit d7d0f750)
      dd4d9818
  18. 16 Jul, 2015 1 commit
    • Tao Bao's avatar
      Clean up LOG functions. · d7d0f750
      Tao Bao authored
      For fatal errors, use LOGE to show messages.
      
      Bug: 22236461
      Change-Id: Ie2ce7ec769f4502d732fbb53fb7b303c0cf9ed68
      d7d0f750
  19. 14 Jul, 2015 2 commits
  20. 23 Jun, 2015 1 commit
  21. 03 Jun, 2015 1 commit
    • Tao Bao's avatar
      recovery: Switch to clang · 80e46e08
      Tao Bao authored
      And a few trival fixes to suppress warnings.
      
      Change-Id: I38734b5f4434643e85feab25f4807b46a45d8d65
      80e46e08
  22. 30 Apr, 2015 2 commits
  23. 08 Apr, 2015 1 commit
  24. 13 Mar, 2015 1 commit
    • Andrew Dodd's avatar
      Revert "Force sync files written by minzip." · de72a983
      Andrew Dodd authored
      This has been causing significant performance degradation when flashing updates
      for the entirety of 5.0.
      
      I was originally hesitant to do this since we don't want unsynced files on an update,
      however - Our updater-script unmounts /system at the end of installation, which
      will force a sync.  As a result the issue Google was trying to fix won't be present
      for our ZIPs.
      
      This reverts commit a6c142f2.
      
      Change-Id: I89b22e2677c4eda4d3e6338adc0046bf754d43b2
      de72a983
  25. 27 Feb, 2015 2 commits
    • Narayan Kamath's avatar
      Remove more dead code from minzip. · e57c62a0
      Narayan Kamath authored
      I've added explanatory comments to mzExtractRecursive because
      that function will live on as a utility even after we move the
      zip format related logic to libziparchive.
      
      bug: 19472796
      
      Change-Id: Id69db859b9b90c13429134d40ba72c1d7c17aa8e
      e57c62a0
    • Narayan Kamath's avatar
      Remove more dead code from minzip. · 9c0f5d6b
      Narayan Kamath authored
      I've added explanatory comments to mzExtractRecursive because
      that function will live on as a utility even after we move the
      zip format related logic to libziparchive.
      
      bug: 19472796
      
      (cherry-picked from commit c9ccdfd7a42de08c47ab771b94dc5b9d1f957b95)
      
      Change-Id: I8b7fb6fa3eafb2e7ac080ef7a7eceb691b252d8a
      9c0f5d6b
  26. 23 Feb, 2015 1 commit
    • Narayan Kamath's avatar
      Delete unused functions from minzip. · 3e700cff
      Narayan Kamath authored
      This is in preparation of replacing it with libziparchive and
      providing shim wrappers.
      
      bug: 19472796
      Change-Id: I1f2fb59ee7a41434e794e4ed15b754aa2b74a11d
      3e700cff
  27. 08 Feb, 2015 1 commit
  28. 10 Dec, 2014 1 commit
    • Ethan Yonker's avatar
      Use one mizip for all · 738be7a3
      Ethan Yonker authored
      The new minzip did not compile in older trees due to needing
      mmap64. For older trees we will just use mmap instead. Remove all
      files and code pertaining to minzipold. Updater should now build
      properly in older trees as well.
      
      Eliminate use of PLATFORM_VERSION in favor of PLATFORM_SDK_VERSION
      which should be more consistent and reliable.
      
      Change-Id: I38d2b604a73d1b17a2072c7d60e990b81ece0c10
      738be7a3
  29. 29 Oct, 2014 2 commits
  30. 09 May, 2014 1 commit
    • Michael Runge's avatar
      Allow 0-byte files in full OTAs. · f5d9f891
      Michael Runge authored
      Currently, the writeProcessFunction fails when
      there are zero bytes to write, potentially returning
      errno from a previous operation, or hanging
      indefinitely while it waits for a >0 result on a
      write of size 0.  This happens when the output
      file is intended to be zero bytes in size.
      
      Change-Id: Ib3cfcaf66d82942bc89e5f5c64697862403b38da
      f5d9f891
  31. 17 Mar, 2014 1 commit
    • Mark Salyzyn's avatar
      minzip: 64 bit build issue · 76b245c2
      Mark Salyzyn authored
      Regression - verification and extraction on memory, not files
      
      Bug: 12188746
      Change-Id: Ib6facc4aff6be3a31a7d184ef1c493fdd4012c21
      76b245c2
  32. 13 Feb, 2014 1 commit
    • Doug Zongker's avatar
      add mzGetStoredEntry function · a9300301
      Doug Zongker authored
      mzGetStoredEntry gives you a pointer and address to the data of a zip
      entry, assuming that entry is stored rather than deflated.
      
      Change-Id: Ifb39777c98d1d50475ef7de419cf28935f5f9965
      a9300301