OSDN Git Service

Fix failure to load power HAL implementation
authorConnor O'Brien <connoro@google.com>
Tue, 11 Apr 2017 22:33:04 +0000 (15:33 -0700)
committerConnor O'Brien <connoro@google.com>
Tue, 11 Apr 2017 22:41:14 +0000 (15:41 -0700)
commit27afb47f6468549600077c5d0331153a4f8c4fee
treec49016c272fffbce0d623ca7dd84803352932e8f
parent61fd056380b5d343ce4049c1ee76bd8eca6466a3
Fix failure to load power HAL implementation

Some working implementations of the libhardware power HAL do not
implement an open method. Change the HIDL implementation to not rely
on that method being available.

Test: Flashed marlin with modified power.marlin that omits an open()
implementation; power HAL loads successfully and passes VTS
Bug: 37245218
Signed-off-by: Connor O'Brien <connoro@google.com>
Change-Id: Icc77b3011a0e44330062aa51ae49e39ad349a2a5
power/1.0/default/Power.cpp