summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-22ledflasher: Remove handler for base.identify commandHEADmastermainAlex Vakulenko
Since libweave no longer has the 'base' trait, its 'reboot' and 'identify' commands are removed too. Delete the command handler for 'base.identify' or else ledflasher just crashes at startup (with 'unknown command' error). Change-Id: I7d2a19640c53dd288620c0e6dabae389f26dbc11
2016-04-18libledservice-common depends on libbinderChristopher Wiley
Also export libbinder's headers, since you need them to include headers from libledservice-common. Bug: 27804373 Change-Id: I42b58408fd4eeab3e0d277bb5771a6507ba1d90d Test: Compiles.
2016-03-07Merge "Updated ledflasher sample to use trait/component model - light ↵Alex Vakulenko
schema onOff trait - dynamically add components based on available LEDs from lights HAL - custom trait _ledInfo to save lights HAL LED names"
2016-02-26Updated ledflasher sample to use trait/component modelShawn S
- light schema onOff trait - dynamically add components based on available LEDs from lights HAL - custom trait _ledInfo to save lights HAL LED names BUG:26798554 Change-Id: I4c1dd0cdb2f3479703e9082fea152a713178e65c
2016-02-26ledflasher sepolicy: Needs iio getattrBruce Beare
Change-Id: I96882baca31c8392e003f8e8ffa26f7822c6f4a2 Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
2016-02-11Switch ledflasher-userdebug to ledflasher-engVitaly Buka
eng image will include native unittests Change-Id: If547f257e00159e84e8b031de706ef797f506728
2016-02-10Set allow_endpoints_override=true in weaved.confVitaly Buka
Bug: 23907593 Bug: 26525138 Change-Id: I8c3010d0cd43aed135b80211ad0a42c14354edfb
2016-01-28ledflasher: Removing brillo::Any from weaved's public APIsAlex Vakulenko
Weaved replaces brillo::Any with base::Value in its client library, so need to update clients. Also this removes last D-Bus dependencies from ledflasher. Bug: 26558300 Change-Id: I8265e06aca6f707dde6edbebeafe0b28b8eb17ff
2016-01-22Updated LEDFlasher sample app to use generic model manifest in weaved.confShawn S
- model_id: AAw7x - model_name=Brillo Starter Board - name: LED Flasher - oem_name: by Google Inc. - product_id: developer-boards:ledflasher Bug:26023817 Change-Id: Ibb25dff8f391ac97a6ed148bb9fe1d8a5123a72c
2016-01-21Update LED flasher SELinux policy.Jorge Lucangeli Obes
Following change in https://android-review.googlesource.com/#/c/197681/ Bug: 26573107 Change-Id: I4b9ba7bb3fdf67e9ddf52dedef42887bb43609b7
2016-01-08ledflasher: Implement base.identify and pairing session confirmationAlex Vakulenko
Added a handler for base.identify command that would flash LEDs on the board for 2 seconds. Also when the device goes into pairing mode, its LEDs will flash as well to confirm that the client is connected to the right physical device. BUG: 26467076 Change-Id: I7ef31e9d2694c46b6d9c61b209f3e50b99fc3258
2016-01-08ledflasher: Use helper Command::AbortWithCustomError() methodAlex Vakulenko
weaved now provides new variants of Command::Abort() that allow to specify the error information as brillo::Error or binder::Status. BUG: 25875613 Change-Id: Icf82c1c6c752eae7e651213d46e42baa103bef38
2016-01-07ledflasher: Split out the trait name from the command nameAlex Vakulenko
weaved::Service::AddCommandHandler() and SetStateProperty() now expect the trait name as a separate argument. BUG: 26443877 Change-Id: Id5a1f2ff779c13a7c6fb9cb3a71c5e23ff0cddb1
2016-01-07Remove D-Bus API from ledservice and replace with BinderAlex Vakulenko
The hardware access service of ledflasher (ledservice) used to expose D-Bus API to ledflasher daemon to get low level access to on-board LEDs. We are moving away from D-Bus in favor of Binder, so replace the RPC to use binder now. BUG: 26404046 Change-Id: Ib0ff50868e33a3be3a4dc6cdf92d92f5b4c80287
2016-01-07ledflasher: Switch to Binder-based weaved libraryAlex Vakulenko
Weave daemon now uses Binder as the underlying transport and its client library has been updated. Update ledflasher to support the new APIs. BUG: 23782171 Change-Id: I19b2a6699f39f9f621ab201fab4ec89da20e71ff
2016-01-07ledflasher: Remove references to ultrasound32 and audible32Alex Vakulenko
These were mentioned in comment sections of the conf file but these pairing modes are no longer supported. BUG: 26441921 Change-Id: I99e8654bc10d0536d3cc458c6f457830f3173185
2015-12-29ledflasher: Disable RTTIAlex Vakulenko
There is no longer a reliance on RTTI in libbrillo, so disable RTTI in the rest of Brillo codebase. With RTTI disabled, we rely on __PRETTY_FUNCTION__ macro to infer some type names. Unfortunately CLANG and GCC use different decorations for template types with default parameters (such as std::vector and std::map) which causes problems. Since most of Brillo code is compiled with clang, use that for code that relies on brillo::Any. BUG: 26292405 Change-Id: I922649add010fd68dab90146894494864f44c02e
2015-12-16Fix ledflasher to conform to the lastest server schemaAlex Vakulenko
The new server push enabled component/trait validation rules. This allows us to use the new schema that does not require vendor commands, parameters and state to start with underscore ("_"). Also fixed a few minor errors in schema definition. Change-Id: I099474949746835892d0aeeaca46efc31e9569c4
2015-12-09Merge "ledflasher: Update to use new component/trait APIs from weaved"brillo-m8-releasebrillo-m8-devAlex Vakulenko
2015-12-09Merge "ledstatus: use internally stored state when checking if led is on"Mohammed Habibulla
2015-12-09ledflasher: Update to use new component/trait APIs from weavedAlex Vakulenko
Removed command and state definitions and use trait definitions instead. Also, create "ledflasher" component for weave. Bug: 25917707 Change-Id: I031541fd2ca3771a9283b82845d48044bf97892d
2015-12-08ledflasher: Use abstract D-Bus proxy interfacesAlex Vakulenko
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: Id0fcec14824188753290b60006f8e80714533d27
2015-12-08ledstatus: use internally stored state when checking if led is onanbranci
LED driver will be removed for Edison. ledservice should use the internally stored state to check if LED is on when lights hal is available. This will fix the weave toggle command issue. BUG=None Change-Id: I83086517ad1a066c8212253ac99bd5a92c37a26a
2015-12-07sepolicy: ledservice.te: allow sysfs readsConstantin Musca
The lights hal is using libmraa to turn on/off the leds. Allow the ledservice (libmraa) to access the exported GPIOs' dir via sysfs. BUG=26024720 Tracked-On: https://jira01.devtools.intel.com/browse/BP-152 Change-Id: I8877d71fac30a5e3a1705481a4e4fc3e90a75544 Signed-off-by: Constantin Musca <constantin.musca@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
2015-12-03Made unused param warnings not fatal in ledflasher, ledservice.Jim Guggemos
TEST: compiled shamu-userdebug, edison-eng Change-Id: I16a2817858a92fb1691d8353718baf7dfe505b7c
2015-11-24ledflasher: Add graceful error handlingAlex Vakulenko
ledflasher relied on weaved/libweave for command parameter validation which is no longer provided by libweave, so it needs to be less strict about accepting commands with invalid parameters. Instead of just crashing the application should just abort the command with corresponding error message. BUG: 25829264 Change-Id: Iae09b0d68006a1d5226d15d8b40552d42c7ab411
2015-11-24Fix ledflasher weave schema to match server definitionsAlex Vakulenko
Now that libweave doesn't do any type checking on command/state schemas, it is no longer able to "fix" the schema to make it usable by the cloud server. The applications must provide the correct schemas to libweave from the start. Change-Id: If3068024e4cefa5330197822582ad3422d744ce1
2015-11-17Remove sample keys from weaved.confVitaly Buka
BUG:25627281 Change-Id: I27e780849ca05b1856b6f9e896c6757766e919e3
2015-11-12Fix LEDService SELinux policy.Jorge Lucangeli Obes
Bug: None Change-Id: I158a7ab0bb56823f9fa67157defaecdf405a10a5
2015-11-06Merge "LED flasher: Use Brillo SELinux macros."Jorge Lucangeli Obes
2015-11-06Merge "ledflasher: Use lights HAL if it is available."Gaurav Shah
2015-11-06ledflasher: Use lights HAL if it is available.Ralph Nathan
Change the ledflasher to use the lights hal if it is available. If the lights hal isn't available, then it defaults back to using sysfs. Remove a CHECK from ledflasher.cpp as a short term fix. Added a TODO there for a longer term solution. BUG=24846780 BUG=25498156 TEST=manual test on both the edison and dragonboard Change-Id: I6b2d57ff61bde7a2c7ec31fc744871240ad9f83d
2015-11-05LED flasher: Use Brillo SELinux macros.Jorge Lucangeli Obes
This cuts down on repeated commands in .te files. Change-Id: Ia96c66b3ddc77d96911f0fa1465ae753ae19bd2d
2015-11-04example-ledflasher: convert to using cfgtree.mkWill Drewry
This change converts ledflasher to using the cfgtree.mk-based product definition changes. It depends on the cfgtree change and changes to both crash_reporter and brillo_config to pull in those two variables where expected. This path may now be copied verbatim for out of tree use. The only missing convenience piece is the envsetup.sh which a call to brunch product envsetup --generate will fix. BUG=25343470 TEST=full in-tree build in progress. an out of tree validating build will follow. Change-Id: Iab912c4684a7e3a70c58431ae50c2a5c4f9bf953
2015-10-27ledflasher: Rename libchromeos into libbrilloAlex Vakulenko
BUG: 24872993 Change-Id: Icb71a84a1960a85916d6583204126899b2f6dde7
2015-10-23Renamed C++ suffix from .cc to .cppShawn S
Bug:25198860 Change-Id: Ic0f082d7662d626fdda0ad95321d2009f990492c
2015-10-16crash_reporter: Change the crash server url to an os-release.d fieldSteve Fung
Bug: 24989289 Change-Id: Ib90e4a8e27d946c6330b60cd6de432d25adef05e
2015-10-15Fix the Product ID commentSteve Fung
When the Product ID field was changed, the comment was not updated to match. Change-Id: Ibeb03c49262e6fc73447bd8a9b43c6901c58b485
2015-10-13Merge "ledflasher: Rename "chromeos" -> "brillo" in include paths and ↵Alex Vakulenko
namespaces" into mnc-brillo-dev
2015-10-13Update product config with BRILLO_PRODUCT_IDSteve Fung
The new method of setting the product ID is to set the BRILLO_PRODUCT_ID field, which sets the /etc/os-release.d file. Change-Id: I13db71b0765006b06d0d2e06716342efd937c266
2015-10-13ledflasher: Rename "chromeos" -> "brillo" in include paths and namespacesAlex Vakulenko
libchromeos is transitioning to libbrillo and chromeos namespaces and include directory is changing to brillo. Bug: 24872993 Change-Id: Ib1c2f4dc2bec5484abf1b2a28ebba50601bd61e9
2015-10-12Allow crash_reporter to generate minidumpsSteve Fung
crash_reporter needs access to the ledflasher and ledservice domains in order to generate minidump files. Change-Id: I1c23b54a915b9ffbb93a48646964d3e11b03f9ac
2015-10-12Update ledflasher to use weaved's client libraryAlex Vakulenko
Do not use weave'd D-Bus proxies directly. Use the new client library. Change-Id: I3486689e565517b7fd66ee1f4bd441ab0369eab5
2015-10-12Revert "Revert "ledflasher: Update weave command APIs""Alex Vakulenko
This reverts commit cab8a36b9bde506b9c0adfffcb3bc120b892b3c7. Change-Id: Ia14195a52b4c5c2bf924f5f902749d85b3fdc83a
2015-10-10Revert "ledflasher: Update weave command APIs"Alex Vakulenko
This reverts commit f497fa2a624ea0351c90745c1d8593b7270c0626. Change-Id: I87794e484a3bf51bec3a8c1b80d70b28b84d2887
2015-10-09ledflasher: Update weave command APIsAlex Vakulenko
Weave has changed some of D-Bus APIs and metrics needs to be updated accrdingly. Command::Done is replaced with Complete(), Command::Abort now takes error code and error messages, Command::category is removed and Command::status is renamed to Command::state Change-Id: Ic6717769e88d1ff5f72e1d66d9012ee1ef5e4f1e
2015-10-08Added control for boot LED #4 in the sampleShawn S
Change-Id: I764e2dddf11e05bb5878983e9c630b153167fffc
2015-10-07Removed Command::Category since it is no longer available in weavedAlex Vakulenko
Command categories are deprecated in libweave/weaved, so remove the check from ledflasher Change-Id: I35c59d7c9ba5f233a1670c7a3ad1782b806ed71f
2015-10-05Merge "Modified name, model_name and oem_name to match those of model ↵Shawn Shen
manifest" into mnc-brillo-dev
2015-10-05Modified name, model_name and oem_name to match those of model manifestShawn S
Change-Id: I35978220f9a0365e32b6d38b7037e63e104fcd98