1. 03 Oct, 2013 1 commit
  2. 02 Oct, 2013 1 commit
  3. 12 Sep, 2013 1 commit
  4. 11 Sep, 2013 2 commits
    • Doug Zongker's avatar
      fix secure adb in recovery · cc2958fd
      Doug Zongker authored
      Recovery's init.rc was missing a line (added to the main system's
      init.rc in change Ic97fd464440ff4a29fc9da7ad15949ac5215ade3) is
      required for secure adb to work.
      
      Change-Id: Id79b94d2abb4cbe3cca7cabeb4bc5faf7205e56b
      cc2958fd
    • Nick Kralevich's avatar
      Don't apply permission changes to symlink. · d456944f
      Nick Kralevich authored
      Bug: 10183961
      Bug: 10186213
      Bug: 8985290
      Change-Id: I57cb14af59682c5f25f1e091564548bdbf20f74e
      d456944f
  5. 10 Sep, 2013 3 commits
    • Nick Kralevich's avatar
      Don't apply permission changes to symlink. · e461251e
      Nick Kralevich authored
      Bug: 10183961
      Bug: 10186213
      Bug: 8985290
      Change-Id: I57cb14af59682c5f25f1e091564548bdbf20f74e
      e461251e
    • The Android Automerger's avatar
    • Nick Kralevich's avatar
      updater: introduce and set_metadata and set_metadata_recursive · 5dbdef0e
      Nick Kralevich authored
      Introduce two new updater functions:
      
      * set_metadata
      * set_metadata_recursive
      
      Long term, these functions are intended to be more flexible replacements
      for the following methods:
      
      * set_perm
      * set_perm_recursive
      
      Usage:
      
        set_metadata("filename", "key1", "value1", "key2", "value2", ...)
        set_metadata_recursive("dirname", "key1", "value1", "key2", "value2", ...)
      
      Description:
      
      set_metadata() and set_metadata_recursive() set the attributes on a file/directory
      according to the key/value pairs provided. Today, the following keys are
      supported:
      
      * uid
      * gid
      * mode (set_perm_extd only)
      * fmode (set_perm_extd_recursive only)
      * dmode (set_perm_extd_recursive only)
      * selabel
      * capabilities
      
      Unknown keys are logged as warnings, but are not fatal errors.
      
      Examples:
      
      * set_metadata("/system/bin/netcfg", "selabel", "u:object_r:system_file:s0");
      
      This sets the SELinux label of /system/bin/netcfg to u:object_r:system_file:s0.
      No other changes occur.
      
      * set_metadata("/system/bin/netcfg", "uid", 0, "gid", 3003, "mode", 02750, "selabel", "u:object_r:system_file:s0", "capabilities", 0x0);
      
      This sets /system/bin/netcfg to uid=0, gid=3003, mode=02750,
      selinux label=u:object_r:system_file:s0, and clears the capabilities
      associated with the file.
      
      * set_metadata_recursive("/system", "uid", 0, "gid", 0, "fmode", 0644, "dmode", 0755, "selabel", "u:object_r:system_file:s0", "capabilities", 0x0);
      
      All files and directories under /system are set to uid=0, gid=0,
      and selinux label=u:object_r:system_file:s0. Directories are set to
      mode=0755.  Files are set to mode=0644 and all capabilities are cleared.
      
      Bug: 10183961
      Bug: 10186213
      Bug: 8985290
      Change-Id: Ifdcf186a7ed45265511dc493c4036e1ac5e3d0af
      5dbdef0e
  6. 09 Sep, 2013 1 commit
  7. 03 Sep, 2013 2 commits
  8. 30 Aug, 2013 1 commit
    • Doug Zongker's avatar
      recovery: fix rebooting · 77ea71d6
      Doug Zongker authored
      Change I84c0513acb549720cb0e8c9fcbda0050f5c396f5 moved reboot
      functionality into init but did not update the recovery partition; so
      "adb reboot" and /system/bin/reboot in recovery are both broken.
      
      Change-Id: Ie2d14627a686ffb5064256b6c399723636dff116
      77ea71d6
  9. 21 Aug, 2013 1 commit
    • Doug Zongker's avatar
      recovery: install packages in a known mount environment · 239ac6ab
      Doug Zongker authored
      When installing a package, we should have /tmp and /cache mounted and
      nothing else.  Ensure this is true by explicitly mounting them and
      unmounting everything else as the first step of every install.
      
      Also fix an error in the progress bar that crops up when you do
      multiple package installs in one instance of recovery.
      
      Change-Id: I4837ed707cb419ddd3d9f6188b6355ba1bcfe2b2
      239ac6ab
  10. 31 Jul, 2013 1 commit
    • Doug Zongker's avatar
      notify about pending long press · c0441d17
      Doug Zongker authored
      Recovery changes:
      
      - add a method to the UI class that is called when a key is held down
        long enough to be a "long press" (but before it is released).
        Device-specific subclasses can override this to indicate a long
        press.
      
      - do color selection for ScreenRecoveryUI's menu-and-log drawing
        function.  Subclasses can override this to customize the colors they
        use for various elements.
      
      - Include the value of ro.build.display.id in the menu headers, so you
        can see on the screen what version of recovery you are running.
      
      Change-Id: I426a6daf892b9011638e2035aebfa2831d4f596d
      c0441d17
  11. 26 Jul, 2013 1 commit
  12. 18 Jul, 2013 1 commit
    • Nick Kralevich's avatar
      Update OTA installer to understand SELinux filesystem labels · 627eb30f
      Nick Kralevich authored
      Modify the OTA installer to understand SELinux filesystem labels.
      
      We do this by introducing new set_perm2 / set_perm2_recursive
      calls, which understand SELinux filesystem labels. These filesystem
      labels are applied at the same time that we apply the
      UID / GID / permission changes.
      
      For compatibility, we preserve the behavior of the existing
      set_perm / set_perm_recursive calls.
      
      If the destination kernel doesn't support security labels, don't
      fail. SELinux isn't enabled on all kernels.
      
      Bug: 8985290
      Change-Id: I99800499f01784199e4918a82e3e2db1089cf25b
      627eb30f
  13. 11 Jul, 2013 12 commits
  14. 10 Jul, 2013 3 commits
  15. 09 Jul, 2013 7 commits
    • Doug Zongker's avatar
      recovery: write partitions more conservatively · c6ab95e9
      Doug Zongker authored
      Write and verify partitions using write(2) and read(2) rather than the
      stdio functions.  Read and write in 4kb blocks.  When writing, fsync()
      every 1MB.
      
      Bug: 9602014
      Change-Id: Ie98ce38e857786fc0f4ebf36bb5ffc93b41bc96f
      c6ab95e9
    • Doug Zongker's avatar
      recovery: try to write EMMC partitions more reliably · 35c474e8
      Doug Zongker authored
      Nexus 4 has flash errors that manifest during large writes (eg, of the
      radio partition).  Writes of some blocks seem to be dropped silently,
      without any errors being returned to the user level.
      
      Make two changes to the partition-writing code:
      
      - break it up into 1MB writes instead of writing partitions with a
        single fwrite() call.  Pause for 50ms in between every chunk.
      
      - read the partition back after writing and verify that we read what
        we wrote.  Drop caches before reading so we (hopefully) are reading
        off the actual flash and not some cache.
      
      Neither of these should be necessary.
      
      Bug: 9602014
      
      Change-Id: Ice2e24dd4c11f1a57968277b5eb1468c772f6f63
      35c474e8
    • Doug Zongker's avatar
    • Doug Zongker's avatar
      recovery: preserve recovery logs across cache wipes · 6d0d7ac0
      Doug Zongker authored
      When doing a cache wipe or a factory reset (which includes a cache
      wipe), save any last* log files in the /cache/recovery directory and
      write them back after reformatting the partition, so that wiping data
      doesn't lose useful log information.
      
      Change-Id: I1f52ae9131760b5e752e136645c19f71b7b166ee
      6d0d7ac0
    • 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
    • Doug Zongker's avatar
      am c870a99c: recovery: write partitions more conservatively · 2148133d
      Doug Zongker authored
      * commit 'c870a99c':
        recovery: write partitions more conservatively
      2148133d
    • Doug Zongker's avatar
      recovery: write partitions more conservatively · c870a99c
      Doug Zongker authored
      Write and verify partitions using write(2) and read(2) rather than the
      stdio functions.  Read and write in 4kb blocks.  When writing, fsync()
      every 1MB.
      
      Bug: 9602014
      Change-Id: Ie98ce38e857786fc0f4ebf36bb5ffc93b41bc96f
      c870a99c
  16. 08 Jul, 2013 2 commits