- 29 Sep, 2016 1 commit
-
-
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)
-
- 27 Sep, 2016 1 commit
-
-
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)
-
- 13 Sep, 2016 1 commit
-
-
Tianjie Xu authored
Bug: 31383361 Change-Id: I0de920916da213528d73b742e4823b4a98c63ea1 (cherry picked from commit 1c1864f3)
-
- 12 Sep, 2016 1 commit
-
-
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
-
- 17 Aug, 2016 1 commit
-
-
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)
-
- 12 Aug, 2016 2 commits
-
-
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
-
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
-
- 21 Jul, 2016 1 commit
-
-
Bill Yi authored
Change-Id: If24c94c20f8e4c37c119dcaff765e9ee59e48ef4 Auto-generated-cl: translation import
-
- 15 Jul, 2016 1 commit
-
-
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
-
- 14 Jul, 2016 3 commits
-
-
Tianjie Xu authored
The veritymode string used by the bootloader should be lowercase 'eio' instead of 'EIO'. Fix the typo and change to strcasecmp. Bug: 27175949 Change-Id: I376dacc70eef7364e2b9931a7c940adedcdb1929
-
Tianjie Xu authored
-
Tianjie Xu authored
Read all blocks in system and vendor partition during boot time so that dm-verity could verify this partition is properly flashed. Bug: 27175949 Change-Id: I38ff7b18ee4f2733e639b89633d36f5ed551c989
-
- 12 Jul, 2016 1 commit
-
-
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
-
- 09 Jul, 2016 1 commit
-
-
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
-
- 06 Jul, 2016 1 commit
-
-
Yabin Cui authored
Bug: 29945717 Change-Id: I934fd6c52b0111937fa75455de2fa4157fb30f6f
-
- 01 Jul, 2016 1 commit
-
- 30 Jun, 2016 1 commit
-
-
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
-
- 24 Jun, 2016 2 commits
-
-
Tianjie Xu authored
am: c37c5c34 Change-Id: I163541137bf8c421276383855d36ab127d2ddf95
-
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
-
- 21 Jun, 2016 2 commits
- 16 Jun, 2016 1 commit
-
-
Tianjie Xu authored
am: 31f8cc84 Change-Id: Ie50652158b65d723346ffff18c85cbaab11820e1
-
- 15 Jun, 2016 1 commit
-
-
Tianjie Xu authored
Check the results from applypatch in PerformCommandDiff; and abort the update on failure. Bug:29339536 Change-Id: I5087d79ba532b54250f4c17560524255c8a4fabc
-
- 14 Jun, 2016 1 commit
-
- 13 Jun, 2016 2 commits
- 10 Jun, 2016 3 commits
-
-
Tianjie Xu authored
am: b0ddae55 Change-Id: I8be36165769d4159e4578f9fea54f332e4e77c6c
-
Tao Bao authored
Bug: 27253717 Change-Id: I6e63b2a80b7b2948c16e1b57dedc856d52456ac9
-
Tianjie Xu authored
Parse the build.version.incremental from the metadata of the update package; and log it to last_install. Example: In metadata we read: post-build-incremental=2951741 pre-build-incremental=2943039 In last install we log: source_build: 2943039 target_build: 2951741 Bug: 28658632 Change-Id: I0a9cc2d01644846e18bda31f4193ff40e8924486
-
- 08 Jun, 2016 3 commits
-
-
Alain Vongsouvanh authored
am: 771b6eb8 Change-Id: Icc7290bbdf7b7420bab34b56f4e368f93b007053
-
Alain Vongsouvanh authored
Change-Id: I3696fe3e86e0222c7c26b0aa2bf1dd8e03ac5315
-
Alain Vongsouvanh authored
am: 5b00110e Change-Id: I88ab75e875cea8813ab4bdc9f099c31609ace6fd
-
- 07 Jun, 2016 1 commit
-
-
Alain Vongsouvanh authored
Making animation_fps protected and adding support for 0 frames intro. BUG: 29085786 Change-Id: I07b44570022bad89661973178d453592c01f3f10
-
- 04 Jun, 2016 1 commit
-
-
Tao Bao authored
-
- 03 Jun, 2016 3 commits
-
-
Tianjie Xu authored
am: 7ce287d4 * commit '7ce287d4': Call ioctl before each write on retry Change-Id: Iae05ceca190c253d0be3ae9e4054abf4d0dbe751
-
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)
-
Tianjie Xu authored
If the update is a retry, ioctl(BLKDISCARD) the destination blocks before writing to these blocks. Bug: 28990135 Change-Id: I1e703808e68ebb1292cd66afd76be8fd6946ee59
-
- 24 May, 2016 1 commit
-
-
Elliott Hughes authored
Bug: http://b/28748484 Change-Id: Ie86a265f4699503471e7c717d65677a916dbd25b
-
- 23 May, 2016 2 commits
-
-
Tianjie Xu authored
am: 50f64173 * commit '50f64173': Allow recovery to return error codes Change-Id: I4613291b3b4a0c34d5e6999f240465237472302e
-
Tianjie Xu authored
-