Age | Commit message (Collapse) | Author |
|
am: 3dae2c9f75
* commit '3dae2c9f756721a220f8b59c70306031568a3ff2':
Fix avahi host name resolution scenarios
|
|
When host name collision is detected, avahi picks a new host name,
however it fails to update any published services with the new name
which leads to wrong IP address resolution for the service.
As a work-around, when we detect an avahi-client restart, we just
re-publish our service, so it picks up the new host name.
BUG: 26237307
Change-Id: I980735890c62957e1bc433a07c319eff646c358c
|
|
am: f1a77fcb46
* commit 'f1a77fcb460c16e690306ea1e296d26ba7b90da2':
Fix weaved unit tests
|
|
GetComponent() method was added to D-Bus object but the call wasn't
mocked out in D-Bus proxy tests, resulting in unwanted call and
broken tests.
Change-Id: I77f2baad7d337994e1d39b65158f0082e09776e0
|
|
am: 494b72473a
* commit '494b72473a1c436751003c249e1e4a9f81102329':
Refactor weaved to use Avahi client library
|
|
Change-Id: Iaa82d85fd88a7a252efc9d509dad4c33a576172d
Test: Manual testing by avakulenko
Bug: 26184797
Signed-off-by: Casey Dahlin <sadmac@google.com>
|
|
am: 14b3e6e052
* commit '14b3e6e052de2e706cfa6f011c5db83fb6ca6e65':
Remove deprecated libweave APIs
|
|
With libweave old (commanddef/state) APIs officially deprecated, removed
their usage from weaved. In places when weaved loads legacy command/state
definitions for vendor daemons, this couldn't be done yet, so the
deprecated API warnings were temporary disabled in the make file.
Also removed D-Bus methods/properties to work with the legacy state
snapshot and instead exposed Components/Traits properties out of the daemon.
BUG: 25917706
Change-Id: I328aff526f284dc69560a7bd7907ad838c0365e2
|
|
am: 3bd3ececdd
* commit '3bd3ececdd8ab45b6b2e81c8fbbbe60c850c2a2c':
Add trait/component APIs to weaved
|
|
Added new Device::AddComponent() method as well as added |component|
parameter to AddCommandHandler, SetStateProperty/SetStateProperties
methods. Added GetComponent() method to Command class.
Marked old APIs (that don't take component name) as deprecated.
Finally, made weaved load trait definitions from /etc/weaved/traits
directory.
BUG: 25917608, 25917704, 25916429, 25917604, 25917426, 25916428
Change-Id: I252f3930d1fda79e41c062d71f008210d2c116a4
|
|
am: de94eb5651
* commit 'de94eb565149b5f69c780bd23cf1de53f2faf605':
weaved: Use abstract D-Bus proxy interfaces
|
|
D-Bus code generator now uses abstract proxy interfaces whenever
possible, so made necessary modifications on the caller side to
use them as well.
BUG: 26092352
Change-Id: I99fa287ea00646c3d9ad6225bfcce8a83284d672
|
|
am: bae6c02cd9
* commit 'bae6c02cd98daa7b731c75d972a818b06997a9e4':
Fix weaved to make it work with the new libweave
|
|
There have been some API changes on libweave side, so we must
update weaved to work with the new drop of the library.
Change-Id: Idf173557769b5b1c6fa6b73cfc75342301a89e99
|
|
am: 74a0c32e42
* commit '74a0c32e422005757e4294d25d6098493cbd79af':
Update comment about keys owners
|
|
Change-Id: I8cd59ba70be36748613c63ae8f07bd3716e1879f
|
|
am: 55198ea5c0
* commit '55198ea5c01abb5f3b0cb299c54bd86b5fa40618':
weaved: Fix a typo in libweaved/device.cc
|
|
Device::OnManagerRemoved was passed to CommandRemovedCallback instead
of ManagerRemovedCallback. Stupid copy-paste problems.
BUG: 25813877
Change-Id: Iafbdf9ad43c8008d4aff489b7f9ea358c263a31f
|
|
am: 790643febb
* commit '790643febbcb2d85211da6d01a78360083a0f170':
weaved: set system property 'weave.state' with the current GCD state
|
|
In order for other Brillo system components to know when the device is
fully provisioned/connected to the cloud, add 'weave.state' system
property which has one of the following states:
- unconfigured
- connecting
- connected
- invalid_credentials
Initially (OOB) the device is "unconfigured". When the bootstrap
process finished, the device will be in "connected" state. If the
device is later deleted from the cloud by the user, it will go into
"invalid_credentials" state.
BUG: 24142361
Change-Id: If83e151940a81d5e379e1b0199a9813733c12fdf
|
|
am: b55800bb6c
* commit 'b55800bb6ce26de6dcbdbf25bd5a7e8d07a3fa03':
weaved: Use real webserver's request timeout value
|
|
Use the real request timeout value provided by web server now.
BUG: 23908251
Change-Id: Ic42d012a492cf3acaf846fc0852d07086e316c07
|
|
|
|
libweave now supports log-poll HTTP requests for device state change
notifications as described in:
https://developers.google.com/cloud-devices/v1/reference/local-api/check_for_updates
Made corresponding implementation changes on weaved side.
BUG: 23908251
Change-Id: I60f9ad67907645b4164a5e8cf716a0a31e760d72
|
|
BUG:25627281
Change-Id: I69644b3425b9e34bd9e4806759fccdb975405834
|
|
Renamed the test binary to weaved_test to stay consistent with
other Brillo test runner and marked it to be executed as part of
brillo_Gtests test.
BUG: 25672600
Change-Id: I5a76b0eb8a0e4892addfc012359a3da2f9ca2cf6
|
|
Probably the code was written with assumption that
On*PropertyChangeRegistration will be called asynchronously.
These function access data which will be initialized immediately after
RegisterPropertyChangedSignalHandler return.
This is not true with the current state of the code. Functions are being
called from RegisterPropertyChangedSignalHandler before data is read.
This effectively disabled most of OnPropertyChange logic. Probably the
logic of DBUS proxies was changed.
This fix initializes required data before calling
RegisterPropertyChangedSignalHandler.
Also fixed call to Init(), but seems does nothing important.
BUG:25531670
Change-Id: I7e1580c165d618b3f9bd763d06f909d9c35f87c3
|
|
Replaced the old code carried over from Chrome OS with the correct
Brillo one to read the product version for Weave.
BUG: 25394736
Change-Id: I4a2a905fe43d5f75f5a2170c7afffc5ae9078c78
|
|
BUG: 24872993
Change-Id: I9f3c364c09428319f895079fa1f99fa0aea70b93
|
|
Since Any::GetType() is removed, use the new Any::GetUndecoratedTypeName
method to print the human-readable type name contained within Any.
BUG: 25132472
Change-Id: I44a7daa118c2c4272c365ba5c0cbfd0a03fc2832
|
|
Added a few useful log messages to mark the moment when soft AP
is started/stopped and when new WiFi network is setup in order to
help with debugging networking events.
Change-Id: Iec9b335f8accc07714d5f37b7eb4a4e5b0368023
|
|
Change-Id: Ic8b7e49a860830243ee474d514cd655f52fb0537
|
|
BUG:24569791
Change-Id: Ia80e783c617220dda2c04aa48284daf236dd6c72
|
|
COMMIT-QUEUE.ini was used with ChromeOS CQ.
HACKING is specific to buffet_client which is deleted.
test.json and main.cc are part of test daemon which is removed.
Change-Id: Ie9e20fb525eb57e1d4646a2e17fa491e5b9ab69f
|
|
This reverts commit 6765efdf49f824c98d13afefe920bdee237e1c0f.
Change-Id: I4d35889f71d2a8dcd91155f2374f89c1a7d42bd1
|
|
Otherwise daemons can start updating device state before webserver
notified us of HTTP port numbers and we start the libweave, which
would lead to a crash
Change-Id: I928477078da633def0bd00f165d39dd8b8dfc4c5
|
|
Keystore has a bug that leads to memory corruption and process
crash. Until that bug is fixed, we can't use it, so fall back to
the fake encryptor.
BUG: 24905120
Change-Id: I02ea19431ea9aa9f46c3ad45d880af4b7edf276a
|
|
'/data' is not guaranteed to be ready at 'on boot'.
Bug: 24908523
Change-Id: I79016f56da2f48cbc2f239bec60bdc1d073d6b1c
|
|
libweave includes these two new commits now:
- 11956f74 Added version field to state and migrate from unversioned data
- c37cbb8b Use single callback for replies to async operations
Change-Id: I67f67c735b538c2a4dc161464ac7796c4d114ca6
|
|
libchromeos is transitioning to libbrillo and chromeos namespaces
and include directory is changing to brillo.
Bug: 24872993
Change-Id: Ic91fe342fb2c29ae915300d1ce9ae8473303238b
|
|
Pulling the following commits from libweave public repo:
f7f52d47 - Pass error as ErrorPtr into ErrorCallback
7a35005c - Added few logging for command notification and DNS-SD updates
96cc933e - Ordered includes
1a42e146 - Replace type of method parameter of HttpClient::SendRequest with enum
17280378 - Cleanup mock_http_client.h
226842f8 - Fixed inconsistent type for RegisterCallbacks
4774df27 - Async RegisterDevice implementation
533dd429 - Allow multiple calls Request::GetData
890124a1 - Add --v switch into example code
866b60a1 - Remove request id from HTTP client
Change-Id: If52121f9a6e70ecf60c791fc3b839f0a35904c8b
|
|
Added client library for weaved to hide the underlying D-Bus IPC
as much as possible.
Change-Id: Id91dad80c593c58124b27a90a34cd3b1852e898f
|
|
Change-Id: I81bc8124ebf41a62b69df58032f38c825a03b817
|
|
A number of APIs have changed in libweave and weaved is updated to
work with the latest version of the library. Some public D-Bus APIs
have changed as well to reflect the underlying libweave interfaces:
- Command::Done/SetProgress are replaced with Command::Complete
- Command::Abort now takes error code and error messages
- Command::category is removed
- Command::status is renamed to Command::state
- Manager::GetCommand is removed (since weave::Command::ToJson is
no longer available)
Change-Id: Iebf0565467756e8a21be37163d750ff22c419672
|
|
Moved recent changes to weaved from Brillo branch to AOSP and used
conditional compilation to compile Brillo-specific code on Brillo only.
This eliminates differences in source files for the branch and future
code merge issues.
Change-Id: I355a1022cb0d31ea1ab7e0c476824ebbad1af43c
|
|
libweave has a number of interafce changes which need to be reflected in
weaved's implementation of the interfaces. This commit brings weaved in
sync with the current version of libweave.
Change-Id: If6355ef2c19e38b56f96b027038e2d6da0f44709
|
|
Now that weaved is back to using shill_client, remove the replacement
network_client interface and its implementations.
Change-Id: I1d2b83b6d54d1d3d89fce98e01ecf30bf420b999
|
|
Pull the latest changes of libweave and update weaved correspondingly
Change-Id: I0a24a948c9296d4f8a12d1f26f808cb7b78fe572
|
|
|
|
shill and apmanager is ready now on Brillo, so switch over to use
ShillClient.
Bug: 24575517
TEST=Setup dragonboard device using Nexus 6
Change-Id: I73ed3d55fb5688ddc80c07b8a24ed08d5958c539
|