diff options
| -rw-r--r-- | core/jni/android_os_HwBinder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/jni/android_os_HwBinder.cpp b/core/jni/android_os_HwBinder.cpp index 132891e9e09e..8fd31fca30ce 100644 --- a/core/jni/android_os_HwBinder.cpp +++ b/core/jni/android_os_HwBinder.cpp @@ -381,7 +381,8 @@ static jobject JHwBinder_native_getService( return NULL; } - sp<hardware::IBinder> service = hardware::toBinder<hidl::base::V1_0::IBase>(ret); + sp<hardware::IBinder> service = hardware::toBinder< + hidl::base::V1_0::IBase, hidl::base::V1_0::BpHwBase>(ret); if (service == NULL) { signalExceptionForError(env, NAME_NOT_FOUND); |