1. 13 Apr, 2016 1 commit
  2. 31 Mar, 2016 1 commit
    • Mark Salyzyn's avatar
      recovery: use __android_log_pmsg_file_write for log files · 13aca598
      Mark Salyzyn authored
      (cherry-pick from commit a4f701af)
      
      - Add call to __android_log_pmsg_file_write for recovery logging.
      - Add call to refresh pmsg if we reboot back into recovery and then
        allow overwrite of those logs.
      - Add a new one-time executable recovery-refresh that refreshes pmsg
        in post-fs phase of init. We rely on pmsg eventually scrolling off
        to age the content after recovery-persist has done its job.
      - Add a new one-time executable recovery-persist that transfers from
        pmsg to /data/misc/recovery/ directory if /cache is not mounted
        in post-fs-data phase of init.
      - Build and appropriately trigger the above two as required if
        BOARD_CACHEIMAGE_PARTITION_SIZE is undefined.
      - Add some simple unit tests
      
      NB: Test failure is expected on systems that do not deliver either
      the recovery-persist or recovery-refresh executables, e.g. systems
      with /cache. Tests also require a timely reboot sequence of test
      to truly verify, tests provide guidance on stderr to direct.
      
      Bug: 27176738
      Change-Id: I17bb95980234984f6b2087fd5941b0a3126b706b
      13aca598
  3. 18 Mar, 2016 1 commit
    • Prashant Malani's avatar
      recovery: Move SwipeDetector into common location · 9020e0f1
      Prashant Malani authored
      The SwipeDetector class is used almost unchanged in all locations.
      
      This patch moves it into the recovery module, from which devices can
      reference it if required.
      
      The class is now renamed to WearSwipeDetector.
      
      Bug: 27407422
      Change-Id: Ifd3c7069a287548b89b14ab5d6d2b90a298e0145
      9020e0f1
  4. 23 Feb, 2016 1 commit
  5. 04 Feb, 2016 1 commit
  6. 06 Jan, 2016 1 commit
  7. 08 Dec, 2015 1 commit
    • Tao Bao's avatar
      Add update_verifier for A/B OTA update. · 7197ee0e
      Tao Bao authored
      update_verifier checks the integrity of the updated system and vendor
      partitions on the first boot post an A/B OTA update. It marks the
      current slot as having booted successfully if it passes the verification.
      
      This CL doesn't perform any actual verification work which will be
      addressed in follow-up CLs.
      
      Bug: 26039641
      Change-Id: Ia5504ed25b799b48b5886c2fc68073a360127f42
      (cherry picked from commit 1171d3a1)
      7197ee0e
  8. 07 Dec, 2015 1 commit
    • Tao Bao's avatar
      Add update_verifier for A/B OTA update. · 1171d3a1
      Tao Bao authored
      update_verifier checks the integrity of the updated system and vendor
      partitions on the first boot post an A/B OTA update. It marks the
      current slot as having booted successfully if it passes the verification.
      
      This CL doesn't perform any actual verification work which will be
      addressed in follow-up CLs.
      
      Bug: 26039641
      Change-Id: Ia5504ed25b799b48b5886c2fc68073a360127f42
      1171d3a1
  9. 16 Nov, 2015 2 commits
    • Dan Albert's avatar
      Stop using libstdc++. · 56deefba
      Dan Albert authored
      These are already getting libc++, so it isn't necessary. If any of the
      other static libraries (such as adb) use new or delete from libc++,
      there will be symbol collisions.
      
      Change-Id: I55e43ec60006d3c2403122fa1174bde06f18e09f
      (cherry picked from commit e49a9e52)
      56deefba
    • Tao Bao's avatar
      recovery: Switch to clang · 7101b2e2
      Tao Bao authored
      And a few trival fixes to suppress warnings.
      
      Change-Id: Id28e3581aaca4bda59826afa80c0c1cdfb0442fc
      (cherry picked from commit 80e46e08)
      7101b2e2
  10. 28 Oct, 2015 1 commit
  11. 09 Sep, 2015 1 commit
  12. 25 Aug, 2015 1 commit
    • Tao Bao's avatar
      recovery: Factor out wear_ui.{cpp,h} into bootable/recovery. · 337db14f
      Tao Bao authored
      Every watch has a (mostly identical) copy of the wear_ui. Factor them
      out into a single copy for easier maintenance. Device-specific settings
      should be defined in recovery_ui.cpp that inherits WearRecoveryUI class.
      
      Bug: 22451422
      Change-Id: Id07efca37d1b1d330e6327506c7b73ccf6ae9241
      337db14f
  13. 24 Jul, 2015 1 commit
  14. 20 Jul, 2015 1 commit
  15. 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
  16. 19 May, 2015 1 commit
    • Dan Albert's avatar
      Stop using libstdc++. · e49a9e52
      Dan Albert authored
      These are already getting libc++, so it isn't necessary. If any of the
      other static libraries (such as adb) use new or delete from libc++,
      there will be symbol collisions.
      
      Change-Id: I55e43ec60006d3c2403122fa1174bde06f18e09f
      e49a9e52
  17. 13 Apr, 2015 1 commit
    • Elliott Hughes's avatar
      Move the menu header out of the menu. · 8fd86d77
      Elliott Hughes authored
      This makes it easier for us to deal with arbitrary information at the
      top, and means that headers added by specific commands don't overwrite
      the default ones.
      
      Add the fingerprint back, but broken up so it fits even on sprout's
      display.
      
      Change-Id: Id71da79ab1aa455a611d72756a3100a97ceb4c1c
      8fd86d77
  18. 10 Apr, 2015 1 commit
  19. 09 Apr, 2015 1 commit
    • Elliott Hughes's avatar
      Move default implementations into Device. · 9e7ae8a6
      Elliott Hughes authored
      The current abstract class was a nice idea but has led to a lot of
      copy & paste in practice. Right now, no one we know of has any extra
      menu items, so let's make the default menu available to everyone.
      
      (If we assume that someone somewhere really does need custom
      device-specific menu options, a better API would let them add to
      our menu rather than replacing it.)
      
      Change-Id: I59f6a92f3ecd830c2ce78ce9da19eaaf472c5dfa
      9e7ae8a6
  20. 11 Mar, 2015 1 commit
  21. 10 Mar, 2015 1 commit
  22. 19 Feb, 2015 2 commits
    • Dan Albert's avatar
      Kill of most of the remainder of minadbd. · f3a57269
      Dan Albert authored
      I think everything left now is here to stay (services.c might get
      massaged in to libadbd if it gets refactored).
      
      Bug: 17626262
      Change-Id: I01faf8b277a601a40e3a0f4c3b8206c97f1d2ce6
      f3a57269
    • Dan Albert's avatar
      Use headers from adb. · 1ddd3505
      Dan Albert authored
      adb.h has diverged a bit, so that one will be more involved, but these
      three are all trivial, unimportant changes.
      
      Change-Id: Ief8474c1c2927d7e955adf04f887c76ab37077a6
      1ddd3505
  23. 18 Feb, 2015 1 commit
  24. 23 Jan, 2015 1 commit
  25. 25 Nov, 2014 1 commit
  26. 07 Nov, 2014 1 commit
  27. 10 Jul, 2014 2 commits
    • Doug Zongker's avatar
      do sdcard sideloading through the fuse filesystem · 945fc68c
      Doug Zongker authored
      Make a fuse filesystem that sits on top of the selected package file
      on the sdcard, so we can verify that the file contents don't change
      while being read and avoid copying the file to /tmp (that is, RAM)
      before verifying and installing it.
      
      Change-Id: Ifd982aa68bfe469eda5f839042648654bf7386a1
      945fc68c
    • Doug Zongker's avatar
      refactor fuse sideloading code · 18a78e0a
      Doug Zongker authored
      Split the adb-specific portions (fetching a block from the adb host
      and closing the connections) out from the rest of the FUSE filesystem
      code, so that we can reuse the fuse stuff for installing off sdcards
      as well.
      
      Change-Id: I0ba385fd35999c5f5cad27842bc82024a264dd14
      18a78e0a
  28. 18 Jun, 2014 1 commit
  29. 17 Jun, 2014 1 commit
    • JP Abgrall's avatar
      Support F2FS for the data partition · 37aedb3f
      JP Abgrall authored
      
      This adds F2FS support
      - for wiping a device
      - for the install "format" command.
      
      Note: crypto data in "footer" with a default/negative length
      is not supported, unlike with "ext4".
      
      Change-Id: I8d141a0d4d14df9fe84d3b131484e9696fcd8870
      Signed-off-by: default avatarJP Abgrall <jpa@google.com>
      37aedb3f
  30. 11 Mar, 2014 3 commits
    • Doug Zongker's avatar
      remove pixelflinger from recovery · 16f97c39
      Doug Zongker authored
      Recovery now draws directly to the framebuffer by rolling its own
      graphics code, rather than depending on libpixelflinger.
      
      The recovery UI is modified slightly to eliminate operations that are
      slow with the software implementation: when the text display / menu is
      turned on, it now appears on a black background instead of a dimmed
      version of the recovery icon.
      
      There's probably substantial room for optimization of the graphics
      operations.
      
      Bug: 12131110
      Change-Id: Iab6520e0a7aaec39e2ce39377c10aef82ae0c595
      
      Conflicts:
      	minui/resources.c
      16f97c39
    • Doug Zongker's avatar
      allow CheckKey to request mounting /system · 4db31d20
      Doug Zongker authored
      Also provide a default implementation of CheckKey that's reasonable
      for many devices (those that have power and volume keys).
      
      Change-Id: Icf6c7746ebd866152d402059dbd27fd16bd51ff8
      4db31d20
    • Doug Zongker's avatar
      remove pixelflinger from recovery · 39cf417e
      Doug Zongker authored
      Recovery now draws directly to the framebuffer by rolling its own
      graphics code, rather than depending on libpixelflinger.
      
      The recovery UI is modified slightly to eliminate operations that are
      slow with the software implementation: when the text display / menu is
      turned on, it now appears on a black background instead of a dimmed
      version of the recovery icon.
      
      There's probably substantial room for optimization of the graphics
      operations.
      
      Bug: 12131110
      Change-Id: Iab6520e0a7aaec39e2ce39377c10aef82ae0c595
      39cf417e
  31. 03 Mar, 2014 1 commit
  32. 13 Feb, 2014 2 commits
  33. 16 Jan, 2014 2 commits
    • Doug Zongker's avatar
      program to store unencrypted files in an encrypted filesystem · 76adfc53
      Doug Zongker authored
      uncrypt can read a file on an encrypted filesystem and rewrite it to
      the same blocks on the underlying (unencrypted) block device.  This
      destroys the contents of the file as far as the encrypted filesystem
      is concerned, but allows the data to be read without the encryption
      key if you know which blocks of the raw device to access.  uncrypt
      produces a "block map" file which lists the blocks that contain the file.
      
      For unencrypted filesystem, uncrypt will produce the block map without
      touching the data.
      
      Bug: 12188746
      Change-Id: Ib7259b9e14dac8af406796b429d58378a00c7c63
      76adfc53
    • 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