Permalink
Commits on Mar 24, 2017
  1. Merge "Revert "Start hwservicemanager earlier.""

    Thierry Strudel committed with Gerrit Code Review Mar 24, 2017
  2. Merge "Make the xtables lock readable only by AID_RADIO and root."

    lcolitti committed with Gerrit Code Review Mar 24, 2017
  3. Revert "Start hwservicemanager earlier."

    This reverts commit 9e36331.
    
    Reason for revert: a DOA device
    
    Bug: 36546734
    
    Change-Id: I0456247d362fe43b8c37623d04432eb494f68f68
    Steven Moreland committed Mar 24, 2017
  4. Merge "add kill all for shutdown_timeout of 0"

    Treehugger Robot committed with Gerrit Code Review Mar 24, 2017
  5. Merge "Fix spelling error in warning"

    Treehugger Robot committed with Gerrit Code Review Mar 24, 2017
  6. Merge "init: use read_file and write_file to implement do_copy builtin"

    Treehugger Robot committed with Gerrit Code Review Mar 24, 2017
  7. Merge "init: Prevent spin loop while waiting for exec or property"

    Treehugger Robot committed with Gerrit Code Review Mar 24, 2017
  8. Merge "init: Remove superfluous error check"

    Treehugger Robot committed with Gerrit Code Review Mar 24, 2017
  9. Merge "add clear log for reboot start / end"

    Treehugger Robot committed with Gerrit Code Review Mar 24, 2017
  10. add kill all for shutdown_timeout of 0

    - If it is explicitly set to 0, active processes can block
      umount completely. Safe to kill all processes and umount.
    - also add additional sync after emulated partition umount
      as that can change /data partition files
    
    bug: 36004738
    Test: many reboots
    
    Change-Id: I6c9b07b6fdece44b9caec4e45ecf26a20d0eb96e
    Keun-young Park committed Mar 23, 2017
  11. init: use read_file and write_file to implement do_copy builtin

    this will make the implementation more cleaner,
    and has error message output when failed on some operations
    
    also add the O_TRUNC flag explicitly for the open function
    called in write_file.
    
    And add more test on read_file and write_file functions
    
    Test: manual with hikey
    
    Change-Id: Ifc1086a20e85db6980b497b1150a8a7952e672d6
    Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
    liuyq committed Dec 28, 2016
  12. init: Prevent spin loop while waiting for exec or property

    Currently, when we are waiting for an exec service or a property, if
    there are either any services to be restarted or any more commands to
    be run, we set the epoll_timeout to handle these events.  However, we
    don't actually restart and processes or execute any commands while
    waiting, so this essentially turns this waiting into a spin loop,
    particularly in the common case of having more commands to execute,
    where epoll_timeout is set to 0.
    
    The change only sets epoll_timeout if we're not waiting.
    
    Note that the only way to stop waiting for an exec service or a
    property is for a signal or property to be delivered to init, which
    happens through the epoll fds, so it's safe to indefinitely wait for
    epoll to return.
    
    Test: Boot bullhead
    Change-Id: Iae3b217eb28182038b464fd39df8e7d27b5e23ff
    Tom Cherry committed Mar 23, 2017
Commits on Mar 23, 2017
  1. add clear log for reboot start / end

    - hard to tell if reboot itself is problem or not.
    
    bug: 36004738
    Test: reboot and check last kmsg
    Change-Id: I0de0e10eac9ac336cc352ddee22a4a1d9e46cb79
    Keun-young Park committed Mar 23, 2017
  2. init: Remove superfluous error check

    new doesn't return nullptr in C++, so there is no need to check for
    it.
    
    Test: Boot bullhead
    Change-Id: I666afb1ba7082dd8d5b9911605b7e20a5561b49e
    Tom Cherry committed Mar 23, 2017
  3. Merge "Possible null pointer miss on realloc"

    Treehugger Robot committed with Gerrit Code Review Mar 23, 2017
  4. Possible null pointer miss on realloc

    Realloc can return null pointer which
    will cause a crash then. Patch introduces
    check for controlled 'die' in case memory is
    not available
    
    Change-Id: I279028339b1fe756d8a511834e164e59d4cab110
    miklelappo committed Mar 23, 2017
  5. Merge "Switch "adb sideload" over to lseek/read."

    enh committed with Gerrit Code Review Mar 23, 2017
  6. Merge "libziparchive: fix mac os breakage"

    Treehugger Robot committed with Gerrit Code Review Mar 23, 2017
  7. Merge "libcutils: fs_config() add check /odm/etc/fs_config_*"

    Treehugger Robot committed with Gerrit Code Review Mar 23, 2017
  8. Merge "Create dir in /data for vendor customization"

    Treehugger Robot committed with Gerrit Code Review Mar 23, 2017
  9. libziparchive: fix mac os breakage

    Add ftruncate64 to utils/Compat.h definitions for mac.
    
    Change-Id: I82cb46927be911e867b606f4f4429a5e1b1987f7
    Test: builds on mac
    Adam Lesinski committed Mar 23, 2017
  10. Fix spelling error in warning

    Test: m -j32 -k
    Bug: 36450628
    Change-Id: I0f6463f3de3dcf45f396c7f406f8c1d6b79bf7f9
    bdcgoogle committed Mar 23, 2017
  11. Merge "libziparchive: Add ability to backup in ZipWriter"

    Treehugger Robot committed with Gerrit Code Review Mar 23, 2017
  12. Create dir in /data for vendor customization

    Vendor owns /data/vendor.
    
    HAL data must go in /data/vendor/hardware/.
    
    Bug: 34980020
    Test: build and boot AOSP Marlin. Observe /data/vendor and
          /data/vendor/hardware exist and are empty.
    Change-Id: I6fe96e3c76a10a5eb480ba10e10d4d006de56c12
    jeffvanderstoep committed Mar 23, 2017
  13. Merge changes I0ad349f2,I0f528cf1

    * changes:
      fs_mgr: allow using legacy A/B suffix
      fs_mgr: adapt to new A/B support
    Fernando Lugo committed with Gerrit Code Review Mar 23, 2017
  14. Merge "Initialize si_code in siginfo."

    cferris1000 committed with Gerrit Code Review Mar 23, 2017
  15. Merge "logwrapper: add a benchmark for android_fork_execvp_ext"

    Treehugger Robot committed with Gerrit Code Review Mar 23, 2017
  16. logwrapper: add a benchmark for android_fork_execvp_ext

    Current results on an aosp_angler (32 bit) :
    
    Benchmark                           Time           CPU Iterations
    -----------------------------------------------------------------
    BM_android_fork_execvp_ext   15019207 ns    1002131 ns        700
    
    Test: android_fork_execvp_ext_benchmark
    
    Change-Id: I3d4339ff5cbb9a641cbb14f0b55d2b5fc18cdfde
    narayank committed Mar 22, 2017
  17. Merge "Start hwservicemanager earlier."

    Treehugger Robot committed with Gerrit Code Review Mar 23, 2017
  18. fs_mgr: allow using legacy A/B suffix

    Right now all platforms supporting A/B have not fixed
    androidboot.slot_suffix kernel command line parameter. To avoid breaking
    all those platform allow using legacy support bootloaders get fixed.
    
    Bug: 36533366
    Test: boot
    Change-Id: I0ad349f262d0b7f4897f3e184cb053b1440b2d5b
    Signed-off-by: Fernando Lugo <flugo@google.com>
    Fernando Lugo committed Mar 23, 2017
  19. fs_mgr: adapt to new A/B support

    In the new A/B partition support suffixes don't have "_". So, fix fs_mgr
    code that assumes it has "_"
    
    Bug: 36533366
    Test: boot
    Change-Id: I0f528cf1e8fecacb1b4ae34f6dc42e18ebe777bb
    Signed-off-by: Fernando Lugo <flugo@google.com>
    Fernando Lugo committed Mar 22, 2017
  20. Initialize si_code in siginfo.

    There was at least one failure due to si_code being unitialized
    and then examined.
    
    Test: Run the 32 bit and 64 bit version of the unit tests on angler.
    Change-Id: I5455a2cd29afafcd26a49f696e61141bb48478dc
    cferris1000 committed Mar 23, 2017
  21. Merge "Do not access device maps."

    cferris1000 committed with Gerrit Code Review Mar 23, 2017
Commits on Mar 22, 2017
  1. Merge "healthd: Implement scheduleUpdate"

    Treehugger Robot committed with Gerrit Code Review Mar 22, 2017