diff --git a/tests/extension/light/2.0/default/Android.bp b/tests/extension/light/2.0/default/Android.bp index 365a34ab02..dcac97cc3e 100644 --- a/tests/extension/light/2.0/default/Android.bp +++ b/tests/extension/light/2.0/default/Android.bp @@ -16,6 +16,7 @@ cc_binary { name: "android.hardware.tests.extension.light@2.0-service", + defaults: ["hidl_defaults"], init_rc: ["android.hardware.tests.extension.light@2.0-service.rc"], vendor: true, relative_install_path: "hw", diff --git a/tests/extension/light/2.0/default/service.cpp b/tests/extension/light/2.0/default/service.cpp index 4d839b2268..af287e98bd 100644 --- a/tests/extension/light/2.0/default/service.cpp +++ b/tests/extension/light/2.0/default/service.cpp @@ -30,6 +30,8 @@ using android::hardware::tests::extension::light::V2_0::implementation::Light; int main() { android::sp service = new Light(); configureRpcThreadpool(1, true /*callerWillJoin*/); - service->registerAsService(); + if (service->registerAsService() != android::OK) { + exit(1); + } joinRpcThreadpool(); } diff --git a/usb/1.0/default/Android.bp b/usb/1.0/default/Android.bp index 2ebe61fde9..64de8216d3 100644 --- a/usb/1.0/default/Android.bp +++ b/usb/1.0/default/Android.bp @@ -14,6 +14,7 @@ cc_binary { name: "android.hardware.usb@1.0-service", + defaults: ["hidl_defaults"], init_rc: ["android.hardware.usb@1.0-service.rc"], relative_install_path: "hw", vendor: true, diff --git a/vibrator/1.0/default/Android.bp b/vibrator/1.0/default/Android.bp index 9170b39db3..0c7d1557ea 100644 --- a/vibrator/1.0/default/Android.bp +++ b/vibrator/1.0/default/Android.bp @@ -31,6 +31,7 @@ cc_library_shared { cc_binary { name: "android.hardware.vibrator@1.0-service", + defaults: ["hidl_defaults"], init_rc: ["android.hardware.vibrator@1.0-service.rc"], vendor: true, relative_install_path: "hw",