1. 29 Sep, 2016 1 commit
    • Tianjie Xu's avatar
      DO NOT MERGE Report uncrypt errors in details · 37d7d67c
      Tianjie Xu authored
      Add the error codes for uncrypt and report the failure details in
      uncrypt_status.
      
      Test: uncrypt_error logs correctly in last_install
      Bug: 31603820
      Change-Id: I8e0de845ce1707b6f8f5ae84564c5e93fd5f5ef5
      (cherry picked from commit da44cf18)
      37d7d67c
  2. 27 Sep, 2016 1 commit
    • Tao Bao's avatar
      DO NOT MERGE Duplicate the last_install content into last_log. · a8c0d0b4
      Tao Bao authored
      Currently we save the OTA metrics in last_install, which keeps the data
      for the _last_ install only. This CL logs the same content into last_log
      so that we keep the metrics for every install.
      
      Bug: 31607469
      Test: Apply an update (via OTA and sideload) and check last_log and last_install.
      
      Change-Id: Id8f174d79534fddc9f06d72a4e69b2b1d8ab186c
      (cherry picked from commit f4885adc)
      a8c0d0b4
  3. 13 Sep, 2016 1 commit
  4. 12 Sep, 2016 1 commit
    • Tianjie Xu's avatar
      save uncrypt status to last_install · e16e799d
      Tianjie Xu authored
      Save the uncrypt time cost to /cache/recovery/uncrypt_status. Recovery
      reads the file and saves its contents to last_install.
      
      Bug: 31383361
      Test: Tested on angler and uncrypt_time reports correctly.
      
      (cherry picked from commit fe16b5cc)
      
      Change-Id: Id69681a35c7eb2f0eb21b48e3616dcda82ce41b8
      e16e799d
  5. 17 Aug, 2016 1 commit
    • Tianjie Xu's avatar
      "view recovery logs" will show /tmp/recovery.log · 62ab2a0f
      Tianjie Xu authored
      For A/B devices, "view recovery logs" doesn't work due to the lack
      of cache partition. To help debugging, we'll show /tmp/recovery.log
      instead if /cache is not found.
      
      Change-Id: Idb77c3a4c30388148a210b38d732a7b27e757bba
      Test: Tested on an A/B device and /tmp/recovery.log showed up.
      Bug: 30905700
      (cherry picked from commit a54f75ed)
      62ab2a0f
  6. 12 Aug, 2016 2 commits
    • Alex Deymo's avatar
      Add inttypes.h for PRIu64. · 53c107f0
      Alex Deymo authored
      This missing header is needed to use PRIu64 macros.
      
      Bug: 27178350
      TEST=`mma bootable/recovery` on the failing branch.
      
      Change-Id: I165701e8019256426d3f6a4168db52c6a0197c4d
      53c107f0
    • Alex Deymo's avatar
      Call update_engine_sideload from recovery. · 4344d636
      Alex Deymo authored
      This patch enables sideloading an OTA on A/B devices while running from
      recovery. Recovery accepts the same OTA package format as recent
      versions of GMS, which consists of .zip file with the payload in it.
      
      Bug: 27178350
      TEST=`adb sideload` successfully a full OTA (*)
      TEST=Failed to take several invalid payloads (wrong product,
      fingerprint, update type, serial, etc).
      
      <small>(*) with no postinstall script.</small>
      
      Change-Id: I951869340100feb5a37e41fac0ee59c10095659e
      4344d636
  7. 21 Jul, 2016 1 commit
  8. 15 Jul, 2016 1 commit
    • Tianjie Xu's avatar
      Skip update verification if care_map is not found · da654af6
      Tianjie Xu authored
      Recently flashed devices may not have care_map.txt in /data/ota_package.
      This leads to a failure of update-verifier and prevents boot
      success flag from being set. So, we need to skip verification
      in case the file is not found.
      
      Error message:
      ... I update_verifier: Started with arg 1: nonencrypted
      ... I update_verifier: Booting slot 1: isSlotMarkedSuccessful=0
      ... E update_verifier: Care map /data/ota_package/care_map.txt not found.
      ... E update_verifier: Failed to verify all blocks in care map file
      
      Bug: 30156449
      Change-Id: Ia15f5f3e7ca2ea6981d49678e799b9f70d134faa
      da654af6
  9. 14 Jul, 2016 3 commits
  10. 12 Jul, 2016 1 commit
    • Tianjie Xu's avatar
      Skip update-on-boot for bootreason in blacklist · 27b9fc8a
      Tianjie Xu authored
      Skip the OTA installation when bootreason is 'kernel_panic',
      'Panic' etc.
      
      Change-Id: Ic1202492bffefa1a9d8d0e691b5af979285e552c
      Test: On angler, ota installation skips for one bootreason in the blacklist.
      Bug: 29978689
      27b9fc8a
  11. 09 Jul, 2016 1 commit
    • Elliott Hughes's avatar
      Support landscape layouts. · 6d089a95
      Elliott Hughes authored
      Add support for landscape layouts to the existing portrait support.
      
      Bug: http://b/29418855
      Test: tested manually with "Run graphics test" on flounder/fugu/ryu.
      Change-Id: Ib4a62bf5f2b8a1cef6028a01f05145104660560a
      6d089a95
  12. 06 Jul, 2016 1 commit
  13. 01 Jul, 2016 1 commit
  14. 30 Jun, 2016 1 commit
    • Yabin Cui's avatar
      Create bootloader_message static library. · 2f272c05
      Yabin Cui authored
      bootloader_messages merges bootloader_message_writer
      and bootloader.cpp, so we can use the same library to
      manage bootloader_message in normal boot and recovery mode.
      
      Bug: 29582118
      
      Change-Id: I9efdf776ef8f02b53911ff43a518e035e0c29618
      2f272c05
  15. 24 Jun, 2016 2 commits
    • Tianjie Xu's avatar
      Increase EIO retry count · 6074099c
      Tianjie Xu authored
      am: c37c5c34
      
      Change-Id: I163541137bf8c421276383855d36ab127d2ddf95
      6074099c
    • Tianjie Xu's avatar
      Increase EIO retry count · c37c5c34
      Tianjie Xu authored
      Increase the number of attempts of an OTA update from 3 to 5 in case
      an I/O error happened. This should increase the success rate of the
      update.
      
      Bug: 29619468
      Change-Id: I88a067d9debd55a07be22ed981f395f6e47ec28f
      c37c5c34
  16. 21 Jun, 2016 2 commits
  17. 16 Jun, 2016 1 commit
  18. 15 Jun, 2016 1 commit
    • Tianjie Xu's avatar
      Check the results from applypatch · 31f8cc84
      Tianjie Xu authored
      Check the results from applypatch in PerformCommandDiff; and abort the
      update on failure.
      
      Bug:29339536
      Change-Id: I5087d79ba532b54250f4c17560524255c8a4fabc
      31f8cc84
  19. 14 Jun, 2016 1 commit
  20. 13 Jun, 2016 2 commits
  21. 10 Jun, 2016 3 commits
  22. 08 Jun, 2016 3 commits
  23. 07 Jun, 2016 1 commit
  24. 04 Jun, 2016 1 commit
  25. 03 Jun, 2016 3 commits
    • Tianjie Xu's avatar
      Call ioctl before each write on retry · 57ad046d
      Tianjie Xu authored
      am: 7ce287d4
      
      * commit '7ce287d4':
        Call ioctl before each write on retry
      
      Change-Id: Iae05ceca190c253d0be3ae9e4054abf4d0dbe751
      57ad046d
    • Tao Bao's avatar
      recovery: Add support to brick a device. · b0838186
      Tao Bao authored
      When recovery starts with --brick, it tries to brick the device by
      securely wiping all the partitions as listed in /etc/recovery.brick.
      
      This is designed to support bricking lost devices.
      
      Bug: 27253717
      Change-Id: Ib0bd4f0a3bdaca4febc91fce6b682e3ec74354e2
      (cherry picked from commit 862a4c11)
      b0838186
    • Tianjie Xu's avatar
      Call ioctl before each write on retry · 7ce287d4
      Tianjie Xu authored
      If the update is a retry, ioctl(BLKDISCARD) the destination blocks before
      writing to these blocks.
      
      Bug: 28990135
      Change-Id: I1e703808e68ebb1292cd66afd76be8fd6946ee59
      7ce287d4
  26. 24 May, 2016 1 commit
  27. 23 May, 2016 2 commits