1. 19 Aug, 2014 1 commit
  2. 18 Aug, 2014 1 commit
    • Doug Zongker's avatar
      clear BCB in misc partition before rebooting · 2efc9d99
      Doug Zongker authored
      Something is leaving behind wipe commands in the BCB area of the /misc
      partition.  We don't know what is doing that.  It should always be
      safe to zero out that area from uncrypt, though (because if uncrypt is
      running then it's got the command we want in the recovery command file
      rather than the BCB).
      
      Bug: 16715412
      Change-Id: Iad01124287f13b80ff71d6371db6371f43c43211
      2efc9d99
  3. 14 Aug, 2014 2 commits
  4. 05 Aug, 2014 1 commit
  5. 06 Aug, 2014 2 commits
    • Andres Morales's avatar
      Erase PST partition if its marked to be erased. · ee193879
      Andres Morales authored
      We need to wipe the challenges on this partition
      if OEM unlock is enabled, as this is a signal that
      the user has opted out of factory reset protection.
      
      go/factory-reset
      
      Bug: 16633064
      Change-Id: Icb8f1433bf99ca57813f5b72d5a3dd15fa94a263
      ee193879
    • Doug Zongker's avatar
      remove spurious parens from error message · 2b5f0e0f
      Doug Zongker authored
      These error messages include empty parens after each string
      substition.  Ill-advised cut and paste, probably.
      
      Bug: 16467401
      Change-Id: Ib623172d6228354afdcc2e33442cc53a07f0ecbc
      2b5f0e0f
  6. 04 Aug, 2014 1 commit
    • JP Abgrall's avatar
      Fix length printing + formats · 78d458c3
      JP Abgrall authored
      Fix wrong argument order.
      Fix for 32 vs 64 bit.
      
      (reported by htc)
      
      Change-Id: Ie37a280bed2848199bcc075500e1326e371cd326
      78d458c3
  7. 31 Jul, 2014 1 commit
  8. 22 Jul, 2014 1 commit
    • Michael Runge's avatar
      Auto create parent directories for rename support · a91ecc59
      Michael Runge authored
      Sometimes renames will move a file into a directory
      that does not yet exist.  This will create the
      parent directories, using the same symlink logic,
      to ensure that there is a valid destination.
      
      Change-Id: Iaa005a12ce800c39f4db20f7c25a2a68cb40a52d
      a91ecc59
  9. 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
  10. 08 Jul, 2014 1 commit
    • Doug Zongker's avatar
      drop APPLY_CACHE and refactor APPLY_EXT · 93950229
      Doug Zongker authored
      Drop support for sideloading OTA packages of the cache partition (a
      half-solution that's long since been deprecated by "adb sideload").
      Refactor the code to sideload OTA packages from SD cards: remove the
      installation code from the file browser.
      
      Change-Id: Id0dff6b27c4a5837546f174f50e2e1d0379c43db
      93950229
  11. 02 Jul, 2014 1 commit
    • Doug Zongker's avatar
      sideload without holding the whole package in RAM · 075ad800
      Doug Zongker authored
      Implement a new method of sideloading over ADB that does not require
      the entire package to be held in RAM (useful for low-RAM devices and
      devices using block OTA where we'd rather have more RAM available for
      binary patching).
      
      We communicate with the host using a new adb service called
      "sideload-host", which makes the host act as a server, sending us
      different parts of the package file on request.
      
      We create a FUSE filesystem that creates a virtual file
      "/sideload/package.zip" that is backed by the ADB connection -- users
      see a normal file, but when they read from the file we're actually
      fetching the data from the adb host.  This file is then passed to the
      verification and installation systems like any other.
      
      To prevent a malicious adb host implementation from serving different
      data to the verification and installation phases of sideloading, the
      FUSE filesystem verifies that the contents of the file don't change
      between reads -- every time we fetch a block from the host we compare
      its hash to the previous hash for that block (if it was read before)
      and cause the read to fail if it changes.
      
      One necessary change is that the minadbd started by recovery in
      sideload mode no longer drops its root privileges (they're needed to
      mount the FUSE filesystem).  We rely on SELinux enforcement to
      restrict the set of things that can be accessed.
      
      Change-Id: Ida7dbd3b04c1d4e27a2779d88c1da0c7c81fb114
      075ad800
  12. 25 Jun, 2014 2 commits
  13. 24 Jun, 2014 2 commits
  14. 25 Jun, 2014 1 commit
  15. 18 Jun, 2014 1 commit
  16. 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
  17. 12 Jun, 2014 1 commit
  18. 09 Jun, 2014 1 commit
    • Doug Zongker's avatar
      advance progress bar during block OTA installations · 43772d26
      Doug Zongker authored
      While executing syspatch and package_extract_file() calls with don't
      care maps (both of which are used to rewrite the system image in
      incremental and full block OTAs, respectively), pass a progress
      callback in and use it to update the visible progress bar.
      
      Change-Id: I1d3742d167c1bb2130571eb5103b7795c65ff371
      43772d26
  19. 06 Jun, 2014 7 commits
  20. 03 Jun, 2014 1 commit
    • Doug Zongker's avatar
      restore holo UI in recovery -- DO NOT MERGE · dff8afe1
      Doug Zongker authored
      Since we don't have quantum assets for recovery yet, go back to the
      holo appearance (dark background, blue glowing progress bar) for
      lmp-preview.
      
      Change-Id: Id4d3f23e0a6251a12aa42f3793cff347f38b4243
      dff8afe1
  21. 23 May, 2014 1 commit
    • Doug Zongker's avatar
      disable async reboot during package installation · c704e06c
      Doug Zongker authored
      The default recovery UI will reboot the device when the power key is
      pressed 7 times in a row, regardless of what recovery is doing.
      Disable this feature during package installation, to minimize the
      chance of corrupting the device due to a mid-install reboot.  (Debug
      packages can explicitly request that the feature be reenabled.)
      
      Change-Id: I20f3ec240ecd344615d452005ff26d8dd7775acf
      c704e06c
  22. 16 May, 2014 8 commits