5b5fa8b412312a41cfd4d7ab475b54d4f730ed2a |
|
07-Oct-2016 |
Alex Deymo <deymo@google.com> |
Add {Get,Set}CohortHint interface. Export the "cohort hint" getter and setter in the client interfaces (D-Bus and Binder). The cohort hint is sent to Omaha on every update check request but can be ignored and/or reset by Omaha on every response. Other minor linter fixes to the affected files. Bug: 31740109 Test: Build with D-Bus and with Binder. Change-Id: I93214f6ffb8662c238b3351e52bf2bdf23e46a9c
/system/update_engine/client_library/include/update_engine/client.h
|
b3fa53bf760bd0a6fd1ef9df28cb425586d733f6 |
|
19-Apr-2016 |
Alex Deymo <deymo@google.com> |
Parse and expose end-of-life flag. Omaha update or noupdate response can include _key=value pairs with arbitrary data. One of those key can be "_eol" with the one of the values "supported", "security-only" or "eol" which notifies the device the end-of-life status of the device with respect to updates. This information is now exposed via GetEolStatus() to the client so it can be properly displayed in the UI. Bug: 27924505 TEST=Added unittest. Run `update_engine_client --eol_status` on link. Change-Id: Icc15f25b4d0b19cc894f5afc52ac7c43c7818982
/system/update_engine/client_library/include/update_engine/client.h
|
2997173235e88c5e4cb13d2844f74afc7b25d6e2 |
|
05-Feb-2016 |
Shuqian Zhao <shuqianz@google.com> |
Add a feature to get the last UpdateAttempt ErrorCode from update_engine For autotest, update_engine test failures are always hard to debug, since the error message is not clear. Add a new flag 'last_attempt_error' to get the last UpdateAttempt ErrorCode from update_engine. Bug:25598547 Test:emerge-peppy update_engine emerge-peppy update_engine_client cros flash a test image to DUT. (on the DUT):update_engine_client --last_attempt_error Compare the results with the update_engine logs, matched. Change-Id: Id12681097ed30b0826cad68809f17f934a07e5b2
/system/update_engine/client_library/include/update_engine/client.h
|
a715f7b8a211b5c4b74206539e9aa7ddacf4b243 |
|
30-Jan-2016 |
Casey Dahlin <sadmac@google.com> |
Properly handle handler registering and unregistering In addition to now supporting unregistering, we now correctly support multiple handlers under DBus, and correctly send initial events under binder. TEST=Verified update_engine_client still works as expected Bug: None Change-Id: I60955d4d9ca61dfe7857b9fc78f77fa4292ed218
/system/update_engine/client_library/include/update_engine/client.h
|
40892497a9b1ea124058baf09f5f2873a15cb696 |
|
26-Jan-2016 |
Casey Dahlin <sadmac@google.com> |
Make client use binder interface on brillo TEST=Verified status and update commands Bug: 25908638 Change-Id: I7994de41001b4e116bffa539f23f1344ab1deae9
/system/update_engine/client_library/include/update_engine/client.h
|
194414134a954d921c8063610304c4fd21f19df2 |
|
07-Jan-2016 |
Casey Dahlin <sadmac@google.com> |
Initialize DBus in CreateInstance We now expect the bus to be ready to go as soon as CreateInstance is finished. The downside is that CreateInstance can now fail when the bus isn't available, so we must handle nullptr returns. Change-Id: I1e8d20f8d85d93e7e8b5e93ee1e5ba6043a347c4 Test: Verified commands continue to work Bug: 26233663
/system/update_engine/client_library/include/update_engine/client.h
|
97c870518ce1149b32966d98ebfe93f3eb5d1fef |
|
06-Jan-2016 |
Casey Dahlin <sadmac@google.com> |
Introduce status handlers and use them in client We introduce a StatusUpdateHandler class which can be overridden to provide a method with which to react to status updates. This replaces manual dbus logic in several places in update_engine_client with a consistent interface for asynchronously handling status updates. Change-Id: Idca4229de82074fb7a87a315b45dd0292c1b1f16 Test: Confirmed --update blocks and resumes correctly Bug: 26233663
/system/update_engine/client_library/include/update_engine/client.h
|
ef361136cea1e423dc462d2b347923ae60b2cf08 |
|
17-Dec-2015 |
Casey Dahlin <sadmac@google.com> |
Move all blocking client calls to libupdate_engine_client Change-Id: I27bc86ad2eef3a573c60fde1bb10b6b37af81c1c Test: Affected commands continue to work Bug: 26233663 Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/update_engine/client_library/include/update_engine/client.h
|
87ab88e35fac5d3ded1c70c8911d307ec47a7db9 |
|
17-Dec-2015 |
Casey Dahlin <sadmac@google.com> |
Port all available calls to libupdate_engine_client This is as far as the port can go without improving the library itself. Change-Id: I5d5dbf14b62746786364b2a7e1a9131d8ef7bfb1 Test: All affected commands still signal the daemon on dragonboard Bug: 26233663
/system/update_engine/client_library/include/update_engine/client.h
|
e844c1a5604765bbddafa7e05f1143a27f136747 |
|
16-Dec-2015 |
Casey Dahlin <sadmac@google.com> |
Port update_engine_client ResetStatus command to lib This is the first step in getting update_engine_client completely off of direct DBus calls Test: Ran --reset_status command and verified update_engine received the signal. Bug: 26233663 Signed-off-by: Casey Dahlin <sadmac@google.com> Change-Id: Iac54d890fd796f91a7813755d6061cf468255347
/system/update_engine/client_library/include/update_engine/client.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/client_library/include/update_engine/client.h
|
16daa08470beb5021b85618f1b3ee214d89e59a1 |
|
02-Oct-2015 |
Christopher Wiley <wiley@google.com> |
Add DBus hiding client library This library hides update_engine's legacy DBus dependencies until we can remove them completely. Bug: 24547247 Test: mmm system/update_engine; emerge-panther update_engine Change-Id: I7f87f2a7c31d0940c376ef43368e53b0f3bc3407
/system/update_engine/client_library/include/update_engine/client.h
|