1. 25 Mar, 2015 1 commit
  2. 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
  3. 23 Aug, 2012 1 commit
    • Doug Zongker's avatar
      add simple text to recovery UI · 02ec6b88
      Doug Zongker authored
      - recovery takes a --locale argument, which will be passed by the main
        system
      
      - the locale is saved in cache, in case the --locale argument is
        missing (eg, when recovery is started from fastboot)
      
      - we include images that have prerendered text for many locales
      
      - we split the background states into four (installing update,
        erasing, no command, error) so that appropriate text can be shown.
      
      Change-Id: I731b8108e83d5ccc09a4aacfc1dbf7e86b397aaf
      02ec6b88
  4. 31 Oct, 2011 1 commit
  5. 28 Oct, 2011 1 commit
  6. 19 Oct, 2011 1 commit
    • Doug Zongker's avatar
      allow recovery packages to wipe cache · d0181b8f
      Doug Zongker authored
      updater now has a function "wipe_cache();" which causes recovery to
      wipe the cache partition after the successful installation of the
      package.  Move log copying around a bit so logs and the last_install
      flag file are copied to cache after it's wiped.
      
      Bug: 5314244
      Change-Id: Id35a9eb6dcd626c8f3a3a0076074f462ed3d44bd
      d0181b8f
  7. 04 Mar, 2009 2 commits
  8. 21 Oct, 2008 1 commit