dc066f14d22f7e3843ad3c4bbcfd8718f95d4dcd |
|
27-Mar-2017 |
Alex Deymo <deymo@google.com> |
Remove weave support from update_engine. This codepath is not used anymore. Bug: None Test: `make checkbuild`. Change-Id: I0f7f22d63cb2c3fbfabcda25763160e2470ef2c5
/system/update_engine/daemon.cc
|
299128ee0f9009f79a62d5f57d75270f62353c9d |
|
04-Jun-2016 |
Sen Jiang <senj@google.com> |
Make DBus a singleton. All the proxies need dbus to initialize, so we are passing dbus around, to make it easier to compile dbus conditionally, this patch makes it a singleton so that the proxies can get dbus on their own. Test: mma Bug: 28800946 Change-Id: Idf062c843aa34a431c2201bae5b895dc1d0ea787
/system/update_engine/daemon.cc
|
192a86a7e3b5ec90d7860f817100be6a43ca1daa |
|
20-May-2016 |
Sen Jiang <senj@google.com> |
Add USE_OMAHA flag. What we really meant when we use ifdef BRILLO in Android.mk is if use omaha, so this patch introduce a new use flag for omaha. Bug: 28752785 Test: mma Change-Id: I4f3a81d953943dd4cd0907c2aabc10a6cb9d6acc
/system/update_engine/daemon.cc
|
f8bfcff8debbcbbb572fdd61e640efe2a3df31dc |
|
03-Feb-2016 |
Alex Deymo <deymo@google.com> |
Android: Implement the binder service. This patch introduces the service delegate interface for non-Brillo targets, which is the class in charge of implementing the API exposed by the service. The binder service for non-Brillo targets is now completed using this interface. The other side of this interface will be implemented in a follow up CL, while this CL includes only the interface and its usage. To accomodate non-Brillo targets, the generic ServiceObserverInterface is extended with the PayloadApplicationComplete message, which will be implemented for all targets in the future. Bug: 25631949 TEST=`mmma system/update_engine` on aosp_arm-eng and edison-eng Change-Id: I9fa8e9565ae92515e81e07d2cef562fc4e11a7ba
/system/update_engine/daemon.cc
|
fa78f14d818e8e0b8ed5d05ebc389bf833342e7a |
|
27-Jan-2016 |
Alex Deymo <deymo@google.com> |
Refactor daemon state and service async notification. There are three supported IPC mechanism in this code: DBus, binder and weave (over binder); which are mostly supported by all three platforms Chrome OS, Brillo and Android. The exceptions are that Brillo and Chrome OS still *require* DBus and support the others, while the new Android daemon requires and supports only Binder. This CL introduces two new interfaces: the ServiceObserverInterface and the DaemonStateInterface. The first one abstracts a service (or IPC service) into an interfcae from the point of view of the daemon initialization and async notifications of status changes. The second interface encapsulates the state and main functionality of the update_engine daemon while leaving the shared initialization in the main.cc and daemon.cc classes. Bug: 25631949 TEST=`mmma system/update_engine` on edison-eng and aosp_arm-eng TEST=FEATURES=test emerge-link update_engine Change-Id: Ic15621031a153e14bdc4df8fcedbca1032e82c21
/system/update_engine/daemon.cc
|
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/daemon.cc
|
e97b39c4140af015f5a2939808cf8ee39bde43a2 |
|
20-Jan-2016 |
Alex Deymo <deymo@google.com> |
Implement Android UE daemon using brillo::Daemon. The setup logic for Brillo and Android devices is very similar despite the differences in the daemon logic and exposed service interface. This patch reuses the brillo::Daemon derived class and the main() function from Brillo to implement the daemon and service setup in Android as well. In addition, the Chromium OS build now defines the __CHROMEOS__ macro to make the code behave the same way as in the Brillo case. Bug: 25631949 TEST=`mmma system/update_engine` on edison-eng and aosp_arm-eng Change-Id: I0f9690264e0822ef7e71318c73c2f16eda99e07c
/system/update_engine/daemon.cc
|
bdd765e3157a2b04265dcdab0d7a55e747924555 |
|
23-Jan-2016 |
Alex Vakulenko <avakulenko@google.com> |
Revert "Implement Android UE daemon using brillo::Daemon." This reverts commit c180400937eac75e8b7119f68d44593713dd4557. This breaks both AOSP and Chrome OS Change-Id: Ie9686a4d03a8fd53a614ed1706e3268918c414fb
/system/update_engine/daemon.cc
|
ce360bb3e2fa528cddded4e1cfc359c9e80b4970 |
|
23-Jan-2016 |
Alex Vakulenko <avakulenko@google.com> |
Revert "update_engine: Fix compile errors on Chrome OS" This reverts commit a3e8746e75e0d740ac1e7b58da86fad2e619b3a9. Change-Id: If6cc797fbb93a0ba2365191ecd52f2fba9df92f8
/system/update_engine/daemon.cc
|
a3e8746e75e0d740ac1e7b58da86fad2e619b3a9 |
|
23-Jan-2016 |
Alex Vakulenko <avakulenko@google.com> |
update_engine: Fix compile errors on Chrome OS Some members of update engine's Daemon class was declared only for __BRILLO__ but used in Chrome OS (where USE_DBUS is defined) resulting in build errors. Fixing those. Change-Id: I8b59aa43be2cc906c51b7376029239e4e5e4350e
/system/update_engine/daemon.cc
|
c180400937eac75e8b7119f68d44593713dd4557 |
|
20-Jan-2016 |
Alex Deymo <deymo@google.com> |
Implement Android UE daemon using brillo::Daemon. The setup logic for Brillo and Android devices is very similar despite the differences in the daemon logic and exposed service interface. This patch reuses the brillo::Daemon derived class and the main() function from Brillo to implement the daemon and service setup in Android as well. Bug: 25631949 TEST=`mmma system/update_engine` on edison-eng and aosp_arm-eng Change-Id: I15b2c2990a8055619dd407b2996ea92216c602a2
/system/update_engine/daemon.cc
|
a93cd53c4f8ab8cb926ed9223373567ebbf45cb6 |
|
15-Jan-2016 |
Casey Dahlin <sadmac@google.com> |
Introduce brillo binder interface This is more or less an exact analogue of the DBus interface, but available over binder. We also add support to the client library and let update_engine_client build with binder. We don't yet support an equivalent of the status signal/the HandleStatusUpdate method. That will come in a future CL. Bug: 25908638 TEST=Verified update_engine_client functionality Change-Id: Ic793619c8019b0d50aa184e0f592b6a9ab71e0b0
/system/update_engine/daemon.cc
|
8c21b354da6dddb11dda6f5c0631a88710331da2 |
|
21-Jan-2016 |
Alex Deymo <deymo@google.com> |
Move current daemon destruction logic to RealSystemState. The UpdateAttempter requires to release the dbus_adaptor pointer before detruction to avoid sending messages over a dead DBus connection. This patch moves this logic out of the UpdateEngineDaemon class. Bug: None TEST=mm; Tested on Brillo. Change-Id: I8939c5a2940f435e2e8f574910e0fa2674dc725f
/system/update_engine/daemon.cc
|
a91cc489d2754563cc3776a2d53543b890ab6f22 |
|
21-Jan-2016 |
Alex Deymo <deymo@google.com> |
Convert UpdateEngineDaemon to a brillo:Daemon. To help conditionally compile DBus support, we replace the brillo:DBusDaemon super class with a brillo::Daemon so the DBus initialization can be skipped. Bug: 26690086 TEST=mma; deployed on edison. Change-Id: I2d85feacb28b61e76ffbabc526371c29fac3a424
/system/update_engine/daemon.cc
|
e119e6ab7edb7226508d49a43b196b44f0c54111 |
|
07-Jan-2016 |
Alex Vakulenko <avakulenko@google.com> |
update_engine: Switch to use Binder interface to weaved Now that weaved provides a binder interface for its IPC, switch to using it instead. Bug: 23782171 Change-Id: I0b981b366a7dc42aabc9b61c4e9f90e26a2d74b4
/system/update_engine/daemon.cc
|
2b4268c8f89d115b0895b3f0172f42c11d9b1d7c |
|
04-Dec-2015 |
Alex Deymo <deymo@google.com> |
Fix crash on shutdown when update in progress. The ActionProcessor destructor normally calls the ProcessingStop method on the delegate. For the UpdateAttempter this call re-schedules a new update attempt on a half-destroyed update_attempter instance, crashing update_engine on SIGTERM when the ActionProcessor was running. This patch inhibits the ActionProcessor from notifying the delegate of the processor stopping when destroying the update_attempter instance. It also fixes the declaration order of the dbus_adaptor_ and disables its usage during daemon shutdown. Bug: 24989397 TEST=start update-engine; (update_engine_client --update &); sleep 6; stop update-engine; tail /var/log/update_engine.log TEST=FEATURES=test emerge-link update_engine Change-Id: I0a40067f63e89759ff80c79cecb6f89b10dba0c2
/system/update_engine/daemon.cc
|
c1c17b4ed6a3896b6343e737fd89682fa0c8436b |
|
23-Nov-2015 |
Alex Deymo <deymo@google.com> |
Report Enum metrics from CertificateChecker. The certificate checker was reporting a "user action" whenever an update check HTTPS connection or HTTPS payload download had an invalid HTTPS certificate or a valid one that was changed since the last connection to the same server. This patch sends an Enum metric for every HTTPS connection to check for and update or download the payload with one of the three options: an invalid certificate, a valid one already seen or a valid but different certificate. This patch also moves these metrics to the metrics.{h,cc} module, where all the other metrics are reported, using an observer pattern in the CertificateChecker, needed to remove the dependency on the metrics library from the libpayload_consumer. Bug: 25818567 TEST=FEATURES=test emerge-link update_engine; mma; Change-Id: Ia1b6eb799e13b439b520ba14549d8973e18bcbfa
/system/update_engine/daemon.cc
|
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/daemon.cc
|
3f39d5cc753905874d8d93bef94f857b8808f19e |
|
13-Oct-2015 |
Alex Vakulenko <avakulenko@google.com> |
update_engine: Rename "chromeos" -> "brillo" in include paths and namespaces libchromeos is transitioning to libbrillo and chromeos namespaces and include directory is changing to brillo. Bug: 24872993 Change-Id: I770659a95be380a50fe3b2ba9f91d65818f40945
/system/update_engine/daemon.cc
|
aea4c1cea20dda7ae7e85fc8924a2d784f70d806 |
|
20-Aug-2015 |
Alex Deymo <deymo@google.com> |
Re-license update_engine to Apache2 This patch automatically replaced the license on all text files from Chromium OS (BSD style) to AOSP (Apache2), keeping the original year as a reference. The license header was added to .gyp and .gypi files, the NOTICE was replaced with a copy of the Apache2 license and MODULE_LICENSE_* file was updated. BUG=b/23084294 TEST=grep 'Chromium OS Authors' doesn't find anything. Change-Id: Ie5083750755f5180a8a785b24fe67dbf9195cd10
/system/update_engine/daemon.cc
|
b7ca096f98a43ebbf412f1b2d3d15bb184f871f8 |
|
02-Oct-2014 |
Alex Deymo <deymo@chromium.org> |
update_engine: Migrate UE DBus service to chrome DBus bindings. chromeos-dbus-bindings now generates the adaptor interface that update_engine exposes over DBus. This interface is implemented in dbus_service.{h,cc}, which now has a UpdateEngineService class encapsulating all the service methods implementation. This allows to write unit test for those methods, which are included in this CL for all the non-trivial methods. This CL now uses chrome's DBus bindings for the update_engine serive, but the proxy interaction is still done using dbus-glib. The main loop in the main.cc file is now replaced with the chromeos::Dameon, which uses a chromeos::BaseMessageLoop instead of a GlibMessageLoop. This causes the asynchronous interactions in the proxy side to not work, which will be fixed in the next CL. CQ-DEPEND=CL:290990,CL:291092,CL:293334 BUG=chromium:419827 TEST=Added unittest for all dbus_service methods. deployed and tested manually that update_engine dbus interface works. Change-Id: I6a6d142b2ac1a61a4c3abcb927665b26114abe5c Reviewed-on: https://chromium-review.googlesource.com/225324 Reviewed-by: Gilad Arnold <garnold@chromium.org> Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org> Trybot-Ready: Alex Deymo <deymo@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org>
/system/update_engine/daemon.cc
|