diff --git a/core/jni/android_os_HwBinder.cpp b/core/jni/android_os_HwBinder.cpp index 20bb885eb578a..e65390047c552 100644 --- a/core/jni/android_os_HwBinder.cpp +++ b/core/jni/android_os_HwBinder.cpp @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include #include @@ -262,7 +262,7 @@ static void JHwBinder_native_registerService( sp binder = JHwBinder::GetNativeContext(env, thiz); /* TODO(b/33440494) this is not right */ - sp base = new hidl::base::V1_0::BpBase(binder); + sp base = new hidl::base::V1_0::BpHwBase(binder); auto manager = hardware::defaultServiceManager(); @@ -331,7 +331,7 @@ static jobject JHwBinder_native_getService( } sp service = hardware::toBinder< - hidl::base::V1_0::IBase, hidl::base::V1_0::BpBase>(ret); + hidl::base::V1_0::IBase, hidl::base::V1_0::BpHwBase>(ret); env->ReleaseStringUTFChars(ifaceNameObj, ifaceName); ifaceName = NULL;