Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92b8a86c authored by Peter Kalauskas's avatar Peter Kalauskas Committed by android-build-merger
Browse files

Merge "Make health storage HAL lazy" am: 063024b1 am: 6afe6b9c

am: 895fe2ee

Change-Id: If57158811efac1f9559d1b6b264789ad651211c7
parents 2541c033 895fe2ee
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
service vendor.health-storage-hal-1-0 /vendor/bin/hw/android.hardware.health.storage@1.0-service
    interface android.hardware.health.storage@1.0::IStorage default
    oneshot
    disabled
    class hal
    user system
    group system
+4 −1
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@
 * limitations under the License.
 */

#include <hidl/HidlLazyUtils.h>
#include <hidl/HidlTransportSupport.h>
#include "Storage.h"

@@ -23,6 +24,7 @@ using android::status_t;
using android::UNKNOWN_ERROR;
using android::hardware::configureRpcThreadpool;
using android::hardware::joinRpcThreadpool;
using android::hardware::LazyServiceRegistrar;
using android::hardware::health::storage::V1_0::IStorage;
using android::hardware::health::storage::V1_0::implementation::Storage;

@@ -30,7 +32,8 @@ int main() {
    configureRpcThreadpool(1, true);

    sp<IStorage> service = new Storage();
    status_t result = service->registerAsService();
    LazyServiceRegistrar registrar;
    status_t result = registrar.registerService(service);

    if (result != OK) {
        return result;