44906965d0809992052e47e11809ec730813d8b0 |
|
09-Jan-2018 |
Sen Jiang <senj@google.com> |
Merge remote-tracking branch 'goog/upstream-master'. The following commits were reverted: 840703a Fix update over cellular network on guest account eaad5d0 Do not merge to AOSP: Fixes the link to brillo-clang-format in CrOS 740efad Reboot even if a system update is not available. Fixed a few sign compare warnings. Had to ifdef out 2 SquashfsFilesystemTest because it depends on unsquashfs -m. Test: update_engine_unittests Change-Id: I6f4ca5003e78c76064ec60d0797505d8c18d00bf Merged-In: I6f4ca5003e78c76064ec60d0797505d8c18d00bf
|
5011df680621eb477cad8b34f03fba5b542cc2f9 |
|
29-Jun-2017 |
Sen Jiang <senj@google.com> |
Add maximum timestamp to the payload. Added a new field max_timestamp in the protobuf, from now on update_engine will reject any payload without this field. If the OS build timestamp is newer than the max_timestamp, the payload will also be rejected to prevent downgrade. Bug: 36232423 Test: update_engine_unittests Merged-In: Ib20f5f35aaf41165013bada02bc8720917358237 Change-Id: Ib20f5f35aaf41165013bada02bc8720917358237
/system/update_engine/common/hardware_interface.h
|
1677e812f16ce2949238b0ec15d7925ac1035d01 |
|
21-Jun-2017 |
Amin Hassani <ahassani@google.com> |
Adds check/set for first_active_omaha_ping_sent (from vpd). first_active_omaha_ping_sent is a boolean in RW_VPD that is checked to decide whether to send the first active ping (a=-1) to omaha. update_engine reads its value and sets it to "true" after first active ping is sent or if the first ping has been sent already and it does not exits in the vpd (to capture the same feature for older devices). BUG=chromium:717788 TEST=cros_workon_make --test; Deployed on a device and made sure the flag is read and writen properly. CQ-DEPEND=CL:469126 Change-Id: I867d16de1d5d2da4d7a7e1f26aa8e951d90b68f2 Reviewed-on: https://chromium-review.googlesource.com/469107 Commit-Ready: Amin Hassani <ahassani@chromium.org> Tested-by: Amin Hassani <ahassani@chromium.org> Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
/system/update_engine/common/hardware_interface.h
|
e67bb5b953d4551d6ef51a9900117e3ddd0a32c5 |
|
21-Jun-2016 |
Sen Jiang <senj@google.com> |
Make HardwareChromeOS own debugd. It only exists in Chrome OS, Brillo doesn't have it. Test: ./update_engine_unittests Bug: 28800946 Change-Id: I49d2024dbad5e0bf78bbc479f97dabb569b32c56
/system/update_engine/common/hardware_interface.h
|
fb905d9b8d49f8fe41297c7aba2dd0942f1be311 |
|
04-Jun-2016 |
Alex Deymo <deymo@google.com> |
Implement powerwash on Android. Powerwash, the name for the equivalent of a factory reset or /data wipe, can be triggered in Android by writing the desired command to the recovery command file and rebooting into recovery. This patch moves the powerwash scheduling/canceling logic to the HardwareInterface and implements it on Android. Bug: 28700985 TEST=Called update_engine_client passing POWERWASH=1, BCB is stored up to offset 832. Change-Id: If737fd4b9b3e2ed9bce709b3b59f22e9f0a3dc9a
/system/update_engine/common/hardware_interface.h
|
46a9aae85e78179a0acd0d1efd1d99685fb827bb |
|
05-May-2016 |
Alex Deymo <deymo@google.com> |
Fix non-critical updates on boards without an OOBE flow. A recent change in the policy made update_engine to ignore available updates if the OOBE flow is not completed and the update is not critical. Nevertheless, some custom boards don't have a OOBE flow as Chromebooks do and set is_oobe_enabled=false in the policy manager. These board were not getting regular updates because the OOBE flow is considered not completed in those cases. This patch moves the is_oobe_enabled flag to the HardwareInterface class together with the IsOOBEComplete() method and updates the callers to check the IsOOBEEnabled() value before. Bug: 28460247 Bug: 28553821 TEST=Added unittest for the disabled and not complete case. Change-Id: Ifd3ac2dc5e7a43f6c24eb014b7e3eacad22e3ab3
/system/update_engine/common/hardware_interface.h
|
39910dcd1d68987ccee7c3031dc269233a8490bb |
|
10-Nov-2015 |
Alex Deymo <deymo@google.com> |
Split payload application code into a subdirectory. This patch splits from the main libupdate_engine code the part that is strictly used to download and apply a payload into a new static library, moving the code to subdirectories. The new library is divided in two subdirectories: common/ and payload_consumer/, and should not depend on other update_engine files outside those two subdirectories. The main difference between those two is that the common/ tools are more generic and not tied to the payload consumer process, but otherwise they are both compiled together. There are still dependencies from the new libpayload_consumer library into the main directory files and DBus generated files. Those will be addressed in follow up CLs. Bug: 25197634 Test: FEATURES=test emerge-link update_engine; `mm` on Brillo. Change-Id: Id8d0204ea573627e6e26ca9ea17b9592ca95bc23
/system/update_engine/common/hardware_interface.h
|