1. 30 Jan, 2015 1 commit
  2. 19 Aug, 2014 2 commits
  3. 13 Feb, 2014 1 commit
  4. 16 Jan, 2014 1 commit
    • Doug Zongker's avatar
      do verification and extraction on memory, not files · 99916f04
      Doug Zongker authored
      Changes minzip and recovery's file signature verification to work on
      memory regions, rather than files.
      
      For packages which are regular files, install.cpp now mmap()s them
      into memory and then passes the mapped memory to the verifier and to
      the minzip library.
      
      Support for files which are raw block maps (which will be used when we
      have packages written to encrypted data partitions) is present but
      largely untested so far.
      
      Bug: 12188746
      Change-Id: I12cc3e809834745a489dd9d4ceb558cbccdc3f71
      99916f04
  5. 09 Jul, 2013 1 commit
    • Doug Zongker's avatar
      recovery: move log output to stdout · fafc85b4
      Doug Zongker authored
      Recovery currently has a random mix of messages printed to stdout and
      messages printed to stderr, which can make logs hard to read.  Move
      everything to stdout.
      
      Change-Id: Ie33bd4a9e1272e731302569cdec918e0534c48a6
      fafc85b4
  6. 16 Oct, 2012 1 commit
  7. 30 Mar, 2012 1 commit
  8. 15 Sep, 2010 1 commit
    • Doug Zongker's avatar
      close update package before installing; allow remount · 8e5e4dad
      Doug Zongker authored
      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
      8e5e4dad
  9. 18 Feb, 2010 1 commit
    • Doug Zongker's avatar
      relocate applypatch; add type system and new functions to edify · 512536a5
      Doug Zongker authored
      - Move applypatch to this package (from build).
      
      - Add a rudimentary type system to edify:  instead of just returning a
        char*, functions now return a Value*, which is a struct that can
        carry different types of value (currently just STRING and BLOB).
        Convert all functions to this new scheme.
      
      - Change the one-argument form of package_extract_file to return a
        Value of the new BLOB type.
      
      - Add read_file() to load a local file and return a blob, and
        sha1_check() to test a blob (or string) against a set of possible
        sha1s.  read_file() uses the file-loading code from applypatch so it
        can read MTD partitions as well.
      
      This is the start of better integration between applypatch and the
      rest of edify.
      
      b/2361316 - VZW Issue PP628: Continuous reset to Droid logo:
                  framework-res.apk update failed (CR LIBtt59130)
      
      Change-Id: Ibd038074749a4d515de1f115c498c6c589ee91e5
      512536a5
  10. 03 Feb, 2010 1 commit
    • Doug Zongker's avatar
      bump updater API version to 3; deprecate firmware update command · e08991e0
      Doug Zongker authored
      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
      e08991e0
  11. 13 Nov, 2009 1 commit
  12. 22 Jun, 2009 1 commit
    • Doug Zongker's avatar
      add device extension mechanism to updater · 2b0fdc65
      Doug Zongker authored
      Allow devices (in BoardConfig.mk) to define additional static
      libraries to be linked in to updater, to make device-specific
      functions available in edify scripts.  Modify the updater makefile to
      arrange for device libraries to register their edify functions.
      2b0fdc65
  13. 18 Jun, 2009 1 commit
    • Doug Zongker's avatar
      let the "firmware" command take the file straight from the package · fb2e3af3
      Doug Zongker authored
      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.
      fb2e3af3
  14. 12 Jun, 2009 2 commits
    • Doug Zongker's avatar
      fixes to edify and updater script · d9c9d10d
      Doug Zongker authored
      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".
      d9c9d10d
    • Doug Zongker's avatar
      edify extensions for OTA package installation, part 2 · 8edb00c9
      Doug Zongker authored
      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.
      8edb00c9
  15. 11 Jun, 2009 1 commit
    • Doug Zongker's avatar
      edify extensions for OTA package installation, part 1 · 9931f7f3
      Doug Zongker authored
      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).
      9931f7f3